Home
last modified time | relevance | path

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

12345678910>>...23

/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/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/drivers/gpu/drm/lib/
H A Ddrm_random.c33 order = kmalloc_array(count, sizeof(*order), GFP_KERNEL); in drm_random_order()
/linux/kernel/locking/
H A Dtest-ww_mutex.c323 cycles = kmalloc_array(nthreads, sizeof(*cycles), GFP_KERNEL); in __test_cycle()
409 order = kmalloc_array(count, sizeof(*order), GFP_KERNEL); in get_random_order()
582 locks = kmalloc_array(nlocks, sizeof(*locks), GFP_KERNEL); in stress()
586 stress_array = kmalloc_array(nthreads, sizeof(*stress_array), in stress()
/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/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()
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/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/arch/s390/hypfs/
H A Dhypfs_diag0c.c37 cpu_vec = kmalloc_array(num_possible_cpus(), sizeof(*cpu_vec), in diag0c_store()
/linux/mm/damon/
H A Ddbgfs.c243 schemes = kmalloc_array(max_nr_schemes, sizeof(scheme), in str_to_schemes()
389 array = kmalloc_array(max_nr_ints, sizeof(*array), GFP_KERNEL); in str_to_ints()
430 pids = kmalloc_array(nr_ints, sizeof(*pids), GFP_KERNEL); in str_to_pids()
936 new_dirs = kmalloc_array(dbgfs_nr_ctxs - 1, sizeof(*dbgfs_dirs), in dbgfs_rm_context()
943 new_ctxs = kmalloc_array(dbgfs_nr_ctxs - 1, sizeof(*dbgfs_ctxs), in dbgfs_rm_context()
/linux/drivers/s390/crypto/
H A Dpkey_ep11.c228 local_apqns = kmalloc_array(nr_apqns, sizeof(struct pkey_apqn), in ep11_key2protkey()
319 local_apqns = kmalloc_array(nr_apqns, sizeof(struct pkey_apqn), in ep11_gen_key()
398 local_apqns = kmalloc_array(nr_apqns, sizeof(struct pkey_apqn), in ep11_clr2key()
/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()

12345678910>>...23