| /linux/lib/ |
| H A D | region_alloc_benchmark.c | 179 bitmap = kvmalloc_array(BITS_TO_LONGS(max_cap), sizeof(*bitmap), GFP_KERNEL); in region_alloc_benchmark() 180 reg_sz = kvmalloc_array(max_cap + 1, sizeof(*reg_sz), GFP_KERNEL); in region_alloc_benchmark() 181 reg_idx = kvmalloc_array(max_cap, sizeof(*reg_idx), GFP_KERNEL); in region_alloc_benchmark()
|
| /linux/scripts/coccinelle/api/ |
| H A D | kfree_mismatch.cocci | 58 kvmalloc_array\)(...) 124 * kvmalloc_array\)(...)@a 134 kvmalloc_array\)(...)
|
| H A D | kmalloc_objs.cocci | 17 elif name == "kvmalloc_array": 57 identifier ALLOC_ARRAY = {kmalloc_array,kvmalloc_array,kcalloc,kvcalloc};
|
| /linux/io_uring/ |
| H A D | alloc_cache.c | 25 cache->entries = kvmalloc_array(max_nr, sizeof(void *), GFP_KERNEL); in io_alloc_cache_init()
|
| H A D | zcrx.c | 551 area->freelist = kvmalloc_array(nr_iovs, sizeof(area->freelist[0]), in __zcrx_create_area()
|
| /linux/tools/virtio/ringtest/ |
| H A D | ptr_ring.c | 61 #define kvmalloc_array kmalloc_array macro
|
| /linux/drivers/net/ethernet/wangxun/txgbe/ |
| H A D | txgbe_hw.c | 89 eeprom_ptrs = kvmalloc_array(TXGBE_EEPROM_LAST_WORD, sizeof(u16), in txgbe_calc_eeprom_checksum()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_hmm.c | 180 pfns = kvmalloc_array(npages, sizeof(*pfns), GFP_KERNEL); in amdgpu_hmm_range_get_pages()
|
| H A D | amdgpu_bo_list.c | 204 info = kvmalloc_array(bo_number, info_size, GFP_KERNEL); in amdgpu_bo_create_list_entry_array()
|
| H A D | amdgpu_dev_coredump.c | 276 ib_content = kvmalloc_array(coredump->ibs[i].ib_size_dw, 4, in amdgpu_devcoredump_print_ibs()
|
| /linux/net/rds/ |
| H A D | info.c | 208 pages = kvmalloc_array(npages, sizeof(*pages), GFP_KERNEL); in rds_info_getsockopt()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_gpusvm.c | 711 pfns = kvmalloc_array(npages, sizeof(*pfns), GFP_KERNEL); in drm_gpusvm_check_pages() 1447 pfns = kvmalloc_array(npages, sizeof(*pfns), GFP_KERNEL); in drm_gpusvm_get_pages() 1755 pfns = kvmalloc_array(npages, sizeof(*pfns), GFP_KERNEL); in drm_gpusvm_range_evict()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_cs.c | 288 p->chunks_array = kvmalloc_array(cs->num_chunks, sizeof(uint64_t), GFP_KERNEL); in radeon_cs_parser_init() 347 p->chunks[i].kdata = kvmalloc_array(size, sizeof(uint32_t), GFP_KERNEL); in radeon_cs_parser_init()
|
| /linux/drivers/dma-buf/ |
| H A D | udmabuf.c | 390 folios = kvmalloc_array(max_nr_folios, sizeof(*folios), GFP_KERNEL); in udmabuf_create()
|
| /linux/kernel/bpf/ |
| H A D | hashtab.c | 1836 keys = kvmalloc_array(key_size, bucket_size, GFP_USER | __GFP_NOWARN); in __htab_map_lookup_and_delete_batch() 1837 values = kvmalloc_array(value_size, bucket_size, GFP_USER | __GFP_NOWARN); in __htab_map_lookup_and_delete_batch() 3279 keys = kvmalloc_array(max_count, key_size, GFP_USER | __GFP_NOWARN); in __rhtab_map_lookup_and_delete_batch() 3280 values = kvmalloc_array(max_count, value_size, GFP_USER | __GFP_NOWARN); in __rhtab_map_lookup_and_delete_batch() 3282 del_elems = kvmalloc_array(max_count, sizeof(void *), in __rhtab_map_lookup_and_delete_batch()
|
| /linux/drivers/tty/vt/ |
| H A D | consolemap.c | 779 struct unipair *unilist __free(kvfree) = kvmalloc_array(ct, sizeof(*unilist), GFP_KERNEL); in con_get_unimap()
|
| /linux/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_pages.c | 347 pfns = kvmalloc_array(n_pfn, sizeof(*pfns), GFP_KERNEL); in i915_gem_object_map_pfn()
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 2382 syms = kvmalloc_array(cnt, sizeof(*syms), GFP_KERNEL); in copy_user_syms() 2386 buf = kvmalloc_array(cnt, KSYM_NAME_LEN, GFP_KERNEL); in copy_user_syms() 2826 addrs = kvmalloc_array(cnt, sizeof(*addrs), GFP_KERNEL); in bpf_kprobe_multi_link_attach() 2832 cookies = kvmalloc_array(cnt, sizeof(*addrs), GFP_KERNEL); in bpf_kprobe_multi_link_attach()
|
| /linux/net/bpf/ |
| H A D | test_run.c | 163 xdp->frames = kvmalloc_array(xdp->batch_size, sizeof(void *), GFP_KERNEL); in xdp_test_run_setup() 167 xdp->skbs = kvmalloc_array(xdp->batch_size, sizeof(void *), GFP_KERNEL); in xdp_test_run_setup()
|
| /linux/include/linux/ |
| H A D | slab.h | 1378 #define kvmalloc_array(...) alloc_hooks(kvmalloc_array_noprof(__VA_ARGS__)) macro
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_drv.c | 1205 out_alloc = kvmalloc_array(in->count, obj_size, GFP_KERNEL); in pvr_get_uobj_array()
|
| /linux/fs/xfs/ |
| H A D | xfs_zone_alloc.c | 1199 return kvmalloc_array(BITS_TO_LONGS(mp->m_sb.sb_rgcount), in xfs_alloc_bucket_bitmap()
|
| /linux/drivers/accel/habanalabs/common/ |
| H A D | memory.c | 142 phys_pg_pack->pages = kvmalloc_array(num_pgs, sizeof(u64), GFP_KERNEL); in alloc_device_memory() 888 phys_pg_pack->pages = kvmalloc_array(total_npages, sizeof(u64), in init_phys_pg_pack_from_userptr()
|
| /linux/drivers/gpu/drm/v3d/ |
| H A D | v3d_submit.c | 716 kvmalloc_array(nperfmons, in v3d_copy_query_info()
|
| /linux/fs/ntfs3/ |
| H A D | bitmap.c | 680 kvmalloc_array(wnd->nwnd, sizeof(u16), GFP_KERNEL | __GFP_ZERO); in wnd_init()
|