Searched refs:array_size (Results 1 – 9 of 9) sorted by relevance
/kernel/bpf/ |
D | reuseport_array.c | 155 u64 array_size; in reuseport_array_alloc() local 160 array_size = sizeof(*array); in reuseport_array_alloc() 161 array_size += (u64)attr->max_entries * sizeof(struct sock *); in reuseport_array_alloc() 164 array = bpf_map_area_alloc(array_size, numa_node); in reuseport_array_alloc()
|
D | arraymap.c | 87 u64 array_size, mask64; in array_map_alloc() local 113 array_size = sizeof(*array); in array_map_alloc() 115 array_size += (u64) max_entries * sizeof(void *); in array_map_alloc() 121 array_size = PAGE_ALIGN(array_size); in array_map_alloc() 122 array_size += PAGE_ALIGN((u64) max_entries * elem_size); in array_map_alloc() 124 array_size += (u64) max_entries * elem_size; in array_map_alloc() 133 data = bpf_map_area_mmapable_alloc(array_size, numa_node); in array_map_alloc() 139 array = bpf_map_area_alloc(array_size, numa_node); in array_map_alloc()
|
D | ringbuf.c | 70 size_t array_size; in bpf_ringbuf_area_alloc() local 90 array_size = (nr_meta_pages + 2 * nr_data_pages) * sizeof(*pages); in bpf_ringbuf_area_alloc() 91 pages = bpf_map_area_alloc(array_size, numa_node); in bpf_ringbuf_area_alloc()
|
D | btf.c | 2632 u32 array_type_id, array_size; in btf_array_check_member() local 2642 btf_type_id_size(btf, &array_type_id, &array_size); in btf_array_check_member() 2645 if (struct_size - bytes_offset < array_size) { in btf_array_check_member()
|
D | verifier.c | 12018 new_data = vzalloc(array_size(env->prog->len + len - 1, in bpf_patch_insn_data() 13949 vzalloc(array_size(sizeof(struct bpf_insn_aux_data), len)); in bpf_check()
|
/kernel/dma/ |
D | swiotlb.c | 214 alloc_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), nslabs)); in swiotlb_init_with_tbl() 317 get_order(array_size(sizeof(*mem->slots), nslabs))); in swiotlb_late_init_with_tbl() 341 slots_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), mem->nslabs)); in swiotlb_exit() 826 mem->slots = kzalloc(array_size(sizeof(*mem->slots), nslabs), in rmem_swiotlb_device_init()
|
/kernel/power/ |
D | swap.c | 716 data = vmalloc(array_size(nr_threads, sizeof(*data))); in save_image_lzo() 1203 page = vmalloc(array_size(LZO_MAX_RD_PAGES, sizeof(*page))); in load_image_lzo() 1210 data = vmalloc(array_size(nr_threads, sizeof(*data))); in load_image_lzo()
|
/kernel/trace/ |
D | tracing_map.c | 1083 entries = vmalloc(array_size(sizeof(sort_entry), map->max_elts)); in tracing_map_sort_entries()
|
/kernel/ |
D | kexec_file.c | 886 sechdrs = vzalloc(array_size(sizeof(Elf_Shdr), pi->ehdr->e_shnum)); in kexec_purgatory_setup_sechdrs()
|