Home
last modified time | relevance | path

Searched refs:MLX5_ADDR_OF (Results 1 – 25 of 93) sorted by relevance

1234

/Linux-v5.15/include/linux/mlx5/
Dfs_helpers.h43 void *misc_params_c = MLX5_ADDR_OF(fte_match_param, match_c, in mlx5_fs_is_ipsec_flow()
52 const void *headers_c = MLX5_ADDR_OF(fte_match_param, match_c, in _mlx5_fs_is_outer_ipproto_flow()
54 const void *headers_v = MLX5_ADDR_OF(fte_match_param, match_v, in _mlx5_fs_is_outer_ipproto_flow()
75 void *misc_params_c = MLX5_ADDR_OF(fte_match_param, match_c, in mlx5_fs_is_vxlan_flow()
87 const void *headers_c = MLX5_ADDR_OF(fte_match_param, match_c, in _mlx5_fs_is_outer_ipv_flow()
89 const void *headers_v = MLX5_ADDR_OF(fte_match_param, match_v, in _mlx5_fs_is_outer_ipv_flow()
137 MLX5_ADDR_OF(fte_match_param, match_c, misc_parameters); in mlx5_fs_is_outer_ipsec_flow()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dfs_tracepoint.h121 MLX5_ADDR_OF(fte_match_param,
126 MLX5_ADDR_OF(fte_match_param,
131 MLX5_ADDR_OF(fte_match_param,
211 MLX5_ADDR_OF(fte_match_param,
216 MLX5_ADDR_OF(fte_match_param,
221 MLX5_ADDR_OF(fte_match_param,
226 MLX5_ADDR_OF(fte_match_param,
231 MLX5_ADDR_OF(fte_match_param,
236 MLX5_ADDR_OF(fte_match_param,
Drsc_dump.c63 menu = MLX5_ADDR_OF(menu_resource_dump_response, data, menu); in mlx5_rsc_dump_read_menu_sgmt()
67 member = MLX5_ADDR_OF(resource_dump_menu_segment, menu, record[i]); in mlx5_rsc_dump_read_menu_sgmt()
68 sgmt_name = MLX5_ADDR_OF(resource_dump_menu_record, member, segment_name); in mlx5_rsc_dump_read_menu_sgmt()
216 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5_rsc_dump_create_mkey()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dtls.c44 memcpy(MLX5_ADDR_OF(tls_flow, flow, dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in mlx5e_tls_set_ipv4_flow()
46 memcpy(MLX5_ADDR_OF(tls_flow, flow, src_ipv4_src_ipv6.ipv4_layout.ipv4), in mlx5e_tls_set_ipv4_flow()
56 memcpy(MLX5_ADDR_OF(tls_flow, flow, dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in mlx5e_tls_set_ipv6_flow()
58 memcpy(MLX5_ADDR_OF(tls_flow, flow, src_ipv4_src_ipv6.ipv6_layout.ipv6), in mlx5e_tls_set_ipv6_flow()
67 memcpy(MLX5_ADDR_OF(tls_flow, flow, src_port), &inet->inet_sport, in mlx5e_tls_set_flow_tcp_ports()
69 memcpy(MLX5_ADDR_OF(tls_flow, flow, dst_port), &inet->inet_dport, in mlx5e_tls_set_flow_tcp_ports()
Dfs_tcp.c35 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in accel_fs_tcp_set_ipv4_flow()
38 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in accel_fs_tcp_set_ipv4_flow()
54 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in accel_fs_tcp_set_ipv6_flow()
57 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in accel_fs_tcp_set_ipv6_flow()
60 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in accel_fs_tcp_set_ipv6_flow()
63 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in accel_fs_tcp_set_ipv6_flow()
201 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in accel_fs_tcp_create_groups()
202 outer_headers_c = MLX5_ADDR_OF(fte_match_param, mc, outer_headers); in accel_fs_tcp_create_groups()
225 memset(MLX5_ADDR_OF(fte_match_set_lyr_2_4, outer_headers_c, in accel_fs_tcp_create_groups()
228 memset(MLX5_ADDR_OF(fte_match_set_lyr_2_4, outer_headers_c, in accel_fs_tcp_create_groups()
/Linux-v5.15/drivers/infiniband/hw/mlx5/
Dsrq_cmd.c138 srqc = MLX5_ADDR_OF(create_srq_in, create_in, srq_context_entry); in create_srq_cmd()
139 pas = MLX5_ADDR_OF(create_srq_in, create_in, pas); in create_srq_cmd()
207 srqc = MLX5_ADDR_OF(query_srq_out, srq_out, srq_context_entry); in query_srq_cmd()
241 xrc_srqc = MLX5_ADDR_OF(create_xrc_srq_in, create_in, in create_xrc_srq_cmd()
243 pas = MLX5_ADDR_OF(create_xrc_srq_in, create_in, pas); in create_xrc_srq_cmd()
317 xrc_srqc = MLX5_ADDR_OF(query_xrc_srq_out, xrcsrq_out, in query_xrc_srq_cmd()
357 rmpc = MLX5_ADDR_OF(create_rmp_in, create_in, ctx); in create_rmp_cmd()
358 wq = MLX5_ADDR_OF(rmpc, rmpc, wq); in create_rmp_cmd()
362 pas = MLX5_ADDR_OF(rmpc, rmpc, wq.pas); in create_rmp_cmd()
418 rmpc = MLX5_ADDR_OF(modify_rmp_in, in, ctx); in arm_rmp_cmd()
[all …]
Dfs.c35 !(memchr_inv(MLX5_ADDR_OF(fte_match_param, match_criteria, headers), \
202 void *misc_params_c = MLX5_ADDR_OF(fte_match_param, match_c, in parse_flow_attr()
204 void *misc_params_v = MLX5_ADDR_OF(fte_match_param, match_v, in parse_flow_attr()
206 void *misc_params2_c = MLX5_ADDR_OF(fte_match_param, match_c, in parse_flow_attr()
208 void *misc_params2_v = MLX5_ADDR_OF(fte_match_param, match_v, in parse_flow_attr()
216 headers_c = MLX5_ADDR_OF(fte_match_param, match_c, in parse_flow_attr()
218 headers_v = MLX5_ADDR_OF(fte_match_param, match_v, in parse_flow_attr()
223 headers_c = MLX5_ADDR_OF(fte_match_param, match_c, in parse_flow_attr()
225 headers_v = MLX5_ADDR_OF(fte_match_param, match_v, in parse_flow_attr()
236 ether_addr_copy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_c, in parse_flow_attr()
[all …]
Dcmd.c130 gid = MLX5_ADDR_OF(attach_to_mcg_in, in, multicast_gid); in mlx5_cmd_attach_mcg()
144 gid = MLX5_ADDR_OF(detach_from_mcg_in, in, multicast_gid); in mlx5_cmd_detach_mcg()
193 data = MLX5_ADDR_OF(mad_ifc_in, in, mad); in mlx5_cmd_mad_ifc()
200 resp = MLX5_ADDR_OF(mad_ifc_out, out, response_mad_packet); in mlx5_cmd_mad_ifc()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_geneve.c132 misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5e_tc_tun_parse_geneve_vni()
133 misc_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5e_tc_tun_parse_geneve_vni()
169 misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5e_tc_tun_parse_geneve_options()
170 misc_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5e_tc_tun_parse_geneve_options()
171 misc_3_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters_3); in mlx5e_tc_tun_parse_geneve_options()
172 misc_3_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters_3); in mlx5e_tc_tun_parse_geneve_options()
286 void *misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5e_tc_tun_parse_geneve_params()
287 void *misc_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5e_tc_tun_parse_geneve_params()
Dtir.c44 return MLX5_ADDR_OF(modify_tir_in, builder->in, ctx); in mlx5e_tir_builder_get_tirc()
45 return MLX5_ADDR_OF(create_tir_in, builder->in, ctx); in mlx5e_tir_builder_get_tirc()
119 void *rss_key = MLX5_ADDR_OF(tirc, tirc, rx_hash_toeplitz_key); in mlx5e_tir_builder_build_rss()
126 hfso = MLX5_ADDR_OF(tirc, tirc, rx_hash_field_selector_inner); in mlx5e_tir_builder_build_rss()
128 hfso = MLX5_ADDR_OF(tirc, tirc, rx_hash_field_selector_outer); in mlx5e_tir_builder_build_rss()
Dparams.c502 void *wq = MLX5_ADDR_OF(rqc, rqc, wq); in mlx5e_build_rq_param()
551 void *wq = MLX5_ADDR_OF(rqc, rqc, wq); in mlx5e_build_drop_rq_param()
577 void *wq = MLX5_ADDR_OF(sqc, sqc, wq); in mlx5e_build_sq_param_common()
590 void *wq = MLX5_ADDR_OF(sqc, sqc, wq); in mlx5e_build_sq_param()
618 void *wq = MLX5_ADDR_OF(rqc, rqc, wq); in mlx5e_get_rq_log_wq_sz()
649 void *wq = MLX5_ADDR_OF(sqc, sqc, wq); in mlx5e_build_icosq_param()
663 void *wq = MLX5_ADDR_OF(sqc, sqc, wq); in mlx5e_build_async_icosq_param()
680 void *wq = MLX5_ADDR_OF(sqc, sqc, wq); in mlx5e_build_xdpsq_param()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dcmd.c60 memcpy(MLX5_ADDR_OF(fpga_access_reg, in, data), buf, size); in mlx5_fpga_access_reg()
68 memcpy(buf, MLX5_ADDR_OF(fpga_access_reg, out, data), size); in mlx5_fpga_access_reg()
150 memcpy(MLX5_ADDR_OF(fpga_create_qp_in, in, fpga_qpc), fpga_qpc, in mlx5_fpga_create_qp()
157 memcpy(fpga_qpc, MLX5_ADDR_OF(fpga_create_qp_out, out, fpga_qpc), in mlx5_fpga_create_qp()
172 memcpy(MLX5_ADDR_OF(fpga_modify_qp_in, in, fpga_qpc), fpga_qpc, in mlx5_fpga_modify_qp()
192 memcpy(fpga_qpc, MLX5_ADDR_OF(fpga_query_qp_out, out, fpga_qpc), in mlx5_fpga_query_qp()
Dipsec.c557 const void *misc_params_c = MLX5_ADDR_OF(fte_match_param, in validate_fpga_full_mask()
560 const void *headers_c = MLX5_ADDR_OF(fte_match_param, in validate_fpga_full_mask()
563 const void *headers_v = MLX5_ADDR_OF(fte_match_param, in validate_fpga_full_mask()
568 const void *s_ipv4_c = MLX5_ADDR_OF(fte_match_set_lyr_2_4, in validate_fpga_full_mask()
571 const void *d_ipv4_c = MLX5_ADDR_OF(fte_match_set_lyr_2_4, in validate_fpga_full_mask()
581 const void *s_ipv6_c = MLX5_ADDR_OF(fte_match_set_lyr_2_4, in validate_fpga_full_mask()
584 const void *d_ipv6_c = MLX5_ADDR_OF(fte_match_set_lyr_2_4, in validate_fpga_full_mask()
595 if (!is_full_mask(MLX5_ADDR_OF(fte_match_set_misc, misc_params_c, in validate_fpga_full_mask()
645 const void *outer_c = MLX5_ADDR_OF(fte_match_param, match_c, in mlx5_is_fpga_egress_ipsec_rule()
802 MLX5_ADDR_OF(fte_match_set_lyr_2_4, in mlx5_fpga_ipsec_fs_create_sa_ctx()
[all …]
Dconn.c235 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry); in mlx5_fpga_conn_create_mkey()
454 cqc = MLX5_ADDR_OF(create_cq_in, in, cq_context); in mlx5_fpga_conn_create_cq()
462 pas = (__be64 *)MLX5_ADDR_OF(create_cq_in, in, pas); in mlx5_fpga_conn_create_cq()
561 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in mlx5_fpga_conn_create_qp()
582 (__be64 *)MLX5_ADDR_OF(create_qp_in, in, pas)); in mlx5_fpga_conn_create_qp()
679 qpc = MLX5_ADDR_OF(rst2init_qp_in, in, qpc); in mlx5_fpga_conn_init_qp()
705 qpc = MLX5_ADDR_OF(init2rtr_qp_in, in, qpc); in mlx5_fpga_conn_rtr_qp()
714 ether_addr_copy(MLX5_ADDR_OF(qpc, qpc, primary_address_path.rmac_47_32), in mlx5_fpga_conn_rtr_qp()
715 MLX5_ADDR_OF(fpga_qpc, conn->fpga_qpc, fpga_mac_47_32)); in mlx5_fpga_conn_rtr_qp()
721 memcpy(MLX5_ADDR_OF(qpc, qpc, primary_address_path.rgid_rip), in mlx5_fpga_conn_rtr_qp()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_cmd.c251 attr = MLX5_ADDR_OF(query_sampler_obj_out, out, sampler_object); in mlx5dr_cmd_query_flow_sampler()
295 in_flow_context = MLX5_ADDR_OF(set_fte_in, in, flow_context); in mlx5dr_cmd_set_fte_modify_and_vport()
303 in_dests = MLX5_ADDR_OF(flow_context, in_flow_context, destination); in mlx5dr_cmd_set_fte_modify_and_vport()
349 p_actions = MLX5_ADDR_OF(alloc_modify_header_context_in, in, actions); in mlx5dr_cmd_alloc_modify_header()
434 ft_mdev = MLX5_ADDR_OF(create_flow_table_in, in, flow_table_context); in mlx5dr_cmd_create_flow_table()
517 prctx = MLX5_ADDR_OF(alloc_packet_reformat_context_in, in, packet_reformat_context); in mlx5dr_cmd_create_reformat_ctx()
518 pdata = MLX5_ADDR_OF(packet_reformat_context_in, prctx, reformat_data); in mlx5dr_cmd_create_reformat_ctx()
568 MLX5_ADDR_OF(query_roce_address_out, in mlx5dr_cmd_query_gid()
572 MLX5_ADDR_OF(query_roce_address_out, out, in mlx5dr_cmd_query_gid()
664 in_flow_context = MLX5_ADDR_OF(set_fte_in, in, flow_context); in mlx5dr_cmd_set_fte()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Dmcg.c46 gid = MLX5_ADDR_OF(attach_to_mcg_in, in, multicast_gid); in mlx5_core_attach_mcg()
59 gid = MLX5_ADDR_OF(detach_from_mcg_in, in, multicast_gid); in mlx5_core_detach_mcg()
Dvport.c136 nic_vport_ctx = MLX5_ADDR_OF(modify_nic_vport_context_in, in mlx5_modify_nic_vport_min_inline()
154 out_addr = MLX5_ADDR_OF(query_nic_vport_context_out, out, in mlx5_query_nic_vport_mac_address()
194 nic_vport_ctx = MLX5_ADDR_OF(modify_nic_vport_context_in, in mlx5_modify_nic_vport_mac_address()
196 perm_mac = MLX5_ADDR_OF(nic_vport_context, nic_vport_ctx, in mlx5_modify_nic_vport_mac_address()
297 nic_vport_ctx = MLX5_ADDR_OF(query_nic_vport_context_out, out, in mlx5_query_nic_vport_mac_list()
304 u8 *mac_addr = MLX5_ADDR_OF(nic_vport_context, in mlx5_query_nic_vport_mac_list()
347 nic_vport_ctx = MLX5_ADDR_OF(modify_nic_vport_context_in, in, in mlx5_modify_nic_vport_mac_list()
356 u8 *curr_mac = MLX5_ADDR_OF(nic_vport_context, in mlx5_modify_nic_vport_mac_list()
398 nic_vport_ctx = MLX5_ADDR_OF(modify_nic_vport_context_in, in, in mlx5_modify_nic_vport_vlans()
407 void *vlan_addr = MLX5_ADDR_OF(nic_vport_context, in mlx5_modify_nic_vport_vlans()
[all …]
Den_arfs.c249 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in arfs_create_groups()
250 outer_headers_c = MLX5_ADDR_OF(fte_match_param, mc, in arfs_create_groups()
279 memset(MLX5_ADDR_OF(fte_match_set_lyr_2_4, outer_headers_c, in arfs_create_groups()
282 memset(MLX5_ADDR_OF(fte_match_set_lyr_2_4, outer_headers_c, in arfs_create_groups()
524 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in arfs_add_rule()
528 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in arfs_add_rule()
537 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in arfs_add_rule()
541 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in arfs_add_rule()
545 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in arfs_add_rule()
549 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in arfs_add_rule()
Drdma.c68 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, in mlx5_rdma_enable_roce_steering()
81 misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, in mlx5_rdma_enable_roce_steering()
85 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5_rdma_enable_roce_steering()
Dtransobj.c166 sqc = MLX5_ADDR_OF(query_sq_out, out, sq_context); in mlx5_core_query_sq_state()
280 rqc = MLX5_ADDR_OF(create_rq_in, in, ctx); in mlx5_hairpin_create_rq()
281 wq = MLX5_ADDR_OF(rqc, rqc, wq); in mlx5_hairpin_create_rq()
299 sqc = MLX5_ADDR_OF(create_sq_in, in, ctx); in mlx5_hairpin_create_sq()
300 wq = MLX5_ADDR_OF(sqc, sqc, wq); in mlx5_hairpin_create_sq()
358 rqc = MLX5_ADDR_OF(modify_rq_in, in, ctx); in mlx5_hairpin_modify_rq()
378 sqc = MLX5_ADDR_OF(modify_sq_in, in, ctx); in mlx5_hairpin_modify_sq()
Deswitch_offloads.c106 misc2 = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters_2); in mlx5_eswitch_clear_rule_source_port()
109 misc2 = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters_2); in mlx5_eswitch_clear_rule_source_port()
133 misc2 = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters_2); in mlx5_eswitch_set_rule_source_port()
138 misc2 = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters_2); in mlx5_eswitch_set_rule_source_port()
144 misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5_eswitch_set_rule_source_port()
152 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5_eswitch_set_rule_source_port()
943 misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5_eswitch_add_send_to_vport_rule()
951 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5_eswitch_add_send_to_vport_rule()
1122 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in peer_miss_rules_setup()
1129 misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, in peer_miss_rules_setup()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dgid.c123 void *in_addr = MLX5_ADDR_OF(set_roce_address_in, in, roce_address); in mlx5_core_roce_gid_set()
124 char *addr_l3_addr = MLX5_ADDR_OF(roce_addr_layout, in_addr, in mlx5_core_roce_gid_set()
126 void *addr_mac = MLX5_ADDR_OF(roce_addr_layout, in_addr, in mlx5_core_roce_gid_set()
Dcrypto.c19 obj = MLX5_ADDR_OF(create_encryption_key_in, in, encryption_key_object); in mlx5_create_encryption_key()
20 key_p = MLX5_ADDR_OF(encryption_key_obj, obj, key); in mlx5_create_encryption_key()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/accel/
Dipsec_offload.c145 obj = MLX5_ADDR_OF(create_ipsec_obj_in, in, ipsec_object); in mlx5_create_ipsec_obj()
148 salt_p = MLX5_ADDR_OF(ipsec_obj, obj, salt); in mlx5_create_ipsec_obj()
167 salt_iv_p = MLX5_ADDR_OF(ipsec_obj, obj, implicit_iv); in mlx5_create_ipsec_obj()
311 obj = MLX5_ADDR_OF(query_ipsec_obj_out, out, ipsec_object); in mlx5_modify_ipsec_obj()
319 obj = MLX5_ADDR_OF(modify_ipsec_obj_in, in, ipsec_object); in mlx5_modify_ipsec_obj()
/Linux-v5.15/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c301 tisc = MLX5_ADDR_OF(create_tis_in, in, ctx); in create_tis()
395 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in qp_prepare()
400 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in qp_prepare()
416 pas = (__be64 *)MLX5_ADDR_OF(create_qp_in, in, pas); in qp_prepare()
461 qpc = MLX5_ADDR_OF(create_qp_in, in, qpc); in qp_create()
605 pas = (__be64 *)MLX5_ADDR_OF(create_cq_in, in, pas); in cq_create()
608 cqc = MLX5_ADDR_OF(create_cq_in, in, cq_context); in cq_create()
618 cqc = MLX5_ADDR_OF(create_cq_in, in, cq_context); in cq_create()
716 um = MLX5_ADDR_OF(create_umem_in, in, umem); in create_umem()
720 pas = (__be64 *)MLX5_ADDR_OF(umem, um, mtt[0]); in create_umem()
[all …]

1234