Home
last modified time | relevance | path

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

1234567891011

/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/Documentation/translations/zh_CN/core-api/
H A Dmemory-allocation.rst110 设置为零的例程,如kzalloc()。如果你需要为一个数组分配内存,有kmalloc_array()和kcalloc()
120 用kmalloc()分配的块可以用krealloc()调整大小。与kmalloc_array()类似:以krealloc_array()
/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\)
H A Dkmalloc_objs.cocci15 if name == "kmalloc_array":
57 identifier ALLOC_ARRAY = {kmalloc_array,kvmalloc_array,kcalloc,kvcalloc};
/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/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/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/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_userq_fence.c495 syncobj = kmalloc_array(num_syncobj_handles, sizeof(*syncobj), GFP_KERNEL); in amdgpu_userq_signal_ioctl()
518 gobj_read = kmalloc_array(num_read_bo_handles, sizeof(*gobj_read), GFP_KERNEL); in amdgpu_userq_signal_ioctl()
541 gobj_write = kmalloc_array(num_write_bo_handles, sizeof(*gobj_write), GFP_KERNEL); in amdgpu_userq_signal_ioctl()
719 gobj_read = kmalloc_array(num_read_bo_handles, sizeof(*gobj_read), GFP_KERNEL); in amdgpu_userq_wait_ioctl()
733 gobj_write = kmalloc_array(num_write_bo_handles, sizeof(*gobj_write), GFP_KERNEL); in amdgpu_userq_wait_ioctl()
831 fence_info = kmalloc_array(wait_info->num_fences, sizeof(*fence_info), GFP_KERNEL); in amdgpu_userq_wait_ioctl()
838 fences = kmalloc_array(wait_info->num_fences, sizeof(*fences), GFP_KERNEL); in amdgpu_userq_wait_ioctl()
/linux/drivers/base/regmap/
H A Dregcache-maple.c76 entry = kmalloc_array(last - index + 1, sizeof(*entry), map->alloc_flags); in regcache_maple_write()
207 buf = kmalloc_array(max - min, val_bytes, map->alloc_flags); in regcache_maple_sync_block()
340 entry = kmalloc_array(last - first + 1, sizeof(*entry), map->alloc_flags); in regcache_maple_insert_block()
/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()
H A Dtest_bitops.c62 buf = kmalloc_array(10000, sizeof(unsigned long), GFP_KERNEL); in test_fns()
/linux/tools/lib/
H A Dslab.c40 void *kmalloc_array(size_t n, size_t size, gfp_t gfp) in kmalloc_array() function
/linux/drivers/gpu/drm/lib/
H A Ddrm_random.c34 order = kmalloc_array(count, sizeof(*order), GFP_KERNEL); in drm_random_order()
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_allocator.c216 dma_list = kmalloc_array(npages, sizeof(*dma_list), in mthca_buf_alloc()
228 dma_list = kmalloc_array(npages, sizeof(*dma_list), in mthca_buf_alloc()
/linux/arch/arm/mach-pxa/
H A Dpm.c105 sleep_save = kmalloc_array(pxa_cpu_pm_fns->save_count, in pxa_pm_init()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_tl_debugfs.c117 hist_vals = kmalloc_array(tl_data->num_hbuff, sizeof(*hist_vals), in tl_calc_count()
174 hist_vals = kmalloc_array(num_hbuff, sizeof(*hist_vals), GFP_KERNEL); in tl_lat_acc_avg()
178 hist_cnt = kmalloc_array(num_hbuff, sizeof(*hist_cnt), GFP_KERNEL); in tl_lat_acc_avg()
223 hist_vals = kmalloc_array(tl_data->num_hbuff, sizeof(*hist_vals), in tl_bw_hw_units_to_mbps()
/linux/drivers/video/fbdev/core/
H A Dfbcon_ccw.c251 dst = kmalloc_array(w, vc->vc_font.width, GFP_ATOMIC); in ccw_cursor()
297 char *tmp, *mask = kmalloc_array(w, vc->vc_font.width, in ccw_cursor()
305 tmp = kmalloc_array(width, vc->vc_font.height, GFP_ATOMIC); in ccw_cursor()
H A Dfbcon_cw.c234 dst = kmalloc_array(w, vc->vc_font.width, GFP_ATOMIC); in cw_cursor()
280 char *tmp, *mask = kmalloc_array(w, vc->vc_font.width, in cw_cursor()
288 tmp = kmalloc_array(width, vc->vc_font.height, GFP_ATOMIC); in cw_cursor()
H A Dfbcon_rotate.c49 dst = kmalloc_array(len, d_cellsize, GFP_KERNEL); in fbcon_rotate_font()
/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/fs/squashfs/
H A Dfile_direct.c43 page = kmalloc_array(pages, sizeof(void *), GFP_KERNEL); in squashfs_readpage_block()
/linux/net/ethtool/
H A Dbitset.c752 val32 = kmalloc_array(2 * nwords, sizeof(u32), GFP_KERNEL); in ethnl_bitset_size()
788 val32 = kmalloc_array(2 * nwords, sizeof(u32), GFP_KERNEL); in ethnl_put_bitset()
823 bitmap32 = kmalloc_array(dst_words, sizeof(u32), GFP_KERNEL); in ethnl_update_bitset()

1234567891011