/openbmc/linux/tools/testing/selftests/net/ |
H A D | fib_rule_tests.sh | 168 local match="$1" 172 $IP -6 rule add $match table $RTABLE 176 fib_rule6_del_by_pref "$match" 182 local match="$1" 185 $IP -6 rule add $match table $RTABLE 2>/dev/null 187 log_test $rc 2 "rule6 check: $match" 190 $IP -6 rule del $match table $RTABLE 197 local match 203 match="oif $DEV" 204 fib_rule6_test_match_n_redirect "$match" "$match" "oif redirect to table" [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | match.c | 30 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 …]
|
/openbmc/linux/sound/soc/intel/common/ |
H A D | Makefile | 4 snd-soc-acpi-intel-match-objs := soc-acpi-intel-byt-match.o soc-acpi-intel-cht-match.o \ 5 soc-acpi-intel-hsw-bdw-match.o \ 6 soc-acpi-intel-skl-match.o soc-acpi-intel-kbl-match.o \ 7 soc-acpi-intel-bxt-match.o soc-acpi-intel-glk-match.o \ 8 soc-acpi-intel-cnl-match.o soc-acpi-intel-cfl-match.o \ 9 soc-acpi-intel-cml-match.o soc-acpi-intel-icl-match.o \ 10 soc-acpi-intel-tgl-match.o soc-acpi-intel-ehl-match.o \ 11 soc-acpi-intel-jsl-match.o soc-acpi-intel-adl-match.o \ 12 soc-acpi-intel-rpl-match.o soc-acpi-intel-mtl-match.o \ 13 soc-acpi-intel-arl-match.o \ [all …]
|
/openbmc/linux/drivers/base/ |
H A D | component.c | 62 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 …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_flower.c | 297 const struct flow_match_meta *match, in mlxsw_sp_flower_parse_meta_iif() argument 303 if (!match->mask->ingress_ifindex) in mlxsw_sp_flower_parse_meta_iif() 306 if (match->mask->ingress_ifindex != 0xFFFFFFFF) { in mlxsw_sp_flower_parse_meta_iif() 312 match->key->ingress_ifindex); in mlxsw_sp_flower_parse_meta_iif() 342 struct flow_match_meta match; in mlxsw_sp_flower_parse_meta() local 347 flow_rule_match_meta(rule, &match); in mlxsw_sp_flower_parse_meta() 350 match.key->l2_miss, match.mask->l2_miss); in mlxsw_sp_flower_parse_meta() 352 return mlxsw_sp_flower_parse_meta_iif(rulei, block, &match, in mlxsw_sp_flower_parse_meta() 359 struct flow_match_ipv4_addrs match; in mlxsw_sp_flower_parse_ipv4() local 361 flow_rule_match_ipv4_addrs(f->rule, &match); in mlxsw_sp_flower_parse_ipv4() [all …]
|
H A D | spectrum_dpipe.c | 102 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 …]
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_flower.c | 144 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 …]
|
/openbmc/sdbusplus/include/sdbusplus/async/ |
H A D | match.hpp | 25 class match : private bus::details::bus_friend class 28 match() = delete; 29 match(const match&) = delete; 30 match& operator=(const match&) = delete; 31 match(match&&) = delete; 32 match& operator=(match&&) = delete; 33 ~match(); 37 match(context& ctx, const std::string_view& pattern); 84 explicit match_completion(match& m) : m(m) {}; in match_completion() 87 friend match; [all …]
|
/openbmc/u-boot/lib/ |
H A D | lz4.c | 111 const BYTE* match; in LZ4_decompress_generic() local 152 match = cpy - LZ4_readLE16(ip); ip+=2; in LZ4_decompress_generic() 153 …if ((checkOffset) && (unlikely(match < lowLimit))) goto _output_error; /* Error : offset outside… in LZ4_decompress_generic() 171 if ((dict==usingExtDict) && (match < lowPrefix)) in LZ4_decompress_generic() 175 if (length <= (size_t)(lowPrefix-match)) in LZ4_decompress_generic() 178 match = dictEnd - (lowPrefix-match); in LZ4_decompress_generic() 179 memmove(op, match, length); op += length; in LZ4_decompress_generic() 184 size_t copySize = (size_t)(lowPrefix-match); in LZ4_decompress_generic() 205 if (unlikely((op-match)<8)) in LZ4_decompress_generic() 207 const size_t dec64 = dec64table[op-match]; in LZ4_decompress_generic() [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | devres.c | 289 struct regulator_bulk_devres *match = res; in devm_regulator_bulk_match() local 298 return match->consumers == target; in devm_regulator_bulk_match() 438 struct regulator_supply_alias_match *match = res; in devm_regulator_match_supply_alias() local 441 return match->dev == target->dev && strcmp(match->id, target->id) == 0; in devm_regulator_match_supply_alias() 446 struct regulator_supply_alias_match *match = res; in devm_regulator_destroy_supply_alias() local 448 regulator_unregister_supply_alias(match->dev, match->id); in devm_regulator_destroy_supply_alias() 468 struct regulator_supply_alias_match *match; in devm_regulator_register_supply_alias() local 471 match = devres_alloc(devm_regulator_destroy_supply_alias, in devm_regulator_register_supply_alias() 474 if (!match) in devm_regulator_register_supply_alias() 477 match->dev = dev; in devm_regulator_register_supply_alias() [all …]
|
/openbmc/linux/net/sched/ |
H A D | em_ipt.c | 22 const struct xt_match *match; member 53 mtpar.family = im->match->family; in check_match() 54 mtpar.match = im->match; in check_match() 131 struct xt_match *match; in em_ipt_change() local 153 match = get_xt_match(tb); in em_ipt_change() 154 if (IS_ERR(match)) { in em_ipt_change() 156 return PTR_ERR(match); in em_ipt_change() 166 im->match = match; in em_ipt_change() 181 module_put(match->me); in em_ipt_change() 192 if (im->match->destroy) { in em_ipt_destroy() [all …]
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-async.c | 68 struct v4l2_async_match_desc *match) in match_i2c() argument 74 match->i2c.adapter_id == client->adapter->nr && in match_i2c() 75 match->i2c.address == client->addr; in match_i2c() 95 struct v4l2_async_match_desc *match) in match_fwnode_one() argument 102 sd_fwnode, match->fwnode); in match_fwnode_one() 104 if (sd_fwnode == match->fwnode) { in match_fwnode_one() 110 if (!fwnode_graph_is_endpoint(match->fwnode)) { in match_fwnode_one() 116 asd_dev_fwnode = fwnode_graph_get_port_parent(match->fwnode); in match_fwnode_one() 131 struct v4l2_async_match_desc *match) in match_fwnode() argument 142 match->fwnode); in match_fwnode() [all …]
|
/openbmc/linux/net/openvswitch/ |
H A D | flow_netlink.c | 94 static void update_range(struct sw_flow_match *match, in update_range() argument 102 range = &match->range; in update_range() 104 range = &match->mask->range; in update_range() 119 #define SW_FLOW_KEY_PUT(match, field, value, is_mask) \ argument 121 update_range(match, offsetof(struct sw_flow_key, field), \ 122 sizeof((match)->key->field), is_mask); \ 124 (match)->mask->key.field = value; \ 126 (match)->key->field = value; \ 129 #define SW_FLOW_KEY_MEMCPY_OFFSET(match, offset, value_p, len, is_mask) \ argument 131 update_range(match, offset, len, is_mask); \ [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | tc.c | 230 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() 307 if (!IS_ALL_ONES(match->mask.eth_proto) || in efx_tc_flower_parse_match() 308 !(match->value.eth_proto == htons(ETH_P_IP) || in efx_tc_flower_parse_match() [all …]
|
H A D | mae.c | 1574 const struct efx_tc_match *match) in efx_mae_populate_lhs_match_criteria() argument 1576 if (match->mask.ingress_port) { in efx_mae_populate_lhs_match_criteria() 1577 if (~match->mask.ingress_port) in efx_mae_populate_lhs_match_criteria() 1581 match->value.ingress_port); in efx_mae_populate_lhs_match_criteria() 1584 match->mask.ingress_port); in efx_mae_populate_lhs_match_criteria() 1586 match->value.eth_proto); in efx_mae_populate_lhs_match_criteria() 1588 match->mask.eth_proto); in efx_mae_populate_lhs_match_criteria() 1590 match->value.vlan_tci[0]); in efx_mae_populate_lhs_match_criteria() 1592 match->mask.vlan_tci[0]); in efx_mae_populate_lhs_match_criteria() 1594 match->value.vlan_proto[0]); in efx_mae_populate_lhs_match_criteria() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_tc_lib.c | 1091 ice_tc_set_pppoe(struct flow_match_pppoe *match, in ice_tc_set_pppoe() argument 1095 if (match->mask->session_id) { in ice_tc_set_pppoe() 1097 headers->pppoe_hdr.session_id = match->key->session_id; in ice_tc_set_pppoe() 1100 if (match->mask->ppp_proto) { in ice_tc_set_pppoe() 1102 headers->pppoe_hdr.ppp_proto = match->key->ppp_proto; in ice_tc_set_pppoe() 1105 return be16_to_cpu(match->key->type); in ice_tc_set_pppoe() 1116 ice_tc_set_ipv4(struct flow_match_ipv4_addrs *match, in ice_tc_set_ipv4() argument 1120 if (match->key->dst) { in ice_tc_set_ipv4() 1125 headers->l3_key.dst_ipv4 = match->key->dst; in ice_tc_set_ipv4() 1126 headers->l3_mask.dst_ipv4 = match->mask->dst; in ice_tc_set_ipv4() [all …]
|
/openbmc/openbmc/poky/meta/classes-recipe/ |
H A D | kernel-arch.bbclass | 9 # modules). return value must match one of the architecture directories 31 if re.match('(i.86|athlon|x86.64)$', a): return 'x86' 32 elif re.match('arceb$', a): return 'arc' 33 elif re.match('armeb$', a): return 'arm' 34 elif re.match('aarch64$', a): return 'arm64' 35 elif re.match('aarch64_be$', a): return 'arm64' 36 elif re.match('aarch64_ilp32$', a): return 'arm64' 37 elif re.match('aarch64_be_ilp32$', a): return 'arm64' 38 elif re.match('loongarch(32|64|)$', a): return 'loongarch' 39 elif re.match('mips(isa|)(32|64|)(r6|)(el|)$', a): return 'mips' [all …]
|
/openbmc/u-boot/tools/patman/ |
H A D | checkpatch.py | 91 match = re_stats_full.match(line) 92 if not match: 93 match = re_stats.match(line) 94 if match: 95 result.errors = int(match.group(1)) 96 result.warnings = int(match.group(2)) 97 if len(match.groups()) == 4: 98 result.checks = int(match.group(3)) 99 result.lines = int(match.group(4)) 101 result.lines = int(match.group(3)) [all …]
|
/openbmc/linux/net/netfilter/ |
H A D | xt_ipvs.c | 58 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 D | xt_owner.c | 25 if (info->match & ~XT_OWNER_MASK) in owner_check() 31 if ((info->match & (XT_OWNER_UID|XT_OWNER_GID)) && in owner_check() 36 if (info->match & XT_OWNER_UID) { in owner_check() 48 if (info->match & XT_OWNER_GID) { in owner_check() 71 return (info->match ^ info->invert) == 0; in owner_mt() 72 else if (info->match & info->invert & XT_OWNER_SOCKET) in owner_mt() 83 return ((info->match ^ info->invert) & in owner_mt() 87 if (info->match & XT_OWNER_UID) { in owner_mt() 98 if (info->match & XT_OWNER_GID) { in owner_mt() 99 unsigned int i, match = false; in owner_mt() local [all …]
|
H A D | nf_tables_offload.c | 24 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->key; in nft_flow_rule_set_addr_type() 38 if (match->dissector.used_keys & BIT_ULL(FLOW_DISSECTOR_KEY_CONTROL)) in nft_flow_rule_set_addr_type() 43 match->dissector.used_keys |= BIT_ULL(FLOW_DISSECTOR_KEY_CONTROL); in nft_flow_rule_set_addr_type() 44 match->dissector.offset[FLOW_DISSECTOR_KEY_CONTROL] = in nft_flow_rule_set_addr_type() 56 struct nft_flow_match *match = &flow->match; in nft_flow_rule_transfer_vlan() local [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_flower.c | 169 struct flow_match_control match; in cxgb4_process_flow_match() local 171 flow_rule_match_control(rule, &match); in cxgb4_process_flow_match() 172 addr_type = match.key->addr_type; in cxgb4_process_flow_match() 180 struct flow_match_basic match; in cxgb4_process_flow_match() local 183 flow_rule_match_basic(rule, &match); in cxgb4_process_flow_match() 184 ethtype_key = ntohs(match.key->n_proto); in cxgb4_process_flow_match() 185 ethtype_mask = ntohs(match.mask->n_proto); in cxgb4_process_flow_match() 197 fs->val.proto = match.key->ip_proto; in cxgb4_process_flow_match() 198 fs->mask.proto = match.mask->ip_proto; in cxgb4_process_flow_match() 202 struct flow_match_ipv4_addrs match; in cxgb4_process_flow_match() local [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_tc.c | 465 struct flow_match_vlan match; in otx2_tc_process_vlan() local 469 flow_rule_match_cvlan(rule, &match); in otx2_tc_process_vlan() 471 flow_rule_match_vlan(rule, &match); in otx2_tc_process_vlan() 473 if (!eth_type_vlan(match.key->vlan_tpid)) { in otx2_tc_process_vlan() 475 ntohs(match.key->vlan_tpid)); in otx2_tc_process_vlan() 479 if (!match.mask->vlan_id) { in otx2_tc_process_vlan() 487 ntohs(match.key->vlan_tpid), match.key->vlan_id); in otx2_tc_process_vlan() 493 if (match.mask->vlan_id || in otx2_tc_process_vlan() 494 match.mask->vlan_dei || in otx2_tc_process_vlan() 495 match.mask->vlan_priority) { in otx2_tc_process_vlan() [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch-flower.c | 15 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() 37 struct flow_match_basic match; in dpaa2_switch_flower_parse_key() local 39 flow_rule_match_basic(rule, &match); in dpaa2_switch_flower_parse_key() 40 acl_h->l3_protocol = match.key->ip_proto; in dpaa2_switch_flower_parse_key() 41 acl_h->l2_ether_type = be16_to_cpu(match.key->n_proto); in dpaa2_switch_flower_parse_key() 42 acl_m->l3_protocol = match.mask->ip_proto; in dpaa2_switch_flower_parse_key() 43 acl_m->l2_ether_type = be16_to_cpu(match.mask->n_proto); in dpaa2_switch_flower_parse_key() 47 struct flow_match_eth_addrs match; in dpaa2_switch_flower_parse_key() local 49 flow_rule_match_eth_addrs(rule, &match); in dpaa2_switch_flower_parse_key() [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/musl/ |
H A D | libucontext_1.2.bb | 33 elif re.match('(i.86|athlon)$', a): return 'x86' 34 elif re.match('x86.64$', a): return 'x86_64' 35 elif re.match('armeb$', a): return 'arm' 36 elif re.match('aarch64$', a): return 'aarch64' 37 elif re.match('aarch64_be$', a): return 'aarch64' 38 elif re.match('aarch64_ilp32$', a): return 'aarch64' 39 elif re.match('aarch64_be_ilp32$', a): return 'aarch64' 40 elif re.match('mips(isa|)(32|)(r6|)(el|)$', a): return 'mips' 41 elif re.match('mips(isa|)64(r6|)(el|)$', a): return 'mips64' 42 elif re.match('p(pc64|owerpc64)(le)', a): return 'ppc64' [all …]
|