Lines Matching refs:elem_size
44 u32 elem_size; /* size of each element in bytes */ member
105 return (struct htab_elem *) (htab->elems + i * htab->elem_size); in get_htab_elem()
150 htab->elems = bpf_map_area_alloc(htab->elem_size * num_entries, in prealloc_init()
187 htab->elem_size, num_entries); in prealloc_init()
191 htab->elem_size, num_entries); in prealloc_init()
336 htab->elem_size = sizeof(struct htab_elem) + in htab_map_alloc()
339 htab->elem_size += sizeof(void *); in htab_map_alloc()
341 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc()
350 (u64) htab->elem_size * htab->map.max_entries; in htab_map_alloc()
356 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()