/linux/tools/virtio/ringtest/ |
H A D | ptr_ring.c | 43 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 D | hash.c | 52 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 D | mmu.c | 72 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 D | mthca_allocator.c | 160 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 D | memory-allocation.rst | 110 设置为零的例程,如kzalloc()。如果你需要为一个数组分配内存,有kmalloc_array()和kcalloc() 120 用kmalloc()分配的块可以用krealloc()调整大小。与kmalloc_array()类似:以krealloc_array()
|
/linux/Documentation/translations/zh_TW/dev-tools/ |
H A D | testing-overview.rst | 155 例如,用Coccinelle你可以從 ``kmalloc_array(x, size, GFP_KERNEL)`` 156 到 ``kmalloc_array(x, size, GFP_KERNEL)`` 進行大規模轉換,這真的很
|
/linux/scripts/coccinelle/api/ |
H A D | kfree_mismatch.cocci | 26 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 D | kvmalloc.cocci | 36 * 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 D | testing-overview.rst | 157 例如,用Coccinelle你可以从 ``kmalloc_array(x, size, GFP_KERNEL)`` 158 到 ``kmalloc_array(x, size, GFP_KERNEL)`` 进行大规模转换,这真的很
|
/linux/lib/reed_solomon/ |
H A D | reed_solomon.c | 91 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 D | memcat_p.c | 23 new = kmalloc_array(nr, sizeof(void *), GFP_KERNEL); in __memcat_p()
|
H A D | argv_split.c | 72 argv = kmalloc_array(argc + 2, sizeof(*argv), gfp); in argv_split()
|
/linux/drivers/gpu/drm/lib/ |
H A D | drm_random.c | 33 order = kmalloc_array(count, sizeof(*order), GFP_KERNEL); in drm_random_order()
|
/linux/kernel/locking/ |
H A D | test-ww_mutex.c | 323 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 D | journal_sb.c | 33 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 D | adf_tl_debugfs.c | 117 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 D | adf_telemetry.c | 72 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 D | packets-buffer.c | 30 b->packets = kmalloc_array(count, sizeof(*b->packets), GFP_KERNEL); in iso_packets_buffer_init()
|
/linux/arch/arm/mach-pxa/ |
H A D | pm.c | 105 sleep_save = kmalloc_array(pxa_cpu_pm_fns->save_count, in pxa_pm_init()
|
/linux/mm/damon/tests/ |
H A D | sysfs-kunit.h | 49 sysfs_targets->targets_arr = kmalloc_array(1, in damon_sysfs_test_add_targets()
|
/linux/arch/s390/hypfs/ |
H A D | hypfs_diag0c.c | 37 cpu_vec = kmalloc_array(num_possible_cpus(), sizeof(*cpu_vec), in diag0c_store()
|
/linux/mm/damon/ |
H A D | dbgfs.c | 243 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 D | pkey_ep11.c | 228 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 D | i915_random.c | 80 order = kmalloc_array(count, sizeof(*order), in i915_random_order()
|
/linux/fs/jfs/ |
H A D | jfs_unicode.c | 111 kmalloc_array(length + 1, sizeof(wchar_t), GFP_NOFS); in get_UCSname()
|