Home
last modified time | relevance | path

Searched refs:kvcalloc (Results 1 – 25 of 112) sorted by relevance

12345

/linux-6.6.21/security/apparmor/
Dpolicy_compat.c160 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/
Dkfree_mismatch.cocci57 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/
Dttm_tt.c100 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/
Dratelimiter.c179 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/
Dswap_slots.c123 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()
Dgup_test.c115 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/
Dxsk_buff_pool.c47 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()
Dxdp_umem.c100 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/
Ddr_icm_pool.c230 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/
Dqos.c90 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/
Dfortify_kunit.c242 kvcalloc(1, (alloc_pages) * PAGE_SIZE, gfp), \
245 kvcalloc((alloc_pages) * PAGE_SIZE, 1, gfp), \
/linux-6.6.21/fs/exfat/
Dnls.c662 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/
Dumem_odp.c78 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/
Dcolor_gamma.c1922 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/
Dfiletable.c41 table->files = kvcalloc(nr_files, sizeof(table->files[0]), in io_alloc_file_tables()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/
Dnfp_net_dp.c321 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/
Dvirtgpu_submit.c107 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/
Drings.c108 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/
Dmain.c480 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/
Disp_param.c126 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/
Dgve_main.c339 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/
Dsch_hhf.c601 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/
Drings.c143 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/
Dfb_defio.c282 pagerefs = kvcalloc(npagerefs, sizeof(*pagerefs), GFP_KERNEL); in fb_deferred_io_init()
/linux-6.6.21/drivers/xen/
Dgntdev.c145 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()

12345