/Linux-v6.1/tools/testing/selftests/net/ |
D | fib_rule_tests.sh | 106 local match="$1" 110 $IP -6 rule add $match table $RTABLE 114 fib_rule6_del_by_pref "$match" 120 local match="$1" 123 $IP -6 rule add $match table $RTABLE 2>/dev/null 125 log_test $rc 2 "rule6 check: $match" 128 $IP -6 rule del $match table $RTABLE 135 local match 141 match="oif $DEV" 142 fib_rule6_test_match_n_redirect "$match" "$match" "oif redirect to table" [all …]
|
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/flower/ |
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 …]
|
/Linux-v6.1/drivers/base/ |
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 …]
|
/Linux-v6.1/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 soc-acpi-intel-adl-match.o \ 12 soc-acpi-intel-rpl-match.o soc-acpi-intel-mtl-match.o \ 13 soc-acpi-intel-hda-match.o \ [all …]
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_flower.c | 291 struct flow_match_meta match; in mlxsw_sp_flower_parse_meta() local 296 flow_rule_match_meta(rule, &match); in mlxsw_sp_flower_parse_meta() 297 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in mlxsw_sp_flower_parse_meta() 303 match.key->ingress_ifindex); in mlxsw_sp_flower_parse_meta() 330 struct flow_match_ipv4_addrs match; in mlxsw_sp_flower_parse_ipv4() local 332 flow_rule_match_ipv4_addrs(f->rule, &match); in mlxsw_sp_flower_parse_ipv4() 335 (char *) &match.key->src, in mlxsw_sp_flower_parse_ipv4() 336 (char *) &match.mask->src, 4); in mlxsw_sp_flower_parse_ipv4() 338 (char *) &match.key->dst, in mlxsw_sp_flower_parse_ipv4() 339 (char *) &match.mask->dst, 4); 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-v6.1/drivers/net/ethernet/marvell/prestera/ |
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() 151 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in prestera_flower_parse_meta() 158 match.key->ingress_ifindex); in prestera_flower_parse_meta() 190 struct flow_dissector *dissector = f_rule->match.dissector; in prestera_flower_parse() 191 struct prestera_acl_match *r_match = &rule->re_key.match; in prestera_flower_parse() 222 struct flow_match_control match; in prestera_flower_parse() local 224 flow_rule_match_control(f_rule, &match); in prestera_flower_parse() 225 addr_type = match.key->addr_type; in prestera_flower_parse() [all …]
|
/Linux-v6.1/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() 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 …]
|
/Linux-v6.1/drivers/regulator/ |
D | devres.c | 259 struct regulator_bulk_devres *match = res; in devm_regulator_bulk_match() local 268 return match->consumers == target; in devm_regulator_bulk_match() 408 struct regulator_supply_alias_match *match = res; in devm_regulator_match_supply_alias() local 411 return match->dev == target->dev && strcmp(match->id, target->id) == 0; in devm_regulator_match_supply_alias() 416 struct regulator_supply_alias_match *match = res; in devm_regulator_destroy_supply_alias() local 418 regulator_unregister_supply_alias(match->dev, match->id); in devm_regulator_destroy_supply_alias() 438 struct regulator_supply_alias_match *match; in devm_regulator_register_supply_alias() local 441 match = devres_alloc(devm_regulator_destroy_supply_alias, in devm_regulator_register_supply_alias() 444 if (!match) in devm_regulator_register_supply_alias() 447 match->dev = dev; in devm_regulator_register_supply_alias() [all …]
|
/Linux-v6.1/drivers/net/ethernet/intel/ice/ |
D | ice_tc_lib.c | 871 ice_tc_set_pppoe(struct flow_match_pppoe *match, in ice_tc_set_pppoe() argument 875 if (match->mask->session_id) { in ice_tc_set_pppoe() 877 headers->pppoe_hdr.session_id = match->key->session_id; in ice_tc_set_pppoe() 880 if (match->mask->ppp_proto) { in ice_tc_set_pppoe() 882 headers->pppoe_hdr.ppp_proto = match->key->ppp_proto; in ice_tc_set_pppoe() 885 return be16_to_cpu(match->key->type); in ice_tc_set_pppoe() 896 ice_tc_set_ipv4(struct flow_match_ipv4_addrs *match, in ice_tc_set_ipv4() argument 900 if (match->key->dst) { in ice_tc_set_ipv4() 905 headers->l3_key.dst_ipv4 = match->key->dst; in ice_tc_set_ipv4() 906 headers->l3_mask.dst_ipv4 = match->mask->dst; in ice_tc_set_ipv4() [all …]
|
/Linux-v6.1/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-v6.1/net/netfilter/ |
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() 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() 94 unsigned int i, match = false; in owner_mt() local [all …]
|
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 …]
|
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(FLOW_DISSECTOR_KEY_CONTROL)) in nft_flow_rule_set_addr_type() 43 match->dissector.used_keys |= BIT(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 …]
|
/Linux-v6.1/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-v6.1/drivers/net/ethernet/freescale/dpaa2/ |
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 …]
|
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_tc.c | 483 dissector = rule->match.dissector; in otx2_tc_prepare_flow() 500 struct flow_match_basic match; in otx2_tc_prepare_flow() local 502 flow_rule_match_basic(rule, &match); in otx2_tc_prepare_flow() 505 flow_spec->etype = match.key->n_proto; in otx2_tc_prepare_flow() 506 flow_mask->etype = match.mask->n_proto; in otx2_tc_prepare_flow() 509 if (match.mask->ip_proto && in otx2_tc_prepare_flow() 510 (match.key->ip_proto != IPPROTO_TCP && in otx2_tc_prepare_flow() 511 match.key->ip_proto != IPPROTO_UDP && in otx2_tc_prepare_flow() 512 match.key->ip_proto != IPPROTO_SCTP && in otx2_tc_prepare_flow() 513 match.key->ip_proto != IPPROTO_ICMP && in otx2_tc_prepare_flow() [all …]
|
/Linux-v6.1/lib/lz4/ |
D | lz4_decompress.c | 123 const BYTE *match; in LZ4_decompress_generic() local 167 match = op - offset; in LZ4_decompress_generic() 168 assert(match <= op); /* check overflow */ in LZ4_decompress_generic() 173 (dict == withPrefix64k || match >= lowPrefix)) { in LZ4_decompress_generic() 175 LZ4_memcpy(op + 0, match + 0, 8); in LZ4_decompress_generic() 176 LZ4_memcpy(op + 8, match + 8, 8); in LZ4_decompress_generic() 177 LZ4_memcpy(op + 16, match + 16, 2); in LZ4_decompress_generic() 291 match = op - offset; in LZ4_decompress_generic() 297 if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) { in LZ4_decompress_generic() 337 if ((dict == usingExtDict) && (match < lowPrefix)) { in LZ4_decompress_generic() [all …]
|
/Linux-v6.1/Documentation/sphinx/ |
D | automarkup.py | 137 def markup_func_ref_sphinx3(docname, app, match): argument 142 base_target = match.group(2) 143 target_text = nodes.Text(match.group(0)) 178 def markup_c_ref(docname, app, match): argument 202 base_target = match.group(2) 203 target_text = nodes.Text(match.group(0)) 213 if not (match.re == RE_function and target in Skipfuncs): 214 lit_text = nodes.literal(classes=['xref', 'c', class_str[match.re]]) 217 reftype = reftype_str[match.re], 226 reftype_str[match.re], target, pxref, [all …]
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun_mplsoudp.c | 62 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-v6.1/fs/efivarfs/ |
D | vars.c | 28 validate_device_path(efi_char16_t *var_name, int match, u8 *buffer, in validate_device_path() argument 61 validate_boot_order(efi_char16_t *var_name, int match, u8 *buffer, in validate_boot_order() argument 72 validate_load_option(efi_char16_t *var_name, int match, u8 *buffer, in validate_load_option() argument 81 for (i = match; i < match+4; i++) { in validate_load_option() 88 if (namelen > match + 4) in validate_load_option() 118 return validate_device_path(var_name, match, buffer + desclength + 6, in validate_load_option() 123 validate_uint16(efi_char16_t *var_name, int match, u8 *buffer, in validate_uint16() argument 134 validate_ascii_string(efi_char16_t *var_name, int match, u8 *buffer, in validate_ascii_string() argument 153 bool (*validate)(efi_char16_t *var_name, int match, u8 *data, 201 int *match) in variable_matches() argument [all …]
|
/Linux-v6.1/drivers/tty/serial/ |
D | earlycon.c | 132 static int __init register_earlycon(char *buf, const struct earlycon_id *match) in register_earlycon() argument 146 earlycon_init(&early_console_dev, match->name); in register_earlycon() 147 err = match->setup(&early_console_dev, buf); in register_earlycon() 178 const struct earlycon_id *match; in setup_earlycon() local 188 for (match = __earlycon_table; match < __earlycon_table_end; match++) { in setup_earlycon() 189 size_t len = strlen(match->name); in setup_earlycon() 191 if (strncmp(buf, match->name, len)) in setup_earlycon() 195 if (empty_compatible && *match->compatible) in setup_earlycon() 205 return register_earlycon(buf, match); in setup_earlycon() 246 int __init of_setup_earlycon(const struct earlycon_id *match, in of_setup_earlycon() argument [all …]
|
/Linux-v6.1/arch/x86/tools/ |
D | gen-insn-attr-x86.awk | 245 if (match(i, imm_expr) == 1) { 254 } else if (match(i, modrm_expr)) 293 if (match($i, opnd_expr)) { 298 if (match($i, ext_expr)) 300 if (match($i, sep_expr)) 306 if (match(opcode, group_expr)) { 314 if (match(ext, force64_expr)) 318 if (match(opcode, rex_expr)) 322 if (match(opcode, fpu_expr)) 326 if (match(ext, evexonly_expr)) [all …]
|
/Linux-v6.1/tools/arch/x86/tools/ |
D | gen-insn-attr-x86.awk | 245 if (match(i, imm_expr) == 1) { 254 } else if (match(i, modrm_expr)) 293 if (match($i, opnd_expr)) { 298 if (match($i, ext_expr)) 300 if (match($i, sep_expr)) 306 if (match(opcode, group_expr)) { 314 if (match(ext, force64_expr)) 318 if (match(opcode, rex_expr)) 322 if (match(opcode, fpu_expr)) 326 if (match(ext, evexonly_expr)) [all …]
|
/Linux-v6.1/drivers/net/ethernet/mscc/ |
D | ocelot_flower.c | 529 struct flow_match_meta match; in ocelot_flower_parse_indev() local 532 flow_rule_match_meta(rule, &match); in ocelot_flower_parse_indev() 534 if (!match.mask->ingress_ifindex) in ocelot_flower_parse_indev() 537 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in ocelot_flower_parse_indev() 546 indev = __dev_get_by_index(dev_net(dev), match.key->ingress_ifindex); in ocelot_flower_parse_indev() 577 struct flow_dissector *dissector = rule->match.dissector; in ocelot_flower_parse_key() 603 struct flow_match_control match; in ocelot_flower_parse_key() local 605 flow_rule_match_control(rule, &match); in ocelot_flower_parse_key() 609 struct flow_match_eth_addrs match; in ocelot_flower_parse_key() local 630 flow_rule_match_eth_addrs(rule, &match); in ocelot_flower_parse_key() [all …]
|