Home
last modified time | relevance | path

Searched refs:MLX5_SET (Results 1 – 25 of 110) sorted by relevance

12345

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_cmd.c174 MLX5_SET(set_flow_table_root_in, in, opcode, in mlx5_cmd_set_slave_root_fdb()
176 MLX5_SET(set_flow_table_root_in, in, table_type, in mlx5_cmd_set_slave_root_fdb()
179 MLX5_SET(set_flow_table_root_in, in, in mlx5_cmd_set_slave_root_fdb()
181 MLX5_SET(set_flow_table_root_in, in, in mlx5_cmd_set_slave_root_fdb()
184 MLX5_SET(set_flow_table_root_in, in, table_id, in mlx5_cmd_set_slave_root_fdb()
190 MLX5_SET(set_flow_table_root_in, in, table_id, in mlx5_cmd_set_slave_root_fdb()
228 MLX5_SET(set_flow_table_root_in, in, opcode, in mlx5_cmd_update_root_ft()
230 MLX5_SET(set_flow_table_root_in, in, table_type, ft->type); in mlx5_cmd_update_root_ft()
233 MLX5_SET(set_flow_table_root_in, in, op_mod, 1); in mlx5_cmd_update_root_ft()
235 MLX5_SET(set_flow_table_root_in, in, table_id, ft->id); in mlx5_cmd_update_root_ft()
[all …]
H A Dvport.c50 MLX5_SET(query_vport_state_in, in, opcode, in mlx5_query_vport_state()
52 MLX5_SET(query_vport_state_in, in, op_mod, opmod); in mlx5_query_vport_state()
53 MLX5_SET(query_vport_state_in, in, vport_number, vport); in mlx5_query_vport_state()
55 MLX5_SET(query_vport_state_in, in, other_vport, 1); in mlx5_query_vport_state()
69 MLX5_SET(modify_vport_state_in, in, opcode, in mlx5_modify_vport_admin_state()
71 MLX5_SET(modify_vport_state_in, in, op_mod, opmod); in mlx5_modify_vport_admin_state()
72 MLX5_SET(modify_vport_state_in, in, vport_number, vport); in mlx5_modify_vport_admin_state()
73 MLX5_SET(modify_vport_state_in, in, other_vport, other_vport); in mlx5_modify_vport_admin_state()
74 MLX5_SET(modify_vport_state_in, in, admin_state, state); in mlx5_modify_vport_admin_state()
84 MLX5_SET(query_nic_vport_context_in, in, opcode, in mlx5_query_nic_vport_context()
[all …]
H A Dtransobj.c43 MLX5_SET(alloc_transport_domain_in, in, opcode, in mlx5_core_alloc_transport_domain()
59 MLX5_SET(dealloc_transport_domain_in, in, opcode, in mlx5_core_dealloc_transport_domain()
61 MLX5_SET(dealloc_transport_domain_in, in, transport_domain, tdn); in mlx5_core_dealloc_transport_domain()
71 MLX5_SET(create_rq_in, in, opcode, MLX5_CMD_OP_CREATE_RQ); in mlx5_core_create_rq()
82 MLX5_SET(modify_rq_in, in, rqn, rqn); in mlx5_core_modify_rq()
83 MLX5_SET(modify_rq_in, in, opcode, MLX5_CMD_OP_MODIFY_RQ); in mlx5_core_modify_rq()
93 MLX5_SET(destroy_rq_in, in, opcode, MLX5_CMD_OP_DESTROY_RQ); in mlx5_core_destroy_rq()
94 MLX5_SET(destroy_rq_in, in, rqn, rqn); in mlx5_core_destroy_rq()
103 MLX5_SET(query_rq_in, in, opcode, MLX5_CMD_OP_QUERY_RQ); in mlx5_core_query_rq()
104 MLX5_SET(query_rq_in, in, rqn, rqn); in mlx5_core_query_rq()
[all …]
H A Dport.c56 MLX5_SET(access_register_in, in, opcode, MLX5_CMD_OP_ACCESS_REG); in mlx5_access_reg()
57 MLX5_SET(access_register_in, in, op_mod, !write); in mlx5_access_reg()
58 MLX5_SET(access_register_in, in, argument, arg); in mlx5_access_reg()
59 MLX5_SET(access_register_in, in, register_id, reg_id); in mlx5_access_reg()
92 MLX5_SET(pcam_reg, in, feature_group, feature_group); in mlx5_query_pcam_reg()
93 MLX5_SET(pcam_reg, in, access_reg_group, access_reg_group); in mlx5_query_pcam_reg()
104 MLX5_SET(mcam_reg, in, feature_group, feature_group); in mlx5_query_mcam_reg()
105 MLX5_SET(mcam_reg, in, access_reg_group, access_reg_group); in mlx5_query_mcam_reg()
116 MLX5_SET(qcam_reg, in, feature_group, feature_group); in mlx5_query_qcam_reg()
117 MLX5_SET(qcam_reg, in, access_reg_group, access_reg_group); in mlx5_query_qcam_reg()
[all …]
H A Dqos.c36 MLX5_SET(scheduling_context, sched_ctx, parent_element_id, parent_id); in mlx5_qos_create_leaf_node()
37 MLX5_SET(scheduling_context, sched_ctx, element_type, in mlx5_qos_create_leaf_node()
39 MLX5_SET(scheduling_context, sched_ctx, bw_share, bw_share); in mlx5_qos_create_leaf_node()
40 MLX5_SET(scheduling_context, sched_ctx, max_average_bw, max_avg_bw); in mlx5_qos_create_leaf_node()
60 MLX5_SET(scheduling_context, sched_ctx, parent_element_id, parent_id); in mlx5_qos_create_inner_node()
61 MLX5_SET(scheduling_context, sched_ctx, element_type, in mlx5_qos_create_inner_node()
63 MLX5_SET(scheduling_context, sched_ctx, bw_share, bw_share); in mlx5_qos_create_inner_node()
64 MLX5_SET(scheduling_context, sched_ctx, max_average_bw, max_avg_bw); in mlx5_qos_create_inner_node()
67 MLX5_SET(tsar_element, attr, tsar_type, TSAR_ELEMENT_TSAR_TYPE_DWRR); in mlx5_qos_create_inner_node()
84 MLX5_SET(scheduling_context, sched_ctx, bw_share, bw_share); in mlx5_qos_update_node()
[all …]
H A Dmr.c45 MLX5_SET(create_mkey_in, in, opcode, MLX5_CMD_OP_CREATE_MKEY); in mlx5_core_create_mkey()
64 MLX5_SET(destroy_mkey_in, in, opcode, MLX5_CMD_OP_DESTROY_MKEY); in mlx5_core_destroy_mkey()
65 MLX5_SET(destroy_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey)); in mlx5_core_destroy_mkey()
76 MLX5_SET(query_mkey_in, in, opcode, MLX5_CMD_OP_QUERY_MKEY); in mlx5_core_query_mkey()
77 MLX5_SET(query_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey)); in mlx5_core_query_mkey()
102 MLX5_SET(create_psv_in, in, opcode, MLX5_CMD_OP_CREATE_PSV); in mlx5_core_create_psv()
103 MLX5_SET(create_psv_in, in, pd, pdn); in mlx5_core_create_psv()
104 MLX5_SET(create_psv_in, in, num_psv, npsvs); in mlx5_core_create_psv()
121 MLX5_SET(destroy_psv_in, in, opcode, MLX5_CMD_OP_DESTROY_PSV); in mlx5_core_destroy_psv()
122 MLX5_SET(destroy_psv_in, in, psvn, psv_num); in mlx5_core_destroy_psv()
[all …]
H A Den_common.c47 MLX5_SET(mkc, mkc, relaxed_ordering_read, ro_read); in mlx5e_mkey_set_relaxed_ordering()
48 MLX5_SET(mkc, mkc, relaxed_ordering_write, ro_write); in mlx5e_mkey_set_relaxed_ordering()
63 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in mlx5e_create_mkey()
64 MLX5_SET(mkc, mkc, lw, 1); in mlx5e_create_mkey()
65 MLX5_SET(mkc, mkc, lr, 1); in mlx5e_create_mkey()
67 MLX5_SET(mkc, mkc, pd, pdn); in mlx5e_create_mkey()
68 MLX5_SET(mkc, mkc, length64, 1); in mlx5e_create_mkey()
69 MLX5_SET(mkc, mkc, qpn, 0xffffff); in mlx5e_create_mkey()
81 MLX5_SET(tisc, tisc, transport_domain, mdev->mlx5e_res.hw_objs.td.tdn); in mlx5e_create_tis()
84 MLX5_SET(tisc, tisc, strict_lag_tx_port_affinity, 1); in mlx5e_create_tis()
[all …]
H A Dwc.c95 MLX5_SET(cqc, cqc, cq_period_mode, MLX5_CQ_PERIOD_MODE_START_FROM_EQE); in create_wc_cq()
96 MLX5_SET(cqc, cqc, c_eqn_or_apu_element, eqn); in create_wc_cq()
97 MLX5_SET(cqc, cqc, uar_page, mdev->priv.uar->index); in create_wc_cq()
98 MLX5_SET(cqc, cqc, log_page_size, cq->wq_ctrl.buf.page_shift - in create_wc_cq()
118 MLX5_SET(cqc, cqc, log_cq_size, TEST_WC_LOG_CQ_SZ); in mlx5_wc_create_cq()
119 MLX5_SET(cqc, cqc, uar_page, mdev->priv.uar->index); in mlx5_wc_create_cq()
121 MLX5_SET(cqc, cqc, cqe_sz, CQE_STRIDE_128_PAD); in mlx5_wc_create_cq()
168 MLX5_SET(sqc, sqc, cqn, sq->cq.mcq.cqn); in create_wc_sq()
170 MLX5_SET(sqc, sqc, state, MLX5_SQC_STATE_RST); in create_wc_sq()
171 MLX5_SET(sqc, sqc, flush_in_error_en, 1); in create_wc_sq()
[all …]
/linux/drivers/infiniband/hw/mlx5/
H A Dcmd.c23 MLX5_SET(query_special_contexts_in, in, opcode, in mlx5r_cmd_query_special_mkeys()
50 MLX5_SET(query_cong_params_in, in, opcode, in mlx5_cmd_query_cong_params()
52 MLX5_SET(query_cong_params_in, in, cong_protocol, cong_point); in mlx5_cmd_query_cong_params()
61 MLX5_SET(destroy_tir_in, in, opcode, MLX5_CMD_OP_DESTROY_TIR); in mlx5_cmd_destroy_tir()
62 MLX5_SET(destroy_tir_in, in, tirn, tirn); in mlx5_cmd_destroy_tir()
63 MLX5_SET(destroy_tir_in, in, uid, uid); in mlx5_cmd_destroy_tir()
71 MLX5_SET(destroy_tis_in, in, opcode, MLX5_CMD_OP_DESTROY_TIS); in mlx5_cmd_destroy_tis()
72 MLX5_SET(destroy_tis_in, in, tisn, tisn); in mlx5_cmd_destroy_tis()
73 MLX5_SET(destroy_tis_in, in, uid, uid); in mlx5_cmd_destroy_tis()
81 MLX5_SET(destroy_rqt_in, in, opcode, MLX5_CMD_OP_DESTROY_RQT); in mlx5_cmd_destroy_rqt()
[all …]
H A Dsrq_cmd.c29 MLX5_SET(wq, wq, wq_signature, !!(in->flags in set_wq()
31 MLX5_SET(wq, wq, log_wq_pg_sz, in->log_page_size); in set_wq()
32 MLX5_SET(wq, wq, log_wq_stride, in->wqe_shift + 4); in set_wq()
33 MLX5_SET(wq, wq, log_wq_sz, in->log_size); in set_wq()
34 MLX5_SET(wq, wq, page_offset, in->page_offset); in set_wq()
35 MLX5_SET(wq, wq, lwm, in->lwm); in set_wq()
36 MLX5_SET(wq, wq, pd, in->pd); in set_wq()
42 MLX5_SET(srqc, srqc, wq_signature, !!(in->flags in set_srqc()
44 MLX5_SET(srqc, srqc, log_page_size, in->log_page_size); in set_srqc()
45 MLX5_SET(srqc, srqc, log_rq_stride, in->wqe_shift); in set_srqc()
[all …]
H A Dcong.c184 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
189 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
194 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
199 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
204 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
209 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
214 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
219 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
224 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
229 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val()
[all …]
H A Dqpc.c201 MLX5_SET(destroy_dct_in, in, opcode, MLX5_CMD_OP_DESTROY_DCT); in _mlx5_core_destroy_dct()
202 MLX5_SET(destroy_dct_in, in, dctn, qp->qpn); in _mlx5_core_destroy_dct()
203 MLX5_SET(destroy_dct_in, in, uid, qp->uid); in _mlx5_core_destroy_dct()
214 MLX5_SET(create_dct_in, in, opcode, MLX5_CMD_OP_CREATE_DCT); in mlx5_core_create_dct()
238 MLX5_SET(create_qp_in, in, opcode, MLX5_CMD_OP_CREATE_QP); in mlx5_qpc_create_qp()
258 MLX5_SET(destroy_qp_in, din, opcode, MLX5_CMD_OP_DESTROY_QP); in mlx5_qpc_create_qp()
259 MLX5_SET(destroy_qp_in, din, qpn, qp->qpn); in mlx5_qpc_create_qp()
260 MLX5_SET(destroy_qp_in, din, uid, qp->uid); in mlx5_qpc_create_qp()
271 MLX5_SET(drain_dct_in, in, opcode, MLX5_CMD_OP_DRAIN_DCT); in mlx5_core_drain_dct()
272 MLX5_SET(drain_dct_in, in, dctn, qp->qpn); in mlx5_core_drain_dct()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtir.c57 MLX5_SET(tirc, tirc, transport_domain, tdn); in mlx5e_tir_builder_build_inline()
58 MLX5_SET(tirc, tirc, disp_type, MLX5_TIRC_DISP_TYPE_DIRECT); in mlx5e_tir_builder_build_inline()
59 MLX5_SET(tirc, tirc, rx_hash_fn, MLX5_RX_HASH_FN_NONE); in mlx5e_tir_builder_build_inline()
60 MLX5_SET(tirc, tirc, inline_rqn, rqn); in mlx5e_tir_builder_build_inline()
70 MLX5_SET(tirc, tirc, transport_domain, tdn); in mlx5e_tir_builder_build_rqt()
71 MLX5_SET(tirc, tirc, disp_type, MLX5_TIRC_DISP_TYPE_INDIRECT); in mlx5e_tir_builder_build_rqt()
72 MLX5_SET(tirc, tirc, indirect_table, rqtn); in mlx5e_tir_builder_build_rqt()
73 MLX5_SET(tirc, tirc, tunneled_offload_en, inner_ft_support); in mlx5e_tir_builder_build_rqt()
83 MLX5_SET(modify_tir_in, builder->in, bitmask.packet_merge, 1); in mlx5e_tir_builder_build_packet_merge()
87 MLX5_SET(tirc, tirc, packet_merge_mask, in mlx5e_tir_builder_build_packet_merge()
[all …]
H A Dport.c68 MLX5_SET(ptys_reg, in, local_port, 1); in mlx5_port_set_eth_ptys()
69 MLX5_SET(ptys_reg, in, an_disable_admin, an_disable); in mlx5_port_set_eth_ptys()
70 MLX5_SET(ptys_reg, in, proto_mask, MLX5_PTYS_EN); in mlx5_port_set_eth_ptys()
72 MLX5_SET(ptys_reg, in, ext_eth_proto_admin, proto_admin); in mlx5_port_set_eth_ptys()
74 MLX5_SET(ptys_reg, in, eth_proto_admin, proto_admin); in mlx5_port_set_eth_ptys()
115 MLX5_SET(pbmc_reg, in, local_port, 1); in mlx5e_port_query_pbmc()
132 MLX5_SET(pbmc_reg, in, local_port, 1); in mlx5e_port_set_pbmc()
144 MLX5_SET(sbpr_reg, in, desc, desc); in mlx5e_port_query_sbpr()
145 MLX5_SET(sbpr_reg, in, dir, dir); in mlx5e_port_query_sbpr()
146 MLX5_SET(sbpr_reg, in, pool, pool_idx); in mlx5e_port_query_sbpr()
[all …]
/linux/drivers/vdpa/mlx5/core/
H A Dresources.c16 MLX5_SET(alloc_pd_in, in, opcode, MLX5_CMD_OP_ALLOC_PD); in alloc_pd()
17 MLX5_SET(alloc_pd_in, in, uid, uid); in alloc_pd()
31 MLX5_SET(dealloc_pd_in, in, opcode, MLX5_CMD_OP_DEALLOC_PD); in dealloc_pd()
32 MLX5_SET(dealloc_pd_in, in, pd, pdn); in dealloc_pd()
33 MLX5_SET(dealloc_pd_in, in, uid, uid); in dealloc_pd()
44 MLX5_SET(query_special_contexts_in, in, opcode, MLX5_CMD_OP_QUERY_SPECIAL_CONTEXTS); in get_null_mkey()
70 MLX5_SET(create_uctx_in, in, opcode, MLX5_CMD_OP_CREATE_UCTX); in create_uctx()
71 MLX5_SET(create_uctx_in, in, uctx.cap, MLX5_UCTX_CAP_RAW_TX); in create_uctx()
89 MLX5_SET(destroy_uctx_in, in, opcode, MLX5_CMD_OP_DESTROY_UCTX); in destroy_uctx()
90 MLX5_SET(destroy_uctx_in, in, uid, uid); in destroy_uctx()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
H A Dconn.c236 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in mlx5_fpga_conn_create_mkey()
237 MLX5_SET(mkc, mkc, lw, 1); in mlx5_fpga_conn_create_mkey()
238 MLX5_SET(mkc, mkc, lr, 1); in mlx5_fpga_conn_create_mkey()
240 MLX5_SET(mkc, mkc, pd, pdn); in mlx5_fpga_conn_create_mkey()
241 MLX5_SET(mkc, mkc, length64, 1); in mlx5_fpga_conn_create_mkey()
242 MLX5_SET(mkc, mkc, qpn, 0xffffff); in mlx5_fpga_conn_create_mkey()
425 MLX5_SET(cqc, temp_cqc, log_cq_size, ilog2(cq_size)); in mlx5_fpga_conn_create_cq()
455 MLX5_SET(cqc, cqc, log_cq_size, ilog2(cq_size)); in mlx5_fpga_conn_create_cq()
456 MLX5_SET(cqc, cqc, c_eqn_or_apu_element, eqn); in mlx5_fpga_conn_create_cq()
457 MLX5_SET(cqc, cqc, uar_page, fdev->conn_res.uar->index); in mlx5_fpga_conn_create_cq()
[all …]
H A Dcmd.c57 MLX5_SET(fpga_access_reg, in, size, size); in mlx5_fpga_access_reg()
87 MLX5_SET(fpga_ctrl, in, operation, op); in mlx5_fpga_ctrl_op()
149 MLX5_SET(fpga_create_qp_in, in, opcode, MLX5_CMD_OP_FPGA_CREATE_QP); in mlx5_fpga_create_qp()
169 MLX5_SET(fpga_modify_qp_in, in, opcode, MLX5_CMD_OP_FPGA_MODIFY_QP); in mlx5_fpga_modify_qp()
170 MLX5_SET(fpga_modify_qp_in, in, field_select, fields); in mlx5_fpga_modify_qp()
171 MLX5_SET(fpga_modify_qp_in, in, fpga_qpn, fpga_qpn); in mlx5_fpga_modify_qp()
185 MLX5_SET(fpga_query_qp_in, in, opcode, MLX5_CMD_OP_FPGA_QUERY_QP); in mlx5_fpga_query_qp()
186 MLX5_SET(fpga_query_qp_in, in, fpga_qpn, fpga_qpn); in mlx5_fpga_query_qp()
201 MLX5_SET(fpga_destroy_qp_in, in, opcode, MLX5_CMD_OP_FPGA_DESTROY_QP); in mlx5_fpga_destroy_qp()
202 MLX5_SET(fpga_destroy_qp_in, in, fpga_qpn, fpga_qpn); in mlx5_fpga_destroy_qp()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Dcmd.c12 MLX5_SET(alloc_sf_in, in, opcode, MLX5_CMD_OP_ALLOC_SF); in mlx5_cmd_alloc_sf()
13 MLX5_SET(alloc_sf_in, in, function_id, function_id); in mlx5_cmd_alloc_sf()
23 MLX5_SET(dealloc_sf_in, in, opcode, MLX5_CMD_OP_DEALLOC_SF); in mlx5_cmd_dealloc_sf()
24 MLX5_SET(dealloc_sf_in, in, function_id, function_id); in mlx5_cmd_dealloc_sf()
34 MLX5_SET(enable_hca_in, in, opcode, MLX5_CMD_OP_ENABLE_HCA); in mlx5_cmd_sf_enable_hca()
35 MLX5_SET(enable_hca_in, in, function_id, func_id); in mlx5_cmd_sf_enable_hca()
36 MLX5_SET(enable_hca_in, in, embedded_cpu_function, 0); in mlx5_cmd_sf_enable_hca()
45 MLX5_SET(disable_hca_in, in, opcode, MLX5_CMD_OP_DISABLE_HCA); in mlx5_cmd_sf_disable_hca()
46 MLX5_SET(disable_hca_in, in, function_id, func_id); in mlx5_cmd_sf_disable_hca()
47 MLX5_SET(enable_hca_in, in, embedded_cpu_function, 0); in mlx5_cmd_sf_disable_hca()
H A Dvhca_event.c37 MLX5_SET(query_vhca_state_in, in, opcode, MLX5_CMD_OP_QUERY_VHCA_STATE); in mlx5_cmd_query_vhca_state()
38 MLX5_SET(query_vhca_state_in, in, function_id, function_id); in mlx5_cmd_query_vhca_state()
39 MLX5_SET(query_vhca_state_in, in, embedded_cpu_function, 0); in mlx5_cmd_query_vhca_state()
49 MLX5_SET(modify_vhca_state_in, in, opcode, MLX5_CMD_OP_MODIFY_VHCA_STATE); in mlx5_cmd_modify_vhca_state()
50 MLX5_SET(modify_vhca_state_in, in, function_id, function_id); in mlx5_cmd_modify_vhca_state()
51 MLX5_SET(modify_vhca_state_in, in, embedded_cpu_function, 0); in mlx5_cmd_modify_vhca_state()
61 MLX5_SET(modify_vhca_state_in, in, opcode, MLX5_CMD_OP_MODIFY_VHCA_STATE); in mlx5_modify_vhca_sw_id()
62 MLX5_SET(modify_vhca_state_in, in, function_id, function_id); in mlx5_modify_vhca_sw_id()
63 MLX5_SET(modify_vhca_state_in, in, embedded_cpu_function, 0); in mlx5_modify_vhca_sw_id()
64 MLX5_SET(modify_vhca_state_in, in, vhca_state_field_select.sw_function_id, 1); in mlx5_modify_vhca_sw_id()
[all …]
/linux/drivers/vfio/pci/mlx5/
H A Dcmd.c61 MLX5_SET(suspend_vhca_in, in, opcode, MLX5_CMD_OP_SUSPEND_VHCA); in mlx5vf_cmd_suspend_vhca()
62 MLX5_SET(suspend_vhca_in, in, vhca_id, mvdev->vhca_id); in mlx5vf_cmd_suspend_vhca()
63 MLX5_SET(suspend_vhca_in, in, op_mod, op_mod); in mlx5vf_cmd_suspend_vhca()
81 MLX5_SET(resume_vhca_in, in, opcode, MLX5_CMD_OP_RESUME_VHCA); in mlx5vf_cmd_resume_vhca()
82 MLX5_SET(resume_vhca_in, in, vhca_id, mvdev->vhca_id); in mlx5vf_cmd_resume_vhca()
83 MLX5_SET(resume_vhca_in, in, op_mod, op_mod); in mlx5vf_cmd_resume_vhca()
132 MLX5_SET(query_vhca_migration_state_in, in, opcode, in mlx5vf_cmd_query_vhca_migration_state()
134 MLX5_SET(query_vhca_migration_state_in, in, vhca_id, mvdev->vhca_id); in mlx5vf_cmd_query_vhca_migration_state()
135 MLX5_SET(query_vhca_migration_state_in, in, op_mod, 0); in mlx5vf_cmd_query_vhca_migration_state()
136 MLX5_SET(query_vhca_migration_state_in, in, incremental, in mlx5vf_cmd_query_vhca_migration_state()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_offload.c100 MLX5_SET(ipsec_aso, aso_ctx, esn_event_arm, 1); in mlx5e_ipsec_packet_setup()
103 MLX5_SET(ipsec_aso, aso_ctx, window_sz, in mlx5e_ipsec_packet_setup()
105 MLX5_SET(ipsec_aso, aso_ctx, mode, in mlx5e_ipsec_packet_setup()
108 MLX5_SET(ipsec_aso, aso_ctx, mode_parameter, in mlx5e_ipsec_packet_setup()
113 MLX5_SET(ipsec_obj, obj, ipsec_aso_access_pd, pdn); in mlx5e_ipsec_packet_setup()
114 MLX5_SET(ipsec_obj, obj, full_offload, 1); in mlx5e_ipsec_packet_setup()
115 MLX5_SET(ipsec_aso, aso_ctx, valid, 1); in mlx5e_ipsec_packet_setup()
122 MLX5_SET(ipsec_obj, obj, aso_return_reg, MLX5_IPSEC_ASO_REG_C_4_5); in mlx5e_ipsec_packet_setup()
124 MLX5_SET(ipsec_aso, aso_ctx, mode, MLX5_IPSEC_ASO_INC_SN); in mlx5e_ipsec_packet_setup()
127 MLX5_SET(ipsec_aso, aso_ctx, remove_flow_pkt_cnt, in mlx5e_ipsec_packet_setup()
[all …]
H A Dktls_txrx.c64 MLX5_SET(tls_static_params, ctx, tls_version, tls_version); in fill_static_params()
65 MLX5_SET(tls_static_params, ctx, const_1, 1); in fill_static_params()
66 MLX5_SET(tls_static_params, ctx, const_2, 2); in fill_static_params()
67 MLX5_SET(tls_static_params, ctx, encryption_standard, in fill_static_params()
69 MLX5_SET(tls_static_params, ctx, resync_tcp_sn, resync_tcp_sn); in fill_static_params()
70 MLX5_SET(tls_static_params, ctx, dek_index, key_id); in fill_static_params()
108 MLX5_SET(tls_progress_params, ctx, next_record_tcp_sn, in fill_progress_params()
110 MLX5_SET(tls_progress_params, ctx, record_tracker_state, in fill_progress_params()
112 MLX5_SET(tls_progress_params, ctx, auth_state, in fill_progress_params()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_send.c276 MLX5_SET(qpc, temp_qpc, log_rq_stride, ilog2(MLX5_SEND_WQE_DS) - 4); in dr_create_rc_qp()
277 MLX5_SET(qpc, temp_qpc, log_rq_size, ilog2(dr_qp->rq.wqe_cnt)); in dr_create_rc_qp()
278 MLX5_SET(qpc, temp_qpc, log_sq_size, ilog2(dr_qp->sq.wqe_cnt)); in dr_create_rc_qp()
305 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_RC); in dr_create_rc_qp()
306 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in dr_create_rc_qp()
307 MLX5_SET(qpc, qpc, isolate_vl_tc, attr->isolate_vl_tc); in dr_create_rc_qp()
308 MLX5_SET(qpc, qpc, pd, attr->pdn); in dr_create_rc_qp()
309 MLX5_SET(qpc, qpc, uar_page, attr->uar->index); in dr_create_rc_qp()
310 MLX5_SET(qpc, qpc, log_page_size, in dr_create_rc_qp()
312 MLX5_SET(qpc, qpc, fre, 1); in dr_create_rc_qp()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dipsec.c105 MLX5_SET(cmd_hca_cap, cap, ipsec_offload, ipsec_ofld); in esw_ipsec_vf_set_generic()
107 MLX5_SET(set_hca_cap_in, hca_cap, opcode, MLX5_CMD_OP_SET_HCA_CAP); in esw_ipsec_vf_set_generic()
108 MLX5_SET(set_hca_cap_in, hca_cap, other_function, 1); in esw_ipsec_vf_set_generic()
109 MLX5_SET(set_hca_cap_in, hca_cap, function_id, vport_num); in esw_ipsec_vf_set_generic()
111 MLX5_SET(set_hca_cap_in, hca_cap, op_mod, in esw_ipsec_vf_set_generic()
148 MLX5_SET(ipsec_cap, cap, ipsec_crypto_offload, enable); in esw_ipsec_vf_set_bytype()
151 MLX5_SET(ipsec_cap, cap, ipsec_full_offload, enable); in esw_ipsec_vf_set_bytype()
158 MLX5_SET(set_hca_cap_in, hca_cap, opcode, MLX5_CMD_OP_SET_HCA_CAP); in esw_ipsec_vf_set_bytype()
159 MLX5_SET(set_hca_cap_in, hca_cap, other_function, 1); in esw_ipsec_vf_set_bytype()
160 MLX5_SET(set_hca_cap_in, hca_cap, function_id, vport->vport); in esw_ipsec_vf_set_bytype()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Daso.c101 MLX5_SET(cqc, cqc, cq_period_mode, MLX5_CQ_PERIOD_MODE_START_FROM_EQE); in create_aso_cq()
102 MLX5_SET(cqc, cqc, c_eqn_or_apu_element, eqn); in create_aso_cq()
103 MLX5_SET(cqc, cqc, uar_page, mdev->priv.uar->index); in create_aso_cq()
104 MLX5_SET(cqc, cqc, log_page_size, cq->wq_ctrl.buf.page_shift - in create_aso_cq()
131 MLX5_SET(cqc, cqc_data, log_cq_size, 1); in mlx5_aso_create_cq()
132 MLX5_SET(cqc, cqc_data, uar_page, mdev->priv.uar->index); in mlx5_aso_create_cq()
134 MLX5_SET(cqc, cqc_data, cqe_sz, CQE_STRIDE_128_PAD); in mlx5_aso_create_cq()
195 MLX5_SET(sqc, sqc, cqn, sq->cq.mcq.cqn); in create_aso_sq()
197 MLX5_SET(sqc, sqc, state, MLX5_SQC_STATE_RST); in create_aso_sq()
198 MLX5_SET(sqc, sqc, flush_in_error_en, 1); in create_aso_sq()
[all …]

12345