/Linux-v5.10/drivers/infiniband/hw/mthca/ |
D | mthca_allocator.c | 93 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/ |
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-v5.10/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-v5.10/drivers/gpu/drm/nouveau/nvif/ |
D | mmu.c | 69 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/ |
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-v5.10/kernel/trace/ |
D | fgraph.c | 379 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/ |
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 | test_sort.c | 19 a = kmalloc_array(TEST_LEN, sizeof(*a), GFP_KERNEL); in test_sort_init()
|
D | argv_split.c | 72 argv = kmalloc_array(argc + 2, sizeof(*argv), gfp); in argv_split()
|
/Linux-v5.10/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-v5.10/drivers/gpu/drm/lib/ |
D | drm_random.c | 32 order = kmalloc_array(count, sizeof(*order), GFP_KERNEL); in drm_random_order()
|
/Linux-v5.10/kernel/dma/ |
D | remap.c | 46 pages = kmalloc_array(count, sizeof(struct page *), GFP_KERNEL); in dma_common_contiguous_remap()
|
/Linux-v5.10/drivers/char/agp/ |
D | compat_ioctl.c | 101 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/ |
D | packets-buffer.c | 30 b->packets = kmalloc_array(count, sizeof(*b->packets), GFP_KERNEL); in iso_packets_buffer_init()
|
/Linux-v5.10/arch/arm/mach-pxa/ |
D | pm.c | 107 sleep_save = kmalloc_array(pxa_cpu_pm_fns->save_count, in pxa_pm_init()
|
/Linux-v5.10/arch/s390/hypfs/ |
D | hypfs_diag0c.c | 38 cpu_vec = kmalloc_array(num_possible_cpus(), sizeof(*cpu_vec), in diag0c_store()
|
/Linux-v5.10/drivers/net/dsa/mv88e6xxx/ |
D | devlink.c | 275 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/ |
D | id_table.c | 95 alloc->table = kmalloc_array(BITS_TO_LONGS(num), sizeof(long), in c4iw_id_table_alloc()
|
/Linux-v5.10/drivers/gpu/drm/i915/selftests/ |
D | i915_random.c | 80 order = kmalloc_array(count, sizeof(*order), in i915_random_order()
|
/Linux-v5.10/drivers/dma-buf/heaps/ |
D | system_heap.c | 54 helper_buffer->pages = kmalloc_array(helper_buffer->pagecount, in system_heap_allocate()
|
/Linux-v5.10/fs/jfs/ |
D | jfs_unicode.c | 111 kmalloc_array(length + 1, sizeof(wchar_t), GFP_NOFS); in get_UCSname()
|
/Linux-v5.10/drivers/net/wireless/ath/ath9k/ |
D | rng.c | 81 rng_buf = kmalloc_array(ATH9K_RNG_BUF_SIZE, sizeof(u32), GFP_KERNEL); in ath9k_rng_kthread()
|
/Linux-v5.10/drivers/tty/vt/ |
D | consolemap.c | 234 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()
|