Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 1175) sorted by relevance

12345678910>>...47

/linux/tools/testing/selftests/net/
H A Dfib_rule_tests.sh106 echo "SKIP: iproute2 iprule too old, missing $1 match"
112 echo "SKIP: iproute2 get route too old, missing $2 match"
133 local match="$1"
139 $IP -6 rule add $match table $RTABLE
146 fib_rule6_del_by_pref "$match"
152 local match="$1"
155 $IP -6 rule add $match table $RTABLE 2>/dev/null
157 log_test $rc 2 "rule6 check: $match"
160 $IP -6 rule del $match table $RTABLE
169 local match
[all...]
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dmatch.c30 struct flow_match_vlan match; in nfp_flower_compile_tci() local
32 flow_rule_match_vlan(rule, &match); in nfp_flower_compile_tci()
36 match.key->vlan_priority) | in nfp_flower_compile_tci()
38 match.key->vlan_id); in nfp_flower_compile_tci()
42 match.mask->vlan_priority) | in nfp_flower_compile_tci()
44 match.mask->vlan_id); in nfp_flower_compile_tci()
100 struct flow_match_eth_addrs match; in nfp_flower_compile_mac() local
104 flow_rule_match_eth_addrs(rule, &match); in nfp_flower_compile_mac()
107 tmp = match.key->dst[i] & match.mask->dst[i]; in nfp_flower_compile_mac()
109 msk->mac_dst[i] |= match.mask->dst[i]; in nfp_flower_compile_mac()
[all …]
/linux/sound/soc/intel/common/
H A DMakefile2 snd-soc-acpi-intel-match-y := soc-acpi-intel-byt-match.o soc-acpi-intel-cht-match.o \
3 soc-acpi-intel-hsw-bdw-match.o \
4 soc-acpi-intel-skl-match.o soc-acpi-intel-kbl-match.o \
5 soc-acpi-intel-bxt-match.o soc-acpi-intel-glk-match.o \
6 soc-acpi-intel-cnl-match.o soc-acpi-intel-cfl-match
[all...]
/linux/tools/lib/python/kdoc/
H A Dparse_data_structs.py182 match = re.match(r"^ignore\s+(\w+)\s+(\S+)", line)
184 if match:
185 self.ignore.append((ln, match.group(1), match.group(2)))
189 match = re.match(r"^replace\s+(\S+)\s+(\S+)\s+(\S+)", line)
190 if match:
191 self.replace.append((ln, match.group(1), match
[all...]
/linux/drivers/base/
H A Dcomponent.c62 struct component_match *match; member
86 struct component_match *match = m->match; in component_devices_show() local
97 for (i = 0; i < match->num; i++) { in component_devices_show()
98 struct component *component = match->compare[i].component; in component_devices_show()
175 struct component_match *match = adev->match; in find_components() local
183 for (i = 0; i < match->num; i++) { in find_components()
184 struct component_match_array *mc = &match->compare[i]; in find_components()
189 if (match->compare[i].component) in find_components()
202 match->compare[i].duplicate = !!c->adev; in find_components()
203 match->compare[i].component = c; in find_components()
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_flower.c307 const struct flow_match_meta *match, in mlxsw_sp_flower_parse_meta_iif() argument
313 if (!match->mask->ingress_ifindex) in mlxsw_sp_flower_parse_meta_iif()
316 if (match->mask->ingress_ifindex != 0xFFFFFFFF) { in mlxsw_sp_flower_parse_meta_iif()
322 match->key->ingress_ifindex); in mlxsw_sp_flower_parse_meta_iif()
352 struct flow_match_meta match; in mlxsw_sp_flower_parse_meta() local
357 flow_rule_match_meta(rule, &match); in mlxsw_sp_flower_parse_meta()
360 match.key->l2_miss, match.mask->l2_miss); in mlxsw_sp_flower_parse_meta()
362 return mlxsw_sp_flower_parse_meta_iif(rulei, block, &match, in mlxsw_sp_flower_parse_meta()
369 struct flow_match_ipv4_addrs match; in mlxsw_sp_flower_parse_ipv4() local
371 flow_rule_match_ipv4_addrs(f->rule, &match); in mlxsw_sp_flower_parse_ipv4()
[all …]
H A Dspectrum_dpipe.c102 struct devlink_dpipe_match match = {0}; in mlxsw_sp_dpipe_table_erif_matches_dump() local
104 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_erif_matches_dump()
105 match.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_erif_matches_dump()
106 match.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_dpipe_table_erif_matches_dump()
108 return devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_erif_matches_dump()
112 mlxsw_sp_erif_match_action_prepare(struct devlink_dpipe_match *match, in mlxsw_sp_erif_match_action_prepare() argument
119 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_erif_match_action_prepare()
120 match->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_erif_match_action_prepare()
121 match->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_erif_match_action_prepare()
126 struct devlink_dpipe_match *match, in mlxsw_sp_erif_entry_prepare() argument
[all …]
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_flower.c144 struct prestera_acl_match *r_match = &rule->re_key.match; in prestera_flower_parse_meta()
147 struct flow_match_meta match; in prestera_flower_parse_meta() local
150 flow_rule_match_meta(f_rule, &match); in prestera_flower_parse_meta()
152 if (match.mask->l2_miss) { in prestera_flower_parse_meta()
157 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in prestera_flower_parse_meta()
164 match.key->ingress_ifindex); in prestera_flower_parse_meta()
196 struct flow_dissector *dissector = f_rule->match.dissector; in prestera_flower_parse()
197 struct prestera_acl_match *r_match = &rule->re_key.match; in prestera_flower_parse()
228 struct flow_match_control match; in prestera_flower_parse() local
230 flow_rule_match_control(f_rule, &match); in prestera_flower_parse()
[all …]
/linux/drivers/net/ethernet/sfc/
H A Dtc.c230 match->value._field = fm.key->_tcfield; \
231 match->mask._field = fm.mask->_tcfield; \
240 struct efx_tc_match *match, in efx_tc_flower_parse_match() argument
243 struct flow_dissector *dissector = rule->match.dissector; in efx_tc_flower_parse_match()
269 match->value.ip_frag = fm.key->flags & FLOW_DIS_IS_FRAGMENT; in efx_tc_flower_parse_match()
270 match->mask.ip_frag = true; in efx_tc_flower_parse_match()
273 match->value.ip_firstfrag = fm.key->flags & FLOW_DIS_FIRST_FRAG; in efx_tc_flower_parse_match()
274 match->mask.ip_firstfrag = true; in efx_tc_flower_parse_match()
306 if (!IS_ALL_ONES(match->mask.eth_proto) || in efx_tc_flower_parse_match()
307 !(match in efx_tc_flower_parse_match()
490 efx_tc_flower_record_encap_match(struct efx_nic * efx,struct efx_tc_match * match,enum efx_encap_type type,enum efx_tc_em_pseudo_type em_type,u8 child_ip_tos_mask,__be16 child_udp_sport_mask,struct netlink_ext_ack * extack) efx_tc_flower_record_encap_match() argument
854 efx_tc_rule_is_lhs_rule(struct flow_rule * fr,struct efx_tc_match * match) efx_tc_rule_is_lhs_rule() argument
893 efx_tc_flower_translate_flhs_match(struct efx_tc_match * match) efx_tc_flower_translate_flhs_match() argument
945 efx_tc_flower_flhs_needs_ar(struct efx_tc_match * match) efx_tc_flower_flhs_needs_ar() argument
1243 efx_tc_mangle(struct efx_nic * efx,struct efx_tc_action_set * act,const struct flow_action_entry * fa,struct efx_tc_mangler_state * mung,struct netlink_ext_ack * extack,struct efx_tc_match * match) efx_tc_mangle() argument
1455 efx_tc_flower_replace_foreign_lhs_ar(struct efx_nic * efx,struct flow_cls_offload * tc,struct flow_rule * fr,struct efx_tc_match * match,struct net_device * net_dev) efx_tc_flower_replace_foreign_lhs_ar() argument
1559 efx_tc_flower_replace_foreign_lhs(struct efx_nic * efx,struct flow_cls_offload * tc,struct flow_rule * fr,struct efx_tc_match * match,struct net_device * net_dev) efx_tc_flower_replace_foreign_lhs() argument
1678 struct efx_tc_match match; efx_tc_flower_replace_foreign() local
1994 efx_tc_flower_replace_lhs(struct efx_nic * efx,struct flow_cls_offload * tc,struct flow_rule * fr,struct efx_tc_match * match,struct efx_rep * efv,struct net_device * net_dev) efx_tc_flower_replace_lhs() argument
2079 struct efx_tc_match match; efx_tc_flower_replace() local
2669 struct efx_tc_match *match = &rule->match; efx_tc_configure_default_rule() local
[all...]
H A Dmae.c696 * exact match on Outer Rule ID if any outer field matches are in efx_mae_match_check_caps()
698 * available to the Action Rule match iff the Outer Rule matched in efx_mae_match_check_caps()
718 /* Checks for match fields not supported in LHS Outer Rules */
724 NL_SET_ERR_MSG_MOD(extack, "Unsupported match field " #_field);\
731 NL_SET_ERR_MSG_MOD(extack, "Unsupported match field " #_field);\
738 * they use ENC_ fields in hardware to match regular (not enc_) fields from
788 NL_SET_ERR_MSG_MOD(extack, "Unexpected encap match in LHS rule"); in efx_mae_match_check_caps_lhs()
813 * MAE. All the fields are exact-match, except possibly ENC_IP_TOS.
1568 const struct efx_tc_match *match) in efx_mae_populate_lhs_match_criteria()
1570 if (match in efx_mae_populate_lhs_match_criteria()
1566 efx_mae_populate_lhs_match_criteria(MCDI_DECLARE_STRUCT_PTR (match_crit),const struct efx_tc_match * match) efx_mae_populate_lhs_match_criteria() argument
2080 efx_mae_populate_match_criteria(MCDI_DECLARE_STRUCT_PTR (match_crit),const struct efx_tc_match * match) efx_mae_populate_match_criteria() argument
2221 efx_mae_insert_rule(struct efx_nic * efx,const struct efx_tc_match * match,u32 prio,u32 acts_id,u32 * id) efx_mae_insert_rule() argument
[all...]
/linux/net/sched/
H A Dem_ipt.c22 const struct xt_match *match; member
53 mtpar.family = im->match->family; in check_match()
54 mtpar.match = im->match; in check_match()
63 pr_err("only policy match revision 0 supported"); in policy_validate_match_data()
78 pr_err("only addrtype match revision 1 supported"); in addrtype_validate_match_data()
111 pr_err("Unsupported xt match"); in get_xt_match()
131 struct xt_match *match; in em_ipt_change() local
156 match = get_xt_match(tb); in em_ipt_change()
157 if (IS_ERR(match)) { in em_ipt_change()
[all...]
/linux/net/openvswitch/
H A Dflow_netlink.c93 static void update_range(struct sw_flow_match *match, in actions_may_change_flow()
101 range = &match->range; in update_range()
103 range = &match->mask->range; in update_range()
118 #define SW_FLOW_KEY_PUT(match, field, value, is_mask) \ in update_range()
120 update_range(match, offsetof(struct sw_flow_key, field), \ argument
121 sizeof((match)->key->field), is_mask); \
123 (match)->mask->key.field = value; \
125 (match)->key->field = value; \
128 #define SW_FLOW_KEY_MEMCPY_OFFSET(match, offset, value_p, len, is_mask) \
130 update_range(match, offse argument
95 update_range(struct sw_flow_match * match,size_t offset,size_t size,bool is_mask) update_range() argument
140 SW_FLOW_KEY_MEMCPY(match,field,value_p,len,is_mask) global() argument
144 SW_FLOW_KEY_MEMSET_FIELD(match,field,value,is_mask) global() argument
156 SW_FLOW_KEY_BITMAP_COPY(match,field,value_p,nbits,is_mask) global() argument
163 match_validate(const struct sw_flow_match * match,u64 key_attrs,u64 mask_attrs,bool log) match_validate() argument
543 genev_tun_opt_from_nlattr(const struct nlattr * a,struct sw_flow_match * match,bool is_mask,bool log) genev_tun_opt_from_nlattr() argument
594 vxlan_tun_opt_from_nlattr(const struct nlattr * attr,struct sw_flow_match * match,bool is_mask,bool log) vxlan_tun_opt_from_nlattr() argument
650 erspan_tun_opt_from_nlattr(const struct nlattr * a,struct sw_flow_match * match,bool is_mask,bool log) erspan_tun_opt_from_nlattr() argument
677 ip_tun_from_nlattr(const struct nlattr * attr,struct sw_flow_match * match,bool is_mask,bool log) ip_tun_from_nlattr() argument
988 encode_vlan_from_nlattrs(struct sw_flow_match * match,const struct nlattr * a[],bool is_mask,bool inner) encode_vlan_from_nlattrs() argument
1011 validate_vlan_from_nlattrs(const struct sw_flow_match * match,u64 key_attrs,bool inner,const struct nlattr ** a,bool log) validate_vlan_from_nlattrs() argument
1049 validate_vlan_mask_from_nlattrs(const struct sw_flow_match * match,u64 key_attrs,bool inner,const struct nlattr ** a,bool log) validate_vlan_mask_from_nlattrs() argument
1091 __parse_vlan_from_nlattrs(struct sw_flow_match * match,u64 * key_attrs,bool inner,const struct nlattr ** a,bool is_mask,bool log) __parse_vlan_from_nlattrs() argument
1126 parse_vlan_from_nlattrs(struct sw_flow_match * match,u64 * key_attrs,const struct nlattr ** a,bool is_mask,bool log) parse_vlan_from_nlattrs() argument
1149 parse_eth_type_from_nlattrs(struct sw_flow_match * match,u64 * attrs,const struct nlattr ** a,bool is_mask,bool log) parse_eth_type_from_nlattrs() argument
1170 metadata_from_nlattrs(struct net * net,struct sw_flow_match * match,u64 * attrs,const struct nlattr ** a,bool is_mask,bool log) metadata_from_nlattrs() argument
1366 nsh_key_put_from_nlattr(const struct nlattr * attr,struct sw_flow_match * match,bool is_mask,bool is_push_nsh,bool log) nsh_key_put_from_nlattr() argument
1486 ovs_key_from_nlattrs(struct net * net,struct sw_flow_match * match,u64 attrs,const struct nlattr ** a,bool is_mask,bool log) ovs_key_from_nlattrs() argument
1775 ovs_nla_get_match(struct net * net,struct sw_flow_match * match,const struct nlattr * nla_key,const struct nlattr * nla_mask,bool log) ovs_nla_get_match() argument
1931 struct sw_flow_match match; ovs_nla_get_flow_metadata() local
2753 ovs_match_init(struct sw_flow_match * match,struct sw_flow_key * key,bool reset_key,struct sw_flow_mask * mask) ovs_match_init() argument
2804 struct sw_flow_match match; validate_and_copy_set_tun() local
2892 struct sw_flow_match match; validate_push_nsh() local
[all...]
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_flower.c169 struct flow_match_basic match; in cxgb4_process_flow_match() local
172 flow_rule_match_basic(rule, &match); in cxgb4_process_flow_match()
173 ethtype_key = ntohs(match.key->n_proto); in cxgb4_process_flow_match()
174 ethtype_mask = ntohs(match.mask->n_proto); in cxgb4_process_flow_match()
186 fs->val.proto = match.key->ip_proto; in cxgb4_process_flow_match()
187 fs->mask.proto = match.mask->ip_proto; in cxgb4_process_flow_match()
191 struct flow_match_ipv4_addrs match; in cxgb4_process_flow_match() local
193 flow_rule_match_ipv4_addrs(rule, &match); in cxgb4_process_flow_match()
195 memcpy(&fs->val.lip[0], &match.key->dst, sizeof(match.key->dst)); in cxgb4_process_flow_match()
196 memcpy(&fs->val.fip[0], &match.key->src, sizeof(match.key->src)); in cxgb4_process_flow_match()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_tc.c558 struct flow_match_vlan match; in otx2_tc_process_vlan() local
562 flow_rule_match_cvlan(rule, &match); in otx2_tc_process_vlan()
564 flow_rule_match_vlan(rule, &match); in otx2_tc_process_vlan()
566 if (!eth_type_vlan(match.key->vlan_tpid)) { in otx2_tc_process_vlan()
568 ntohs(match.key->vlan_tpid)); in otx2_tc_process_vlan()
572 if (!match.mask->vlan_id) { in otx2_tc_process_vlan()
580 ntohs(match.key->vlan_tpid), match.key->vlan_id); in otx2_tc_process_vlan()
586 if (match.mask->vlan_id || in otx2_tc_process_vlan()
587 match in otx2_tc_process_vlan()
644 struct flow_match_basic match; otx2_tc_prepare_flow() local
686 struct flow_match_control match; otx2_tc_prepare_flow() local
714 struct flow_match_eth_addrs match; otx2_tc_prepare_flow() local
731 struct flow_match_ipsec match; otx2_tc_prepare_flow() local
751 struct flow_match_ip match; otx2_tc_prepare_flow() local
785 struct flow_match_ipv4_addrs match; otx2_tc_prepare_flow() local
797 struct flow_match_ipv6_addrs match; otx2_tc_prepare_flow() local
830 struct flow_match_ports match; otx2_tc_prepare_flow() local
860 struct flow_match_tcp match; otx2_tc_prepare_flow() local
870 struct flow_match_mpls match; otx2_tc_prepare_flow() local
925 struct flow_match_icmp match; otx2_tc_prepare_flow() local
[all...]
/linux/drivers/net/dsa/mv88e6xxx/
H A Dtcflower.c23 struct flow_dissector *dissector = rule->match.dissector; in mv88e6xxx_flower_parse_key()
36 struct flow_match_control match; in mv88e6xxx_flower_parse_key() local
38 flow_rule_match_control(rule, &match); in mv88e6xxx_flower_parse_key()
39 addr_type = match.key->addr_type; in mv88e6xxx_flower_parse_key()
41 if (flow_rule_has_control_flags(match.mask->flags, in mv88e6xxx_flower_parse_key()
46 struct flow_match_basic match; in mv88e6xxx_flower_parse_key() local
48 flow_rule_match_basic(rule, &match); in mv88e6xxx_flower_parse_key()
50 match.key->n_proto, in mv88e6xxx_flower_parse_key()
51 match.mask->n_proto); in mv88e6xxx_flower_parse_key()
53 match.key->ip_proto, in mv88e6xxx_flower_parse_key()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_tc_lib.c1292 * @match: Pointer to flow match structure
1298 ice_tc_set_pppoe(struct flow_match_pppoe *match, in ice_tc_set_pppoe()
1302 if (match->mask->session_id) { in ice_tc_set_pppoe()
1304 headers->pppoe_hdr.session_id = match->key->session_id; in ice_tc_set_pppoe()
1307 if (match->mask->ppp_proto) { in ice_tc_set_pppoe()
1309 headers->pppoe_hdr.ppp_proto = match->key->ppp_proto; in ice_tc_set_pppoe()
1312 return be16_to_cpu(match->key->type); in ice_tc_set_pppoe()
1317 * @match: Pointer to flow match structur
1297 ice_tc_set_pppoe(struct flow_match_pppoe * match,struct ice_tc_flower_fltr * fltr,struct ice_tc_flower_lyr_2_4_hdrs * headers) ice_tc_set_pppoe() argument
1322 ice_tc_set_ipv4(struct flow_match_ipv4_addrs * match,struct ice_tc_flower_fltr * fltr,struct ice_tc_flower_lyr_2_4_hdrs * headers,bool is_encap) ice_tc_set_ipv4() argument
1353 ice_tc_set_ipv6(struct flow_match_ipv6_addrs * match,struct ice_tc_flower_fltr * fltr,struct ice_tc_flower_lyr_2_4_hdrs * headers,bool is_encap) ice_tc_set_ipv6() argument
1415 ice_tc_set_tos_ttl(struct flow_match_ip * match,struct ice_tc_flower_fltr * fltr,struct ice_tc_flower_lyr_2_4_hdrs * headers,bool is_encap) ice_tc_set_tos_ttl() argument
1449 ice_tc_set_port(struct flow_match_ports match,struct ice_tc_flower_fltr * fltr,struct ice_tc_flower_lyr_2_4_hdrs * headers,bool is_encap) ice_tc_set_port() argument
1503 ice_parse_gtp_type(struct flow_match_ports match,struct ice_tc_flower_fltr * fltr) ice_parse_gtp_type() argument
1556 struct flow_match_ipv4_addrs match; ice_parse_tunnel_attr() local
1563 struct flow_match_ipv6_addrs match; ice_parse_tunnel_attr() local
1571 struct flow_match_ip match; ice_parse_tunnel_attr() local
1579 struct flow_match_ports match; ice_parse_tunnel_attr() local
1594 struct flow_match_enc_opts match; ice_parse_tunnel_attr() local
1609 struct flow_match_enc_opts match; ice_parse_tunnel_attr() local
1707 struct flow_match_basic match; ice_parse_cls_flower() local
1743 struct flow_match_eth_addrs match; ice_parse_cls_flower() local
1768 struct flow_match_vlan match; ice_parse_cls_flower() local
1807 struct flow_match_vlan match; ice_parse_cls_flower() local
1838 struct flow_match_pppoe match; ice_parse_cls_flower() local
1854 struct flow_match_control match; ice_parse_cls_flower() local
1866 struct flow_match_ipv4_addrs match; ice_parse_cls_flower() local
1874 struct flow_match_ipv6_addrs match; ice_parse_cls_flower() local
1882 struct flow_match_ip match; ice_parse_cls_flower() local
1889 struct flow_match_l2tpv3 match; ice_parse_cls_flower() local
1898 struct flow_match_ports match; ice_parse_cls_flower() local
[all...]
/linux/net/netfilter/
H A Dnf_tables_offload.c24 flow->rule->match.dissector = &flow->match.dissector; in nft_flow_rule_alloc()
25 flow->rule->match.mask = &flow->match.mask; in nft_flow_rule_alloc()
26 flow->rule->match.key = &flow->match.key; in nft_flow_rule_alloc()
34 struct nft_flow_match *match = &flow->match; in nft_flow_rule_set_addr_type() local
35 struct nft_flow_key *mask = &match->mask; in nft_flow_rule_set_addr_type()
36 struct nft_flow_key *key = &match in nft_flow_rule_set_addr_type()
56 struct nft_flow_match *match = &flow->match; nft_flow_rule_transfer_vlan() local
[all...]
H A Dxt_ipvs.c58 bool match = true; in ipvs_mt() local
61 match = skb->ipvs_property ^ in ipvs_mt()
68 match = false; in ipvs_mt()
77 match = false; in ipvs_mt()
83 match = false; in ipvs_mt()
92 match = false; in ipvs_mt()
104 match = false; in ipvs_mt()
112 match = false; in ipvs_mt()
121 match = false; in ipvs_mt()
127 match = false; in ipvs_mt()
[all …]
H A Dx_tables.c70 struct list_head match; member
142 int xt_register_match(struct xt_match *match) in xt_register_match() argument
144 u_int8_t af = match->family; in xt_register_match()
147 list_add(&match->list, &xt[af].match); in xt_register_match()
154 xt_unregister_match(struct xt_match *match) in xt_unregister_match() argument
156 u_int8_t af = match->family; in xt_unregister_match()
159 list_del(&match->list); in xt_unregister_match()
165 xt_register_matches(struct xt_match *match, unsigned int n) in xt_register_matches() argument
171 err = xt_register_match(&match[i]); in xt_register_matches()
179 xt_unregister_matches(match, i); in xt_register_matches()
[all …]
/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch-flower.c15 struct flow_dissector *dissector = rule->match.dissector; in dpaa2_switch_flower_parse_key()
33 acl_h = &acl_key->match; in dpaa2_switch_flower_parse_key()
40 struct flow_match_basic match; in dpaa2_switch_flower_parse_key() local
42 flow_rule_match_basic(rule, &match); in dpaa2_switch_flower_parse_key()
43 acl_h->l3_protocol = match.key->ip_proto; in dpaa2_switch_flower_parse_key()
44 acl_h->l2_ether_type = be16_to_cpu(match.key->n_proto); in dpaa2_switch_flower_parse_key()
45 acl_m->l3_protocol = match.mask->ip_proto; in dpaa2_switch_flower_parse_key()
46 acl_m->l2_ether_type = be16_to_cpu(match.mask->n_proto); in dpaa2_switch_flower_parse_key()
50 struct flow_match_eth_addrs match; in dpaa2_switch_flower_parse_key() local
52 flow_rule_match_eth_addrs(rule, &match); in dpaa2_switch_flower_parse_key()
[all …]
/linux/arch/x86/tools/
H A Dgen-insn-attr-x86.awk276 if (match(i, imm_expr) == 1) {
285 } else if (match(i, modrm_expr))
324 if (match($i, opnd_expr)) {
329 if (match($i, ext_expr))
331 if (match($i, sep_expr))
337 if (match(opcode, group_expr)) {
345 if (match(ext, force64_expr))
349 if (match(ext, invalid64_expr) &&
350 !match($0, only64_expr))
354 if (match(ext, no_rex2_expr))
[all …]
/linux/tools/arch/x86/tools/
H A Dgen-insn-attr-x86.awk276 if (match(i, imm_expr) == 1) {
285 } else if (match(i, modrm_expr))
324 if (match($i, opnd_expr)) {
329 if (match($i, ext_expr))
331 if (match($i, sep_expr))
337 if (match(opcode, group_expr)) {
345 if (match(ext, force64_expr))
349 if (match(ext, invalid64_expr) &&
350 !match($0, only64_expr))
354 if (match(ext, no_rex2_expr))
[all …]
/linux/tools/crypto/tcrypt/
H A Dtcrypt_speed_compare.py59 match = re.search(pattern, line)
60 if match:
61 alg = match.group(1)
62 op = match.group(2)
71 match = re.search(pattern_operations, line)
72 if match:
74 "bit_key": int(match.group(1)),
75 "byte_blocks": int(match.group(2)),
76 "operations": int(match.group(3)),
80 match = re.search(pattern_cycles, line)
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_mplsoudp.c62 struct flow_match_mpls match; in parse_tunnel() local
76 flow_rule_match_mpls(rule, &match); in parse_tunnel()
79 if (match.mask->used_lses != 1) in parse_tunnel()
89 match.mask->ls[0].mpls_label); in parse_tunnel()
92 match.key->ls[0].mpls_label); in parse_tunnel()
96 match.mask->ls[0].mpls_tc); in parse_tunnel()
98 outer_first_mpls_over_udp.mpls_exp, match.key->ls[0].mpls_tc); in parse_tunnel()
102 match.mask->ls[0].mpls_bos); in parse_tunnel()
105 match.key->ls[0].mpls_bos); in parse_tunnel()
109 match.mask->ls[0].mpls_ttl); in parse_tunnel()
[all …]
/linux/arch/sh/drivers/
H A Dplatform_early.c212 struct platform_device *match; in sh_early_platform_driver_probe_id() local
247 match = NULL; in sh_early_platform_driver_probe_id()
250 match = sh_early_platform_match(epdrv, match_id); in sh_early_platform_driver_probe_id()
253 if (match) { in sh_early_platform_driver_probe_id()
259 if (!match->dev.init_name && slab_is_available()) { in sh_early_platform_driver_probe_id()
260 if (match->id != -1) in sh_early_platform_driver_probe_id()
261 match->dev.init_name = in sh_early_platform_driver_probe_id()
263 match->name, in sh_early_platform_driver_probe_id()
264 match->id); in sh_early_platform_driver_probe_id()
266 match->dev.init_name = in sh_early_platform_driver_probe_id()
[all …]

12345678910>>...47