/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_dpipe.c | 125 struct devlink_dpipe_value *match_value, in mlxsw_sp_erif_entry_prepare() argument 130 entry->match_values = match_value; in mlxsw_sp_erif_entry_prepare() 136 match_value->match = match; in mlxsw_sp_erif_entry_prepare() 137 match_value->value_size = sizeof(u32); in mlxsw_sp_erif_entry_prepare() 138 match_value->value = kmalloc(match_value->value_size, GFP_KERNEL); in mlxsw_sp_erif_entry_prepare() 139 if (!match_value->value) in mlxsw_sp_erif_entry_prepare() 150 kfree(match_value->value); in mlxsw_sp_erif_entry_prepare() 195 struct devlink_dpipe_value match_value, action_value; in mlxsw_sp_dpipe_table_erif_entries_dump() local 204 memset(&match_value, 0, sizeof(match_value)); in mlxsw_sp_dpipe_table_erif_entries_dump() 208 err = mlxsw_sp_erif_entry_prepare(&entry, &match_value, &match, in mlxsw_sp_dpipe_table_erif_entries_dump() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | fs_tcp.c | 32 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_TCP); in accel_fs_tcp_set_ipv4_flow() 34 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, 4); in accel_fs_tcp_set_ipv4_flow() 35 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() 51 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_TCP); in accel_fs_tcp_set_ipv6_flow() 53 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, 6); in accel_fs_tcp_set_ipv6_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() 126 MLX5_SET(fte_match_param, spec->match_value, outer_headers.tcp_dport, in mlx5e_accel_fs_add_sk() 128 MLX5_SET(fte_match_param, spec->match_value, outer_headers.tcp_sport, in mlx5e_accel_fs_add_sk()
|
/linux/drivers/pwm/ |
H A D | pwm-omap-dmtimer.c | 152 u32 load_value, match_value; in pwm_omap_dmtimer_config() local 224 match_value = load_value + duty_cycles - 1; in pwm_omap_dmtimer_config() 227 omap->pdata->set_match(omap->dm_timer, true, match_value); in pwm_omap_dmtimer_config() 230 load_value, load_value, match_value, match_value); in pwm_omap_dmtimer_config()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | mmap_inner_array.c | 28 __u64 match_value = 0x13572468; variable 54 *value = match_value; in add_to_list_in_inner_array()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_arfs.c | 535 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, in arfs_add_rule() 551 MLX5_SET(fte_match_param, spec->match_value, outer_headers.tcp_dport, in arfs_add_rule() 553 MLX5_SET(fte_match_param, spec->match_value, outer_headers.tcp_sport, in arfs_add_rule() 560 MLX5_SET(fte_match_param, spec->match_value, outer_headers.udp_dport, in arfs_add_rule() 562 MLX5_SET(fte_match_param, spec->match_value, outer_headers.udp_sport, in arfs_add_rule() 566 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in arfs_add_rule() 570 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in arfs_add_rule() 579 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in arfs_add_rule() 583 memcpy(MLX5_ADDR_OF(fte_match_param, spec->match_value, in arfs_add_rule()
|
H A D | en_fs.c | 248 MLX5_SET(fte_match_param, spec->match_value, outer_headers.cvlan_tag, 1); in __mlx5e_add_vlan_rule() 254 MLX5_SET(fte_match_param, spec->match_value, outer_headers.svlan_tag, 1); in __mlx5e_add_vlan_rule() 260 MLX5_SET(fte_match_param, spec->match_value, outer_headers.svlan_tag, 1); in __mlx5e_add_vlan_rule() 263 MLX5_SET(fte_match_param, spec->match_value, outer_headers.first_vid, in __mlx5e_add_vlan_rule() 270 MLX5_SET(fte_match_param, spec->match_value, outer_headers.cvlan_tag, 1); in __mlx5e_add_vlan_rule() 273 MLX5_SET(fte_match_param, spec->match_value, outer_headers.first_vid, in __mlx5e_add_vlan_rule() 972 mv_dmac = MLX5_ADDR_OF(fte_match_param, spec->match_value, in mlx5e_add_l2_flow_rule()
|
H A D | eswitch_offloads.c | 110 misc2 = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters_2); in mlx5_eswitch_clear_rule_source_port() 147 misc2 = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters_2); in mlx5_eswitch_set_rule_source_port() 156 misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5_eswitch_set_rule_source_port() 954 misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5_eswitch_add_send_to_vport_rule() 966 misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters_2); in mlx5_eswitch_add_send_to_vport_rule() 976 misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5_eswitch_add_send_to_vport_rule() 1053 MLX5_SET(fte_match_param, spec->match_value, misc_parameters_2.metadata_reg_c_1, in mlx5_eswitch_add_send_to_vport_meta_rule() 1060 MLX5_SET(fte_match_param, spec->match_value, misc_parameters_2.metadata_reg_c_0, in mlx5_eswitch_add_send_to_vport_meta_rule() 1140 misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, in peer_miss_rules_setup() 1169 misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, in esw_set_peer_miss_rule_source_port() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | bridge_mcast.c | 88 dmac_v = MLX5_ADDR_OF(fte_match_param, rule_spec->match_value, outer_headers.dmac_47_16); in mlx5_esw_bridge_mdb_flow_create() 97 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_mdb_flow_create() 102 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_mdb_flow_create() 107 MLX5_SET(fte_match_param, rule_spec->match_value, outer_headers.first_vid, in mlx5_esw_bridge_mdb_flow_create() 527 MLX5_SET(fte_match_param, rule_spec->match_value, misc_parameters_2.metadata_reg_c_0, in mlx5_esw_bridge_mcast_flow_with_esw_create() 600 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_mcast_vlan_flow_create() 605 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_mcast_vlan_flow_create() 609 MLX5_SET(fte_match_param, rule_spec->match_value, outer_headers.first_vid, vlan->vid); in mlx5_esw_bridge_mcast_vlan_flow_create() 900 MLX5_SET(fte_match_param, rule_spec->match_value, outer_headers.ip_version, 4); in mlx5_esw_bridge_ingress_igmp_fh_create() 902 MLX5_SET(fte_match_param, rule_spec->match_value, outer_headers.ip_protocol, IPPROTO_IGMP); in mlx5_esw_bridge_ingress_igmp_fh_create() [all …]
|
H A D | bridge.c | 593 smac_v = MLX5_ADDR_OF(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_ingress_flow_with_esw_create() 602 MLX5_SET(fte_match_param, rule_spec->match_value, misc_parameters_2.metadata_reg_c_0, in mlx5_esw_bridge_ingress_flow_with_esw_create() 614 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_ingress_flow_with_esw_create() 619 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_ingress_flow_with_esw_create() 624 MLX5_SET(fte_match_param, rule_spec->match_value, outer_headers.first_vid, in mlx5_esw_bridge_ingress_flow_with_esw_create() 705 smac_v = MLX5_ADDR_OF(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_ingress_filter_flow_create() 714 MLX5_SET(fte_match_param, rule_spec->match_value, misc_parameters_2.metadata_reg_c_0, in mlx5_esw_bridge_ingress_filter_flow_create() 720 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_ingress_filter_flow_create() 725 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_ingress_filter_flow_create() 762 dmac_v = MLX5_ADDR_OF(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_egress_flow_create() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_tun_geneve.c | 134 misc_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5e_tc_tun_parse_geneve_vni() 171 misc_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5e_tc_tun_parse_geneve_options() 173 misc_3_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters_3); in mlx5e_tc_tun_parse_geneve_options() 293 void *misc_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5e_tc_tun_parse_geneve_params()
|
H A D | tc_tun_vxlan.c | 148 misc5_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters_5); in mlx5e_tc_tun_parse_vxlan_gbp_option() 169 misc_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5e_tc_tun_parse_vxlan()
|
H A D | fs_tt_redirect.c | 68 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_UDP); in fs_udp_set_dport_flow() 70 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, in fs_udp_set_dport_flow() 73 MLX5_SET(fte_match_param, spec->match_value, outer_headers.udp_dport, udp_dport); in fs_udp_set_dport_flow() 360 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, ether_type); in fs_any_set_ethertype_flow()
|
H A D | tc_tun_gre.c | 66 void *misc_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5e_tc_tun_parse_gretap()
|
H A D | tc_tun_mplsoudp.c | 84 misc2_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, in parse_tunnel()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | macsec_fs.c | 450 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, ETH_P_PAE); in macsec_fs_tx_create() 516 MLX5_SET(fte_match_param, spec->match_value, misc_parameters_2.metadata_reg_c_4, 0); in macsec_fs_tx_create() 599 MLX5_SET(fte_match_param, spec->match_value, misc_parameters_2.metadata_reg_a, in macsec_fs_tx_setup_fte() 1174 MLX5_SET(fte_match_param, spec->match_value, misc_parameters_2.macsec_syndrome, 0); in macsec_fs_rx_create_check_decap_rule() 1177 MLX5_SET(fte_match_param, spec->match_value, misc_parameters_2.metadata_reg_c_4, 0); in macsec_fs_rx_create_check_decap_rule() 1185 MLX5_SET(fte_match_param, spec->match_value, misc_parameters_5.macsec_tag_0, in macsec_fs_rx_create_check_decap_rule() 1340 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_UDP); in macsec_fs_rx_roce_jump_to_rdma_rules_create() 1342 MLX5_SET(fte_match_param, spec->match_value, outer_headers.udp_dport, ROCE_V2_UDP_DPORT); in macsec_fs_rx_roce_jump_to_rdma_rules_create() 1693 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, ETH_P_MACSEC); in macsec_fs_rx_setup_fte() 1700 MLX5_SET(fte_match_param, spec->match_value, misc_parameters_5.macsec_tag_0, in macsec_fs_rx_setup_fte() [all …]
|
H A D | fs_ttc.c | 284 spec->match_value, in mlx5_generate_ttc_rule() 293 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, ipv); in mlx5_generate_ttc_rule() 297 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ethertype, etype); in mlx5_generate_ttc_rule() 471 MLX5_SET(fte_match_param, spec->match_value, inner_headers.ip_version, ipv); in mlx5_generate_inner_ttc_rule() 480 spec->match_value, in mlx5_generate_inner_ttc_rule()
|
H A D | smfs.c | 57 value.match_buf = (u64 *)spec->match_value; in mlx5_smfs_rule_create()
|
H A D | ipsec_fs_roce.c | 54 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_protocol, IPPROTO_UDP); in ipsec_fs_roce_setup_udp_dport() 56 MLX5_SET(fte_match_param, spec->match_value, outer_headers.udp_dport, dport); in ipsec_fs_roce_setup_udp_dport() 247 MLX5_SET(fte_match_param, spec->match_value, misc_parameters.source_vhca_port, in ipsec_fs_roce_tx_mpv_rule_setup()
|
/linux/drivers/clocksource/ |
H A D | sh_cmt.c | 101 u32 match_value; member 458 if (has_wrapped && (new_match > ch->match_value)) { in sh_cmt_clock_event_program_verify() 476 ch->match_value = new_match; in sh_cmt_clock_event_program_verify() 487 ch->match_value = new_match; in sh_cmt_clock_event_program_verify() 542 ch->total_cycles += ch->match_value + 1; in sh_cmt_interrupt() 570 || (ch->match_value == ch->next_match_value)) in sh_cmt_interrupt() 657 raw += ch->match_value + 1; in sh_cmt_clocksource_read() 934 ch->match_value = ch->max_match_value; in sh_cmt_setup_channel()
|
/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-pip.h | 318 uint64_t match_value, uint64_t qos) 324 watcher_config.s.match_value = match_value;
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
H A D | helper.c | 66 MLX5_SET_TO_ONES(fte_match_param, spec->match_value, outer_headers.cvlan_tag); in esw_egress_acl_vlan_create() 68 MLX5_SET(fte_match_param, spec->match_value, outer_headers.first_vid, vlan_id); in esw_egress_acl_vlan_create()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | test_mmap_inner_array.c | 51 ASSERT_EQ(*val, skel->data->match_value, "value match 2"); in test_mmap_inner_array()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | ct_fs_smfs.c | 326 tcp = MLX5_GET(fte_match_param, spec->match_value, in mlx5_ct_fs_smfs_ct_rule_add() 328 gre = MLX5_GET(fte_match_param, spec->match_value, in mlx5_ct_fs_smfs_ct_rule_add()
|
/linux/drivers/infiniband/hw/mlx5/ |
H A D | fs.c | 191 u32 *match_v = spec->match_value; in parse_flow_attr() 820 MLX5_SET(fte_match_param, &spec->match_value, in set_vhca_port_spec() 839 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_ecn, in set_ecn_ce_spec() 843 MLX5_SET(fte_match_param, spec->match_value, outer_headers.ip_version, in set_ecn_ce_spec() 861 MLX5_SET(fte_match_param, spec->match_value, misc_parameters.bth_opcode, in set_cnp_spec() 992 void *misc_params_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, in set_underlay_qp() 1013 misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, in mlx5_ib_set_rule_source_port() 1025 misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, in mlx5_ib_set_rule_source_port() 1537 memcpy(spec->match_value, cmd_in, inlen); in _create_raw_flow_rule()
|
/linux/include/linux/mlx5/ |
H A D | fs.h | 147 u32 match_value[MLX5_ST_SZ_DW(fte_match_param)]; member
|