Home
last modified time | relevance | path

Searched refs:kvzalloc (Results 1 – 25 of 166) sorted by relevance

1234567

/Linux-v5.15/scripts/coccinelle/api/alloc/
Dalloc_cast.cocci37 kvmalloc\|kvzalloc\|kvmalloc_node\|kvzalloc_node\|pci_alloc_consistent\|
60 kvmalloc\|kvzalloc\|kvmalloc_node\|kvzalloc_node\|pci_alloc_consistent\|
83 kvmalloc\|kvzalloc\|kvmalloc_node\|kvzalloc_node\|pci_alloc_consistent\|
100 kvmalloc\|kvzalloc\|kvmalloc_node\|kvzalloc_node\|pci_alloc_consistent\|
Dzalloc-simple.cocci110 + x = kvzalloc(E1,E2);
113 + x = kvzalloc(E1,E2);
116 + x = (T)kvzalloc(E1,E2);
380 msg="WARNING: kvzalloc should be used for %s, instead of kvmalloc/memset" % (x)
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/core/
Ddc_surface.c106 struct dc_plane_state *plane_state = kvzalloc(sizeof(*plane_state), in dc_create_plane_state()
211 struct dc_gamma *gamma = kvzalloc(sizeof(*gamma), GFP_KERNEL); in dc_create_gamma()
241 struct dc_transfer_func *tf = kvzalloc(sizeof(*tf), GFP_KERNEL); in dc_create_transfer_func()
263 struct dc_3dlut *lut = kvzalloc(sizeof(*lut), GFP_KERNEL); in dc_create_3dlut_func()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_icm_pool.c70 icm_mr = kvzalloc(sizeof(*icm_mr), GFP_KERNEL); in dr_icm_pool_mr_create()
141 chunk->ste_arr = kvzalloc(chunk->num_of_entries * in dr_icm_chunk_ste_init()
146 chunk->hw_ste_arr = kvzalloc(chunk->num_of_entries * in dr_icm_chunk_ste_init()
201 buddy = kvzalloc(sizeof(*buddy), GFP_KERNEL); in dr_icm_buddy_create()
249 chunk = kvzalloc(sizeof(*chunk), GFP_KERNEL); in dr_icm_chunk_create()
429 pool = kvzalloc(sizeof(*pool), GFP_KERNEL); in mlx5dr_icm_pool_create()
Ddr_cmd.c287 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_set_fte_modify_and_vport()
341 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_alloc_modify_header()
386 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_create_empty_flow_group()
510 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_create_reformat_ctx()
648 in = kvzalloc(inlen, GFP_KERNEL); in mlx5dr_cmd_set_fte()
/Linux-v5.15/scripts/coccinelle/api/
Dkvmalloc.cocci130 + E = kvzalloc(size, flags);
136 + E = kvzalloc(size, GFP_KERNEL);
141 + E = kvzalloc(size, flags);
146 + E = kvzalloc(size, GFP_KERNEL);
151 + T x = kvzalloc(size, flags);
156 + T x = kvzalloc(size, GFP_KERNEL);
Dmemdup_user.cocci56 - to = \(kvmalloc@p\|kvzalloc@p\)(size,\(GFP_KERNEL\|GFP_USER\));
92 * to = \(kvmalloc@p\|kvzalloc@p\)(size,\(GFP_KERNEL\|GFP_USER\));
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-v5.15/drivers/infiniband/hw/mlx5/
Dsrq_cmd.c133 create_in = kvzalloc(inlen, GFP_KERNEL); in create_srq_cmd()
197 srq_out = kvzalloc(MLX5_ST_SZ_BYTES(query_srq_out), GFP_KERNEL); in query_srq_cmd()
236 create_in = kvzalloc(inlen, GFP_KERNEL); in create_xrc_srq_cmd()
306 xrcsrq_out = kvzalloc(MLX5_ST_SZ_BYTES(query_xrc_srq_out), GFP_KERNEL); in query_xrc_srq_cmd()
350 create_in = kvzalloc(inlen, GFP_KERNEL); in create_rmp_cmd()
351 create_out = kvzalloc(outlen, GFP_KERNEL); in create_rmp_cmd()
411 in = kvzalloc(inlen, GFP_KERNEL); in arm_rmp_cmd()
412 out = kvzalloc(outlen, GFP_KERNEL); in arm_rmp_cmd()
451 rmp_out = kvzalloc(outlen, GFP_KERNEL); in query_rmp_cmd()
452 rmp_in = kvzalloc(inlen, GFP_KERNEL); in query_rmp_cmd()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Dvport.c185 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_modify_nic_vport_mac_address()
217 out = kvzalloc(outlen, GFP_KERNEL); in mlx5_query_nic_vport_mtu()
237 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_modify_nic_vport_mtu()
425 out = kvzalloc(outlen, GFP_KERNEL); in mlx5_query_nic_vport_system_image_guid()
445 out = kvzalloc(outlen, GFP_KERNEL); in mlx5_query_nic_vport_node_guid()
471 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_modify_nic_vport_node_guid()
499 out = kvzalloc(outlen, GFP_KERNEL); in mlx5_query_nic_vport_qkey_viol_cntr()
801 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_modify_nic_vport_promisc()
838 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_nic_vport_update_local_lb()
909 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_nic_vport_update_roce_state()
[all …]
Den_common.c57 in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_create_mkey()
142 in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_refresh_tirs()
Drdma.c42 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in mlx5_rdma_enable_roce_steering()
45 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in mlx5_rdma_enable_roce_steering()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dfs_ttc.c204 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in mlx5_generate_ttc_rule()
299 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_create_ttc_table_groups()
365 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in mlx5_generate_inner_ttc_rule()
439 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_create_inner_ttc_table_groups()
496 ttc = kvzalloc(sizeof(*ttc), GFP_KERNEL); in mlx5_create_inner_ttc_table()
549 ttc = kvzalloc(sizeof(*ttc), GFP_KERNEL); in mlx5_create_ttc_table()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dbridge.c121 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_esw_bridge_ingress_vlan_fg_create()
160 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_esw_bridge_ingress_filter_fg_create()
197 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_esw_bridge_ingress_mac_fg_create()
233 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_esw_bridge_egress_vlan_fg_create()
266 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_esw_bridge_egress_mac_fg_create()
427 rule_spec = kvzalloc(sizeof(*rule_spec), GFP_KERNEL); in mlx5_esw_bridge_ingress_flow_with_esw_create()
517 rule_spec = kvzalloc(sizeof(*rule_spec), GFP_KERNEL); in mlx5_esw_bridge_ingress_filter_flow_create()
563 rule_spec = kvzalloc(sizeof(*rule_spec), GFP_KERNEL); in mlx5_esw_bridge_egress_flow_create()
608 bridge = kvzalloc(sizeof(*bridge), GFP_KERNEL); in mlx5_esw_bridge_create()
843 vlan = kvzalloc(sizeof(*vlan), GFP_KERNEL); in mlx5_esw_bridge_vlan_create()
[all …]
Dindir_table.c56 struct mlx5_esw_indir_table *indir = kvzalloc(sizeof(*indir), GFP_KERNEL); in mlx5_esw_indir_table_init()
140 rule_spec = kvzalloc(sizeof(*rule_spec), GFP_KERNEL); in mlx5_esw_indir_table_rule_get()
291 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_create_indir_recirc_group()
344 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_create_indir_fwd_group()
348 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in mlx5_create_indir_fwd_group()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
Dhelper.c60 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in esw_egress_acl_vlan_create()
102 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in esw_acl_egress_vlan_grp_create()
Dingress_ofld.c29 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in esw_acl_ingress_prio_tag_create()
169 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in esw_acl_ingress_ofld_groups_create()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/
Drqt.c29 in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_rqt_init()
126 in = kvzalloc(inlen, GFP_KERNEL); in mlx5e_rqt_redirect()
Dfs_tt_redirect.c93 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in mlx5e_fs_tt_redirect_udp_add_rule()
156 in = kvzalloc(inlen, GFP_KERNEL); in fs_udp_create_groups()
370 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in mlx5e_fs_tt_redirect_any_add_rule()
434 in = kvzalloc(inlen, GFP_KERNEL); in fs_any_create_groups()
/Linux-v5.15/drivers/net/wireguard/
Dratelimiter.c179 table_v4 = kvzalloc(table_size * sizeof(*table_v4), GFP_KERNEL); in wg_ratelimiter_init()
184 table_v6 = kvzalloc(table_size * sizeof(*table_v6), GFP_KERNEL); in wg_ratelimiter_init()
/Linux-v5.15/fs/xfs/scrub/
Dsymlink.c24 sc->buf = kvzalloc(XFS_SYMLINK_MAXLEN + 1, GFP_KERNEL); in xchk_setup_symlink()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_fs.c63 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in rx_err_add_rule()
195 flow_group_in = kvzalloc(inlen, GFP_KERNEL); in rx_fs_create()
196 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in rx_fs_create()
484 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in rx_add_rule()
552 spec = kvzalloc(sizeof(*spec), GFP_KERNEL); in tx_add_rule()
/Linux-v5.15/sound/soc/intel/atom/sst/
Dsst.c464 fw_save->iram = kvzalloc(ctx->iram_end - ctx->iram_base, GFP_KERNEL); in intel_sst_suspend()
469 fw_save->dram = kvzalloc(ctx->dram_end - ctx->dram_base, GFP_KERNEL); in intel_sst_suspend()
474 fw_save->sram = kvzalloc(SST_MAILBOX_SIZE, GFP_KERNEL); in intel_sst_suspend()
480 fw_save->ddr = kvzalloc(ctx->ddr_end - ctx->ddr_base, GFP_KERNEL); in intel_sst_suspend()
/Linux-v5.15/drivers/net/ethernet/google/gve/
Dgve_main.c282 priv->msix_vectors = kvzalloc(num_vecs_requested * in gve_alloc_notify_blocks()
432 priv->ptype_lut_dqo = kvzalloc(sizeof(*priv->ptype_lut_dqo), in gve_setup_device_resources()
643 priv->tx = kvzalloc(priv->tx_cfg.num_queues * sizeof(*priv->tx), in gve_alloc_rings()
656 priv->rx = kvzalloc(priv->rx_cfg.num_queues * sizeof(*priv->rx), in gve_alloc_rings()
779 qpl->pages = kvzalloc(pages * sizeof(*qpl->pages), GFP_KERNEL); in gve_alloc_queue_page_list()
783 qpl->page_buses = kvzalloc(pages * sizeof(*qpl->page_buses), in gve_alloc_queue_page_list()
843 priv->qpls = kvzalloc(num_qpls * sizeof(*priv->qpls), GFP_KERNEL); in gve_alloc_qpls()
862 priv->qpl_cfg.qpl_id_map = kvzalloc(BITS_TO_LONGS(num_qpls) * in gve_alloc_qpls()
/Linux-v5.15/drivers/net/ethernet/chelsio/cxgb4/
Dsrq.c43 s = kvzalloc(sizeof(*s), GFP_KERNEL); in t4_init_srq()

1234567