93 #define CACHE_DISCARDERS __table ( struct cache_discarder, "cache_discarders" ) 96 #define __cache_discarder( cost ) __table_entry ( CACHE_DISCARDERS, cost ) 103 #define CACHE_CHEAP 01 104 #define CACHE_NORMAL 02 105 #define CACHE_EXPENSIVE 03 static __always_inline void struct dma_mapping size_t size_t align
void *__malloc alloc_memblock(size_t size, size_t align, size_t offset)
Allocate a memory block.
size_t maxusedmem
Maximum amount of used memory.
uint8_t size
Entry size (in 32-bit words)
static void *__malloc malloc_phys(size_t size, size_t phys_align)
Allocate memory with specified physical alignment.
void free_memblock(void *ptr, size_t size)
Free a memory block.
uint32_t start
Starting offset.
size_t usedmem
Total amount of used memory.
unsigned int(* discard)(void)
Discard some cached data.
void mpopulate(void *start, size_t len)
Add memory to allocation pool.
#define VALGRIND_MALLOCLIKE_BLOCK(addr, sizeB, rzB, is_zeroed)
#define __malloc
Declare a pointer returned by a function as a unique memory address as returned by malloc-type functi...
size_t freemem
Total amount of free memory.
static void free_phys(void *ptr, size_t size)
Free memory allocated with malloc_phys()
uint16_t offset
Offset to command line.
#define VALGRIND_FREELIKE_BLOCK(addr, rzB)
static void *__malloc malloc_phys_offset(size_t size, size_t phys_align, size_t offset)
Allocate memory with specified physical alignment and offset.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)