Home
last modified time | relevance | path

Searched refs:kmalloc_array (Results 1 – 25 of 523) sorted by relevance

12345678910>>...21

/linux/tools/virtio/ringtest/
H A Dptr_ring.c43 static inline void *kmalloc_array(size_t n, size_t size, gfp_t flags) in kmalloc_array() function
52 return kmalloc_array(n, size, flags | __GFP_ZERO); in kcalloc()
61 #define kvmalloc_array kmalloc_array
/linux/net/batman-adv/
H A Dhash.c52 hash->table = kmalloc_array(size, sizeof(*hash->table), GFP_ATOMIC); in batadv_hash_new()
56 hash->list_locks = kmalloc_array(size, sizeof(*hash->list_locks), in batadv_hash_new()
/linux/drivers/gpu/drm/nouveau/nvif/
H A Dmmu.c72 mmu->heap = kmalloc_array(mmu->heap_nr, sizeof(*mmu->heap), in nvif_mmu_ctor()
74 mmu->type = kmalloc_array(mmu->type_nr, sizeof(*mmu->type), in nvif_mmu_ctor()
79 mmu->kind = kmalloc_array(mmu->kind_nr, sizeof(*mmu->kind), in nvif_mmu_ctor()
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_allocator.c160 array->page_list = kmalloc_array(npage, sizeof(*array->page_list), in mthca_array_init()
217 dma_list = kmalloc_array(npages, sizeof(*dma_list), in mthca_buf_alloc()
229 dma_list = kmalloc_array(npages, sizeof(*dma_list), in mthca_buf_alloc()
234 buf->page_list = kmalloc_array(npages, in mthca_buf_alloc()
/linux/Documentation/translations/zh_CN/core-api/
H A Dmemory-allocation.rst110 设置为零的例程,如kzalloc()。如果你需要为一个数组分配内存,有kmalloc_array()和kcalloc()
120 用kmalloc()分配的块可以用krealloc()调整大小。与kmalloc_array()类似:以krealloc_array()
/linux/Documentation/translations/zh_TW/dev-tools/
H A Dtesting-overview.rst155 例如,用Coccinelle你可以從 ``kmalloc_array(x, size, GFP_KERNEL)``
156 到 ``kmalloc_array(x, size, GFP_KERNEL)`` 進行大規模轉換,這真的很
/linux/scripts/coccinelle/api/
H A Dkfree_mismatch.cocci26 kmalloc_node\|kzalloc_node\|kmalloc_array\|
39 kmalloc_array\|kmalloc_array_node\|kcalloc_node\)(...)@kok
69 * kzalloc_node\|kmalloc_array\|kmalloc_array_node\|
83 kzalloc_node\|kmalloc_array\|kmalloc_array_node\|
H A Dkvmalloc.cocci36 * kmalloc_array\|kmalloc_array_node\|kcalloc_node\)
46 * kmalloc_array\|kmalloc_array_node\|kcalloc_node\)
58 * kmalloc_array\|kmalloc_array_node\|kcalloc_node\)
/linux/Documentation/translations/zh_CN/dev-tools/
H A Dtesting-overview.rst157 例如,用Coccinelle你可以从 ``kmalloc_array(x, size, GFP_KERNEL)``
158 到 ``kmalloc_array(x, size, GFP_KERNEL)`` 进行大规模转换,这真的很
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_userq_fence.c437 syncobj = kmalloc_array(num_syncobj_handles, sizeof(*syncobj), GFP_KERNEL); in amdgpu_userq_signal_ioctl()
460 gobj_read = kmalloc_array(num_read_bo_handles, sizeof(*gobj_read), GFP_KERNEL); in amdgpu_userq_signal_ioctl()
483 gobj_write = kmalloc_array(num_write_bo_handles, sizeof(*gobj_write), GFP_KERNEL); in amdgpu_userq_signal_ioctl()
649 gobj_read = kmalloc_array(num_read_bo_handles, sizeof(*gobj_read), GFP_KERNEL); in amdgpu_userq_wait_ioctl()
663 gobj_write = kmalloc_array(num_write_bo_handles, sizeof(*gobj_write), GFP_KERNEL); in amdgpu_userq_wait_ioctl()
761 fence_info = kmalloc_array(wait_info->num_fences, sizeof(*fence_info), GFP_KERNEL); in amdgpu_userq_wait_ioctl()
768 fences = kmalloc_array(wait_info->num_fences, sizeof(*fences), GFP_KERNEL); in amdgpu_userq_wait_ioctl()
/linux/lib/reed_solomon/
H A Dreed_solomon.c91 rs->alpha_to = kmalloc_array(rs->nn + 1, sizeof(uint16_t), gfp); in codec_init()
95 rs->index_of = kmalloc_array(rs->nn + 1, sizeof(uint16_t), gfp); in codec_init()
99 rs->genpoly = kmalloc_array(rs->nroots + 1, sizeof(uint16_t), gfp); in codec_init()
/linux/lib/
H A Dmemcat_p.c23 new = kmalloc_array(nr, sizeof(void *), GFP_KERNEL); in __memcat_p()
H A Dargv_split.c72 argv = kmalloc_array(argc + 2, sizeof(*argv), gfp); in argv_split()
/linux/fs/bcachefs/
H A Djournal_sb.c33 b = kmalloc_array(nr, sizeof(u64), GFP_KERNEL); in bch2_sb_journal_validate()
116 b = kmalloc_array(nr, sizeof(*b), GFP_KERNEL); in bch2_sb_journal_v2_validate()
/linux/sound/firewire/
H A Dpackets-buffer.c30 b->packets = kmalloc_array(count, sizeof(*b->packets), GFP_KERNEL); in iso_packets_buffer_init()
/linux/arch/arm/mach-pxa/
H A Dpm.c105 sleep_save = kmalloc_array(pxa_cpu_pm_fns->save_count, in pxa_pm_init()
/linux/mm/damon/tests/
H A Dsysfs-kunit.h49 sysfs_targets->targets_arr = kmalloc_array(1, in damon_sysfs_test_add_targets()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_telemetry.c72 telemetry->rp_num_indexes = kmalloc_array(tl_data->max_rp, in adf_tl_alloc_mem()
78 telemetry->regs_hist_buff = kmalloc_array(tl_data->num_hbuff, in adf_tl_alloc_mem()
/linux/drivers/gpu/drm/i915/selftests/
H A Di915_random.c80 order = kmalloc_array(count, sizeof(*order), in i915_random_order()
/linux/fs/jfs/
H A Djfs_unicode.c111 kmalloc_array(length + 1, sizeof(wchar_t), GFP_NOFS); in get_UCSname()
/linux/drivers/input/joystick/
H A Djoydump.c64 buf = kmalloc_array(BUF_SIZE, sizeof(struct joydump), GFP_KERNEL); in joydump_connect()
/linux/drivers/video/fbdev/core/
H A Dfbcon_rotate.c49 dst = kmalloc_array(len, d_cellsize, GFP_KERNEL); in fbcon_rotate_font()
/linux/net/ceph/
H A Dpagevec.c44 pages = kmalloc_array(num_pages, sizeof(*pages), flags); in ceph_alloc_page_vector()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Diccsense.c76 iccsense->rail = kmalloc_array(cnt, sizeof(struct pwr_rail_t), in nvbios_iccsense_parse()
/linux/drivers/net/ethernet/freescale/fman/
H A Dfman_mac.h233 hash->lsts = kmalloc_array(hash->size, sizeof(struct list_head), in alloc_hash_table()

12345678910>>...21