/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fs_cmd.c | 173 MLX5_SET(set_flow_table_root_in, in, opcode, in mlx5_cmd_set_slave_root_fdb() 175 MLX5_SET(set_flow_table_root_in, in, table_type, in mlx5_cmd_set_slave_root_fdb() 178 MLX5_SET(set_flow_table_root_in, in, in mlx5_cmd_set_slave_root_fdb() 180 MLX5_SET(set_flow_table_root_in, in, in mlx5_cmd_set_slave_root_fdb() 183 MLX5_SET(set_flow_table_root_in, in, table_id, in mlx5_cmd_set_slave_root_fdb() 189 MLX5_SET(set_flow_table_root_in, in, table_id, in mlx5_cmd_set_slave_root_fdb() 227 MLX5_SET(set_flow_table_root_in, in, opcode, in mlx5_cmd_update_root_ft() 229 MLX5_SET(set_flow_table_root_in, in, table_type, ft->type); in mlx5_cmd_update_root_ft() 232 MLX5_SET(set_flow_table_root_in, in, op_mod, 1); in mlx5_cmd_update_root_ft() 234 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 | 31 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 …]
|
D | mr.c | 44 MLX5_SET(create_mkey_in, in, opcode, MLX5_CMD_OP_CREATE_MKEY); in mlx5_core_create_mkey() 63 MLX5_SET(destroy_mkey_in, in, opcode, MLX5_CMD_OP_DESTROY_MKEY); in mlx5_core_destroy_mkey() 64 MLX5_SET(destroy_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey)); in mlx5_core_destroy_mkey() 75 MLX5_SET(query_mkey_in, in, opcode, MLX5_CMD_OP_QUERY_MKEY); in mlx5_core_query_mkey() 76 MLX5_SET(query_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey)); in mlx5_core_query_mkey() 101 MLX5_SET(create_psv_in, in, opcode, MLX5_CMD_OP_CREATE_PSV); in mlx5_core_create_psv() 102 MLX5_SET(create_psv_in, in, pd, pdn); in mlx5_core_create_psv() 103 MLX5_SET(create_psv_in, in, num_psv, npsvs); in mlx5_core_create_psv() 120 MLX5_SET(destroy_psv_in, in, opcode, MLX5_CMD_OP_DESTROY_PSV); in mlx5_core_destroy_psv() 121 MLX5_SET(destroy_psv_in, in, psvn, psv_num); in mlx5_core_destroy_psv()
|
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.1.9/drivers/infiniband/hw/mlx5/ |
D | cmd.c | 14 MLX5_SET(query_special_contexts_in, in, opcode, in mlx5_cmd_dump_fill_mkey() 29 MLX5_SET(query_special_contexts_in, in, opcode, in mlx5_cmd_null_mkey() 43 MLX5_SET(query_cong_params_in, in, opcode, in mlx5_cmd_query_cong_params() 45 MLX5_SET(query_cong_params_in, in, cong_protocol, cong_point); in mlx5_cmd_query_cong_params() 54 MLX5_SET(destroy_tir_in, in, opcode, MLX5_CMD_OP_DESTROY_TIR); in mlx5_cmd_destroy_tir() 55 MLX5_SET(destroy_tir_in, in, tirn, tirn); in mlx5_cmd_destroy_tir() 56 MLX5_SET(destroy_tir_in, in, uid, uid); in mlx5_cmd_destroy_tir() 64 MLX5_SET(destroy_tis_in, in, opcode, MLX5_CMD_OP_DESTROY_TIS); in mlx5_cmd_destroy_tis() 65 MLX5_SET(destroy_tis_in, in, tisn, tisn); in mlx5_cmd_destroy_tis() 66 MLX5_SET(destroy_tis_in, in, uid, uid); in mlx5_cmd_destroy_tis() [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 | 171 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val() 176 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val() 181 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val() 186 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val() 191 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val() 196 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val() 201 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val() 206 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val() 211 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val() 216 MLX5_SET(cong_control_r_roce_ecn_rp, field, in mlx5_ib_set_cc_param_mask_val() [all …]
|
D | qpc.c | 207 MLX5_SET(destroy_dct_in, in, opcode, MLX5_CMD_OP_DESTROY_DCT); in _mlx5_core_destroy_dct() 208 MLX5_SET(destroy_dct_in, in, dctn, qp->qpn); in _mlx5_core_destroy_dct() 209 MLX5_SET(destroy_dct_in, in, uid, qp->uid); in _mlx5_core_destroy_dct() 221 MLX5_SET(create_dct_in, in, opcode, MLX5_CMD_OP_CREATE_DCT); in mlx5_core_create_dct() 245 MLX5_SET(create_qp_in, in, opcode, MLX5_CMD_OP_CREATE_QP); in mlx5_qpc_create_qp() 264 MLX5_SET(destroy_qp_in, din, opcode, MLX5_CMD_OP_DESTROY_QP); in mlx5_qpc_create_qp() 265 MLX5_SET(destroy_qp_in, din, qpn, qp->qpn); in mlx5_qpc_create_qp() 266 MLX5_SET(destroy_qp_in, din, uid, qp->uid); in mlx5_qpc_create_qp() 277 MLX5_SET(drain_dct_in, in, opcode, MLX5_CMD_OP_DRAIN_DCT); in mlx5_core_drain_dct() 278 MLX5_SET(drain_dct_in, in, dctn, qp->qpn); in mlx5_core_drain_dct() [all …]
|
D | qp.c | 950 MLX5_SET(create_qp_in, *in, uid, uid); in _create_user_qp() 955 MLX5_SET(qpc, qpc, log_page_size, in _create_user_qp() 957 MLX5_SET(qpc, qpc, page_offset, page_offset_quantized); in _create_user_qp() 959 MLX5_SET(qpc, qpc, uar_page, uar_index); in _create_user_qp() 1082 MLX5_SET(qpc, qpc, uar_page, uar_index); in _create_kernel_qp() 1083 MLX5_SET(qpc, qpc, ts_format, mlx5_get_qp_default_ts(dev->mdev)); in _create_kernel_qp() 1084 MLX5_SET(qpc, qpc, log_page_size, qp->buf.page_shift - MLX5_ADAPTER_PAGE_SHIFT); in _create_kernel_qp() 1087 MLX5_SET(qpc, qpc, fre, 1); in _create_kernel_qp() 1088 MLX5_SET(qpc, qpc, rlky, 1); in _create_kernel_qp() 1091 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() 682 MLX5_SET(create_mkey_in, in, mkey_umem_valid, 1); in devx_set_umem_valid() 688 MLX5_SET(create_cq_in, in, cq_umem_valid, 1); in devx_set_umem_valid() 690 MLX5_SET(cqc, cqc, dbr_umem_valid, 1); in devx_set_umem_valid() 698 MLX5_SET(qpc, qpc, dbr_umem_valid, 1); in devx_set_umem_valid() 699 MLX5_SET(create_qp_in, in, wq_umem_valid, 1); in devx_set_umem_valid() 709 MLX5_SET(wq, wq, dbr_umem_valid, 1); in devx_set_umem_valid() [all …]
|
/linux-6.1.9/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() 47 MLX5_SET(query_hca_cap_in, in, opcode, MLX5_CMD_OP_QUERY_HCA_CAP); in mlx5dr_cmd_query_gvmi() 48 MLX5_SET(query_hca_cap_in, in, other_function, other_vport); in mlx5dr_cmd_query_gvmi() 49 MLX5_SET(query_hca_cap_in, in, function_id, vport_number); in mlx5dr_cmd_query_gvmi() 50 MLX5_SET(query_hca_cap_in, in, op_mod, in mlx5dr_cmd_query_gvmi() 95 MLX5_SET(query_nic_vport_context_in, in, opcode, in dr_cmd_query_nic_vport_roce_en() 97 MLX5_SET(query_nic_vport_context_in, in, vport_number, vport); in dr_cmd_query_nic_vport_roce_en() 98 MLX5_SET(query_nic_vport_context_in, in, other_vport, !!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 | 267 MLX5_SET(ste_match_bwc_v1, hw_ste_p, entry_format, entry_type); in dr_ste_v1_set_entry_type() 274 MLX5_SET(ste_match_bwc_v1, hw_ste_p, miss_address_39_32, index >> 26); in dr_ste_v1_set_miss_addr() 275 MLX5_SET(ste_match_bwc_v1, hw_ste_p, miss_address_31_6, index); in dr_ste_v1_set_miss_addr() 289 MLX5_SET(ste_match_bwc_v1, hw_ste_p, byte_mask, byte_mask); in dr_ste_v1_set_byte_mask() 299 MLX5_SET(ste_match_bwc_v1, hw_ste_p, entry_format, lu_type >> 8); in dr_ste_v1_set_lu_type() 300 MLX5_SET(ste_match_bwc_v1, hw_ste_p, match_definer_ctx_idx, lu_type & 0xFF); in dr_ste_v1_set_lu_type() 305 MLX5_SET(ste_match_bwc_v1, hw_ste_p, next_entry_format, lu_type >> 8); in dr_ste_v1_set_next_lu_type() 306 MLX5_SET(ste_match_bwc_v1, hw_ste_p, hash_definer_ctx_idx, lu_type & 0xFF); in dr_ste_v1_set_next_lu_type() 319 MLX5_SET(ste_match_bwc_v1, hw_ste_p, next_table_base_63_48, gvmi); in dr_ste_v1_set_hit_gvmi() 326 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 …]
|
D | dr_send.c | 131 MLX5_SET(qpc, temp_qpc, log_rq_stride, ilog2(MLX5_SEND_WQE_DS) - 4); in dr_create_rc_qp() 132 MLX5_SET(qpc, temp_qpc, log_rq_size, ilog2(dr_qp->rq.wqe_cnt)); in dr_create_rc_qp() 133 MLX5_SET(qpc, temp_qpc, log_sq_size, ilog2(dr_qp->sq.wqe_cnt)); in dr_create_rc_qp() 160 MLX5_SET(qpc, qpc, st, MLX5_QP_ST_RC); in dr_create_rc_qp() 161 MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED); in dr_create_rc_qp() 162 MLX5_SET(qpc, qpc, isolate_vl_tc, attr->isolate_vl_tc); in dr_create_rc_qp() 163 MLX5_SET(qpc, qpc, pd, attr->pdn); in dr_create_rc_qp() 164 MLX5_SET(qpc, qpc, uar_page, attr->uar->index); in dr_create_rc_qp() 165 MLX5_SET(qpc, qpc, log_page_size, in dr_create_rc_qp() 167 MLX5_SET(qpc, qpc, fre, 1); in dr_create_rc_qp() [all …]
|
/linux-6.1.9/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.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tir.c | 54 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 …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
D | vhca_event.c | 28 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 …]
|
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()
|
/linux-6.1.9/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.1.9/drivers/vfio/pci/mlx5/ |
D | cmd.c | 24 MLX5_SET(suspend_vhca_in, in, opcode, MLX5_CMD_OP_SUSPEND_VHCA); in mlx5vf_cmd_suspend_vhca() 25 MLX5_SET(suspend_vhca_in, in, vhca_id, mvdev->vhca_id); in mlx5vf_cmd_suspend_vhca() 26 MLX5_SET(suspend_vhca_in, in, op_mod, op_mod); in mlx5vf_cmd_suspend_vhca() 40 MLX5_SET(resume_vhca_in, in, opcode, MLX5_CMD_OP_RESUME_VHCA); in mlx5vf_cmd_resume_vhca() 41 MLX5_SET(resume_vhca_in, in, vhca_id, mvdev->vhca_id); in mlx5vf_cmd_resume_vhca() 42 MLX5_SET(resume_vhca_in, in, op_mod, op_mod); in mlx5vf_cmd_resume_vhca() 58 MLX5_SET(query_vhca_migration_state_in, in, opcode, in mlx5vf_cmd_query_vhca_migration_state() 60 MLX5_SET(query_vhca_migration_state_in, in, vhca_id, mvdev->vhca_id); in mlx5vf_cmd_query_vhca_migration_state() 61 MLX5_SET(query_vhca_migration_state_in, in, op_mod, 0); in mlx5vf_cmd_query_vhca_migration_state() 193 MLX5_SET(query_hca_cap_in, in, opcode, MLX5_CMD_OP_QUERY_HCA_CAP); in mlx5vf_cmd_get_vhca_id() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_offload.c | 65 MLX5_SET(ipsec_obj, obj, icv_length, MLX5_IPSEC_OBJECT_ICV_LEN_16B); in mlx5_create_ipsec_obj() 70 MLX5_SET(ipsec_obj, obj, esn_en, 1); in mlx5_create_ipsec_obj() 71 MLX5_SET(ipsec_obj, obj, esn_msb, attrs->esn); in mlx5_create_ipsec_obj() 73 MLX5_SET(ipsec_obj, obj, esn_overlap, 1); in mlx5_create_ipsec_obj() 76 MLX5_SET(ipsec_obj, obj, dekn, sa_entry->enc_key_id); in mlx5_create_ipsec_obj() 79 MLX5_SET(general_obj_in_cmd_hdr, in, opcode, in mlx5_create_ipsec_obj() 81 MLX5_SET(general_obj_in_cmd_hdr, in, obj_type, in mlx5_create_ipsec_obj() 98 MLX5_SET(general_obj_in_cmd_hdr, in, opcode, in mlx5_destroy_ipsec_obj() 100 MLX5_SET(general_obj_in_cmd_hdr, in, obj_type, in mlx5_destroy_ipsec_obj() 102 MLX5_SET(general_obj_in_cmd_hdr, in, obj_id, sa_entry->ipsec_obj_id); in mlx5_destroy_ipsec_obj() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | crypto.c | 43 MLX5_SET(encryption_key_obj, obj, key_size, general_obj_key_size); in mlx5_create_encryption_key() 44 MLX5_SET(encryption_key_obj, obj, key_type, key_type); in mlx5_create_encryption_key() 45 MLX5_SET(general_obj_in_cmd_hdr, in, opcode, in mlx5_create_encryption_key() 47 MLX5_SET(general_obj_in_cmd_hdr, in, obj_type, in mlx5_create_encryption_key() 49 MLX5_SET(encryption_key_obj, obj, pd, mdev->mlx5e_res.hw_objs.pdn); in mlx5_create_encryption_key() 66 MLX5_SET(general_obj_in_cmd_hdr, in, opcode, in mlx5_destroy_encryption_key() 68 MLX5_SET(general_obj_in_cmd_hdr, in, obj_type, in mlx5_destroy_encryption_key() 70 MLX5_SET(general_obj_in_cmd_hdr, in, obj_id, key_id); in mlx5_destroy_encryption_key()
|