/Linux-v4.19/drivers/infiniband/hw/mlx5/ |
D | devx.c | 73 context->devx_uid = MLX5_GET(general_obj_out_cmd_hdr, out, obj_id); in mlx5_ib_devx_create() 93 u16 opcode = MLX5_GET(general_obj_in_cmd_hdr, devx_obj->dinbox, opcode); in mlx5_ib_devx_is_flow_dest() 98 *dest_id = MLX5_GET(general_obj_in_cmd_hdr, devx_obj->dinbox, in mlx5_ib_devx_is_flow_dest() 104 *dest_id = MLX5_GET(destroy_flow_table_in, devx_obj->dinbox, in mlx5_ib_devx_is_flow_dest() 114 u16 opcode = MLX5_GET(general_obj_in_cmd_hdr, in, opcode); in devx_is_valid_obj_id() 120 obj_id = MLX5_GET(general_obj_in_cmd_hdr, in, obj_id); in devx_is_valid_obj_id() 123 obj_id = MLX5_GET(query_mkey_in, in, mkey_index); in devx_is_valid_obj_id() 126 obj_id = MLX5_GET(query_cq_in, in, cqn); in devx_is_valid_obj_id() 129 obj_id = MLX5_GET(modify_cq_in, in, cqn); in devx_is_valid_obj_id() 132 obj_id = MLX5_GET(query_sq_in, in, sqn); in devx_is_valid_obj_id() [all …]
|
D | cong.c | 97 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 100 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 103 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 106 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 109 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 112 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 115 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 118 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 121 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() 124 return MLX5_GET(cong_control_r_roce_ecn_rp, field, in mlx5_get_cc_param_val() [all …]
|
D | cmd.c | 45 *mkey = MLX5_GET(query_special_contexts_out, out, in mlx5_cmd_dump_fill_mkey() 60 *null_mkey = MLX5_GET(query_special_contexts_out, out, in mlx5_cmd_null_mkey()
|
/Linux-v4.19/include/linux/mlx5/ |
D | fs_helpers.h | 46 return MLX5_GET(fte_match_set_misc, misc_params_c, outer_esp_spi); in mlx5_fs_is_ipsec_flow() 57 return MLX5_GET(fte_match_set_lyr_2_4, headers_c, ip_protocol) == 0xff && in _mlx5_fs_is_outer_ipproto_flow() 58 MLX5_GET(fte_match_set_lyr_2_4, headers_v, ip_protocol) == match; in _mlx5_fs_is_outer_ipproto_flow() 78 return MLX5_GET(fte_match_set_misc, misc_params_c, vxlan_vni); in mlx5_fs_is_vxlan_flow() 106 return MLX5_GET(fte_match_set_lyr_2_4, headers_c, in _mlx5_fs_is_outer_ipv_flow() 108 MLX5_GET(fte_match_set_lyr_2_4, headers_v, in _mlx5_fs_is_outer_ipv_flow() 112 return MLX5_GET(fte_match_set_lyr_2_4, headers_c, in _mlx5_fs_is_outer_ipv_flow() 114 MLX5_GET(fte_match_set_lyr_2_4, headers_v, in _mlx5_fs_is_outer_ipv_flow() 139 return MLX5_GET(fte_match_set_misc, misc_params_c, outer_esp_spi); in mlx5_fs_is_outer_ipsec_flow()
|
D | device.h | 95 #define MLX5_GET(typ, p, fld) ((be32_to_cpu(*((__be32 *)(p) +\ macro 100 u32 ___t = MLX5_GET(typ, p, fld); \ 149 tmp = (__force type_t)MLX5_GET(typ, p, fld); \ 152 tmp = (__force type_t)cpu_to_be16(MLX5_GET(typ, p, fld)); \ 155 tmp = (__force type_t)cpu_to_be32(MLX5_GET(typ, p, fld)); \ 1079 MLX5_GET(cmd_hca_cap, mdev->caps.hca_cur[MLX5_CAP_GENERAL], cap) 1085 MLX5_GET(cmd_hca_cap, mdev->caps.hca_max[MLX5_CAP_GENERAL], cap) 1088 MLX5_GET(per_protocol_networking_offload_caps,\ 1092 MLX5_GET(per_protocol_networking_offload_caps,\ 1096 MLX5_GET(per_protocol_networking_offload_caps,\ [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
D | fs_tracepoint.c | 41 {.m = MLX5_GET(spec, mask, fld),\ 42 .v = MLX5_GET(spec, val, fld)} 50 (name.m = MLX5_GET(type, mask, fld), \ 51 name.v = MLX5_GET(type, val, fld), \ 69 .m = MLX5_GET(fte_match_set_lyr_2_4, mask, smac_47_16) << 16 | in print_lyr_2_4_hdrs() 70 MLX5_GET(fte_match_set_lyr_2_4, mask, smac_15_0), in print_lyr_2_4_hdrs() 71 .v = MLX5_GET(fte_match_set_lyr_2_4, value, smac_47_16) << 16 | in print_lyr_2_4_hdrs() 72 MLX5_GET(fte_match_set_lyr_2_4, value, smac_15_0)}; in print_lyr_2_4_hdrs() 74 .m = MLX5_GET(fte_match_set_lyr_2_4, mask, dmac_47_16) << 16 | in print_lyr_2_4_hdrs() 75 MLX5_GET(fte_match_set_lyr_2_4, mask, dmac_15_0), in print_lyr_2_4_hdrs() [all …]
|
D | fw_tracer.c | 54 if (!MLX5_GET(mtrc_cap, out, trace_to_memory)) { in mlx5_query_mtrc_caps() 59 tracer->trc_ver = MLX5_GET(mtrc_cap, out, trc_ver); in mlx5_query_mtrc_caps() 61 MLX5_GET(mtrc_cap, out, first_string_trace); in mlx5_query_mtrc_caps() 63 MLX5_GET(mtrc_cap, out, num_string_trace); in mlx5_query_mtrc_caps() 64 tracer->str_db.num_string_db = MLX5_GET(mtrc_cap, out, num_string_db); in mlx5_query_mtrc_caps() 65 tracer->owner = !!MLX5_GET(mtrc_cap, out, trace_owner); in mlx5_query_mtrc_caps() 69 string_db_base_address_out[i] = MLX5_GET(mtrc_string_db_param, in mlx5_query_mtrc_caps() 72 string_db_size_out[i] = MLX5_GET(mtrc_string_db_param, in mlx5_query_mtrc_caps() 106 tracer->owner = !!MLX5_GET(mtrc_cap, out, trace_owner); in mlx5_fw_tracer_ownership_acquire() 444 tracer_event->event_id = MLX5_GET(tracer_event, trace, event_id); in poll_trace() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | port.c | 171 *proto_cap = MLX5_GET(ptys_reg, out, eth_proto_capability); in mlx5_query_port_proto_cap() 173 *proto_cap = MLX5_GET(ptys_reg, out, ib_proto_capability); in mlx5_query_port_proto_cap() 190 *proto_admin = MLX5_GET(ptys_reg, out, eth_proto_admin); in mlx5_query_port_proto_admin() 192 *proto_admin = MLX5_GET(ptys_reg, out, ib_proto_admin); in mlx5_query_port_proto_admin() 208 *link_width_oper = MLX5_GET(ptys_reg, out, ib_link_width_oper); in mlx5_query_port_link_width_oper() 225 *proto_oper = MLX5_GET(ptys_reg, out, eth_proto_oper); in mlx5_query_port_eth_proto_oper() 242 *proto_oper = MLX5_GET(ptys_reg, out, ib_proto_oper); in mlx5_query_port_ib_proto_oper() 315 *status = MLX5_GET(paos_reg, out, admin_status); in mlx5_query_port_admin_status() 331 *max_mtu = MLX5_GET(pmtu_reg, out, max_mtu); in mlx5_query_port_mtu() 333 *oper_mtu = MLX5_GET(pmtu_reg, out, oper_mtu); in mlx5_query_port_mtu() [all …]
|
D | srq.c | 111 if (MLX5_GET(wq, wq, wq_signature)) in get_wq() 113 in->log_page_size = MLX5_GET(wq, wq, log_wq_pg_sz); in get_wq() 114 in->wqe_shift = MLX5_GET(wq, wq, log_wq_stride) - 4; in get_wq() 115 in->log_size = MLX5_GET(wq, wq, log_wq_sz); in get_wq() 116 in->page_offset = MLX5_GET(wq, wq, page_offset); in get_wq() 117 in->lwm = MLX5_GET(wq, wq, lwm); in get_wq() 118 in->pd = MLX5_GET(wq, wq, pd); in get_wq() 124 if (MLX5_GET(srqc, srqc, wq_signature)) in get_srqc() 126 in->log_page_size = MLX5_GET(srqc, srqc, log_page_size); in get_srqc() 127 in->wqe_shift = MLX5_GET(srqc, srqc, log_rq_stride); in get_srqc() [all …]
|
D | wq.c | 80 mlx5_fill_fbc(MLX5_GET(wq, wqc, log_wq_stride), in mlx5_wq_cyc_create() 81 MLX5_GET(wq, wqc, log_wq_sz), in mlx5_wq_cyc_create() 140 mlx5_fill_fbc(MLX5_GET(qpc, qpc, log_rq_stride) + 4, in mlx5_wq_qp_create() 141 MLX5_GET(qpc, qpc, log_rq_size), in mlx5_wq_qp_create() 148 MLX5_GET(qpc, qpc, log_sq_size), in mlx5_wq_qp_create() 225 mlx5_fill_fbc(MLX5_GET(wq, wqc, log_wq_stride), in mlx5_wq_ll_create() 226 MLX5_GET(wq, wqc, log_wq_sz), in mlx5_wq_ll_create()
|
D | mr.c | 81 mkey_index = MLX5_GET(create_mkey_out, lout, mkey_index); in mlx5_core_create_mkey_cb() 85 mkey->pd = MLX5_GET(mkc, mkc, pd); in mlx5_core_create_mkey_cb() 152 case 1: return MLX5_GET(create_psv_out, out, psv1_index); in mlx5_get_psv() 153 case 2: return MLX5_GET(create_psv_out, out, psv2_index); in mlx5_get_psv() 154 case 3: return MLX5_GET(create_psv_out, out, psv3_index); in mlx5_get_psv() 155 default: return MLX5_GET(create_psv_out, out, psv0_index); in mlx5_get_psv()
|
D | fw.c | 88 *vendor_id = MLX5_GET(query_adapter_out, out, in mlx5_core_query_vendor_id() 253 force_state = MLX5_GET(teardown_hca_out, out, force_state); in mlx5_cmd_force_teardown_hca() 307 *update_handle = MLX5_GET(mcc_reg, out, update_handle); in mlx5_reg_mcc_query() 308 *error_code = MLX5_GET(mcc_reg, out, error_code); in mlx5_reg_mcc_query() 309 *control_state = MLX5_GET(mcc_reg, out, control_state); in mlx5_reg_mcc_query() 368 *max_component_size = MLX5_GET(mcqi_cap, out + offset, max_component_size); in mlx5_reg_mcqi_query() 369 *log_mcda_word_size = MLX5_GET(mcqi_cap, out + offset, log_mcda_word_size); in mlx5_reg_mcqi_query() 370 *mcda_max_write_size = MLX5_GET(mcqi_cap, out + offset, mcda_max_write_size); in mlx5_reg_mcqi_query()
|
D | transobj.c | 48 *tdn = MLX5_GET(alloc_transport_domain_out, out, in mlx5_core_alloc_transport_domain() 75 *rqn = MLX5_GET(create_rq_out, out, rqn); in mlx5_core_create_rq() 124 *sqn = MLX5_GET(create_sq_out, out, sqn); in mlx5_core_create_sq() 177 *state = MLX5_GET(sqc, sqc, state); in mlx5_core_query_sq_state() 196 *tirn = MLX5_GET(create_tir_out, out, tirn); in mlx5_core_create_tir() 232 *tisn = MLX5_GET(create_tis_out, out, tisn); in mlx5_core_create_tis() 270 *rmpn = MLX5_GET(create_rmp_out, out, rmpn); in mlx5_core_create_rmp() 342 *xsrqn = MLX5_GET(create_xrc_srq_out, out, xrc_srqn); in mlx5_core_create_xsrq() 379 *rqtn = MLX5_GET(create_rqt_out, out, rqtn); in mlx5_core_create_rqt()
|
D | vport.c | 63 return MLX5_GET(query_vport_state_out, out, state); in mlx5_query_vport_state() 115 *min_inline = MLX5_GET(query_nic_vport_context_out, out, in mlx5_query_nic_vport_min_inline() 229 *mtu = MLX5_GET(query_nic_vport_context_out, out, in mlx5_query_nic_vport_mtu() 305 req_list_size = MLX5_GET(nic_vport_context, nic_vport_ctx, in mlx5_query_nic_vport_mac_list() 420 req_list_size = MLX5_GET(nic_vport_context, nic_vport_ctx, in mlx5_query_nic_vport_vlans() 428 vlans[i] = MLX5_GET(vlan_layout, vlan_addr, vlan); in mlx5_query_nic_vport_vlans() 573 *qkey_viol_cntr = MLX5_GET(query_nic_vport_context_out, out, in mlx5_query_nic_vport_qkey_viol_cntr() 847 *promisc_uc = MLX5_GET(query_nic_vport_context_out, out, in mlx5_query_nic_vport_promisc() 849 *promisc_mc = MLX5_GET(query_nic_vport_context_out, out, in mlx5_query_nic_vport_promisc() 851 *promisc_all = MLX5_GET(query_nic_vport_context_out, out, in mlx5_query_nic_vport_promisc() [all …]
|
D | debugfs.c | 374 param = 1 << MLX5_GET(eqc, ctx, log_eq_size); in eq_read_field() 377 param = MLX5_GET(eqc, ctx, intr); in eq_read_field() 380 param = MLX5_GET(eqc, ctx, log_page_size) + 12; in eq_read_field() 414 param = 1 << MLX5_GET(cqc, ctx, log_cq_size); in cq_read_field() 417 param = MLX5_GET(cqc, ctx, log_page_size); in cq_read_field()
|
D | pagealloc.c | 150 *npages = MLX5_GET(query_pages_out, out, num_pages); in mlx5_cmd_query_pages() 151 *func_id = MLX5_GET(query_pages_out, out, function_id); in mlx5_cmd_query_pages() 347 npages = MLX5_GET(manage_pages_in, in, input_num_entries); in reclaim_pages_cmd() 348 func_id = MLX5_GET(manage_pages_in, in, function_id); in reclaim_pages_cmd() 395 num_claimed = MLX5_GET(manage_pages_out, out, output_num_entries); in reclaim_pages()
|
D | pd.c | 48 *pdn = MLX5_GET(alloc_pd_out, out, pd); in mlx5_core_alloc_pd()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | tls.c | 183 u32 syndrome = MLX5_GET(tls_resp, resp->sg[0].data, syndrome); in mlx5_fpga_tls_teardown_completion() 189 else if (MLX5_GET(tls_cmd, cmd->buf.sg[0].data, direction_sx)) in mlx5_fpga_tls_teardown_completion() 206 MLX5_SET(tls_cmd, cmd, ipv6, MLX5_GET(tls_flow, flow, ipv6)); in mlx5_fpga_tls_flow_to_cmd() 208 MLX5_GET(tls_flow, flow, direction_sx)); in mlx5_fpga_tls_flow_to_cmd() 322 ctx->syndrome = MLX5_GET(tls_resp, resp->sg[0].data, syndrome); in mlx5_fpga_tls_setup_completion() 343 MLX5_GET(tls_cmd, tls_cmd, swid), in mlx5_fpga_tls_setup_completion() 345 MLX5_GET(tls_cmd, tls_cmd, in mlx5_fpga_tls_setup_completion() 426 if (MLX5_GET(tls_extended_cap, buf, tx)) in mlx5_fpga_tls_get_caps() 428 if (MLX5_GET(tls_extended_cap, buf, rx)) in mlx5_fpga_tls_get_caps() 430 if (MLX5_GET(tls_extended_cap, buf, tls_v12)) in mlx5_fpga_tls_get_caps() [all …]
|
D | ipsec.c | 275 if (MLX5_GET(ipsec_extended_cap, fipsec->caps, v2_command)) in is_v2_sadb_supported() 333 if (MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, esp)) in mlx5_fpga_ipsec_device_caps() 336 if (MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, ipv6)) in mlx5_fpga_ipsec_device_caps() 339 if (MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, lso)) in mlx5_fpga_ipsec_device_caps() 342 if (MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, rx_no_trailer)) in mlx5_fpga_ipsec_device_caps() 345 if (MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, esn)) { in mlx5_fpga_ipsec_device_caps() 360 return MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, in mlx5_fpga_ipsec_counters_count() 377 addr = (u64)MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, in mlx5_fpga_ipsec_counters_read() 379 ((u64)MLX5_GET(ipsec_extended_cap, fdev->ipsec->caps, in mlx5_fpga_ipsec_counters_read() 637 bool is_dmac = MLX5_GET(fte_match_set_lyr_2_4, outer_c, dmac_47_16) || in mlx5_is_fpga_egress_ipsec_rule() [all …]
|
D | cmd.c | 137 query->status = MLX5_GET(fpga_ctrl, out, status); in mlx5_fpga_query() 138 query->admin_image = MLX5_GET(fpga_ctrl, out, flash_select_admin); in mlx5_fpga_query() 139 query->oper_image = MLX5_GET(fpga_ctrl, out, flash_select_oper); in mlx5_fpga_query() 160 *fpga_qpn = MLX5_GET(fpga_create_qp_out, out, fpga_qpn); in mlx5_fpga_create_qp()
|
D | core.c | 297 syndrome = MLX5_GET(fpga_error_event, data, syndrome); in mlx5_fpga_event() 301 syndrome = MLX5_GET(fpga_qp_error_event, data, syndrome); in mlx5_fpga_event() 303 fpga_qpn = MLX5_GET(fpga_qp_error_event, data, fpga_qpn); in mlx5_fpga_event()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | port_buffer.c | 56 MLX5_GET(bufferx_reg, buffer, lossy); in mlx5e_port_query_buffer() 58 MLX5_GET(bufferx_reg, buffer, epsb); in mlx5e_port_query_buffer() 60 MLX5_GET(bufferx_reg, buffer, size) << MLX5E_BUFFER_CELL_SHIFT; in mlx5e_port_query_buffer() 62 MLX5_GET(bufferx_reg, buffer, xon_threshold) << MLX5E_BUFFER_CELL_SHIFT; in mlx5e_port_query_buffer() 64 MLX5_GET(bufferx_reg, buffer, xoff_threshold) << MLX5E_BUFFER_CELL_SHIFT; in mlx5e_port_query_buffer() 76 MLX5_GET(pbmc_reg, out, port_buffer_size) << MLX5E_BUFFER_CELL_SHIFT; in mlx5e_port_query_buffer()
|
D | port.c | 89 eth_proto_oper = MLX5_GET(ptys_reg, out, eth_proto_oper); in mlx5e_port_linkspeed() 187 prio_x_buff = MLX5_GET(pptb_reg, out, prio_x_buff); in mlx5e_port_query_priority2buffer()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | clock.c | 425 clock->ptp_info.n_pins = MLX5_GET(mtpps_reg, out, in mlx5_get_pps_caps() 427 clock->ptp_info.n_ext_ts = MLX5_GET(mtpps_reg, out, in mlx5_get_pps_caps() 429 clock->ptp_info.n_per_out = MLX5_GET(mtpps_reg, out, in mlx5_get_pps_caps() 432 clock->pps_info.pin_caps[0] = MLX5_GET(mtpps_reg, out, cap_pin_0_mode); in mlx5_get_pps_caps() 433 clock->pps_info.pin_caps[1] = MLX5_GET(mtpps_reg, out, cap_pin_1_mode); in mlx5_get_pps_caps() 434 clock->pps_info.pin_caps[2] = MLX5_GET(mtpps_reg, out, cap_pin_2_mode); in mlx5_get_pps_caps() 435 clock->pps_info.pin_caps[3] = MLX5_GET(mtpps_reg, out, cap_pin_3_mode); in mlx5_get_pps_caps() 436 clock->pps_info.pin_caps[4] = MLX5_GET(mtpps_reg, out, cap_pin_4_mode); in mlx5_get_pps_caps() 437 clock->pps_info.pin_caps[5] = MLX5_GET(mtpps_reg, out, cap_pin_5_mode); in mlx5_get_pps_caps() 438 clock->pps_info.pin_caps[6] = MLX5_GET(mtpps_reg, out, cap_pin_6_mode); in mlx5_get_pps_caps() [all …]
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
D | ethtool.c | 189 *ib_link_width_oper = MLX5_GET(ptys_reg, out, ib_link_width_oper); in mlx5i_get_port_settings() 190 *ib_proto_oper = MLX5_GET(ptys_reg, out, ib_proto_oper); in mlx5i_get_port_settings()
|