Home
last modified time | relevance | path

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

123456

/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
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 …]
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 …]
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 …]
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 …]
Dqos.c31 MLX5_SET(scheduling_context, sched_ctx, parent_element_id, parent_id); in mlx5_qos_create_leaf_node()
32 MLX5_SET(scheduling_context, sched_ctx, element_type, in mlx5_qos_create_leaf_node()
34 MLX5_SET(scheduling_context, sched_ctx, bw_share, bw_share); in mlx5_qos_create_leaf_node()
35 MLX5_SET(scheduling_context, sched_ctx, max_average_bw, max_avg_bw); in mlx5_qos_create_leaf_node()
47 MLX5_SET(scheduling_context, sched_ctx, parent_element_id, parent_id); in mlx5_qos_create_inner_node()
48 MLX5_SET(scheduling_context, sched_ctx, element_type, in mlx5_qos_create_inner_node()
50 MLX5_SET(scheduling_context, sched_ctx, bw_share, bw_share); in mlx5_qos_create_inner_node()
51 MLX5_SET(scheduling_context, sched_ctx, max_average_bw, max_avg_bw); in mlx5_qos_create_inner_node()
54 MLX5_SET(tsar_element, attr, tsar_type, TSAR_ELEMENT_TSAR_TYPE_DWRR); in mlx5_qos_create_inner_node()
71 MLX5_SET(scheduling_context, sched_ctx, bw_share, bw_share); in mlx5_qos_update_node()
[all …]
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 …]
Dcq.c103 MLX5_SET(create_cq_in, in, opcode, MLX5_CMD_OP_CREATE_CQ); in mlx5_create_cq()
145 MLX5_SET(destroy_cq_in, din, opcode, MLX5_CMD_OP_DESTROY_CQ); in mlx5_create_cq()
146 MLX5_SET(destroy_cq_in, din, cqn, cq->cqn); in mlx5_create_cq()
147 MLX5_SET(destroy_cq_in, din, uid, cq->uid); in mlx5_create_cq()
173 MLX5_SET(destroy_cq_in, in, opcode, MLX5_CMD_OP_DESTROY_CQ); in mlx5_core_destroy_cq()
174 MLX5_SET(destroy_cq_in, in, cqn, cq->cqn); in mlx5_core_destroy_cq()
175 MLX5_SET(destroy_cq_in, in, uid, cq->uid); in mlx5_core_destroy_cq()
193 MLX5_SET(query_cq_in, in, opcode, MLX5_CMD_OP_QUERY_CQ); in mlx5_core_query_cq()
194 MLX5_SET(query_cq_in, in, cqn, cq->cqn); in mlx5_core_query_cq()
204 MLX5_SET(modify_cq_in, in, opcode, MLX5_CMD_OP_MODIFY_CQ); in mlx5_core_modify_cq()
[all …]
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_cmd.c16 MLX5_SET(query_esw_vport_context_in, in, opcode, in mlx5dr_cmd_query_esw_vport_context()
18 MLX5_SET(query_esw_vport_context_in, in, other_vport, other_vport); in mlx5dr_cmd_query_esw_vport_context()
19 MLX5_SET(query_esw_vport_context_in, in, vport_number, vport_number); in mlx5dr_cmd_query_esw_vport_context()
48 MLX5_SET(query_hca_cap_in, in, opcode, MLX5_CMD_OP_QUERY_HCA_CAP); in mlx5dr_cmd_query_gvmi()
49 MLX5_SET(query_hca_cap_in, in, other_function, other_vport); in mlx5dr_cmd_query_gvmi()
50 MLX5_SET(query_hca_cap_in, in, function_id, mlx5_vport_to_func_id(mdev, vport_number, ec_vf_func)); in mlx5dr_cmd_query_gvmi()
51 MLX5_SET(query_hca_cap_in, in, ec_vf_function, ec_vf_func); in mlx5dr_cmd_query_gvmi()
52 MLX5_SET(query_hca_cap_in, in, op_mod, in mlx5dr_cmd_query_gvmi()
97 MLX5_SET(query_nic_vport_context_in, in, opcode, in dr_cmd_query_nic_vport_roce_en()
99 MLX5_SET(query_nic_vport_context_in, in, vport_number, vport); in dr_cmd_query_nic_vport_roce_en()
[all …]
Ddr_ste_v0.c238 MLX5_SET(ste_general, hw_ste_p, entry_type, entry_type); in dr_ste_v0_set_entry_type()
251 MLX5_SET(ste_rx_steering_mult, hw_ste_p, miss_address_39_32, index >> 26); in dr_ste_v0_set_miss_addr()
252 MLX5_SET(ste_rx_steering_mult, hw_ste_p, miss_address_31_6, index); in dr_ste_v0_set_miss_addr()
266 MLX5_SET(ste_general, hw_ste_p, byte_mask, byte_mask); in dr_ste_v0_set_byte_mask()
276 MLX5_SET(ste_general, hw_ste_p, entry_sub_type, lu_type); in dr_ste_v0_set_lu_type()
281 MLX5_SET(ste_general, hw_ste_p, next_lu_type, lu_type); in dr_ste_v0_set_next_lu_type()
291 MLX5_SET(ste_general, hw_ste_p, next_table_base_63_48, gvmi); in dr_ste_v0_set_hit_gvmi()
298 MLX5_SET(ste_general, hw_ste_p, next_table_base_39_32_size, index >> 27); in dr_ste_v0_set_hit_addr()
299 MLX5_SET(ste_general, hw_ste_p, next_table_base_31_5_size, index); in dr_ste_v0_set_hit_addr()
312 MLX5_SET(ste_rx_steering_mult, hw_ste_p, gvmi, gvmi); in dr_ste_v0_init_full()
[all …]
Ddr_ste_v1.c268 MLX5_SET(ste_match_bwc_v1, hw_ste_p, entry_format, entry_type); in dr_ste_v1_set_entry_type()
285 MLX5_SET(ste_match_bwc_v1, hw_ste_p, miss_address_39_32, index >> 26); in dr_ste_v1_set_miss_addr()
286 MLX5_SET(ste_match_bwc_v1, hw_ste_p, miss_address_31_6, index); in dr_ste_v1_set_miss_addr()
300 MLX5_SET(ste_match_bwc_v1, hw_ste_p, byte_mask, byte_mask); in dr_ste_v1_set_byte_mask()
310 MLX5_SET(ste_match_bwc_v1, hw_ste_p, entry_format, lu_type >> 8); in dr_ste_v1_set_lu_type()
311 MLX5_SET(ste_match_bwc_v1, hw_ste_p, match_definer_ctx_idx, lu_type & 0xFF); in dr_ste_v1_set_lu_type()
316 MLX5_SET(ste_match_bwc_v1, hw_ste_p, next_entry_format, lu_type >> 8); in dr_ste_v1_set_next_lu_type()
317 MLX5_SET(ste_match_bwc_v1, hw_ste_p, hash_definer_ctx_idx, lu_type & 0xFF); in dr_ste_v1_set_next_lu_type()
330 MLX5_SET(ste_match_bwc_v1, hw_ste_p, next_table_base_63_48, gvmi); in dr_ste_v1_set_hit_gvmi()
337 MLX5_SET(ste_match_bwc_v1, hw_ste_p, next_table_base_39_32_size, index >> 27); in dr_ste_v1_set_hit_addr()
[all …]
Ddr_send.c309 MLX5_SET(qpc, temp_qpc, log_rq_stride, ilog2(MLX5_SEND_WQE_DS) - 4); in dr_create_rc_qp()
310 MLX5_SET(qpc, temp_qpc, log_rq_size, ilog2(dr_qp->rq.wqe_cnt)); in dr_create_rc_qp()
311 MLX5_SET(qpc, temp_qpc, log_sq_size, ilog2(dr_qp->sq.wqe_cnt)); in dr_create_rc_qp()
338 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_RC); in dr_create_rc_qp()
339 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in dr_create_rc_qp()
340 MLX5_SET(qpc, qpc, isolate_vl_tc, attr->isolate_vl_tc); in dr_create_rc_qp()
341 MLX5_SET(qpc, qpc, pd, attr->pdn); in dr_create_rc_qp()
342 MLX5_SET(qpc, qpc, uar_page, attr->uar->index); in dr_create_rc_qp()
343 MLX5_SET(qpc, qpc, log_page_size, in dr_create_rc_qp()
345 MLX5_SET(qpc, qpc, fre, 1); in dr_create_rc_qp()
[all …]
/Linux-v6.6/drivers/infiniband/hw/mlx5/
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 …]
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 …]
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 …]
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()
257 MLX5_SET(destroy_qp_in, din, opcode, MLX5_CMD_OP_DESTROY_QP); in mlx5_qpc_create_qp()
258 MLX5_SET(destroy_qp_in, din, qpn, qp->qpn); in mlx5_qpc_create_qp()
259 MLX5_SET(destroy_qp_in, din, uid, qp->uid); in mlx5_qpc_create_qp()
270 MLX5_SET(drain_dct_in, in, opcode, MLX5_CMD_OP_DRAIN_DCT); in mlx5_core_drain_dct()
271 MLX5_SET(drain_dct_in, in, dctn, qp->qpn); in mlx5_core_drain_dct()
[all …]
Dqp.c1031 MLX5_SET(create_qp_in, *in, uid, uid); in _create_user_qp()
1036 MLX5_SET(qpc, qpc, log_page_size, in _create_user_qp()
1038 MLX5_SET(qpc, qpc, page_offset, page_offset_quantized); in _create_user_qp()
1040 MLX5_SET(qpc, qpc, uar_page, uar_index); in _create_user_qp()
1163 MLX5_SET(qpc, qpc, uar_page, uar_index); in _create_kernel_qp()
1164 MLX5_SET(qpc, qpc, ts_format, mlx5_get_qp_default_ts(dev->mdev)); in _create_kernel_qp()
1165 MLX5_SET(qpc, qpc, log_page_size, qp->buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT); in _create_kernel_qp()
1168 MLX5_SET(qpc, qpc, fre, 1); in _create_kernel_qp()
1169 MLX5_SET(qpc, qpc, rlky, 1); in _create_kernel_qp()
1172 MLX5_SET(qpc, qpc, deth_sqpn, 1); in _create_kernel_qp()
[all …]
Ddevx.c134 MLX5_SET(create_uctx_in, in, opcode, MLX5_CMD_OP_CREATE_UCTX); in mlx5_ib_devx_create()
135 MLX5_SET(uctx, uctx, cap, cap); in mlx5_ib_devx_create()
150 MLX5_SET(destroy_uctx_in, in, opcode, MLX5_CMD_OP_DESTROY_UCTX); in mlx5_ib_devx_destroy()
151 MLX5_SET(destroy_uctx_in, in, uid, uid); in mlx5_ib_devx_destroy()
696 MLX5_SET(create_mkey_in, in, mkey_umem_valid, 1); in devx_set_umem_valid()
702 MLX5_SET(create_cq_in, in, cq_umem_valid, 1); in devx_set_umem_valid()
704 MLX5_SET(cqc, cqc, dbr_umem_valid, 1); in devx_set_umem_valid()
712 MLX5_SET(qpc, qpc, dbr_umem_valid, 1); in devx_set_umem_valid()
713 MLX5_SET(create_qp_in, in, wq_umem_valid, 1); in devx_set_umem_valid()
723 MLX5_SET(wq, wq, dbr_umem_valid, 1); in devx_set_umem_valid()
[all …]
/Linux-v6.6/drivers/vdpa/mlx5/core/
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-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtir.c54 MLX5_SET(tirc, tirc, transport_domain, tdn); in mlx5e_tir_builder_build_inline()
55 MLX5_SET(tirc, tirc, disp_type, MLX5_TIRC_DISP_TYPE_DIRECT); in mlx5e_tir_builder_build_inline()
56 MLX5_SET(tirc, tirc, rx_hash_fn, MLX5_RX_HASH_FN_NONE); in mlx5e_tir_builder_build_inline()
57 MLX5_SET(tirc, tirc, inline_rqn, rqn); in mlx5e_tir_builder_build_inline()
67 MLX5_SET(tirc, tirc, transport_domain, tdn); in mlx5e_tir_builder_build_rqt()
68 MLX5_SET(tirc, tirc, disp_type, MLX5_TIRC_DISP_TYPE_INDIRECT); in mlx5e_tir_builder_build_rqt()
69 MLX5_SET(tirc, tirc, indirect_table, rqtn); in mlx5e_tir_builder_build_rqt()
70 MLX5_SET(tirc, tirc, tunneled_offload_en, inner_ft_support); in mlx5e_tir_builder_build_rqt()
80 MLX5_SET(modify_tir_in, builder->in, bitmask.packet_merge, 1); in mlx5e_tir_builder_build_packet_merge()
84 MLX5_SET(tirc, tirc, packet_merge_mask, in mlx5e_tir_builder_build_packet_merge()
[all …]
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-v6.6/drivers/net/ethernet/mellanox/mlx5/core/fpga/
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 …]
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/sf/
Dvhca_event.c28 MLX5_SET(query_vhca_state_in, in, opcode, MLX5_CMD_OP_QUERY_VHCA_STATE); in mlx5_cmd_query_vhca_state()
29 MLX5_SET(query_vhca_state_in, in, function_id, function_id); in mlx5_cmd_query_vhca_state()
30 MLX5_SET(query_vhca_state_in, in, embedded_cpu_function, 0); in mlx5_cmd_query_vhca_state()
40 MLX5_SET(modify_vhca_state_in, in, opcode, MLX5_CMD_OP_MODIFY_VHCA_STATE); in mlx5_cmd_modify_vhca_state()
41 MLX5_SET(modify_vhca_state_in, in, function_id, function_id); in mlx5_cmd_modify_vhca_state()
42 MLX5_SET(modify_vhca_state_in, in, embedded_cpu_function, 0); in mlx5_cmd_modify_vhca_state()
52 MLX5_SET(modify_vhca_state_in, in, opcode, MLX5_CMD_OP_MODIFY_VHCA_STATE); in mlx5_modify_vhca_sw_id()
53 MLX5_SET(modify_vhca_state_in, in, function_id, function_id); in mlx5_modify_vhca_sw_id()
54 MLX5_SET(modify_vhca_state_in, in, embedded_cpu_function, 0); in mlx5_modify_vhca_sw_id()
55 MLX5_SET(modify_vhca_state_in, in, vhca_state_field_select.sw_function_id, 1); in mlx5_modify_vhca_sw_id()
[all …]
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()
/Linux-v6.6/drivers/vfio/pci/mlx5/
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()
125 MLX5_SET(query_vhca_migration_state_in, in, opcode, in mlx5vf_cmd_query_vhca_migration_state()
127 MLX5_SET(query_vhca_migration_state_in, in, vhca_id, mvdev->vhca_id); in mlx5vf_cmd_query_vhca_migration_state()
128 MLX5_SET(query_vhca_migration_state_in, in, op_mod, 0); in mlx5vf_cmd_query_vhca_migration_state()
129 MLX5_SET(query_vhca_migration_state_in, in, incremental, in mlx5vf_cmd_query_vhca_migration_state()
[all …]
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_offload.c93 MLX5_SET(ipsec_aso, aso_ctx, esn_event_arm, 1); in mlx5e_ipsec_packet_setup()
96 MLX5_SET(ipsec_aso, aso_ctx, window_sz, in mlx5e_ipsec_packet_setup()
98 MLX5_SET(ipsec_aso, aso_ctx, mode, in mlx5e_ipsec_packet_setup()
101 MLX5_SET(ipsec_aso, aso_ctx, mode_parameter, in mlx5e_ipsec_packet_setup()
106 MLX5_SET(ipsec_obj, obj, ipsec_aso_access_pd, pdn); in mlx5e_ipsec_packet_setup()
107 MLX5_SET(ipsec_obj, obj, full_offload, 1); in mlx5e_ipsec_packet_setup()
108 MLX5_SET(ipsec_aso, aso_ctx, valid, 1); in mlx5e_ipsec_packet_setup()
115 MLX5_SET(ipsec_obj, obj, aso_return_reg, MLX5_IPSEC_ASO_REG_C_4_5); in mlx5e_ipsec_packet_setup()
117 MLX5_SET(ipsec_aso, aso_ctx, mode, MLX5_IPSEC_ASO_INC_SN); in mlx5e_ipsec_packet_setup()
120 MLX5_SET(ipsec_aso, aso_ctx, remove_flow_pkt_cnt, in mlx5e_ipsec_packet_setup()
[all …]

123456