Home
last modified time | relevance | path

Searched refs:LLIST_NODE_SZ (Results 1 – 2 of 2) sorted by relevance

/linux-6.15/kernel/bpf/
H A Dmemalloc.c36 #define LLIST_NODE_SZ sizeof(struct llist_node) macro
521 percpu_size = LLIST_NODE_SZ + sizeof(void *); in bpf_mem_alloc_init()
603 percpu_size = LLIST_NODE_SZ + sizeof(void *); in bpf_mem_alloc_percpu_unit_init()
831 BUILD_BUG_ON(LLIST_NODE_SZ > 8); in unit_free()
898 size += LLIST_NODE_SZ; in bpf_mem_alloc()
904 return !ret ? NULL : ret + LLIST_NODE_SZ; in bpf_mem_alloc()
915 c = *(void **)(ptr - LLIST_NODE_SZ); in bpf_mem_free()
931 c = *(void **)(ptr - LLIST_NODE_SZ); in bpf_mem_free_rcu()
944 return !ret ? NULL : ret + LLIST_NODE_SZ; in bpf_mem_cache_alloc()
978 kfree(ptr - LLIST_NODE_SZ); in bpf_mem_cache_raw_free()
[all …]
H A Dhashtab.c2240 #define LLIST_NODE_SZ sizeof(struct llist_node) in htab_map_mem_usage() macro
2245 usage += (htab->elem_size + LLIST_NODE_SZ) * num_entries; in htab_map_mem_usage()
2247 usage += (LLIST_NODE_SZ + sizeof(void *)) * num_entries; in htab_map_mem_usage()