| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | 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() 58 MLX5_SET(create_flow_table_in, in, uid, ft_attr->uid); in mlx5hws_cmd_flow_table_create() 61 MLX5_SET(flow_table_context, ft_ctx, level, ft_attr->level); in mlx5hws_cmd_flow_table_create() 62 MLX5_SET(flow_table_context, ft_ctx, rtc_valid, ft_attr->rtc_valid); in mlx5hws_cmd_flow_table_create() 63 MLX5_SET(flow_table_context, ft_ctx, reformat_en, ft_attr->reformat_en); in mlx5hws_cmd_flow_table_create() 64 MLX5_SET(flow_table_context, ft_ctx, decap_en, ft_attr->decap_en); in mlx5hws_cmd_flow_table_create() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | dr_ste_v3.c | 10 MLX5_SET(ste_double_action_insert_with_ptr_v3, d_action, action_id, in dr_ste_v3_set_encap() 13 MLX5_SET(ste_double_action_insert_with_ptr_v3, d_action, size, size / 2); in dr_ste_v3_set_encap() 14 MLX5_SET(ste_double_action_insert_with_ptr_v3, d_action, pointer, reformat_id); in dr_ste_v3_set_encap() 15 MLX5_SET(ste_double_action_insert_with_ptr_v3, d_action, attributes, in dr_ste_v3_set_encap() 23 MLX5_SET(ste_double_action_insert_with_inline_v3, d_action, action_id, in dr_ste_v3_set_push_vlan() 26 MLX5_SET(ste_double_action_insert_with_inline_v3, d_action, start_offset, in dr_ste_v3_set_push_vlan() 28 MLX5_SET(ste_double_action_insert_with_inline_v3, d_action, inline_data, vlan_hdr); in dr_ste_v3_set_push_vlan() 35 MLX5_SET(ste_single_action_remove_header_size_v3, s_action, in dr_ste_v3_set_pop_vlan() 37 MLX5_SET(ste_single_action_remove_header_size_v3, s_action, in dr_ste_v3_set_pop_vlan() 40 MLX5_SET(ste_single_action_remove_header_size_v3, s_action, in dr_ste_v3_set_pop_vlan() [all …]
|
| H A D | dr_ste_v1.c | 138 MLX5_SET(ste_match_bwc_v1, hw_ste_p, entry_format, entry_type); in dr_ste_v1_set_entry_type() 155 MLX5_SET(ste_match_bwc_v1, hw_ste_p, miss_address_39_32, index >> 26); in dr_ste_v1_set_miss_addr() 156 MLX5_SET(ste_match_bwc_v1, hw_ste_p, miss_address_31_6, index); in dr_ste_v1_set_miss_addr() 170 MLX5_SET(ste_match_bwc_v1, hw_ste_p, byte_mask, byte_mask); in dr_ste_v1_set_byte_mask() 180 MLX5_SET(ste_match_bwc_v1, hw_ste_p, entry_format, lu_type >> 8); in dr_ste_v1_set_lu_type() 181 MLX5_SET(ste_match_bwc_v1, hw_ste_p, match_definer_ctx_idx, lu_type & 0xFF); in dr_ste_v1_set_lu_type() 186 MLX5_SET(ste_match_bwc_v1, hw_ste_p, next_entry_format, lu_type >> 8); in dr_ste_v1_set_next_lu_type() 187 MLX5_SET(ste_match_bwc_v1, hw_ste_p, hash_definer_ctx_idx, lu_type & 0xFF); in dr_ste_v1_set_next_lu_type() 200 MLX5_SET(ste_match_bwc_v1, hw_ste_p, next_table_base_63_48, gvmi); in dr_ste_v1_set_hit_gvmi() 207 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 …]
|
| H A D | dr_send.c | 276 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/infiniband/hw/mlx5/ |
| H A 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 …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A 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 …]
|
| H A 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 …]
|
| H A D | qos.c | 36 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 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 …]
|
| H A D | cq.c | 122 MLX5_SET(create_cq_in, in, opcode, MLX5_CMD_OP_CREATE_CQ); in mlx5_create_cq() 172 MLX5_SET(destroy_cq_in, din, opcode, MLX5_CMD_OP_DESTROY_CQ); in mlx5_create_cq() 173 MLX5_SET(destroy_cq_in, din, cqn, cq->cqn); in mlx5_create_cq() 174 MLX5_SET(destroy_cq_in, din, uid, cq->uid); in mlx5_create_cq() 200 MLX5_SET(destroy_cq_in, in, opcode, MLX5_CMD_OP_DESTROY_CQ); in mlx5_core_destroy_cq() 201 MLX5_SET(destroy_cq_in, in, cqn, cq->cqn); in mlx5_core_destroy_cq() 202 MLX5_SET(destroy_cq_in, in, uid, cq->uid); in mlx5_core_destroy_cq() 220 MLX5_SET(query_cq_in, in, opcode, MLX5_CMD_OP_QUERY_CQ); in mlx5_core_query_cq() 221 MLX5_SET(query_cq_in, in, cqn, cq->cqn); in mlx5_core_query_cq() 231 MLX5_SET(modify_cq_in, in, opcode, MLX5_CMD_OP_MODIFY_CQ); in mlx5_core_modify_cq() [all …]
|
| H A D | rl.c | 110 MLX5_SET(create_scheduling_element_in, in, opcode, in mlx5_create_scheduling_element_cmd() 112 MLX5_SET(create_scheduling_element_in, in, scheduling_hierarchy, in mlx5_create_scheduling_element_cmd() 134 MLX5_SET(modify_scheduling_element_in, in, opcode, in mlx5_modify_scheduling_element_cmd() 136 MLX5_SET(modify_scheduling_element_in, in, scheduling_element_id, in mlx5_modify_scheduling_element_cmd() 138 MLX5_SET(modify_scheduling_element_in, in, modify_bitmask, in mlx5_modify_scheduling_element_cmd() 140 MLX5_SET(modify_scheduling_element_in, in, scheduling_hierarchy, in mlx5_modify_scheduling_element_cmd() 152 MLX5_SET(destroy_scheduling_element_in, in, opcode, in mlx5_destroy_scheduling_element_cmd() 154 MLX5_SET(destroy_scheduling_element_in, in, scheduling_element_id, in mlx5_destroy_scheduling_element_cmd() 156 MLX5_SET(destroy_scheduling_element_in, in, scheduling_hierarchy, in mlx5_destroy_scheduling_element_cmd() 213 MLX5_SET(set_pp_rate_limit_in, in, opcode, in mlx5_set_pp_rate_limit_cmd() [all …]
|
| H A D | wc.c | 101 MLX5_SET(cqc, cqc, cq_period_mode, MLX5_CQ_PERIOD_MODE_START_FROM_EQE); in create_wc_cq() 102 MLX5_SET(cqc, cqc, c_eqn_or_apu_element, eqn); in create_wc_cq() 103 MLX5_SET(cqc, cqc, uar_page, mdev->priv.bfreg.up->index); in create_wc_cq() 104 MLX5_SET(cqc, cqc, log_page_size, cq->wq_ctrl.buf.page_shift - in create_wc_cq() 124 MLX5_SET(cqc, cqc, log_cq_size, TEST_WC_LOG_CQ_SZ); in mlx5_wc_create_cq() 125 MLX5_SET(cqc, cqc, uar_page, mdev->priv.bfreg.up->index); in mlx5_wc_create_cq() 127 MLX5_SET(cqc, cqc, cqe_sz, CQE_STRIDE_128_PAD); in mlx5_wc_create_cq() 174 MLX5_SET(sqc, sqc, cqn, sq->cq.mcq.cqn); in create_wc_sq() 176 MLX5_SET(sqc, sqc, state, MLX5_SQC_STATE_RST); in create_wc_sq() 177 MLX5_SET(sqc, sqc, flush_in_error_en, 1); in create_wc_sq() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A 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 …]
|
| H A 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() 120 MLX5_SET(pbmc_reg, in, local_port, 1); in mlx5e_port_query_pbmc() 137 MLX5_SET(pbmc_reg, in, local_port, 1); in mlx5e_port_set_pbmc() 149 MLX5_SET(sbpr_reg, in, desc, desc); in mlx5e_port_query_sbpr() 150 MLX5_SET(sbpr_reg, in, dir, dir); in mlx5e_port_query_sbpr() 151 MLX5_SET(sbpr_reg, in, pool, pool_idx); in mlx5e_port_query_sbpr() [all …]
|
| H A D | monitor_stats.c | 52 MLX5_SET(arm_monitor_counter_in, in, opcode, in mlx5e_monitor_counter_arm() 87 MLX5_SET(set_monitor_counter_in, in, in fill_monitor_counter_ppcnt_set1() 90 MLX5_SET(set_monitor_counter_in, in, in fill_monitor_counter_ppcnt_set1() 99 MLX5_SET(set_monitor_counter_in, in, in fill_monitor_counter_q_counter_set1() 102 MLX5_SET(set_monitor_counter_in, in, in fill_monitor_counter_q_counter_set1() 105 MLX5_SET(set_monitor_counter_in, in, in fill_monitor_counter_q_counter_set1() 130 MLX5_SET(set_monitor_counter_in, in, num_of_counters, cnt); in mlx5e_set_monitor_counter() 131 MLX5_SET(set_monitor_counter_in, in, opcode, in mlx5e_set_monitor_counter() 161 MLX5_SET(set_monitor_counter_in, in, opcode, in mlx5e_monitor_counter_cleanup()
|
| H A D | tc_tun_mplsoudp.c | 87 MLX5_SET(fte_match_set_misc2, misc2_c, in parse_tunnel() 90 MLX5_SET(fte_match_set_misc2, misc2_v, in parse_tunnel() 94 MLX5_SET(fte_match_set_misc2, misc2_c, in parse_tunnel() 97 MLX5_SET(fte_match_set_misc2, misc2_v, in parse_tunnel() 100 MLX5_SET(fte_match_set_misc2, misc2_c, in parse_tunnel() 103 MLX5_SET(fte_match_set_misc2, misc2_v, in parse_tunnel() 107 MLX5_SET(fte_match_set_misc2, misc2_c, in parse_tunnel() 110 MLX5_SET(fte_match_set_misc2, misc2_v, in parse_tunnel()
|
| /linux/drivers/vdpa/mlx5/core/ |
| H A D | resources.c | 22 MLX5_SET(alloc_pd_in, in, opcode, MLX5_CMD_OP_ALLOC_PD); in alloc_pd() 23 MLX5_SET(alloc_pd_in, in, uid, uid); in alloc_pd() 37 MLX5_SET(dealloc_pd_in, in, opcode, MLX5_CMD_OP_DEALLOC_PD); in dealloc_pd() 38 MLX5_SET(dealloc_pd_in, in, pd, pdn); in dealloc_pd() 39 MLX5_SET(dealloc_pd_in, in, uid, uid); in dealloc_pd() 50 MLX5_SET(query_special_contexts_in, in, opcode, MLX5_CMD_OP_QUERY_SPECIAL_CONTEXTS); in get_null_mkey() 76 MLX5_SET(create_uctx_in, in, opcode, MLX5_CMD_OP_CREATE_UCTX); in create_uctx() 77 MLX5_SET(create_uctx_in, in, uctx.cap, MLX5_UCTX_CAP_RAW_TX); in create_uctx() 95 MLX5_SET(destroy_uctx_in, in, opcode, MLX5_CMD_OP_DESTROY_UCTX); in destroy_uctx() 96 MLX5_SET(destroy_uctx_in, in, uid, uid); in destroy_uctx() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
| H A 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() 432 MLX5_SET(cqc, temp_cqc, log_cq_size, ilog2(cq_size)); in mlx5_fpga_conn_create_cq() 462 MLX5_SET(cqc, cqc, log_cq_size, ilog2(cq_size)); in mlx5_fpga_conn_create_cq() 463 MLX5_SET(cqc, cqc, c_eqn_or_apu_element, eqn); in mlx5_fpga_conn_create_cq() 464 MLX5_SET(cqc, cqc, uar_page, fdev->conn_res.uar->index); in mlx5_fpga_conn_create_cq() [all …]
|
| H A D | cmd.c | 57 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 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()
|
| H A D | vhca_event.c | 31 MLX5_SET(query_vhca_state_in, in, opcode, MLX5_CMD_OP_QUERY_VHCA_STATE); in mlx5_cmd_query_vhca_state() 32 MLX5_SET(query_vhca_state_in, in, function_id, function_id); in mlx5_cmd_query_vhca_state() 33 MLX5_SET(query_vhca_state_in, in, embedded_cpu_function, 0); in mlx5_cmd_query_vhca_state() 43 MLX5_SET(modify_vhca_state_in, in, opcode, MLX5_CMD_OP_MODIFY_VHCA_STATE); in mlx5_cmd_modify_vhca_state() 44 MLX5_SET(modify_vhca_state_in, in, function_id, function_id); in mlx5_cmd_modify_vhca_state() 45 MLX5_SET(modify_vhca_state_in, in, embedded_cpu_function, 0); in mlx5_cmd_modify_vhca_state() 55 MLX5_SET(modify_vhca_state_in, in, opcode, MLX5_CMD_OP_MODIFY_VHCA_STATE); in mlx5_modify_vhca_sw_id() 56 MLX5_SET(modify_vhca_state_in, in, function_id, function_id); in mlx5_modify_vhca_sw_id() 57 MLX5_SET(modify_vhca_state_in, in, embedded_cpu_function, 0); in mlx5_modify_vhca_sw_id() 58 MLX5_SET(modify_vhca_state_in, in, vhca_state_field_select.sw_function_id, 1); in mlx5_modify_vhca_sw_id() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ipsec_offload.c | 102 MLX5_SET(ipsec_aso, aso_ctx, esn_event_arm, 1); in mlx5e_ipsec_packet_setup() 105 MLX5_SET(ipsec_aso, aso_ctx, window_sz, in mlx5e_ipsec_packet_setup() 107 MLX5_SET(ipsec_aso, aso_ctx, mode, in mlx5e_ipsec_packet_setup() 110 MLX5_SET(ipsec_aso, aso_ctx, mode_parameter, in mlx5e_ipsec_packet_setup() 115 MLX5_SET(ipsec_obj, obj, ipsec_aso_access_pd, pdn); in mlx5e_ipsec_packet_setup() 116 MLX5_SET(ipsec_obj, obj, full_offload, 1); in mlx5e_ipsec_packet_setup() 117 MLX5_SET(ipsec_aso, aso_ctx, valid, 1); in mlx5e_ipsec_packet_setup() 124 MLX5_SET(ipsec_obj, obj, aso_return_reg, MLX5_IPSEC_ASO_REG_C_4_5); in mlx5e_ipsec_packet_setup() 126 MLX5_SET(ipsec_aso, aso_ctx, mode, MLX5_IPSEC_ASO_INC_SN); in mlx5e_ipsec_packet_setup() 128 MLX5_SET(ipsec_aso, aso_ctx, mode_parameter, in mlx5e_ipsec_packet_setup() [all …]
|
| H A D | ktls_txrx.c | 64 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/lib/ |
| H A D | aso.c | 101 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.bfreg.up->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.bfreg.up->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 …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
| H A D | rsc_dump.c | 110 MLX5_SET(resource_dump, cmd->cmd, mkey, rsc_dump->mkey); in mlx5_rsc_dump_trigger() 145 MLX5_SET(resource_dump, cmd->cmd, segment_type, sgmt_type); in mlx5_rsc_dump_cmd_create() 146 MLX5_SET(resource_dump, cmd->cmd, index1, key->index1); in mlx5_rsc_dump_cmd_create() 147 MLX5_SET(resource_dump, cmd->cmd, index2, key->index2); in mlx5_rsc_dump_cmd_create() 148 MLX5_SET(resource_dump, cmd->cmd, num_of_obj1, key->num_of_obj1); in mlx5_rsc_dump_cmd_create() 149 MLX5_SET(resource_dump, cmd->cmd, num_of_obj2, key->num_of_obj2); in mlx5_rsc_dump_cmd_create() 150 MLX5_SET(resource_dump, cmd->cmd, size, key->size); in mlx5_rsc_dump_cmd_create() 204 MLX5_SET(resource_dump, cmd->cmd, segment_type, MLX5_RSC_DUMP_MENU_SEGMENT); in mlx5_rsc_dump_menu() 236 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_PA); in mlx5_rsc_dump_create_mkey() 237 MLX5_SET(mkc, mkc, lw, 1); in mlx5_rsc_dump_create_mkey() [all …]
|