| /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/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\)
|
| H A D | kmalloc_objs.cocci | 15 if name == "kmalloc_array": 57 identifier ALLOC_ARRAY = {kmalloc_array,kvmalloc_array,kcalloc,kvcalloc};
|
| /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/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/drivers/infiniband/hw/mthca/ |
| H A D | mthca_allocator.c | 216 dma_list = kmalloc_array(npages, sizeof(*dma_list), in mthca_buf_alloc() 228 dma_list = kmalloc_array(npages, sizeof(*dma_list), in mthca_buf_alloc()
|
| /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()
|
| /linux/mm/damon/ |
| H A D | sysfs-common.c | 126 path = kmalloc_array(PATH_MAX, sizeof(*path), GFP_KERNEL); in damon_sysfs_memcg_path_to_id()
|
| /linux/drivers/input/ |
| H A D | matrix-keymap.c | 96 u32 *keys __free(kfree) = kmalloc_array(size, sizeof(*keys), GFP_KERNEL); in matrix_keypad_parse_keymap()
|
| /linux/tools/testing/scatterlist/linux/ |
| H A D | mm.h | 118 kmalloc_array(unsigned int n, unsigned int size, unsigned int flags) in kmalloc_array() function
|
| /linux/tools/virtio/linux/ |
| H A D | kernel.h | 63 static inline void *kmalloc_array(unsigned n, size_t s, gfp_t gfp) in kmalloc_array() function
|
| /linux/sound/firewire/dice/ |
| H A D | dice-extension.c | 147 pointers = kmalloc_array(9, sizeof(__be32) * 2, GFP_KERNEL); in snd_dice_detect_extension_formats()
|
| /linux/tools/include/linux/ |
| H A D | slab.h | 35 void *kmalloc_array(size_t n, size_t size, gfp_t gfp);
|
| /linux/net/ethtool/ |
| H A D | bitset.c | 753 val32 = kmalloc_array(2 * nwords, sizeof(u32), GFP_KERNEL); in ethnl_bitset_size() 789 val32 = kmalloc_array(2 * nwords, sizeof(u32), GFP_KERNEL); in ethnl_put_bitset() 824 bitmap32 = kmalloc_array(dst_words, sizeof(u32), GFP_KERNEL); in ethnl_update_bitset()
|
| /linux/sound/soc/codecs/ |
| H A D | wm8958-dsp2.c | 930 wm8994->mbc_texts = kmalloc_array(pdata->num_mbc_cfgs, in wm8958_dsp2_init() 956 wm8994->vss_texts = kmalloc_array(pdata->num_vss_cfgs, in wm8958_dsp2_init() 983 wm8994->vss_hpf_texts = kmalloc_array(pdata->num_vss_hpf_cfgs, in wm8958_dsp2_init() 1011 wm8994->enh_eq_texts = kmalloc_array(pdata->num_enh_eq_cfgs, in wm8958_dsp2_init()
|
| /linux/drivers/media/rc/ |
| H A D | ir-spi.c | 53 tx_buf = kmalloc_array(len, sizeof(*tx_buf), GFP_KERNEL); in ir_spi_tx()
|
| /linux/arch/sparc/kernel/ |
| H A D | nmi.c | 175 prev_nmi_count = kmalloc_array(nr_cpu_ids, sizeof(unsigned int), in check_nmi_watchdog()
|
| /linux/scripts/coccinelle/free/ |
| H A D | devm_free.cocci | 72 x = kmalloc_array(...)
|
| /linux/mm/damon/tests/ |
| H A D | vaddr-kunit.h | 139 ranges = kmalloc_array(nr_regions / 2, sizeof(*ranges), GFP_KERNEL); in damon_do_test_apply_three_regions()
|