Home
last modified time | relevance | path

Searched refs:MLX5_ST_SZ_BYTES (Results 1 – 25 of 87) sorted by relevance

1234

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dvport.c180 int inlen = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in); in mlx5_modify_nic_vport_mac_address()
213 int outlen = MLX5_ST_SZ_BYTES(query_nic_vport_context_out); in mlx5_query_nic_vport_mtu()
233 int inlen = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in); in mlx5_modify_nic_vport_mtu()
280 out_sz = MLX5_ST_SZ_BYTES(query_nic_vport_context_out) + in mlx5_query_nic_vport_mac_list()
281 req_list_size * MLX5_ST_SZ_BYTES(mac_address_layout); in mlx5_query_nic_vport_mac_list()
336 in_sz = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in) + in mlx5_modify_nic_vport_mac_list()
337 list_size * MLX5_ST_SZ_BYTES(mac_address_layout); in mlx5_modify_nic_vport_mac_list()
386 in_sz = MLX5_ST_SZ_BYTES(modify_nic_vport_context_in) + in mlx5_modify_nic_vport_vlans()
387 list_size * MLX5_ST_SZ_BYTES(vlan_layout); in mlx5_modify_nic_vport_vlans()
424 int outlen = MLX5_ST_SZ_BYTES(query_nic_vport_context_out); in mlx5_query_nic_vport_system_image_guid()
[all …]
H A Dwc.c82 inlen = MLX5_ST_SZ_BYTES(create_cq_in) + in create_wc_cq()
90 memcpy(cqc, cqc_data, MLX5_ST_SZ_BYTES(cqc)); in create_wc_cq()
114 cqc = kvzalloc(MLX5_ST_SZ_BYTES(cqc), GFP_KERNEL); in mlx5_wc_create_cq()
158 inlen = MLX5_ST_SZ_BYTES(create_sq_in) + in create_wc_sq()
167 memcpy(sqc, sqc_data, MLX5_ST_SZ_BYTES(sqc)); in create_wc_sq()
193 memset(in, 0, MLX5_ST_SZ_BYTES(modify_sq_in)); in create_wc_sq()
221 sqc_data = kvzalloc(MLX5_ST_SZ_BYTES(sqc), GFP_KERNEL); in mlx5_wc_create_sq()
H A Drl.c52 memcpy(schedc, ctx, MLX5_ST_SZ_BYTES(scheduling_context)); in mlx5_create_scheduling_element_cmd()
80 memcpy(schedc, ctx, MLX5_ST_SZ_BYTES(scheduling_context)); in mlx5_modify_scheduling_element_cmd()
318 u8 rl_raw[MLX5_ST_SZ_BYTES(set_pp_rate_limit_context)] = {}; in mlx5_rl_add_rate()
335 u8 rl_raw[MLX5_ST_SZ_BYTES(set_pp_rate_limit_context)] = {}; in mlx5_rl_remove_rate()
H A Dfw.c73 int outlen = MLX5_ST_SZ_BYTES(query_adapter_out); in mlx5_query_board_id()
100 int outlen = MLX5_ST_SZ_BYTES(query_adapter_out); in mlx5_core_query_vendor_id()
452 int err, in_size = MLX5_ST_SZ_BYTES(mcda_reg) + size; in mlx5_reg_mcda_set()
493 MLX5_ST_SZ_BYTES(mcqi_reg) + data_size, in mlx5_reg_mcqi_query()
513 MLX5_ST_SZ_BYTES(mcqi_cap), mcqi_reg); in mlx5_reg_mcqi_caps_query()
731 MLX5_ST_SZ_BYTES(mcqi_version), in mlx5_reg_mcqi_version_query()
738 u8 out_sz = MLX5_ST_SZ_BYTES(mcqs_reg); in mlx5_reg_mcqs_query()
H A Dfs_cmd.c540 dst_cnt_size = MLX5_ST_SZ_BYTES(dest_format_struct); in mlx5_cmd_set_fte()
542 dst_cnt_size = MLX5_ST_SZ_BYTES(extended_dest_format); in mlx5_cmd_set_fte()
544 inlen = MLX5_ST_SZ_BYTES(set_fte_in) + fte->act_dests.dests_size * dst_cnt_size; in mlx5_cmd_set_fte()
832 u32 out[MLX5_ST_SZ_BYTES(query_flow_counter_out) + in mlx5_cmd_fc_query()
833 MLX5_ST_SZ_BYTES(traffic_counter)] = {}; in mlx5_cmd_fc_query()
854 return MLX5_ST_SZ_BYTES(query_flow_counter_out) + in mlx5_cmd_fc_get_bulk_query_out_len()
855 MLX5_ST_SZ_BYTES(traffic_counter) * bulk_len; in mlx5_cmd_fc_get_bulk_query_out_len()
897 in = kzalloc(MLX5_ST_SZ_BYTES(alloc_packet_reformat_context_in) + in mlx5_cmd_packet_reformat_alloc()
996 inlen = MLX5_ST_SZ_BYTES(alloc_modify_header_context_in) + actions_size; in mlx5_cmd_modify_header_alloc()
H A Dport.c41 int outlen = MLX5_ST_SZ_BYTES(access_register_out) + size_out; in mlx5_access_reg()
42 int inlen = MLX5_ST_SZ_BYTES(access_register_in) + size_in; in mlx5_access_reg()
90 int sz = MLX5_ST_SZ_BYTES(pcam_reg); in mlx5_query_pcam_reg()
102 int sz = MLX5_ST_SZ_BYTES(mcam_reg); in mlx5_query_mcam_reg()
114 int sz = MLX5_ST_SZ_BYTES(qcam_reg); in mlx5_query_qcam_reg()
993 int sz = MLX5_ST_SZ_BYTES(qpdpm_reg); in mlx5_set_dscp2prio()
1030 int sz = MLX5_ST_SZ_BYTES(qpdpm_reg); in mlx5_query_dscp2prio()
1215 int sz = MLX5_ST_SZ_BYTES(mpir_reg); in mlx5_query_mpir_reg()
H A Den_common.c53 int inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in mlx5e_create_mkey()
230 inlen = MLX5_ST_SZ_BYTES(modify_tir_in); in mlx5e_refresh_tirs()
H A Den_stats.c899 int sz = MLX5_ST_SZ_BYTES(ppcnt_reg);
920 int sz = MLX5_ST_SZ_BYTES(ppcnt_reg); in mlx5e_stats_get_ieee()
1057 int sz = MLX5_ST_SZ_BYTES(ppcnt_reg);
1116 int sz = MLX5_ST_SZ_BYTES(ppcnt_reg);
1149 int sz = MLX5_ST_SZ_BYTES(ppcnt_reg); in mlx5e_stats_rmon_get()
1323 int sz = MLX5_ST_SZ_BYTES(ppcnt_reg); in MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS()
1345 int sz = MLX5_ST_SZ_BYTES(ppcnt_reg); in mlx5e_get_link_ext_stats()
1350 MLX5_ST_SZ_BYTES(ppcnt_reg), MLX5_REG_PPCNT, 0, 0); in mlx5e_get_link_ext_stats()
1421 int sz = MLX5_ST_SZ_BYTES(ppcnt_reg); in fec_set_block_stats()
1449 int sz = MLX5_ST_SZ_BYTES(ppcnt_reg); in fec_set_corrected_bits_total()
[all …]
H A Dmain.c226 u8 in[MLX5_ST_SZ_BYTES(set_driver_version_in)] = {}; in mlx5_set_driver_version()
365 u8 in[MLX5_ST_SZ_BYTES(query_hca_cap_in)]; in mlx5_core_get_caps_mode()
366 int out_sz = MLX5_ST_SZ_BYTES(query_hca_cap_out); in mlx5_core_get_caps_mode()
471 MLX5_ST_SZ_BYTES(odp_cap)); in handle_hca_cap_odp()
569 MLX5_ST_SZ_BYTES(cmd_hca_cap_2)); in handle_hca_cap_2()
589 MLX5_ST_SZ_BYTES(cmd_hca_cap)); in handle_hca_cap()
708 MLX5_ST_SZ_BYTES(roce_cap)); in handle_hca_cap_roce()
737 MLX5_ST_SZ_BYTES(port_selection_cap)); in handle_hca_cap_port_selection()
747 int set_sz = MLX5_ST_SZ_BYTES(set_hca_cap_in); in set_hca_cap()
H A Ddebugfs.c306 int outlen = MLX5_ST_SZ_BYTES(query_qp_out); in qp_read_field()
386 int outlen = MLX5_ST_SZ_BYTES(query_eq_out); in eq_read_field()
426 int outlen = MLX5_ST_SZ_BYTES(query_cq_out); in cq_read_field()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dipsec.c11 int query_sz = MLX5_ST_SZ_BYTES(query_hca_cap_out); in esw_ipsec_vf_query_generic()
45 int query_sz = MLX5_ST_SZ_BYTES(query_hca_cap_out); in mlx5_esw_ipsec_vf_offload_get()
83 int query_sz = MLX5_ST_SZ_BYTES(query_hca_cap_out); in esw_ipsec_vf_set_generic()
84 int set_sz = MLX5_ST_SZ_BYTES(set_hca_cap_in); in esw_ipsec_vf_set_generic()
123 int query_sz = MLX5_ST_SZ_BYTES(query_hca_cap_out); in esw_ipsec_vf_set_bytype()
124 int set_sz = MLX5_ST_SZ_BYTES(set_hca_cap_in); in esw_ipsec_vf_set_bytype()
173 int query_sz = MLX5_ST_SZ_BYTES(query_hca_cap_out); in esw_ipsec_vf_crypto_aux_caps_set()
174 int set_sz = MLX5_ST_SZ_BYTES(set_hca_cap_in); in esw_ipsec_vf_crypto_aux_caps_set()
263 int query_sz = MLX5_ST_SZ_BYTES(query_hca_cap_out); in esw_ipsec_offload_supported()
296 int query_sz = MLX5_ST_SZ_BYTES(query_hca_cap_out); in mlx5_esw_ipsec_vf_crypto_offload_supported()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Drsc_dump.c40 u8 cmd[MLX5_ST_SZ_BYTES(resource_dump)];
54 #define MLX5_RSC_DUMP_MENU_HEADER_SIZE (MLX5_ST_SZ_BYTES(resource_dump_info_segment) + \
55 MLX5_ST_SZ_BYTES(resource_dump_command_segment) + \
56 MLX5_ST_SZ_BYTES(resource_dump_menu_segment))
80 size += MLX5_ST_SZ_BYTES(resource_dump_menu_record); in mlx5_rsc_dump_read_menu_sgmt()
84 member = data + MLX5_ST_SZ_BYTES(resource_dump_menu_record) * i; in mlx5_rsc_dump_read_menu_sgmt()
226 int inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in mlx5_rsc_dump_create_mkey()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Drqt.c73 entry_sz = init_vhca_ids ? MLX5_ST_SZ_BYTES(rq_vhca) : MLX5_ST_SZ_BYTES(rq_num); in mlx5e_rqt_init()
74 inlen = MLX5_ST_SZ_BYTES(create_rqt_in) + entry_sz * init_size; in mlx5e_rqt_init()
206 entry_sz = vhca_ids ? MLX5_ST_SZ_BYTES(rq_vhca) : MLX5_ST_SZ_BYTES(rq_num); in mlx5e_rqt_redirect()
207 inlen = MLX5_ST_SZ_BYTES(modify_rqt_in) + entry_sz * size; in mlx5e_rqt_redirect()
H A Dport.c107 int sz = MLX5_ST_SZ_BYTES(pbmc_reg); in mlx5e_port_query_pbmc()
124 int sz = MLX5_ST_SZ_BYTES(pbmc_reg); in mlx5e_port_set_pbmc()
214 int sz = MLX5_ST_SZ_BYTES(pptb_reg); in mlx5e_port_query_priority2buffer()
246 int sz = MLX5_ST_SZ_BYTES(pptb_reg); in mlx5e_port_set_priority2buffer()
434 int sz = MLX5_ST_SZ_BYTES(pplm_reg); in mlx5e_fec_in_caps()
464 int sz = MLX5_ST_SZ_BYTES(pplm_reg); in mlx5e_get_fec_mode()
502 int sz = MLX5_ST_SZ_BYTES(pplm_reg); in mlx5e_set_fec_mode()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Daso.c88 inlen = MLX5_ST_SZ_BYTES(create_cq_in) + in create_aso_cq()
96 memcpy(cqc, cqc_data, MLX5_ST_SZ_BYTES(cqc)); in create_aso_cq()
127 cqc_data = kvzalloc(MLX5_ST_SZ_BYTES(cqc), GFP_KERNEL); in mlx5_aso_create_cq()
185 inlen = MLX5_ST_SZ_BYTES(create_sq_in) + in create_aso_sq()
194 memcpy(sqc, sqc_data, MLX5_ST_SZ_BYTES(sqc)); in create_aso_sq()
226 inlen = MLX5_ST_SZ_BYTES(modify_sq_in); in mlx5_aso_set_sq_rdy()
275 sqc_data = kvzalloc(MLX5_ST_SZ_BYTES(sqc), GFP_KERNEL); in mlx5_aso_create_sq()
H A Dipsec_fs_roce.c477 in = kvzalloc(MLX5_ST_SZ_BYTES(create_flow_group_in), GFP_KERNEL); in ipsec_fs_roce_rx_mpv_create()
614 in = kvzalloc(MLX5_ST_SZ_BYTES(create_flow_group_in), GFP_KERNEL); in mlx5_ipsec_fs_roce_tx_create()
739 in = kvzalloc(MLX5_ST_SZ_BYTES(create_flow_group_in), GFP_KERNEL); in mlx5_ipsec_fs_roce_rx_create()
762 memset(in, 0, MLX5_ST_SZ_BYTES(create_flow_group_in)); in mlx5_ipsec_fs_roce_rx_create()
/linux/drivers/infiniband/hw/mlx5/
H A Dcmd.c183 int outlen = MLX5_ST_SZ_BYTES(mad_ifc_out); in mlx5_cmd_mad_ifc()
184 int inlen = MLX5_ST_SZ_BYTES(mad_ifc_in); in mlx5_cmd_mad_ifc()
252 u8 out[MLX5_ST_SZ_BYTES(query_vuid_out) + in mlx5_cmd_query_vuid()
253 MLX5_ST_SZ_BYTES(array1024_auto)] = {}; in mlx5_cmd_query_vuid()
254 u8 in[MLX5_ST_SZ_BYTES(query_vuid_in)] = {}; in mlx5_cmd_query_vuid()
266 memcpy(out_vuid, vuid, MLX5_ST_SZ_BYTES(array1024_auto)); in mlx5_cmd_query_vuid()
H A Dsrq_cmd.c132 inlen = MLX5_ST_SZ_BYTES(create_srq_in) + pas_size; in create_srq_cmd()
197 srq_out = kvzalloc(MLX5_ST_SZ_BYTES(query_srq_out), GFP_KERNEL); in query_srq_cmd()
235 inlen = MLX5_ST_SZ_BYTES(create_xrc_srq_in) + pas_size; in create_xrc_srq_cmd()
306 xrcsrq_out = kvzalloc(MLX5_ST_SZ_BYTES(query_xrc_srq_out), GFP_KERNEL); in query_xrc_srq_cmd()
348 inlen = MLX5_ST_SZ_BYTES(create_rmp_in) + pas_size; in create_rmp_cmd()
349 outlen = MLX5_ST_SZ_BYTES(create_rmp_out); in create_rmp_cmd()
408 inlen = MLX5_ST_SZ_BYTES(modify_rmp_in); in arm_rmp_cmd()
409 outlen = MLX5_ST_SZ_BYTES(modify_rmp_out); in arm_rmp_cmd()
448 outlen = MLX5_ST_SZ_BYTES(query_rmp_out); in query_rmp_cmd()
449 inlen = MLX5_ST_SZ_BYTES(query_rmp_in); in query_rmp_cmd()
[all …]
H A Dqos.c27 u8 rl_raw[MLX5_ST_SZ_BYTES(set_pp_rate_limit_context)] = {}; in UVERBS_HANDLER()
105 MLX5_ST_SZ_BYTES(set_pp_rate_limit_context)),
H A Dqpc.c241 MLX5_ST_SZ_BYTES(create_qp_out)); in mlx5_qpc_create_qp()
397 mbox_alloc(mbox, MLX5_ST_SZ_BYTES(typ##_in), MLX5_ST_SZ_BYTES(typ##_out)) in modify_qp_mbox_alloc()
411 MLX5_ST_SZ_BYTES(qpc)); \ in modify_qp_mbox_alloc()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_cmd.c43 out_size = MLX5_ST_SZ_BYTES(query_hca_cap_out); in mlx5dr_cmd_query_gvmi()
321 inlen = MLX5_ST_SZ_BYTES(set_fte_in) + in mlx5dr_cmd_set_fte_modify_and_vport()
322 1 * MLX5_ST_SZ_BYTES(dest_format_struct); /* One destination only */ in mlx5dr_cmd_set_fte_modify_and_vport()
376 inlen = MLX5_ST_SZ_BYTES(alloc_modify_header_context_in) + in mlx5dr_cmd_alloc_modify_header()
419 int inlen = MLX5_ST_SZ_BYTES(create_flow_group_in); in mlx5dr_cmd_create_empty_flow_group()
544 cmd_total_sz = MLX5_ST_SZ_BYTES(alloc_packet_reformat_context_in); in mlx5dr_cmd_create_reformat_ctx()
804 dst_cnt_size = MLX5_ST_SZ_BYTES(dest_format_struct); in mlx5dr_cmd_set_fte()
806 dst_cnt_size = MLX5_ST_SZ_BYTES(extended_dest_format); in mlx5dr_cmd_set_fte()
808 inlen = MLX5_ST_SZ_BYTES(set_fte_in) + fte->dests_size * dst_cnt_size; in mlx5dr_cmd_set_fte()
/linux/drivers/vdpa/mlx5/core/
H A Dmr.c53 u8 out[MLX5_ST_SZ_BYTES(create_mkey_out)];
54 u8 in[MLX5_ST_SZ_BYTES(create_mkey_in)];
59 u8 out[MLX5_ST_SZ_BYTES(destroy_mkey_out)];
60 u8 in[MLX5_ST_SZ_BYTES(destroy_mkey_in)];
223 mttlen = roundup(MLX5_ST_SZ_BYTES(mtt) * dmr->nsg, MLX5_VDPA_MTT_ALIGN); in create_direct_keys()
337 inlen = MLX5_ST_SZ_BYTES(create_mkey_in) + klm_byte_size(mr->num_klms); in create_indirect_key()
565 int inlen = MLX5_ST_SZ_BYTES(create_mkey_in); in create_dma_mr()
/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c423 int inlen = MLX5_ST_SZ_BYTES(create_qp_in); in qp_create()
583 inlen = MLX5_ST_SZ_BYTES(create_cq_in) + in cq_create()
656 out_size = MLX5_ST_SZ_BYTES(query_hca_cap_out); in read_umem_params()
733 inlen = MLX5_ST_SZ_BYTES(create_umem_in) + MLX5_ST_SZ_BYTES(mtt) * umem->frag_buf.npages; in create_umem()
882 int inlen = MLX5_ST_SZ_BYTES(create_virtio_net_q_in); in create_virtqueue()
1046 *inlen = MLX5_ST_SZ_BYTES(qp_2rst_in); in alloc_inout()
1047 *outlen = MLX5_ST_SZ_BYTES(qp_2rst_out); in alloc_inout()
1058 *inlen = MLX5_ST_SZ_BYTES(rst2init_qp_in); in alloc_inout()
1059 *outlen = MLX5_ST_SZ_BYTES(rst2init_qp_out); in alloc_inout()
1061 *out = kzalloc(MLX5_ST_SZ_BYTES(rst2init_qp_out), GFP_KERNEL); in alloc_inout()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dmlx5hws_send.c622 inlen = MLX5_ST_SZ_BYTES(create_sq_in) + in hws_send_ring_create_sq()
631 memcpy(sqc, sqc_data, MLX5_ST_SZ_BYTES(sqc)); in hws_send_ring_create_sq()
667 inlen = MLX5_ST_SZ_BYTES(modify_sq_in); in hws_send_ring_set_sq_rdy()
720 sqc_data = kvzalloc(MLX5_ST_SZ_BYTES(sqc), GFP_KERNEL); in hws_send_ring_open_sq()
806 inlen = MLX5_ST_SZ_BYTES(create_cq_in) + in hws_send_ring_create_cq()
813 memcpy(cqc, cqc_data, MLX5_ST_SZ_BYTES(cqc)); in hws_send_ring_create_cq()
837 cqc_data = kvzalloc(MLX5_ST_SZ_BYTES(cqc), GFP_KERNEL); in hws_send_ring_open_cq()
H A Dmlx5hws_cmd.c144 int inlen = MLX5_ST_SZ_BYTES(create_flow_group_in); in hws_cmd_flow_group_create()
198 MLX5_ST_SZ_BYTES(extended_dest_format) : in mlx5hws_cmd_set_fte()
199 MLX5_ST_SZ_BYTES(dest_format); in mlx5hws_cmd_set_fte()
201 inlen = align((MLX5_ST_SZ_BYTES(set_fte_in) + total_dest_sz), DW_SIZE); in mlx5hws_cmd_set_fte()
822 cmd_total_sz = MLX5_ST_SZ_BYTES(alloc_packet_reformat_context_in); in mlx5hws_cmd_packet_reformat_create()
823 cmd_total_sz += MLX5_ST_SZ_BYTES(packet_reformat_context_in); in mlx5hws_cmd_packet_reformat_create()
1012 out_size = MLX5_ST_SZ_BYTES(query_hca_cap_out); in mlx5hws_cmd_query_caps()
1276 out_size = MLX5_ST_SZ_BYTES(query_hca_cap_out); in mlx5hws_cmd_query_gvmi()

1234