/linux-6.14.4/tools/virtio/ringtest/ |
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-6.14.4/net/batman-adv/ |
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-6.14.4/drivers/gpu/drm/nouveau/nvif/ |
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-6.14.4/drivers/infiniband/hw/mthca/ |
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-6.14.4/Documentation/translations/zh_CN/core-api/ |
D | memory-allocation.rst | 110 设置为零的例程,如kzalloc()。如果你需要为一个数组分配内存,有kmalloc_array()和kcalloc() 120 用kmalloc()分配的块可以用krealloc()调整大小。与kmalloc_array()类似:以krealloc_array()
|
/linux-6.14.4/Documentation/translations/zh_TW/dev-tools/ |
D | testing-overview.rst | 155 例如,用Coccinelle你可以從 ``kmalloc_array(x, size, GFP_KERNEL)`` 156 到 ``kmalloc_array(x, size, GFP_KERNEL)`` 進行大規模轉換,這真的很
|
/linux-6.14.4/scripts/coccinelle/api/ |
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\|
|
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-6.14.4/Documentation/translations/zh_CN/dev-tools/ |
D | testing-overview.rst | 157 例如,用Coccinelle你可以从 ``kmalloc_array(x, size, GFP_KERNEL)`` 158 到 ``kmalloc_array(x, size, GFP_KERNEL)`` 进行大规模转换,这真的很
|
/linux-6.14.4/lib/ |
D | interval_tree_test.c | 68 nodes = kmalloc_array(nnodes, sizeof(struct interval_tree_node), in interval_tree_test_init() 73 queries = kmalloc_array(nsearches, sizeof(int), GFP_KERNEL); in interval_tree_test_init()
|
D | memcat_p.c | 23 new = kmalloc_array(nr, sizeof(void *), GFP_KERNEL); in __memcat_p()
|
D | argv_split.c | 72 argv = kmalloc_array(argc + 2, sizeof(*argv), gfp); in argv_split()
|
/linux-6.14.4/lib/reed_solomon/ |
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-6.14.4/drivers/base/regmap/ |
D | regcache-maple.c | 76 entry = kmalloc_array(last - index + 1, sizeof(*entry), map->alloc_flags); in regcache_maple_write() 206 buf = kmalloc_array(max - min, val_bytes, map->alloc_flags); in regcache_maple_sync_block() 322 entry = kmalloc_array(last - first + 1, sizeof(*entry), map->alloc_flags); in regcache_maple_insert_block()
|
/linux-6.14.4/drivers/gpu/drm/lib/ |
D | drm_random.c | 33 order = kmalloc_array(count, sizeof(*order), GFP_KERNEL); in drm_random_order()
|
/linux-6.14.4/kernel/locking/ |
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() 579 locks = kmalloc_array(nlocks, sizeof(*locks), GFP_KERNEL); in stress() 583 stress_array = kmalloc_array(nthreads, sizeof(*stress_array), in stress()
|
/linux-6.14.4/fs/bcachefs/ |
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-6.14.4/mm/damon/tests/ |
D | sysfs-kunit.h | 49 sysfs_targets->targets_arr = kmalloc_array(1, in damon_sysfs_test_add_targets()
|
/linux-6.14.4/sound/firewire/ |
D | packets-buffer.c | 30 b->packets = kmalloc_array(count, sizeof(*b->packets), GFP_KERNEL); in iso_packets_buffer_init()
|
/linux-6.14.4/arch/arm/mach-pxa/ |
D | pm.c | 105 sleep_save = kmalloc_array(pxa_cpu_pm_fns->save_count, in pxa_pm_init()
|
/linux-6.14.4/drivers/crypto/intel/qat/qat_common/ |
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()
|
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-6.14.4/arch/s390/hypfs/ |
D | hypfs_diag0c.c | 37 cpu_vec = kmalloc_array(num_possible_cpus(), sizeof(*cpu_vec), in diag0c_store()
|
/linux-6.14.4/drivers/gpu/drm/i915/selftests/ |
D | i915_random.c | 80 order = kmalloc_array(count, sizeof(*order), in i915_random_order()
|
/linux-6.14.4/drivers/s390/crypto/ |
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()
|