Home
last modified time | relevance | path

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

12345678910>>...53

/Linux-v5.10/tools/testing/selftests/net/
Dfib_rule_tests.sh102 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"
124 match="tos 0x10"
125 fib_rule6_test_match_n_redirect "$match" "$match" "tos redirect to table"
[all …]
/Linux-v5.10/drivers/net/ethernet/netronome/nfp/flower/
Dmatch.c28 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()
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()
91 ether_addr_copy(ext->mac_src, &match.key->src[0]); in nfp_flower_compile_mac()
[all …]
/Linux-v5.10/drivers/base/
Dcomponent.c67 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
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()
209 match->compare[i].duplicate = !!c->master; in find_components()
210 match->compare[i].component = c; in find_components()
[all …]
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_flower.c223 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()
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()
268 (char *) &match.mask->src, 4); in mlxsw_sp_flower_parse_ipv4()
270 (char *) &match.key->dst, in mlxsw_sp_flower_parse_ipv4()
271 (char *) &match.mask->dst, 4); in mlxsw_sp_flower_parse_ipv4()
[all …]
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-v5.10/sound/soc/intel/common/
DMakefile4 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-v5.10/drivers/regulator/
Ddevres.c245 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 …]
/Linux-v5.10/net/sched/
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()
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-v5.10/net/openvswitch/
Dflow_netlink.c91 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-v5.10/net/netfilter/
Dxt_owner.c25 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 …]
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 …]
Dx_tables.c48 struct list_head match; member
119 int xt_register_match(struct xt_match *match) in xt_register_match() argument
121 u_int8_t af = match->family; in xt_register_match()
124 list_add(&match->list, &xt[af].match); in xt_register_match()
131 xt_unregister_match(struct xt_match *match) in xt_unregister_match() argument
133 u_int8_t af = match->family; in xt_unregister_match()
136 list_del(&match->list); in xt_unregister_match()
142 xt_register_matches(struct xt_match *match, unsigned int n) in xt_register_matches() argument
148 err = xt_register_match(&match[i]); in xt_register_matches()
156 xt_unregister_matches(match, i); in xt_register_matches()
[all …]
/Linux-v5.10/tools/testing/kunit/
Dkunit_parser.py101 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-v5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_flower.c169 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-v5.10/drivers/net/ethernet/mscc/
Docelot_flower.c377 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()
425 struct flow_dissector *dissector = rule->match.dissector; 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()
457 struct flow_match_eth_addrs match; in ocelot_flower_parse_key() local
466 !is_zero_ether_addr(match.mask->dst)) { in ocelot_flower_parse_key()
[all …]
/Linux-v5.10/lib/lz4/
Dlz4_decompress.c123 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()
283 match = op - offset; in LZ4_decompress_generic()
289 if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) { in LZ4_decompress_generic()
329 if ((dict == usingExtDict) && (match < lowPrefix)) { in LZ4_decompress_generic()
[all …]
/Linux-v5.10/drivers/media/v4l2-core/
Dv4l2-async.c60 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()
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()
145 if (!asd->match.custom.match) in match_custom()
149 return asd->match.custom.match(sd->dev, asd); in match_custom()
160 bool (*match)(struct v4l2_async_notifier *notifier, in v4l2_async_find_match() local
[all …]
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_mplsoudp.c64 struct flow_match_mpls match; in parse_tunnel() local
88 flow_rule_match_mpls(rule, &match); in parse_tunnel()
91 if (match.mask->used_lses != 1) in parse_tunnel()
96 match.mask->ls[0].mpls_label); in parse_tunnel()
99 match.key->ls[0].mpls_label); in parse_tunnel()
103 match.mask->ls[0].mpls_tc); in parse_tunnel()
105 outer_first_mpls_over_udp.mpls_exp, match.key->ls[0].mpls_tc); in parse_tunnel()
109 match.mask->ls[0].mpls_bos); in parse_tunnel()
112 match.key->ls[0].mpls_bos); in parse_tunnel()
116 match.mask->ls[0].mpls_ttl); in parse_tunnel()
[all …]
/Linux-v5.10/arch/x86/tools/
Dgen-insn-attr-x86.awk245 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-v5.10/tools/arch/x86/tools/
Dgen-insn-attr-x86.awk245 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-v5.10/arch/sh/drivers/
Dplatform_early.c216 struct platform_device *match; in sh_early_platform_driver_probe_id() local
251 match = NULL; in sh_early_platform_driver_probe_id()
254 match = sh_early_platform_match(epdrv, match_id); in sh_early_platform_driver_probe_id()
257 if (match) { in sh_early_platform_driver_probe_id()
263 if (!match->dev.init_name && slab_is_available()) { in sh_early_platform_driver_probe_id()
264 if (match->id != -1) in sh_early_platform_driver_probe_id()
265 match->dev.init_name = in sh_early_platform_driver_probe_id()
267 match->name, in sh_early_platform_driver_probe_id()
268 match->id); in sh_early_platform_driver_probe_id()
270 match->dev.init_name = in sh_early_platform_driver_probe_id()
[all …]
/Linux-v5.10/Documentation/sphinx/
Dcdomain.py60 def markup_namespace(match): argument
63 namespace = match.group(1)
71 def markup_macro(match): argument
72 return ".. c:function:: " + match.group(1) + ' ' + match.group(2)
80 def markup_ctype(match): argument
81 return ".. c:type:: " + match.group(2)
88 def markup_ctype_refs(match): argument
89 return ":c:type:`" + match.group(2) + '`'
95 def markup_c_expr(match): argument
96 return '\ ``' + match.group(2) + '``\ '
[all …]
Dautomarkup.py123 def markup_func_ref_sphinx3(docname, app, match): argument
131 target = match.group(2)
132 target_text = nodes.Text(match.group(0))
158 def markup_c_ref(docname, app, match): argument
182 target = match.group(2)
183 target_text = nodes.Text(match.group(0))
185 if not ((match.re == RE_function and target in Skipfuncs)
187 lit_text = nodes.literal(classes=['xref', 'c', class_str[match.re]])
190 reftype = reftype_str[match.re],
199 reftype_str[match.re], target, pxref,
[all …]
/Linux-v5.10/drivers/soc/amlogic/
Dmeson-secure-pwrc.c126 const struct meson_secure_pwrc_domain_data *match; in meson_secure_pwrc_probe() local
128 match = of_device_get_match_data(&pdev->dev); in meson_secure_pwrc_probe()
129 if (!match) { in meson_secure_pwrc_probe()
149 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
155 pwrc->domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
160 pwrc->xlate.num_domains = match->count; in meson_secure_pwrc_probe()
163 for (i = 0 ; i < match->count ; ++i) { in meson_secure_pwrc_probe()
166 if (!match->domains[i].index) in meson_secure_pwrc_probe()
170 dom->index = match->domains[i].index; in meson_secure_pwrc_probe()
171 dom->base.name = match->domains[i].name; in meson_secure_pwrc_probe()
[all …]
/Linux-v5.10/arch/mips/include/asm/
Dmachine.h46 const struct of_device_id *match; in mips_machine_is_compatible() local
51 for (match = mach->matches; match->compatible[0]; match++) { in mips_machine_is_compatible()
52 if (fdt_node_check_compatible(fdt, 0, match->compatible) == 0) in mips_machine_is_compatible()
53 return match; in mips_machine_is_compatible()

12345678910>>...53