| /linux/scripts/coccinelle/api/ |
| H A D | kfree_mismatch.cocci | 57 E = \(kvmalloc\|kvzalloc\|kvcalloc\|kvzalloc_node\|kvmalloc_node\| 123 * E = \(kvmalloc\|kvzalloc\|kvcalloc\|kvzalloc_node\|kvmalloc_node\| 133 E = \(kvmalloc\|kvzalloc\|kvcalloc\|kvzalloc_node\|kvmalloc_node\|
|
| H A D | kmalloc_objs.cocci | 21 elif name == "kvcalloc": 57 identifier ALLOC_ARRAY = {kmalloc_array,kvmalloc_array,kcalloc,kvcalloc};
|
| /linux/kernel/sched/ext/ |
| H A D | cid.c | 105 tbls->cid_to_cpu = kvcalloc(npossible, sizeof(*tbls->cid_to_cpu), GFP_KERNEL); in scx_cid_alloc_tables() 106 tbls->cpu_to_cid = kvcalloc(nr_cpu_ids, sizeof(*tbls->cpu_to_cid), GFP_KERNEL); in scx_cid_alloc_tables() 107 tbls->cid_to_shard = kvcalloc(npossible, sizeof(*tbls->cid_to_shard), GFP_KERNEL); in scx_cid_alloc_tables() 108 tbls->shard_node = kvcalloc(npossible, sizeof(*tbls->shard_node), GFP_KERNEL); in scx_cid_alloc_tables() 109 tbls->shard_ranges = kvcalloc(npossible, sizeof(*tbls->shard_ranges), GFP_KERNEL); in scx_cid_alloc_tables() 110 tbls->topo = kvcalloc(npossible, sizeof(*tbls->topo), GFP_KERNEL); in scx_cid_alloc_tables()
|
| /linux/kernel/bpf/ |
| H A D | cfg.c | 764 stack = kvcalloc(insn_cnt, sizeof(int), GFP_KERNEL_ACCOUNT); in bpf_compute_scc() 765 pre = kvcalloc(insn_cnt, sizeof(int), GFP_KERNEL_ACCOUNT); in bpf_compute_scc() 766 low = kvcalloc(insn_cnt, sizeof(int), GFP_KERNEL_ACCOUNT); in bpf_compute_scc() 767 dfs = kvcalloc(insn_cnt, sizeof(*dfs), GFP_KERNEL_ACCOUNT); in bpf_compute_scc()
|
| H A D | check_btf.c | 66 krecord = kvcalloc(nfuncs, krec_size, GFP_KERNEL_ACCOUNT | __GFP_NOWARN); in prepare_btf_func()
|
| /linux/drivers/gpu/drm/ttm/ |
| H A D | ttm_tt.c | 120 ttm->pages = kvcalloc(ttm->num_pages, sizeof(void*), GFP_KERNEL); in ttm_tt_alloc_page_directory() 129 ttm->pages = kvcalloc(ttm->num_pages, sizeof(*ttm->pages) + in ttm_dma_tt_alloc_page_directory()
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_dp.c | 320 rx_ring->xsk_rxbufs = kvcalloc(rx_ring->cnt, rxbuf_sw_desc_sz, in nfp_net_rx_ring_alloc() 325 rx_ring->rxbufs = kvcalloc(rx_ring->cnt, rxbuf_sw_desc_sz, in nfp_net_rx_ring_alloc()
|
| /linux/drivers/net/ethernet/netronome/nfp/abm/ |
| H A D | main.c | 480 abm->thresholds = kvcalloc(abm->num_thresholds, in nfp_abm_init() 485 abm->actions = kvcalloc(abm->num_thresholds, sizeof(*abm->actions), in nfp_abm_init()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_pagemap.c | 663 buf = kvcalloc(npages, 2 * sizeof(*migrate.src) + sizeof(*pagemap_addr) + in drm_pagemap_migrate_to_devmem() 1132 buf = kvcalloc(npages, 2 * sizeof(*src) + sizeof(*pagemap_addr) + in drm_pagemap_evict_to_ram() 1257 buf = kvcalloc(npages, 2 * sizeof(*migrate.src) + sizeof(*pagemap_addr) + in __drm_pagemap_migrate_to_ram()
|
| /linux/drivers/platform/x86/hp/hp-bioscfg/ |
| H A D | enum-attributes.c | 99 bioscfg_drv.enumeration_data = kvcalloc(bioscfg_drv.enumeration_instances_count, in hp_alloc_enumeration_data()
|
| /linux/tools/lib/bpf/ |
| H A D | btf_relocate.c | 23 #define calloc(nmemb, sz) kvcalloc(nmemb, sz, GFP_KERNEL | __GFP_NOWARN)
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_dmem.c | 482 src_pfns = kvcalloc(npages, sizeof(*src_pfns), GFP_KERNEL | __GFP_NOFAIL); in nouveau_dmem_evict_chunk() 483 dst_pfns = kvcalloc(npages, sizeof(*dst_pfns), GFP_KERNEL | __GFP_NOFAIL); in nouveau_dmem_evict_chunk()
|
| /linux/drivers/gpu/drm/lima/ |
| H A D | lima_drv.c | 125 bos = kvcalloc(args->nr_bos, sizeof(*submit.bos) + sizeof(*submit.lbos), GFP_KERNEL); in lima_ioctl_gem_submit()
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cxgb4_tc_u32.c | 515 link->tid_map = kvcalloc(bmap_size, sizeof(unsigned long), in cxgb4_init_tc_u32()
|
| /linux/lib/ |
| H A D | stackdepot.c | 275 stack_pools = kvcalloc(stack_max_pools, sizeof(void *), GFP_KERNEL); in stack_depot_init()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | qos.c | 486 rl->leaves_id = kvcalloc(num_tc, sizeof(*rl->leaves_id), GFP_KERNEL); in mlx5e_mqprio_rl_init()
|
| /linux/security/selinux/ss/ |
| H A D | avtab.c | 225 h->htable = kvcalloc(nslot, sizeof(void *), GFP_KERNEL); in avtab_alloc_common()
|
| /linux/net/sched/ |
| H A D | sch_hhf.c | 654 q->hhf_arrays[i] = kvcalloc(HHF_ARRAYS_LEN, in hhf_init()
|
| H A D | sch_fq_codel.c | 545 q->backlogs = kvcalloc(q->flows_cnt, sizeof(u32), GFP_KERNEL); in fq_codel_init()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_dev_coredump.c | 606 coredump->rings = kvcalloc(ring_count, in amdgpu_coredump()
|
| /linux/sound/core/ |
| H A D | memalloc.c | 728 sgbuf->npages = kvcalloc(sgbuf->count, sizeof(*sgbuf->npages), GFP_KERNEL); in snd_dma_sg_fallback_alloc()
|
| /linux/include/linux/ |
| H A D | slab.h | 1383 #define kvcalloc(...) alloc_hooks(kvcalloc_noprof(__VA_ARGS__)) macro
|
| /linux/drivers/accel/habanalabs/common/mmu/ |
| H A D | mmu.c | 1402 hdev->mmu_priv.dr.mmu_shadow_hop0 = kvcalloc(prop->max_asid, in hl_mmu_dr_init()
|
| /linux/fs/btrfs/ |
| H A D | file-item.c | 385 bbio->csum = kvcalloc(nblocks, csum_size, GFP_NOFS); in btrfs_lookup_bio_sums()
|
| /linux/drivers/net/ethernet/google/gve/ |
| H A D | gve_tx_dqo.c | 363 kvcalloc(tx->dqo.complq_mask + 1, in gve_tx_alloc_ring_dqo()
|