Home
last modified time | relevance | path

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

12345678910>>...26

/openbmc/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
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/linux/Documentation/translations/zh_CN/core-api/
H A Dmemory-allocation.rst110 设置为零的例程,如kzalloc()。如果你需要为一个数组分配内存,有kmalloc_array()和kcalloc()
120 用kmalloc()分配的块可以用krealloc()调整大小。与kmalloc_array()类似:以krealloc_array()
/openbmc/linux/Documentation/translations/zh_CN/dev-tools/
H A Dtesting-overview.rst155 例如,用Coccinelle你可以从 ``kmalloc_array(x, size, GFP_KERNEL)``
156 到 ``kmalloc_array(x, size, GFP_KERNEL)`` 进行大规模转换,这真的很
/openbmc/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\)
/openbmc/linux/kernel/trace/
H A Dfgraph.c414 kmalloc_array(FTRACE_RETFUNC_DEPTH, in alloc_retstack_tasklist()
557 kmalloc_array(FTRACE_RETFUNC_DEPTH, in ftrace_graph_init_idle_task()
579 ret_stack = kmalloc_array(FTRACE_RETFUNC_DEPTH, in ftrace_graph_init_task()
605 ret_stack_list = kmalloc_array(FTRACE_RETSTACK_ALLOC_SIZE, in start_graph_tracing()
/openbmc/linux/lib/
H A Dinterval_tree_test.c68 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()
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()
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/lib/
H A Ddrm_random.c33 order = kmalloc_array(count, sizeof(*order), GFP_KERNEL); in drm_random_order()
/openbmc/linux/kernel/locking/
H A Dtest-ww_mutex.c321 cycles = kmalloc_array(nthreads, sizeof(*cycles), GFP_KERNEL); in __test_cycle()
394 order = kmalloc_array(count, sizeof(*order), GFP_KERNEL); in get_random_order()
566 locks = kmalloc_array(nlocks, sizeof(*locks), GFP_KERNEL); in stress()
570 stress_array = kmalloc_array(nthreads, sizeof(*stress_array), in stress()
/openbmc/linux/drivers/char/agp/
H A Dcompat_ioctl.c101 usegment = kmalloc_array(ureserve.seg_count, in compat_agpioc_reserve_wrap()
107 ksegment = kmalloc_array(kreserve.seg_count, in compat_agpioc_reserve_wrap()
/openbmc/linux/drivers/tee/optee/
H A Drpc.c57 params = kmalloc_array(arg->num_params, sizeof(struct tee_param), in handle_rpc_func_cmd_i2c_transfer()
188 params = kmalloc_array(arg->num_params, sizeof(struct tee_param), in handle_rpc_supp_cmd()
/openbmc/linux/arch/arm/mach-pxa/
H A Dpm.c105 sleep_save = kmalloc_array(pxa_cpu_pm_fns->save_count, in pxa_pm_init()
/openbmc/linux/sound/firewire/
H A Dpackets-buffer.c30 b->packets = kmalloc_array(count, sizeof(*b->packets), GFP_KERNEL); in iso_packets_buffer_init()
/openbmc/u-boot/include/linux/
H A Dcompat.h79 static inline void *kmalloc_array(size_t n, size_t size, gfp_t flags) in kmalloc_array() function
88 return kmalloc_array(n, size, flags | __GFP_ZERO); in kcalloc()
/openbmc/linux/arch/s390/hypfs/
H A Dhypfs_diag0c.c38 cpu_vec = kmalloc_array(num_possible_cpus(), sizeof(*cpu_vec), in diag0c_store()
/openbmc/linux/drivers/platform/x86/intel/ifs/
H A Dcore.c91 ifs_pkg_auth = kmalloc_array(topology_max_packages(), sizeof(bool), GFP_KERNEL); in ifs_init()
/openbmc/linux/drivers/gpu/drm/i915/selftests/
H A Di915_random.c80 order = kmalloc_array(count, sizeof(*order), in i915_random_order()
/openbmc/linux/mm/damon/
H A Ddbgfs.c241 schemes = kmalloc_array(max_nr_schemes, sizeof(scheme), in str_to_schemes()
387 array = kmalloc_array(max_nr_ints, sizeof(*array), GFP_KERNEL); in str_to_ints()
428 pids = kmalloc_array(nr_ints, sizeof(*pids), GFP_KERNEL); in str_to_pids()
926 new_dirs = kmalloc_array(dbgfs_nr_ctxs - 1, sizeof(*dbgfs_dirs), in dbgfs_rm_context()
933 new_ctxs = kmalloc_array(dbgfs_nr_ctxs - 1, sizeof(*dbgfs_ctxs), in dbgfs_rm_context()
/openbmc/linux/fs/jfs/
H A Djfs_unicode.c111 kmalloc_array(length + 1, sizeof(wchar_t), GFP_NOFS); in get_UCSname()

12345678910>>...26