/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fs_cmd.c | 174 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 …]
|
D | vport.c | 50 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 …]
|
D | transobj.c | 43 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 …]
|
D | port.c | 56 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 …]
|
D | qos.c | 34 MLX5_SET(scheduling_context, sched_ctx, parent_element_id, parent_id); in mlx5_qos_create_leaf_node() 35 MLX5_SET(scheduling_context, sched_ctx, element_type, in mlx5_qos_create_leaf_node() 37 MLX5_SET(scheduling_context, sched_ctx, bw_share, bw_share); in mlx5_qos_create_leaf_node() 38 MLX5_SET(scheduling_context, sched_ctx, max_average_bw, max_avg_bw); in mlx5_qos_create_leaf_node() 54 MLX5_SET(scheduling_context, sched_ctx, parent_element_id, parent_id); in mlx5_qos_create_inner_node() 55 MLX5_SET(scheduling_context, sched_ctx, element_type, in mlx5_qos_create_inner_node() 57 MLX5_SET(scheduling_context, sched_ctx, bw_share, bw_share); in mlx5_qos_create_inner_node() 58 MLX5_SET(scheduling_context, sched_ctx, max_average_bw, max_avg_bw); in mlx5_qos_create_inner_node() 61 MLX5_SET(tsar_element, attr, tsar_type, TSAR_ELEMENT_TSAR_TYPE_DWRR); in mlx5_qos_create_inner_node() 78 MLX5_SET(scheduling_context, sched_ctx, bw_share, bw_share); in mlx5_qos_update_node() [all …]
|
D | mr.c | 45 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 …]
|
D | cq.c | 103 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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
D | mlx5hws_cmd.c | 40 MLX5_SET(general_obj_in_cmd_hdr, in, opcode, MLX5_CMD_OP_DESTROY_GENERAL_OBJECT); in hws_cmd_general_obj_destroy() 41 MLX5_SET(general_obj_in_cmd_hdr, in, obj_type, object_type); in hws_cmd_general_obj_destroy() 42 MLX5_SET(general_obj_in_cmd_hdr, in, obj_id, object_id); in hws_cmd_general_obj_destroy() 56 MLX5_SET(create_flow_table_in, in, opcode, MLX5_CMD_OP_CREATE_FLOW_TABLE); in mlx5hws_cmd_flow_table_create() 57 MLX5_SET(create_flow_table_in, in, table_type, ft_attr->type); in mlx5hws_cmd_flow_table_create() 60 MLX5_SET(flow_table_context, ft_ctx, level, ft_attr->level); in mlx5hws_cmd_flow_table_create() 61 MLX5_SET(flow_table_context, ft_ctx, rtc_valid, ft_attr->rtc_valid); in mlx5hws_cmd_flow_table_create() 62 MLX5_SET(flow_table_context, ft_ctx, reformat_en, ft_attr->reformat_en); in mlx5hws_cmd_flow_table_create() 63 MLX5_SET(flow_table_context, ft_ctx, decap_en, ft_attr->decap_en); in mlx5hws_cmd_flow_table_create() 81 MLX5_SET(modify_flow_table_in, in, opcode, MLX5_CMD_OP_MODIFY_FLOW_TABLE); in mlx5hws_cmd_flow_table_modify() [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_cmd.c | 16 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 …]
|
D | dr_ste_v0.c | 238 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 …]
|
D | dr_ste_v1.c | 268 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 …]
|
/linux-6.12.1/drivers/infiniband/hw/mlx5/ |
D | cmd.c | 23 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 …]
|
D | srq_cmd.c | 29 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 …]
|
D | cong.c | 184 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 …]
|
D | qpc.c | 201 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 …]
|
D | qp.c | 1031 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() 1161 MLX5_SET(qpc, qpc, uar_page, uar_index); in _create_kernel_qp() 1162 MLX5_SET(qpc, qpc, ts_format, mlx5_get_qp_default_ts(dev->mdev)); in _create_kernel_qp() 1163 MLX5_SET(qpc, qpc, log_page_size, qp->buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT); in _create_kernel_qp() 1166 MLX5_SET(qpc, qpc, fre, 1); in _create_kernel_qp() 1167 MLX5_SET(qpc, qpc, rlky, 1); in _create_kernel_qp() 1170 MLX5_SET(qpc, qpc, deth_sqpn, 1); in _create_kernel_qp() [all …]
|
D | devx.c | 134 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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tir.c | 57 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 …]
|
D | port.c | 68 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-6.12.1/drivers/vdpa/mlx5/core/ |
D | resources.c | 16 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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | conn.c | 236 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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
D | cmd.c | 12 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()
|
D | vhca_event.c | 37 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-6.12.1/drivers/vfio/pci/mlx5/ |
D | cmd.c | 61 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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_offload.c | 100 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 …]
|