Home
last modified time | relevance | path

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

12345678910>>...25

/Linux-v5.10/drivers/infiniband/hw/mthca/
Dmthca_allocator.c93 alloc->table = kmalloc_array(BITS_TO_LONGS(num), sizeof(long), in mthca_alloc_init()
165 array->page_list = kmalloc_array(npage, sizeof(*array->page_list), in mthca_array_init()
222 dma_list = kmalloc_array(npages, sizeof(*dma_list), in mthca_buf_alloc()
234 dma_list = kmalloc_array(npages, sizeof(*dma_list), in mthca_buf_alloc()
239 buf->page_list = kmalloc_array(npages, in mthca_buf_alloc()
/Linux-v5.10/tools/virtio/ringtest/
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-v5.10/net/batman-adv/
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-v5.10/drivers/gpu/drm/nouveau/nvif/
Dmmu.c69 mmu->heap = kmalloc_array(mmu->heap_nr, sizeof(*mmu->heap), in nvif_mmu_ctor()
71 mmu->type = kmalloc_array(mmu->type_nr, sizeof(*mmu->type), in nvif_mmu_ctor()
76 mmu->kind = kmalloc_array(mmu->kind_nr, sizeof(*mmu->kind), in nvif_mmu_ctor()
/Linux-v5.10/scripts/coccinelle/api/
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\|
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-v5.10/kernel/trace/
Dfgraph.c379 kmalloc_array(FTRACE_RETFUNC_DEPTH, in alloc_retstack_tasklist()
522 kmalloc_array(FTRACE_RETFUNC_DEPTH, in ftrace_graph_init_idle_task()
544 ret_stack = kmalloc_array(FTRACE_RETFUNC_DEPTH, in ftrace_graph_init_task()
570 ret_stack_list = kmalloc_array(FTRACE_RETSTACK_ALLOC_SIZE, in start_graph_tracing()
/Linux-v5.10/lib/
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()
Dmemcat_p.c23 new = kmalloc_array(nr, sizeof(void *), GFP_KERNEL); in __memcat_p()
Dtest_sort.c19 a = kmalloc_array(TEST_LEN, sizeof(*a), GFP_KERNEL); in test_sort_init()
Dargv_split.c72 argv = kmalloc_array(argc + 2, sizeof(*argv), gfp); in argv_split()
/Linux-v5.10/lib/reed_solomon/
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-v5.10/drivers/gpu/drm/lib/
Ddrm_random.c32 order = kmalloc_array(count, sizeof(*order), GFP_KERNEL); in drm_random_order()
/Linux-v5.10/kernel/dma/
Dremap.c46 pages = kmalloc_array(count, sizeof(struct page *), GFP_KERNEL); in dma_common_contiguous_remap()
/Linux-v5.10/drivers/char/agp/
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()
/Linux-v5.10/sound/firewire/
Dpackets-buffer.c30 b->packets = kmalloc_array(count, sizeof(*b->packets), GFP_KERNEL); in iso_packets_buffer_init()
/Linux-v5.10/arch/arm/mach-pxa/
Dpm.c107 sleep_save = kmalloc_array(pxa_cpu_pm_fns->save_count, in pxa_pm_init()
/Linux-v5.10/arch/s390/hypfs/
Dhypfs_diag0c.c38 cpu_vec = kmalloc_array(num_possible_cpus(), sizeof(*cpu_vec), in diag0c_store()
/Linux-v5.10/drivers/net/dsa/mv88e6xxx/
Ddevlink.c275 registers = kmalloc_array(32, sizeof(u16), GFP_KERNEL); in mv88e6xxx_region_global_snapshot()
382 table = kmalloc_array(mv88e6xxx_num_databases(chip), in mv88e6xxx_region_atu_snapshot()
431 registers = kmalloc_array(32, sizeof(u16), GFP_KERNEL); in mv88e6xxx_region_port_snapshot()
/Linux-v5.10/drivers/infiniband/hw/cxgb4/
Did_table.c95 alloc->table = kmalloc_array(BITS_TO_LONGS(num), sizeof(long), in c4iw_id_table_alloc()
/Linux-v5.10/drivers/gpu/drm/i915/selftests/
Di915_random.c80 order = kmalloc_array(count, sizeof(*order), in i915_random_order()
/Linux-v5.10/drivers/dma-buf/heaps/
Dsystem_heap.c54 helper_buffer->pages = kmalloc_array(helper_buffer->pagecount, in system_heap_allocate()
/Linux-v5.10/fs/jfs/
Djfs_unicode.c111 kmalloc_array(length + 1, sizeof(wchar_t), GFP_NOFS); in get_UCSname()
/Linux-v5.10/drivers/net/wireless/ath/ath9k/
Drng.c81 rng_buf = kmalloc_array(ATH9K_RNG_BUF_SIZE, sizeof(u32), GFP_KERNEL); in ath9k_rng_kthread()
/Linux-v5.10/drivers/tty/vt/
Dconsolemap.c234 kmalloc_array(MAX_GLYPH, sizeof(u16), GFP_KERNEL); in set_inverse_trans_unicode()
482 p1 = p->uni_pgdir[n] = kmalloc_array(32, sizeof(u16 *), in con_insert_unipair()
491 p2 = p1[n] = kmalloc_array(64, sizeof(u16), GFP_KERNEL); in con_insert_unipair()

12345678910>>...25