| /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()
|
| H A D | test_workqueue.c | 163 all_latencies = kvmalloc_array(total_items, sizeof(u64), GFP_KERNEL); in run_bench() 172 ctxs[i].latencies = kvmalloc_array(wq_items, sizeof(u64), in run_bench()
|
| /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 | 552 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_dev_coredump.c | 277 ib_content = kvmalloc_array(coredump->ibs[i].ib_size_dw, 4, in amdgpu_devcoredump_print_ibs()
|
| /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/gpu/drm/virtio/ |
| H A D | virtgpu_submit.c | 308 bo_handles = kvmalloc_array(exbuf->num_bo_handles, sizeof(*bo_handles), in virtio_gpu_init_submit_buflist()
|
| /linux/kernel/bpf/ |
| H A D | hashtab.c | 1865 keys = kvmalloc_array(key_size, bucket_size, GFP_USER | __GFP_NOWARN); in __htab_map_lookup_and_delete_batch() 1866 values = kvmalloc_array(value_size, bucket_size, GFP_USER | __GFP_NOWARN); in __htab_map_lookup_and_delete_batch() 3310 keys = kvmalloc_array(max_count, key_size, GFP_USER | __GFP_NOWARN); in __rhtab_map_lookup_and_delete_batch() 3311 values = kvmalloc_array(max_count, value_size, GFP_USER | __GFP_NOWARN); in __rhtab_map_lookup_and_delete_batch() 3313 del_elems = kvmalloc_array(max_count, sizeof(void *), in __rhtab_map_lookup_and_delete_batch()
|
| /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 | 1381 #define kvmalloc_array(...) alloc_hooks(kvmalloc_array_noprof(__VA_ARGS__)) macro
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_drv.c | 1206 out_alloc = kvmalloc_array(in->count, obj_size, GFP_KERNEL); in pvr_get_uobj_array()
|
| /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/fs/xfs/ |
| H A D | xfs_zone_alloc.c | 1241 return kvmalloc_array(BITS_TO_LONGS(mp->m_sb.sb_rgcount), in xfs_alloc_bucket_bitmap()
|
| /linux/fs/ntfs3/ |
| H A D | bitmap.c | 680 kvmalloc_array(wnd->nwnd, sizeof(u16), GFP_KERNEL | __GFP_ZERO); in wnd_init()
|
| /linux/fs/ntfs/ |
| H A D | super.c | 2363 vol->lcn_empty_bits_per_page = kvmalloc_array(lcn_bit_pages, sizeof(unsigned int), in ntfs_fill_super()
|
| /linux/drivers/gpu/drm/amd/amdkfd/ |
| H A D | kfd_svm.c | 947 dst = kvmalloc_array(num_elements, size, GFP_KERNEL); in svm_range_copy_array()
|
| /linux/drivers/net/ethernet/microsoft/mana/ |
| H A D | mana_en.c | 870 mpc->rxbufs_pre = kvmalloc_array(num_rxb, sizeof(void *), GFP_KERNEL); in mana_pre_alloc_rxbufs()
|
| /linux/virt/kvm/ |
| H A D | kvm_main.c | 384 mc->objects = kvmalloc_array(capacity, sizeof(void *), gfp); in __kvm_mmu_topup_memory_cache()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_vm.c | 2256 mem_attrs = kvmalloc_array(args->num_mem_ranges, args->sizeof_mem_range_attr, in xe_vm_query_vmas_attrs_ioctl()
|