/linux/tools/testing/selftests/net/ |
H A D | fib_rule_tests.sh | 188 local match="$1" 202 local match="$1" 217 local match 223 match="oif $DEV" 236 match="tos 0x10" 265 fib_rule6_test_match_n_redirect "$match" "$match" "ipproto match" 327 local match="$1" 341 local match="$1" 356 local match 362 match="oif $DEV" [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | match.c | 107 tmp = match.key->dst[i] & match.mask->dst[i]; in nfp_flower_compile_mac() 111 tmp = match.key->src[i] & match.mask->src[i]; in nfp_flower_compile_mac() 198 tmp = match.key->src & match.mask->src; in nfp_flower_compile_tport() 202 tmp = match.key->dst & match.mask->dst; in nfp_flower_compile_tport() 226 tmp = match.key->tos & match.mask->tos; in nfp_flower_compile_ip_ext() 230 tmp = match.key->ttl & match.mask->ttl; in nfp_flower_compile_ip_ext() 344 tmp = match.key->src & match.mask->src; in nfp_flower_compile_ipv4() 348 tmp = match.key->dst & match.mask->dst; in nfp_flower_compile_ipv4() 409 ext->src |= match.key->src & match.mask->src; in nfp_flower_compile_tun_ipv4_addrs() 410 ext->dst |= match.key->dst & match.mask->dst; in nfp_flower_compile_tun_ipv4_addrs() [all …]
|
/linux/sound/soc/intel/common/ |
H A D | Makefile | 4 snd-soc-acpi-intel-match-y := soc-acpi-intel-byt-match.o soc-acpi-intel-cht-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 \ 14 soc-acpi-intel-lnl-match.o \ [all …]
|
/linux/drivers/base/ |
H A D | component.c | 86 struct component_match *match = m->match; in component_devices_show() local 175 struct component_match *match = adev->match; in find_components() local 406 if (match->num == match->alloc) { in __component_match_add() 417 match->compare[match->num].compare = compare; in __component_match_add() 419 match->compare[match->num].release = release; in __component_match_add() 420 match->compare[match->num].data = compare_data; in __component_match_add() 421 match->compare[match->num].component = NULL; in __component_match_add() 483 struct component_match *match = adev->match; in free_aggregate_device() local 489 if (match) { in free_aggregate_device() 520 ret = component_match_realloc(match, match->num); in component_master_add_with_match() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_flower.c | 342 struct flow_match_meta match; in mlxsw_sp_flower_parse_meta() local 350 match.key->l2_miss, match.mask->l2_miss); in mlxsw_sp_flower_parse_meta() 410 struct flow_match_ports match; in mlxsw_sp_flower_parse_ports() local 450 if (match.mask->tp_min.src) { in mlxsw_sp_flower_parse_ports_range() 469 if (match.mask->tp_min.dst) { in mlxsw_sp_flower_parse_ports_range() 499 struct flow_match_tcp match; in mlxsw_sp_flower_parse_tcp() local 530 struct flow_match_ip match; in mlxsw_sp_flower_parse_ip() local 544 match.key->ttl, match.mask->ttl); in mlxsw_sp_flower_parse_ip() 632 match.key->dst, in mlxsw_sp_flower_parse() 640 match.key->src, in mlxsw_sp_flower_parse() [all …]
|
H A D | spectrum_dpipe.c | 102 struct devlink_dpipe_match match = {0}; in mlxsw_sp_dpipe_table_erif_matches_dump() local 136 match_value->match = match; in mlxsw_sp_erif_entry_prepare() 372 struct devlink_dpipe_match *match; in mlxsw_sp_dpipe_table_host_match_action_prepare() local 409 struct devlink_dpipe_match *match; in mlxsw_sp_dpipe_table_host_entry_prepare() local 420 match_value->match = match; in mlxsw_sp_dpipe_table_host_entry_prepare() 429 match_value->match = match; in mlxsw_sp_dpipe_table_host_entry_prepare() 939 struct devlink_dpipe_match *match; in mlxsw_sp_dpipe_table_adj_match_action_prepare() local 976 struct devlink_dpipe_match *match; in mlxsw_sp_dpipe_table_adj_entry_prepare() local 987 match_value->match = match; in mlxsw_sp_dpipe_table_adj_entry_prepare() 996 match_value->match = match; in mlxsw_sp_dpipe_table_adj_entry_prepare() [all …]
|
/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_flower.c | 147 struct flow_match_meta match; in prestera_flower_parse_meta() local 152 if (match.mask->l2_miss) { in prestera_flower_parse_meta() 164 match.key->ingress_ifindex); in prestera_flower_parse_meta() 228 struct flow_match_control match; in prestera_flower_parse() local 231 addr_type = match.key->addr_type; in prestera_flower_parse() 239 struct flow_match_basic match; in prestera_flower_parse() local 255 ip_proto = match.key->ip_proto; in prestera_flower_parse() 299 struct flow_match_ports match; in prestera_flower_parse() local 341 struct flow_match_vlan match; in prestera_flower_parse() local 345 if (match.mask->vlan_id != 0) { in prestera_flower_parse() [all …]
|
/linux/drivers/net/ethernet/sfc/ |
H A D | tc.c | 904 match->mask._key = match->mask._ekey; \ in efx_tc_flower_translate_flhs_match() 906 match->value._key = match->value._ekey; \ in efx_tc_flower_translate_flhs_match() 921 match->mask.src_ip6 = match->mask.enc_src_ip6; in efx_tc_flower_translate_flhs_match() 1534 rule->match = *match; in efx_tc_flower_replace_foreign_lhs_ar() 1646 rule->match = *match; in efx_tc_flower_replace_foreign_lhs() 1687 memset(&match, 0, sizeof(match)); in efx_tc_flower_replace_foreign() 1952 rule->match = match; in efx_tc_flower_replace_foreign() 2048 rule->match = *match; in efx_tc_flower_replace_lhs() 2109 memset(&match, 0, sizeof(match)); in efx_tc_flower_replace() 2506 rule->match = match; in efx_tc_flower_replace() [all …]
|
H A D | mae.c | 1635 match->value.src_ip); in efx_mae_populate_lhs_match_criteria() 1637 match->mask.src_ip); in efx_mae_populate_lhs_match_criteria() 1639 match->value.dst_ip); in efx_mae_populate_lhs_match_criteria() 1641 match->mask.dst_ip); in efx_mae_populate_lhs_match_criteria() 1655 match->mask.l4_sport); in efx_mae_populate_lhs_match_criteria() 1659 match->mask.l4_dport); in efx_mae_populate_lhs_match_criteria() 1665 if (WARN_ON_ONCE(match->encap && !match->encap->type)) in efx_mae_populate_lhs_match_criteria() 2175 match->value.src_ip); in efx_mae_populate_match_criteria() 2177 match->mask.src_ip); in efx_mae_populate_match_criteria() 2181 match->mask.dst_ip); in efx_mae_populate_match_criteria() [all …]
|
/linux/net/sched/ |
H A D | em_ipt.c | 22 const struct xt_match *match; member 54 mtpar.match = im->match; in check_match() 131 struct xt_match *match; in em_ipt_change() local 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() 195 .match = im->match, in em_ipt_destroy() 240 acpar.match = im->match; in em_ipt_match() 244 ret = im->match->match(skb, &acpar); in em_ipt_match() [all …]
|
/linux/drivers/media/v4l2-core/ |
H A D | v4l2-async.c | 142 match->fwnode); in match_fwnode() 191 match = match_i2c; in v4l2_async_find_match() 194 match = match_fwnode; in v4l2_async_find_match() 203 if (match(notifier, sd, &asc->match)) in v4l2_async_find_match() 493 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match_entry() 497 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match_entry() 524 if (&asc->match == match) in v4l2_async_nf_has_async_match() 526 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match() 544 switch (match->type) { in v4l2_async_nf_match_valid() 554 match->type, match); in v4l2_async_nf_match_valid() [all …]
|
/linux/drivers/regulator/ |
H A D | devres.c | 500 return match->dev == target->dev && strcmp(match->id, target->id) == 0; in devm_regulator_match_supply_alias() 507 regulator_unregister_supply_alias(match->dev, match->id); in devm_regulator_destroy_supply_alias() 533 if (!match) in devm_regulator_register_supply_alias() 536 match->dev = dev; in devm_regulator_register_supply_alias() 537 match->id = id; in devm_regulator_register_supply_alias() 557 match.dev = dev; in devm_regulator_unregister_supply_alias() 558 match.id = id; in devm_regulator_unregister_supply_alias() 634 regulator_unregister_notifier(match->regulator, match->nb); in devm_regulator_destroy_notifier() 656 if (!match) in devm_regulator_register_notifier() 660 match->nb = nb; in devm_regulator_register_notifier() [all …]
|
/linux/net/openvswitch/ |
H A D | flow_netlink.c | 194 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate() 214 if (match->mask && (match->mask->key.ip.proto == 0xff)) in match_validate() 220 if (match->mask && (match->mask->key.ip.proto == 0xff)) in match_validate() 227 if (match->mask && (match->mask->key.ip.proto == 0xff)) { in match_validate() 235 if (match->mask && (match->mask->key.ip.proto == 0xff)) in match_validate() 251 if (match->mask && (match->mask->key.ip.proto == 0xff)) in match_validate() 257 if (match->mask && (match->mask->key.ip.proto == 0xff)) in match_validate() 264 if (match->mask && (match->mask->key.ip.proto == 0xff)) { in match_validate() 272 if (match->mask && (match->mask->key.ip.proto == 0xff)) in match_validate() 1969 memset(&match, 0, sizeof(match)); in ovs_nla_get_flow_metadata() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_tc_lib.c | 1151 if (match->key->dst) { in ice_tc_set_ipv4() 1278 if (match.key->dst) { in ice_tc_set_port() 1287 if (match.key->src) { in ice_tc_set_port() 1333 if (match.key->dst) { in ice_parse_gtp_type() 1551 match.key->dst); in ice_parse_cls_flower() 1553 match.mask->dst); in ice_parse_cls_flower() 1559 match.key->src); in ice_parse_cls_flower() 1561 match.mask->src); in ice_parse_cls_flower() 1573 match.key = &key; in ice_parse_cls_flower() 1576 match.mask = &mask; in ice_parse_cls_flower() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_flower.c | 206 memcpy(&fs->val.lip[0], &match.key->dst, sizeof(match.key->dst)); in cxgb4_process_flow_match() 207 memcpy(&fs->val.fip[0], &match.key->src, sizeof(match.key->src)); in cxgb4_process_flow_match() 208 memcpy(&fs->mask.lip[0], &match.mask->dst, sizeof(match.mask->dst)); in cxgb4_process_flow_match() 209 memcpy(&fs->mask.fip[0], &match.mask->src, sizeof(match.mask->src)); in cxgb4_process_flow_match() 212 memcpy(&fs->nat_lip[0], &match.key->dst, sizeof(match.key->dst)); in cxgb4_process_flow_match() 213 memcpy(&fs->nat_fip[0], &match.key->src, sizeof(match.key->src)); in cxgb4_process_flow_match() 252 struct flow_match_ip match; in cxgb4_process_flow_match() local 276 vlan_tci = match.key->vlan_id | (match.key->vlan_priority << in cxgb4_process_flow_match() 278 vlan_tci_mask = match.mask->vlan_id | (match.mask->vlan_priority << in cxgb4_process_flow_match() 343 struct flow_match_ip match; in cxgb4_validate_flow_match() local [all …]
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_tc.c | 585 if (!match.mask->vlan_id) { in otx2_tc_process_vlan() 593 ntohs(match.key->vlan_tpid), match.key->vlan_id); in otx2_tc_process_vlan() 599 if (match.mask->vlan_id || in otx2_tc_process_vlan() 600 match.mask->vlan_dei || in otx2_tc_process_vlan() 666 if (match.mask->ip_proto && in otx2_tc_prepare_flow() 676 match.key->ip_proto); in otx2_tc_prepare_flow() 679 if (match.mask->ip_proto) in otx2_tc_prepare_flow() 738 (u8 *)&match.mask->dst); in otx2_tc_prepare_flow() 747 if (!match.mask->spi) { in otx2_tc_prepare_flow() 768 match.mask->tos) { in otx2_tc_prepare_flow() [all …]
|
/linux/net/netfilter/ |
H A D | xt_ipvs.c | 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() 135 match = false; in ipvs_mt() 143 match = false; in ipvs_mt() [all …]
|
H A D | xt_owner.c | 25 if (info->match & ~XT_OWNER_MASK) in owner_check() 36 if (info->match & XT_OWNER_UID) { in owner_check() 48 if (info->match & XT_OWNER_GID) { in owner_check() 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 106 match = true; in owner_mt() 108 if (!match && (info->match & XT_OWNER_SUPPL_GROUPS) && gi) { in owner_mt() 114 match = true; in owner_mt() [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 56 struct nft_flow_match *match = &flow->match; in nft_flow_rule_transfer_vlan() local 65 match->key.basic.n_proto = match->key.cvlan.vlan_tpid; in nft_flow_rule_transfer_vlan() 66 match->mask.basic.n_proto = match->mask.cvlan.vlan_tpid; in nft_flow_rule_transfer_vlan() 67 match->key.cvlan.vlan_tpid = match->key.vlan.vlan_tpid; in nft_flow_rule_transfer_vlan() 68 match->mask.cvlan.vlan_tpid = match->mask.vlan.vlan_tpid; in nft_flow_rule_transfer_vlan() 78 match->key.basic.n_proto = match->key.vlan.vlan_tpid; in nft_flow_rule_transfer_vlan() [all …]
|
/linux/Documentation/sphinx/ |
H A D | automarkup.py | 145 base_target = match.group(2) 181 def markup_c_ref(docname, app, match): argument 205 base_target = match.group(2) 243 def markup_doc_ref(docname, app, match): argument 248 absolute = match.group(1) 249 target = match.group(2) 278 if match: 279 return match.group(1) 282 def markup_git(docname, app, match): argument 288 text = match.group(0) [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch-flower.c | 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 50 struct flow_match_eth_addrs match; in dpaa2_switch_flower_parse_key() local 60 struct flow_match_vlan match; in dpaa2_switch_flower_parse_key() local 66 match.key->vlan_dei; in dpaa2_switch_flower_parse_key() 71 match.mask->vlan_dei; in dpaa2_switch_flower_parse_key() 85 struct flow_match_ports match; in dpaa2_switch_flower_parse_key() local 95 struct flow_match_ip match; in dpaa2_switch_flower_parse_key() local 97 flow_rule_match_ip(rule, &match); in dpaa2_switch_flower_parse_key() 98 if (match.mask->ttl != 0) { in dpaa2_switch_flower_parse_key() [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_rtp.c | 39 bool match; in rule_matches() local 44 match = xe->info.platform == r->platform; in rule_matches() 79 match = !xe->info.is_dgfx; in rule_matches() 82 match = xe->info.is_dgfx; in rule_matches() 88 match = hwe->class == r->engine_class; in rule_matches() 94 match = hwe->class != r->engine_class; in rule_matches() 97 match = r->match_func(gt, hwe); in rule_matches() 102 match = false; in rule_matches() 105 if (!match) in rule_matches() 231 bool match = false; in xe_rtp_process_to_sr() local [all …]
|
/linux/tools/crypto/tcrypt/ |
H A D | tcrypt_speed_compare.py | 59 match = re.search(pattern, line) 60 if match: 61 alg = match.group(1) 62 op = match.group(2) 72 if match: 74 "bit_key": int(match.group(1)), 76 "operations": int(match.group(3)), 80 match = re.search(pattern_cycles, line) 81 if match: 83 "bit_key": int(match.group(1)), [all …]
|
/linux/arch/x86/tools/ |
H A D | gen-insn-attr-x86.awk | 250 if (match(i, imm_expr) == 1) { 298 if (match($i, opnd_expr)) { 303 if (match($i, ext_expr)) 305 if (match($i, sep_expr)) 319 if (match(ext, force64_expr)) 323 if (match(ext, no_rex2_expr)) 327 if (match(opcode, rex_expr)) 331 if (match(opcode, fpu_expr)) 335 if (match(ext, evexonly_expr)) 341 else if (match(ext, vexok_expr) || match(opcode, vexok_opcode_expr)) [all …]
|
/linux/tools/arch/x86/tools/ |
H A D | gen-insn-attr-x86.awk | 250 if (match(i, imm_expr) == 1) { 298 if (match($i, opnd_expr)) { 303 if (match($i, ext_expr)) 305 if (match($i, sep_expr)) 319 if (match(ext, force64_expr)) 323 if (match(ext, no_rex2_expr)) 327 if (match(opcode, rex_expr)) 331 if (match(opcode, fpu_expr)) 335 if (match(ext, evexonly_expr)) 341 else if (match(ext, vexok_expr) || match(opcode, vexok_opcode_expr)) [all …]
|