/linux-5.10/tools/testing/selftests/net/ |
D | fib_rule_tests.sh | 75 echo "SKIP: iproute2 iprule too old, missing $1 match" 81 echo "SKIP: iproute2 get route too old, missing $2 match" 102 local match="$1" 105 $IP -6 rule add $match table $RTABLE 109 fib_rule6_del_by_pref "$match" 110 log_test $? 0 "rule6 del by pref: $match" 118 match="oif $DEV" 119 fib_rule6_test_match_n_redirect "$match" "$match" "oif redirect to table" 121 match="from $SRC_IP6 iif $DEV" 122 fib_rule6_test_match_n_redirect "$match" "$match" "iif redirect to table" [all …]
|
/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/ |
D | match.c | 28 struct flow_match_vlan match; in nfp_flower_compile_meta_tci() local 30 flow_rule_match_vlan(rule, &match); in nfp_flower_compile_meta_tci() 34 match.key->vlan_priority) | in nfp_flower_compile_meta_tci() 36 match.key->vlan_id); in nfp_flower_compile_meta_tci() 41 match.mask->vlan_priority) | in nfp_flower_compile_meta_tci() 43 match.mask->vlan_id); in nfp_flower_compile_meta_tci() 68 NL_SET_ERR_MSG_MOD(extack, "unsupported offload: invalid ingress interface for match offload"); in nfp_flower_compile_port() 86 struct flow_match_eth_addrs match; in nfp_flower_compile_mac() local 88 flow_rule_match_eth_addrs(rule, &match); in nfp_flower_compile_mac() 90 ether_addr_copy(ext->mac_dst, &match.key->dst[0]); in nfp_flower_compile_mac() [all …]
|
/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_flower.c | 223 struct flow_match_meta match; in mlxsw_sp_flower_parse_meta() local 228 flow_rule_match_meta(rule, &match); in mlxsw_sp_flower_parse_meta() 229 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in mlxsw_sp_flower_parse_meta() 235 match.key->ingress_ifindex); in mlxsw_sp_flower_parse_meta() 237 NL_SET_ERR_MSG_MOD(f->common.extack, "Can't find specified ingress port to match on"); in mlxsw_sp_flower_parse_meta() 242 NL_SET_ERR_MSG_MOD(f->common.extack, "Can't match on non-mlxsw ingress port"); in mlxsw_sp_flower_parse_meta() 248 NL_SET_ERR_MSG_MOD(f->common.extack, "Can't match on a port from different device"); in mlxsw_sp_flower_parse_meta() 262 struct flow_match_ipv4_addrs match; in mlxsw_sp_flower_parse_ipv4() local 264 flow_rule_match_ipv4_addrs(f->rule, &match); in mlxsw_sp_flower_parse_ipv4() 267 (char *) &match.key->src, in mlxsw_sp_flower_parse_ipv4() [all …]
|
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 …]
|
/linux-5.10/drivers/base/ |
D | component.c | 38 * Aggregate drivers first assemble a component match list of what they need 67 struct component_match *match; member 92 struct component_match *match = m->match; in component_devices_show() local 103 for (i = 0; i < match->num; i++) { in component_devices_show() 104 struct component *component = match->compare[i].component; in component_devices_show() 183 struct component_match *match = master->match; in find_components() local 188 * Scan the array of match functions and attach in find_components() 191 for (i = 0; i < match->num; i++) { in find_components() 192 struct component_match_array *mc = &match->compare[i]; in find_components() 197 if (match->compare[i].component) in find_components() [all …]
|
/linux-5.10/sound/soc/intel/common/ |
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 \ 12 soc-acpi-intel-hda-match.o 15 obj-$(CONFIG_SND_SOC_ACPI_INTEL_MATCH) += snd-soc-acpi-intel-match.o
|
/linux-5.10/net/netfilter/ |
D | Kconfig | 70 filtering (see `Connection state match support' below). 90 `CONNMARK' target and `connmark' match. Similar to the mark value 165 match and the nftables ct expression. 482 This option adds the "ct" expression that you can use to match 568 This option adds the "quota" expression that you can use to match 590 x_tables match/target extensions over the nf_tables 620 tristate "Netfilter nf_tables socket match support" 719 tristate 'nfmark target and match support' 722 This option adds the "MARK" target and "mark" match. 724 Netfilter mark matching allows you to match packets based on the [all …]
|
D | xt_ipvs.c | 3 * xt_ipvs - kernel module to match IPVS connection properties 26 MODULE_DESCRIPTION("Xtables: match IPVS connection properties"); 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() [all …]
|
D | xt_owner.c | 3 * Kernel module to match various things tied to sockets associated with 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() 81 return ((info->match ^ info->invert) & in owner_mt() 84 if (info->match & XT_OWNER_UID) { in owner_mt() 93 if (info->match & XT_OWNER_GID) { in owner_mt() [all …]
|
/linux-5.10/net/sched/ |
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() 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 153 match = get_xt_match(tb); in em_ipt_change() 154 if (IS_ERR(match)) { in em_ipt_change() 155 pr_err("unable to load match\n"); in em_ipt_change() [all …]
|
/linux-5.10/net/openvswitch/ |
D | flow_netlink.c | 91 static void update_range(struct sw_flow_match *match, in update_range() argument 99 range = &match->range; in update_range() 101 range = &match->mask->range; in update_range() 116 #define SW_FLOW_KEY_PUT(match, field, value, is_mask) \ argument 118 update_range(match, offsetof(struct sw_flow_key, field), \ 119 sizeof((match)->key->field), is_mask); \ 121 (match)->mask->key.field = value; \ 123 (match)->key->field = value; \ 126 #define SW_FLOW_KEY_MEMCPY_OFFSET(match, offset, value_p, len, is_mask) \ argument 128 update_range(match, offset, len, is_mask); \ [all …]
|
/linux-5.10/lib/xz/ |
D | xz_lzma2.h | 35 * - Match: Repeat a chunk of data at some distance 36 * - Long repeat: Multi-byte match at a recently seen distance 40 * either short or long repeated match, and NONLIT means any non-literal. 74 /* Indicate that the latest symbol was a match. */ 80 /* Indicate that the latest state was a long repeated match. */ 86 /* Indicate that the latest symbol was a short match. */ 99 * - 0x001-0x0FF: Without match byte 100 * - 0x101-0x1FF: With match byte; match bit is 0 101 * - 0x201-0x2FF: With match byte; match bit is 1 103 * Match byte is used when the previous LZMA symbol was something else than [all …]
|
/linux-5.10/Documentation/userspace-api/media/v4l/ |
D | vidioc-dbg-g-chip-info.rst | 49 To query the driver applications must initialize the ``match.type`` and 50 ``match.addr`` or ``match.name`` fields of a struct 56 When ``match.type`` is ``V4L2_CHIP_MATCH_BRIDGE``, ``match.addr`` 58 chips by starting at zero and incrementing ``match.addr`` by one until 64 When ``match.type`` is ``V4L2_CHIP_MATCH_SUBDEV``, ``match.addr`` 80 .. _name-v4l2-dbg-match: 89 - See :ref:`name-chip-match-types` for a list of possible types. 94 - Match a chip by this number, interpreted according to the ``type`` 98 - Match a chip by this name, interpreted according to the ``type`` 114 - ``match`` [all …]
|
D | vidioc-dbg-g-register.rst | 55 ``match.type`` and ``match.addr`` or ``match.name`` fields select a chip 59 To read a register applications must initialize the ``match.type``, 60 ``match.addr`` or ``match.name`` and ``reg`` fields, and call 65 When ``match.type`` is ``V4L2_CHIP_MATCH_BRIDGE``, ``match.addr`` 71 When ``match.type`` is ``V4L2_CHIP_MATCH_SUBDEV``, ``match.addr`` 99 - See :ref:`chip-match-types` for a list of possible types. 104 - Match a chip by this number, interpreted according to the ``type`` 108 - Match a chip by this name, interpreted according to the ``type`` 121 - ``match`` 122 - How to match the chip, see :c:type:`v4l2_dbg_match`. [all …]
|
/linux-5.10/drivers/regulator/ |
D | devres.c | 245 struct regulator_supply_alias_match *match = res; in devm_regulator_match_supply_alias() local 248 return match->dev == target->dev && strcmp(match->id, target->id) == 0; in devm_regulator_match_supply_alias() 253 struct regulator_supply_alias_match *match = res; in devm_regulator_destroy_supply_alias() local 255 regulator_unregister_supply_alias(match->dev, match->id); in devm_regulator_destroy_supply_alias() 275 struct regulator_supply_alias_match *match; in devm_regulator_register_supply_alias() local 278 match = devres_alloc(devm_regulator_destroy_supply_alias, in devm_regulator_register_supply_alias() 281 if (!match) in devm_regulator_register_supply_alias() 284 match->dev = dev; in devm_regulator_register_supply_alias() 285 match->id = id; in devm_regulator_register_supply_alias() 289 devres_free(match); in devm_regulator_register_supply_alias() [all …]
|
D | max8907-regulator.c | 183 #define MATCH(_name, _id) \ macro 190 MATCH(mbatt, MBATT), 191 MATCH(sd1, SD1), 192 MATCH(sd2, SD2), 193 MATCH(sd3, SD3), 194 MATCH(ldo1, LDO1), 195 MATCH(ldo2, LDO2), 196 MATCH(ldo3, LDO3), 197 MATCH(ldo4, LDO4), 198 MATCH(ldo5, LDO5), [all …]
|
/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
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 …]
|
/linux-5.10/tools/testing/kunit/ |
D | kunit_parser.py | 101 while lines and not TAP_ENTRIES.match(lines[0]): 105 while lines and not TAP_ENTRIES.match(lines[0]): 121 match = OK_NOT_OK_SUBTEST.match(line) 122 while not match and lines: 124 match = OK_NOT_OK_SUBTEST.match(line) 125 if match: 127 test_case.name = match.group(2) 130 if match.group(1) == 'ok': 146 match = SUBTEST_DIAGNOSTIC.match(line) 147 if match: [all …]
|
/linux-5.10/drivers/net/ethernet/sfc/ |
D | filter.h | 15 * enum efx_filter_match_flags - Flags for hardware filter match type 16 * @EFX_FILTER_MATCH_REM_HOST: Match by remote IP host address 17 * @EFX_FILTER_MATCH_LOC_HOST: Match by local IP host address 18 * @EFX_FILTER_MATCH_REM_MAC: Match by remote MAC address 19 * @EFX_FILTER_MATCH_REM_PORT: Match by remote TCP/UDP port 20 * @EFX_FILTER_MATCH_LOC_MAC: Match by local MAC address 21 * @EFX_FILTER_MATCH_LOC_PORT: Match by local TCP/UDP port 22 * @EFX_FILTER_MATCH_ETHER_TYPE: Match by Ether-type 23 * @EFX_FILTER_MATCH_INNER_VID: Match by inner VLAN ID 24 * @EFX_FILTER_MATCH_OUTER_VID: Match by outer VLAN ID [all …]
|
/linux-5.10/drivers/net/ethernet/mscc/ |
D | ocelot_flower.c | 377 struct flow_match_meta match; in ocelot_flower_parse_indev() local 380 flow_rule_match_meta(rule, &match); in ocelot_flower_parse_indev() 382 if (!match.mask->ingress_ifindex) in ocelot_flower_parse_indev() 385 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in ocelot_flower_parse_indev() 394 indev = __dev_get_by_index(dev_net(dev), match.key->ingress_ifindex); in ocelot_flower_parse_indev() 397 "Can't find the ingress port to match on"); in ocelot_flower_parse_indev() 425 struct flow_dissector *dissector = rule->match.dissector; in ocelot_flower_parse_key() 443 /* For VCAP ES0 (egress rewriter) we can match on the ingress port */ in ocelot_flower_parse_key() 451 struct flow_match_control match; in ocelot_flower_parse_key() local 453 flow_rule_match_control(rule, &match); in ocelot_flower_parse_key() [all …]
|
/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
D | filter.h | 15 * enum ef4_filter_match_flags - Flags for hardware filter match type 16 * @EF4_FILTER_MATCH_REM_HOST: Match by remote IP host address 17 * @EF4_FILTER_MATCH_LOC_HOST: Match by local IP host address 18 * @EF4_FILTER_MATCH_REM_MAC: Match by remote MAC address 19 * @EF4_FILTER_MATCH_REM_PORT: Match by remote TCP/UDP port 20 * @EF4_FILTER_MATCH_LOC_MAC: Match by local MAC address 21 * @EF4_FILTER_MATCH_LOC_PORT: Match by local TCP/UDP port 22 * @EF4_FILTER_MATCH_ETHER_TYPE: Match by Ether-type 23 * @EF4_FILTER_MATCH_INNER_VID: Match by inner VLAN ID 24 * @EF4_FILTER_MATCH_OUTER_VID: Match by outer VLAN ID [all …]
|
/linux-5.10/include/media/ |
D | v4l2-async.h | 22 * in order to identify a match 24 * @V4L2_ASYNC_MATCH_CUSTOM: Match will use the logic provided by &struct 25 * v4l2_async_subdev.match ops 26 * @V4L2_ASYNC_MATCH_DEVNAME: Match will use the device name 27 * @V4L2_ASYNC_MATCH_I2C: Match will check for I2C adapter ID and address 28 * @V4L2_ASYNC_MATCH_FWNODE: Match will use firmware node 31 * algorithm that will be used to match an asynchronous device. 43 * @match_type: type of match that will be used 44 * @match: union of per-bus type matching data sets 45 * @match.fwnode: [all …]
|
/linux-5.10/drivers/media/v4l2-core/ |
D | v4l2-async.c | 60 asd->match.i2c.adapter_id == client->adapter->nr && in match_i2c() 61 asd->match.i2c.address == client->addr; in match_i2c() 70 return !strcmp(asd->match.device_name, dev_name(sd->dev)); in match_devname() 87 if (sd->fwnode == asd->match.fwnode) in match_fwnode() 92 * endpoint or a device. If they're of the same type, there's no match. in match_fwnode() 96 * match unconnected endpoints. in match_fwnode() 99 asd_fwnode_is_ep = fwnode_graph_is_endpoint(asd->match.fwnode); in match_fwnode() 110 other_fwnode = asd->match.fwnode; in match_fwnode() 112 dev_fwnode = fwnode_graph_get_port_parent(asd->match.fwnode); in match_fwnode() 122 * We have a heterogeneous match. Retrieve the struct device of the side in match_fwnode() [all …]
|
/linux-5.10/tools/testing/selftests/net/forwarding/ |
D | tc_flower.sh | 53 check_err $? "Did not match on correct filter" 58 log_test "dst_mac match ($tcflags)" 79 check_err $? "Did not match on correct filter" 84 log_test "src_mac match ($tcflags)" 105 check_err $? "Did not match on correct filter" 113 check_err $? "Did not match on correct filter with mask" 118 log_test "dst_ip match ($tcflags)" 139 check_err $? "Did not match on correct filter" 147 check_err $? "Did not match on correct filter with mask" 152 log_test "src_ip match ($tcflags)" [all …]
|
/linux-5.10/net/ipv6/netfilter/ |
D | Kconfig | 13 is used by the {ip6,nf}tables socket match. 91 tristate '"ah" match support' 94 This module allows one to match AH packets. 109 tristate '"frag" Fragmentation header match support' 112 frag matching allows you to match packets based on the fragmentation 118 tristate '"hbh" hop-by-hop and "dst" opts header match support' 121 This allows one to match packets based on the hop-by-hop 127 tristate '"hl" hoplimit match support' 136 tristate '"ipv6header" IPv6 Extension Headers Match' 139 This module allows one to match packets based upon [all …]
|