Home
last modified time | relevance | path

Searched refs:kvmalloc_array (Results 1 – 25 of 104) sorted by relevance

12345

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
Drqt.c97 rss_rqns = kvmalloc_array(MLX5E_INDIR_RQT_SIZE, sizeof(*rss_rqns), GFP_KERNEL); in mlx5e_rqt_init_indir()
157 rss_rqns = kvmalloc_array(MLX5E_INDIR_RQT_SIZE, sizeof(*rss_rqns), GFP_KERNEL); in mlx5e_rqt_redirect_indir()
/linux-6.6.21/scripts/coccinelle/api/
Dkfree_mismatch.cocci58 kvmalloc_array\)(...)
124 * kvmalloc_array\)(...)@a
134 kvmalloc_array\)(...)
/linux-6.6.21/lib/
Dbucket_locks.c34 tlocks = kvmalloc_array(size, sizeof(spinlock_t), gfp); in __alloc_bucket_spinlocks()
Dfortify_kunit.c248 kvmalloc_array(1, (alloc_pages) * PAGE_SIZE, gfp), \
251 kvmalloc_array((alloc_pages) * PAGE_SIZE, 1, gfp), \
/linux-6.6.21/kernel/dma/
Dremap.c46 pages = kvmalloc_array(count, sizeof(struct page *), GFP_KERNEL); in dma_common_contiguous_remap()
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dmem.c194 if (!(mem->mem = kvmalloc_array(size, sizeof(*mem->mem), GFP_KERNEL))) in nvkm_mem_new_host()
196 if (!(mem->dma = kvmalloc_array(size, sizeof(*mem->dma), GFP_KERNEL))) in nvkm_mem_new_host()
/linux-6.6.21/drivers/gpu/drm/etnaviv/
Detnaviv_gem_submit.c471 bos = kvmalloc_array(args->nr_bos, sizeof(*bos), GFP_KERNEL); in etnaviv_ioctl_gem_submit()
472 relocs = kvmalloc_array(args->nr_relocs, sizeof(*relocs), GFP_KERNEL); in etnaviv_ioctl_gem_submit()
473 pmrs = kvmalloc_array(args->nr_pmrs, sizeof(*pmrs), GFP_KERNEL); in etnaviv_ioctl_gem_submit()
474 stream = kvmalloc_array(1, args->stream_size, GFP_KERNEL); in etnaviv_ioctl_gem_submit()
Detnaviv_gem_prime.c129 etnaviv_obj->pages = kvmalloc_array(npages, sizeof(struct page *), GFP_KERNEL); in etnaviv_gem_prime_import_sg_table()
/linux-6.6.21/drivers/gpu/drm/nouveau/dispnv50/
Dlut.c41 in = kvmalloc_array(1024, sizeof(*in), GFP_KERNEL); in nv50_lut_load()
/linux-6.6.21/drivers/xen/
Dgntdev.c139 add->grants = kvmalloc_array(count, sizeof(add->grants[0]), in gntdev_alloc_map()
141 add->map_ops = kvmalloc_array(count, sizeof(add->map_ops[0]), in gntdev_alloc_map()
143 add->unmap_ops = kvmalloc_array(count, sizeof(add->unmap_ops[0]), in gntdev_alloc_map()
155 add->kmap_ops = kvmalloc_array(count, sizeof(add->kmap_ops[0]), in gntdev_alloc_map()
157 add->kunmap_ops = kvmalloc_array(count, sizeof(add->kunmap_ops[0]), in gntdev_alloc_map()
/linux-6.6.21/tools/virtio/ringtest/
Dptr_ring.c61 #define kvmalloc_array kmalloc_array macro
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_hmm.c172 pfns = kvmalloc_array(npages, sizeof(*pfns), GFP_KERNEL); in amdgpu_hmm_range_get_pages()
Damdgpu_bo_list.c203 info = kvmalloc_array(in->bo_number, info_size, GFP_KERNEL); in amdgpu_bo_create_list_entry_array()
/linux-6.6.21/include/linux/
Dslab.h748 static inline __alloc_size(1, 2) void *kvmalloc_array(size_t n, size_t size, gfp_t flags) in kvmalloc_array() function
760 return kvmalloc_array(n, size, flags | __GFP_ZERO); in kvcalloc()
/linux-6.6.21/drivers/gpu/drm/i915/gt/
Dshmem_utils.c64 pages = kvmalloc_array(n_pages, sizeof(*pages), GFP_KERNEL); in shmem_pin_map()
/linux-6.6.21/drivers/gpu/drm/
Ddrm_gem.c559 pages = kvmalloc_array(npages, sizeof(struct page *), GFP_KERNEL); in drm_gem_get_pages()
708 objs = kvmalloc_array(count, sizeof(struct drm_gem_object *), in drm_gem_objects_lookup()
715 handles = kvmalloc_array(count, sizeof(u32), GFP_KERNEL); in drm_gem_objects_lookup()
/linux-6.6.21/drivers/net/ethernet/wangxun/txgbe/
Dtxgbe_hw.c197 eeprom_ptrs = kvmalloc_array(TXGBE_EEPROM_LAST_WORD, sizeof(u16), in txgbe_calc_eeprom_checksum()
/linux-6.6.21/drivers/staging/media/ipu3/
Dipu3-dmamap.c42 pages = kvmalloc_array(count, sizeof(*pages), GFP_KERNEL); in imgu_dmamap_alloc_buffer()
/linux-6.6.21/drivers/gpu/drm/virtio/
Dvirtgpu_object.c154 *ents = kvmalloc_array(*nents, in virtio_gpu_object_shmem_init()
/linux-6.6.21/drivers/gpu/drm/xen/
Dxen_drm_front_gem.c48 xen_obj->pages = kvmalloc_array(xen_obj->num_pages, in gem_alloc_pages_array()
/linux-6.6.21/drivers/dma-buf/
Dst-dma-fence-chain.c119 fc->chains = kvmalloc_array(count, sizeof(*fc->chains), in fence_chains_init()
124 fc->fences = kvmalloc_array(count, sizeof(*fc->fences), in fence_chains_init()
/linux-6.6.21/drivers/gpu/drm/i915/gem/
Di915_gem_pages.c312 pages = kvmalloc_array(n_pages, sizeof(*pages), GFP_KERNEL); in i915_gem_object_map_page()
342 pfns = kvmalloc_array(n_pfn, sizeof(*pfns), GFP_KERNEL); in i915_gem_object_map_pfn()
/linux-6.6.21/drivers/gpu/drm/panfrost/
Dpanfrost_drv.c157 job->mappings = kvmalloc_array(job->bo_count, in panfrost_lookup_bos()
208 handles = kvmalloc_array(in_fence_count, sizeof(u32), GFP_KERNEL); in panfrost_copy_in_sync()
/linux-6.6.21/kernel/module/
Ddecompress.c21 new_pages = kvmalloc_array(info->max_pages + extent, in module_extend_max_pages()
/linux-6.6.21/block/
Dblk-crypto-profile.c124 kvmalloc_array(slot_hashtable_size, in blk_crypto_profile_init()

12345