/linux-6.6.21/security/apparmor/ |
D | policy_compat.c | 160 table = kvcalloc(state_count * 2, sizeof(struct aa_perms), GFP_KERNEL); in compute_fperms() 184 perms = kvcalloc(state_count, sizeof(struct aa_perms), GFP_KERNEL); in compute_xmatch_perms() 259 table = kvcalloc(state_count, sizeof(struct aa_perms), GFP_KERNEL); in compute_perms()
|
/linux-6.6.21/scripts/coccinelle/api/ |
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\|
|
/linux-6.6.21/drivers/gpu/drm/ttm/ |
D | ttm_tt.c | 100 ttm->pages = kvcalloc(ttm->num_pages, sizeof(void*), GFP_KERNEL); in ttm_tt_alloc_page_directory() 109 ttm->pages = kvcalloc(ttm->num_pages, sizeof(*ttm->pages) + in ttm_dma_tt_alloc_page_directory() 120 ttm->dma_address = kvcalloc(ttm->num_pages, sizeof(*ttm->dma_address), in ttm_sg_tt_alloc_page_directory()
|
/linux-6.6.21/drivers/net/wireguard/ |
D | ratelimiter.c | 179 table_v4 = kvcalloc(table_size, sizeof(*table_v4), GFP_KERNEL); in wg_ratelimiter_init() 184 table_v6 = kvcalloc(table_size, sizeof(*table_v6), GFP_KERNEL); in wg_ratelimiter_init()
|
/linux-6.6.21/mm/ |
D | swap_slots.c | 123 slots = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache() 128 slots_ret = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache()
|
D | gup_test.c | 115 pages = kvcalloc(nr_pages, sizeof(void *), GFP_KERNEL); in __gup_test_ioctl() 248 pages = kvcalloc(nr_pages, sizeof(void *), GFP_KERNEL); in pin_longterm_test_start()
|
/linux-6.6.21/net/xdp/ |
D | xsk_buff_pool.c | 47 pool->tx_descs = kvcalloc(xs->tx->nentries, sizeof(*pool->tx_descs), in xp_alloc_tx_descs() 68 pool->heads = kvcalloc(umem->chunks, sizeof(*pool->heads), GFP_KERNEL); in xp_create_and_assign_umem() 319 dma_map->dma_pages = kvcalloc(nr_pages, sizeof(*dma_map->dma_pages), GFP_KERNEL); in xp_create_dma_map() 407 pool->dma_pages = kvcalloc(dma_map->dma_pages_cnt, sizeof(*pool->dma_pages), GFP_KERNEL); in xp_init_dma_info()
|
D | xdp_umem.c | 100 umem->pgs = kvcalloc(umem->npgs, sizeof(*umem->pgs), GFP_KERNEL | __GFP_NOWARN); in xdp_umem_pin_pages()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_icm_pool.c | 230 buddy->ste_arr = kvcalloc(num_of_entries, in dr_icm_buddy_init_ste_cache() 238 buddy->hw_ste_arr = kvcalloc(num_of_entries, in dr_icm_buddy_init_ste_cache() 551 pool->hot_chunks_arr = kvcalloc(num_of_chunks, in mlx5dr_icm_pool_create()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | qos.c | 90 stats_list = kvcalloc(mlx5e_qos_max_leaf_nodes(priv->mdev), in mlx5e_open_qos_sq() 270 sqs = kvcalloc(qos_sqs_size, sizeof(struct mlx5e_txqsq *), GFP_KERNEL); in mlx5e_qos_alloc_queues() 473 rl->leaves_id = kvcalloc(num_tc, sizeof(*rl->leaves_id), GFP_KERNEL); in mlx5e_mqprio_rl_init()
|
/linux-6.6.21/lib/ |
D | fortify_kunit.c | 242 kvcalloc(1, (alloc_pages) * PAGE_SIZE, gfp), \ 245 kvcalloc((alloc_pages) * PAGE_SIZE, 1, gfp), \
|
/linux-6.6.21/fs/exfat/ |
D | nls.c | 662 upcase_table = kvcalloc(UTBL_COUNT, sizeof(unsigned short), GFP_KERNEL); in exfat_load_upcase_table() 718 upcase_table = kvcalloc(UTBL_COUNT, sizeof(unsigned short), GFP_KERNEL); in exfat_load_default_upcase_table()
|
/linux-6.6.21/drivers/infiniband/core/ |
D | umem_odp.c | 78 umem_odp->pfn_list = kvcalloc( in ib_init_umem_odp() 83 umem_odp->dma_list = kvcalloc( in ib_init_umem_odp()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/modules/color/ |
D | color_gamma.c | 1922 rgb_user = kvcalloc(ramp->num_entries + _EXTRA_POINTS, in mod_color_calculate_degamma_params() 1928 axis_x = kvcalloc(ramp->num_entries + _EXTRA_POINTS, sizeof(*axis_x), in mod_color_calculate_degamma_params() 1945 curve = kvcalloc(MAX_HW_POINTS + _EXTRA_POINTS, sizeof(*curve), in mod_color_calculate_degamma_params() 1950 coeff = kvcalloc(MAX_HW_POINTS + _EXTRA_POINTS, sizeof(*coeff), in mod_color_calculate_degamma_params() 2148 rgb_user = kvcalloc(ramp->num_entries + _EXTRA_POINTS, in mod_color_calculate_regamma_params() 2154 axis_x = kvcalloc(ramp->num_entries + 3, sizeof(*axis_x), in mod_color_calculate_regamma_params() 2174 rgb_regamma = kvcalloc(MAX_HW_POINTS + _EXTRA_POINTS, in mod_color_calculate_regamma_params() 2180 coeff = kvcalloc(MAX_HW_POINTS + _EXTRA_POINTS, sizeof(*coeff), in mod_color_calculate_regamma_params()
|
/linux-6.6.21/io_uring/ |
D | filetable.c | 41 table->files = kvcalloc(nr_files, sizeof(table->files[0]), in io_alloc_file_tables()
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_dp.c | 321 rx_ring->xsk_rxbufs = kvcalloc(rx_ring->cnt, rxbuf_sw_desc_sz, in nfp_net_rx_ring_alloc() 326 rx_ring->rxbufs = kvcalloc(rx_ring->cnt, rxbuf_sw_desc_sz, in nfp_net_rx_ring_alloc()
|
/linux-6.6.21/drivers/gpu/drm/virtio/ |
D | virtgpu_submit.c | 107 syncobjs = kvcalloc(num_in_syncobjs, sizeof(*syncobjs), GFP_KERNEL); in virtio_gpu_parse_deps() 198 post_deps = kvcalloc(num_out_syncobjs, sizeof(*post_deps), GFP_KERNEL); in virtio_gpu_parse_post_deps()
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfdk/ |
D | rings.c | 108 tx_ring->ktxbufs = kvcalloc(tx_ring->cnt, sizeof(*tx_ring->ktxbufs), in nfp_nfdk_tx_ring_alloc()
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/abm/ |
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-6.6.21/drivers/staging/media/atomisp/pci/runtime/isp_param/src/ |
D | isp_param.c | 126 mem_params->params[pclass][mem].address = kvcalloc(1, in ia_css_isp_param_allocate_isp_parameters()
|
/linux-6.6.21/drivers/net/ethernet/google/gve/ |
D | gve_main.c | 339 priv->msix_vectors = kvcalloc(num_vecs_requested, in gve_alloc_notify_blocks() 839 priv->tx = kvcalloc(priv->tx_cfg.max_queues, sizeof(*priv->tx), in gve_alloc_rings() 852 priv->rx = kvcalloc(priv->rx_cfg.max_queues, sizeof(*priv->rx), in gve_alloc_rings() 1012 qpl->pages = kvcalloc(pages, sizeof(*qpl->pages), GFP_KERNEL); in gve_alloc_queue_page_list() 1016 qpl->page_buses = kvcalloc(pages, sizeof(*qpl->page_buses), GFP_KERNEL); in gve_alloc_queue_page_list() 1099 priv->qpls = kvcalloc(max_queues, sizeof(*priv->qpls), GFP_KERNEL); in gve_alloc_qpls() 1129 priv->qpl_cfg.qpl_id_map = kvcalloc(BITS_TO_LONGS(max_queues), in gve_alloc_qpls()
|
/linux-6.6.21/net/sched/ |
D | sch_hhf.c | 601 q->hh_flows = kvcalloc(HH_FLOWS_CNT, sizeof(struct list_head), in hhf_init() 616 q->hhf_arrays[i] = kvcalloc(HHF_ARRAYS_LEN, in hhf_init()
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | rings.c | 143 tx_ring->txbufs = kvcalloc(tx_ring->cnt, sizeof(*tx_ring->txbufs), in nfp_nfd3_tx_ring_alloc()
|
/linux-6.6.21/drivers/video/fbdev/core/ |
D | fb_defio.c | 282 pagerefs = kvcalloc(npagerefs, sizeof(*pagerefs), GFP_KERNEL); in fb_deferred_io_init()
|
/linux-6.6.21/drivers/xen/ |
D | gntdev.c | 145 add->pages = kvcalloc(count, sizeof(add->pages[0]), GFP_KERNEL); in gntdev_alloc_map() 147 kvcalloc(count, sizeof(add->being_removed[0]), GFP_KERNEL); in gntdev_alloc_map() 173 add->frames = kvcalloc(count, sizeof(add->frames[0]), in gntdev_alloc_map()
|