Lines Matching refs:elem_size
36 u32 elem_size; /* size of each element in bytes */ member
97 return (struct htab_elem *) (htab->elems + i * htab->elem_size); in get_htab_elem()
142 htab->elems = bpf_map_area_alloc(htab->elem_size * num_entries, in prealloc_init()
179 htab->elem_size, num_entries); in prealloc_init()
183 htab->elem_size, num_entries); in prealloc_init()
333 htab->elem_size = sizeof(struct htab_elem) + in htab_map_alloc()
336 htab->elem_size += sizeof(void *); in htab_map_alloc()
338 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc()
347 (u64) htab->elem_size * htab->map.max_entries; in htab_map_alloc()
353 cost += (u64) htab->elem_size * num_possible_cpus(); in htab_map_alloc()
758 l_new = kmalloc_node(htab->elem_size, GFP_ATOMIC | __GFP_NOWARN, in alloc_htab_elem()