Home
last modified time | relevance | path

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

123456

/linux-6.15/security/apparmor/
H A Dpolicy_compat.c161 table = kvcalloc(state_count * 2, sizeof(struct aa_perms), GFP_KERNEL); in compute_fperms()
185 perms = kvcalloc(state_count, sizeof(struct aa_perms), GFP_KERNEL); in compute_xmatch_perms()
260 table = kvcalloc(state_count, sizeof(struct aa_perms), GFP_KERNEL); in compute_perms()
/linux-6.15/scripts/coccinelle/api/
H A 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.15/drivers/net/wireguard/
H A 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.15/drivers/gpu/drm/ttm/
H A Dttm_tt.c116 ttm->pages = kvcalloc(ttm->num_pages, sizeof(void*), GFP_KERNEL); in ttm_tt_alloc_page_directory()
125 ttm->pages = kvcalloc(ttm->num_pages, sizeof(*ttm->pages) + in ttm_dma_tt_alloc_page_directory()
136 ttm->dma_address = kvcalloc(ttm->num_pages, sizeof(*ttm->dma_address), in ttm_sg_tt_alloc_page_directory()
/linux-6.15/mm/
H A 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.15/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dqos.c90 stats_list = kvcalloc(mlx5e_qos_max_leaf_nodes(priv->mdev), in mlx5e_open_qos_sq()
279 sqs = kvcalloc(qos_sqs_size, sizeof(struct mlx5e_txqsq *), GFP_KERNEL); in mlx5e_qos_alloc_queues()
486 rl->leaves_id = kvcalloc(num_tc, sizeof(*rl->leaves_id), GFP_KERNEL); in mlx5e_mqprio_rl_init()
H A Drx_res.c311 rx_res->rss_rqns = kvcalloc(max_nch, sizeof(*rx_res->rss_rqns), GFP_KERNEL); in mlx5e_rx_res_alloc()
318 rx_res->rss_vhca_ids = kvcalloc(max_nch, sizeof(*rx_res->rss_vhca_ids), GFP_KERNEL); in mlx5e_rx_res_alloc()
340 res->channels = kvcalloc(res->max_nch, sizeof(*res->channels), GFP_KERNEL); in mlx5e_rx_res_channels_init()
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A 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.15/net/xdp/
H A Dxsk_buff_pool.c49 pool->tx_descs = kvcalloc(xs->tx->nentries, sizeof(*pool->tx_descs), in xp_alloc_tx_descs()
70 pool->heads = kvcalloc(umem->chunks, sizeof(*pool->heads), GFP_KERNEL); in xp_create_and_assign_umem()
342 dma_map->dma_pages = kvcalloc(nr_pages, sizeof(*dma_map->dma_pages), GFP_KERNEL); in xp_create_dma_map()
430 pool->dma_pages = kvcalloc(dma_map->dma_pages_cnt, sizeof(*pool->dma_pages), GFP_KERNEL); in xp_init_dma_info()
H A Dxdp_umem.c100 umem->pgs = kvcalloc(umem->npgs, sizeof(*umem->pgs), GFP_KERNEL | __GFP_NOWARN); in xdp_umem_pin_pages()
/linux-6.15/fs/exfat/
H A Dnls.c661 upcase_table = kvcalloc(UTBL_COUNT, sizeof(unsigned short), GFP_KERNEL); in exfat_load_upcase_table()
713 upcase_table = kvcalloc(UTBL_COUNT, sizeof(unsigned short), GFP_KERNEL); in exfat_load_default_upcase_table()
/linux-6.15/drivers/gpu/drm/amd/display/modules/color/
H A Dcolor_gamma.c1717 rgb_user = kvcalloc(ramp->num_entries + _EXTRA_POINTS, in mod_color_calculate_degamma_params()
1723 axis_x = kvcalloc(ramp->num_entries + _EXTRA_POINTS, sizeof(*axis_x), in mod_color_calculate_degamma_params()
1740 curve = kvcalloc(MAX_HW_POINTS + _EXTRA_POINTS, sizeof(*curve), in mod_color_calculate_degamma_params()
1745 coeff = kvcalloc(MAX_HW_POINTS + _EXTRA_POINTS, sizeof(*coeff), in mod_color_calculate_degamma_params()
1943 rgb_user = kvcalloc(ramp->num_entries + _EXTRA_POINTS, in mod_color_calculate_regamma_params()
1949 axis_x = kvcalloc(ramp->num_entries + 3, sizeof(*axis_x), in mod_color_calculate_regamma_params()
1969 rgb_regamma = kvcalloc(MAX_HW_POINTS + _EXTRA_POINTS, in mod_color_calculate_regamma_params()
1975 coeff = kvcalloc(MAX_HW_POINTS + _EXTRA_POINTS, sizeof(*coeff), in mod_color_calculate_regamma_params()
/linux-6.15/drivers/infiniband/core/
H A Dumem_odp.c78 umem_odp->pfn_list = kvcalloc( in ib_init_umem_odp()
84 umem_odp->dma_list = kvcalloc( in ib_init_umem_odp()
/linux-6.15/fs/smb/client/compress/
H A Dlz77.c147 htable = kvcalloc(LZ77_HASH_SIZE, sizeof(*htable), GFP_KERNEL); in lz77_compress()
/linux-6.15/drivers/net/ethernet/netronome/nfp/
H A 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.15/drivers/gpu/drm/virtio/
H A 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.15/drivers/gpu/drm/nouveau/
H A Dnouveau_dmem.c382 src_pfns = kvcalloc(npages, sizeof(*src_pfns), GFP_KERNEL | __GFP_NOFAIL); in nouveau_dmem_evict_chunk()
383 dst_pfns = kvcalloc(npages, sizeof(*dst_pfns), GFP_KERNEL | __GFP_NOFAIL); in nouveau_dmem_evict_chunk()
384 dma_addrs = kvcalloc(npages, sizeof(*dma_addrs), GFP_KERNEL | __GFP_NOFAIL); in nouveau_dmem_evict_chunk()
/linux-6.15/drivers/vdpa/mlx5/core/
H A Dmr.c218 cmds = kvcalloc(mr->num_directs, sizeof(*cmds), GFP_KERNEL); in create_direct_keys()
228 cmd_mem = kvcalloc(1, struct_size(cmd_mem, mtt, mttcount), GFP_KERNEL); in create_direct_keys()
290 cmds = kvcalloc(mr->num_directs, sizeof(*cmds), GFP_KERNEL); in DEFINE_FREE()
291 cmd_mem = kvcalloc(mr->num_directs, sizeof(*cmd_mem), GFP_KERNEL); in DEFINE_FREE()
/linux-6.15/drivers/net/ethernet/netronome/nfp/nfdk/
H A Drings.c108 tx_ring->ktxbufs = kvcalloc(tx_ring->cnt, sizeof(*tx_ring->ktxbufs), in nfp_nfdk_tx_ring_alloc()
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_pool.c12 fs_bulk->bitmask = kvcalloc(BITS_TO_LONGS(bulk_len), sizeof(unsigned long), in mlx5_fs_bulk_init()
/linux-6.15/drivers/net/ethernet/netronome/nfp/abm/
H A 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.15/drivers/staging/media/atomisp/pci/runtime/isp_param/src/
H A Disp_param.c117 mem_params->params[pclass][mem].address = kvcalloc(1, in ia_css_isp_param_allocate_isp_parameters()
/linux-6.15/net/sched/
H A Dsch_hhf.c605 q->hh_flows = kvcalloc(HH_FLOWS_CNT, sizeof(struct list_head), in hhf_init()
620 q->hhf_arrays[i] = kvcalloc(HHF_ARRAYS_LEN, in hhf_init()
/linux-6.15/drivers/net/ethernet/netronome/nfp/nfd3/
H A Drings.c143 tx_ring->txbufs = kvcalloc(tx_ring->cnt, sizeof(*tx_ring->txbufs), in nfp_nfd3_tx_ring_alloc()
/linux-6.15/drivers/xen/
H A 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()

123456