Home
last modified time | relevance | path

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

12345678910>>...60

/Linux-v5.4/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.4/drivers/net/ethernet/netronome/nfp/flower/
Dmatch.c29 struct flow_match_vlan match; in nfp_flower_compile_meta_tci() local
31 flow_rule_match_vlan(rule, &match); in nfp_flower_compile_meta_tci()
35 match.key->vlan_priority) | in nfp_flower_compile_meta_tci()
37 match.key->vlan_id); in nfp_flower_compile_meta_tci()
42 match.mask->vlan_priority) | in nfp_flower_compile_meta_tci()
44 match.mask->vlan_id); in nfp_flower_compile_meta_tci()
89 struct flow_match_eth_addrs match; in nfp_flower_compile_mac() local
91 flow_rule_match_eth_addrs(rule, &match); in nfp_flower_compile_mac()
93 ether_addr_copy(ext->mac_dst, &match.key->dst[0]); in nfp_flower_compile_mac()
94 ether_addr_copy(ext->mac_src, &match.key->src[0]); in nfp_flower_compile_mac()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_flower.c146 struct flow_match_meta match; in mlxsw_sp_flower_parse_meta() local
151 flow_rule_match_meta(rule, &match); in mlxsw_sp_flower_parse_meta()
152 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in mlxsw_sp_flower_parse_meta()
158 match.key->ingress_ifindex); in mlxsw_sp_flower_parse_meta()
185 struct flow_match_ipv4_addrs match; in mlxsw_sp_flower_parse_ipv4() local
187 flow_rule_match_ipv4_addrs(f->rule, &match); in mlxsw_sp_flower_parse_ipv4()
190 (char *) &match.key->src, in mlxsw_sp_flower_parse_ipv4()
191 (char *) &match.mask->src, 4); in mlxsw_sp_flower_parse_ipv4()
193 (char *) &match.key->dst, in mlxsw_sp_flower_parse_ipv4()
194 (char *) &match.mask->dst, 4); in mlxsw_sp_flower_parse_ipv4()
[all …]
Dspectrum_dpipe.c101 struct devlink_dpipe_match match = {0}; in mlxsw_sp_dpipe_table_erif_matches_dump() local
103 match.type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_dpipe_table_erif_matches_dump()
104 match.header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_dpipe_table_erif_matches_dump()
105 match.field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_dpipe_table_erif_matches_dump()
107 return devlink_dpipe_match_put(skb, &match); in mlxsw_sp_dpipe_table_erif_matches_dump()
111 mlxsw_sp_erif_match_action_prepare(struct devlink_dpipe_match *match, in mlxsw_sp_erif_match_action_prepare() argument
118 match->type = DEVLINK_DPIPE_MATCH_TYPE_FIELD_EXACT; in mlxsw_sp_erif_match_action_prepare()
119 match->header = &mlxsw_sp_dpipe_header_metadata; in mlxsw_sp_erif_match_action_prepare()
120 match->field_id = MLXSW_SP_DPIPE_FIELD_METADATA_ERIF_PORT; in mlxsw_sp_erif_match_action_prepare()
125 struct devlink_dpipe_match *match, in mlxsw_sp_erif_entry_prepare() argument
[all …]
/Linux-v5.4/drivers/base/
Dcomponent.c68 struct component_match *match; member
93 struct component_match *match = m->match; in component_devices_show() local
104 for (i = 0; i < match->num; i++) { in component_devices_show()
105 struct device *d = (struct device *)match->compare[i].data; in component_devices_show()
108 match->compare[i].component ? in component_devices_show()
184 struct component_match *match = master->match; in find_components() local
192 for (i = 0; i < match->num; i++) { in find_components()
193 struct component_match_array *mc = &match->compare[i]; in find_components()
198 if (match->compare[i].component) in find_components()
210 match->compare[i].duplicate = !!c->master; in find_components()
[all …]
Ddevcon.c17 void *data, devcon_match_fn_t match) in fwnode_graph_devcon_match() argument
28 ret = match(&con, -1, data); in fwnode_graph_devcon_match()
40 void *data, devcon_match_fn_t match) in fwnode_devcon_match() argument
51 ret = match(&con, -1, data); in fwnode_devcon_match()
73 devcon_match_fn_t match) in fwnode_connection_find_match() argument
77 if (!fwnode || !match) in fwnode_connection_find_match()
80 ret = fwnode_graph_devcon_match(fwnode, con_id, data, match); in fwnode_connection_find_match()
84 return fwnode_devcon_match(fwnode, con_id, data, match); in fwnode_connection_find_match()
100 void *data, devcon_match_fn_t match) in device_connection_find_match() argument
108 if (!match) in device_connection_find_match()
[all …]
/Linux-v5.4/drivers/regulator/
Ddevres.c243 struct regulator_supply_alias_match *match = res; in devm_regulator_match_supply_alias() local
246 return match->dev == target->dev && strcmp(match->id, target->id) == 0; in devm_regulator_match_supply_alias()
251 struct regulator_supply_alias_match *match = res; in devm_regulator_destroy_supply_alias() local
253 regulator_unregister_supply_alias(match->dev, match->id); in devm_regulator_destroy_supply_alias()
273 struct regulator_supply_alias_match *match; in devm_regulator_register_supply_alias() local
276 match = devres_alloc(devm_regulator_destroy_supply_alias, in devm_regulator_register_supply_alias()
279 if (!match) in devm_regulator_register_supply_alias()
282 match->dev = dev; in devm_regulator_register_supply_alias()
283 match->id = id; in devm_regulator_register_supply_alias()
287 devres_free(match); in devm_regulator_register_supply_alias()
[all …]
/Linux-v5.4/arch/x86/mm/
Dpat_rbtree.c96 struct memtype *match; in memtype_rb_match() local
98 match = memtype_rb_lowest_match(root, start, end); in memtype_rb_match()
99 while (match != NULL && match->start < end) { in memtype_rb_match()
103 (match->start == start) && (match->end == end)) in memtype_rb_match()
104 return match; in memtype_rb_match()
107 (match->start < start) && (match->end == end)) in memtype_rb_match()
108 return match; in memtype_rb_match()
110 node = rb_next(&match->rb); in memtype_rb_match()
112 match = rb_entry(node, struct memtype, rb); in memtype_rb_match()
114 match = NULL; in memtype_rb_match()
[all …]
/Linux-v5.4/drivers/net/ethernet/mscc/
Docelot_flower.c45 struct flow_dissector *dissector = rule->match.dissector; in ocelot_flower_parse()
59 struct flow_match_control match; in ocelot_flower_parse() local
61 flow_rule_match_control(rule, &match); in ocelot_flower_parse()
65 struct flow_match_eth_addrs match; in ocelot_flower_parse() local
86 flow_rule_match_eth_addrs(rule, &match); in ocelot_flower_parse()
89 match.key->dst); in ocelot_flower_parse()
91 match.key->src); in ocelot_flower_parse()
93 match.mask->dst); in ocelot_flower_parse()
95 match.mask->src); in ocelot_flower_parse()
100 struct flow_match_basic match; in ocelot_flower_parse() local
[all …]
/Linux-v5.4/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.4/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_flower.c91 struct flow_match_control match; in cxgb4_process_flow_match() local
93 flow_rule_match_control(rule, &match); in cxgb4_process_flow_match()
94 addr_type = match.key->addr_type; in cxgb4_process_flow_match()
98 struct flow_match_basic match; in cxgb4_process_flow_match() local
101 flow_rule_match_basic(rule, &match); in cxgb4_process_flow_match()
102 ethtype_key = ntohs(match.key->n_proto); in cxgb4_process_flow_match()
103 ethtype_mask = ntohs(match.mask->n_proto); in cxgb4_process_flow_match()
115 fs->val.proto = match.key->ip_proto; in cxgb4_process_flow_match()
116 fs->mask.proto = match.mask->ip_proto; in cxgb4_process_flow_match()
120 struct flow_match_ipv4_addrs match; in cxgb4_process_flow_match() local
[all …]
/Linux-v5.4/net/openvswitch/
Dflow_netlink.c89 static void update_range(struct sw_flow_match *match, in update_range() argument
97 range = &match->range; in update_range()
99 range = &match->mask->range; in update_range()
114 #define SW_FLOW_KEY_PUT(match, field, value, is_mask) \ argument
116 update_range(match, offsetof(struct sw_flow_key, field), \
117 sizeof((match)->key->field), is_mask); \
119 (match)->mask->key.field = value; \
121 (match)->key->field = value; \
124 #define SW_FLOW_KEY_MEMCPY_OFFSET(match, offset, value_p, len, is_mask) \ argument
126 update_range(match, offset, len, is_mask); \
[all …]
/Linux-v5.4/sound/soc/intel/common/
DMakefile6 snd-soc-acpi-intel-match-objs := soc-acpi-intel-byt-match.o soc-acpi-intel-cht-match.o \
7 soc-acpi-intel-hsw-bdw-match.o \
8 soc-acpi-intel-skl-match.o soc-acpi-intel-kbl-match.o \
9 soc-acpi-intel-bxt-match.o soc-acpi-intel-glk-match.o \
10 soc-acpi-intel-cnl-match.o soc-acpi-intel-icl-match.o \
11 soc-acpi-intel-tgl-match.o soc-acpi-intel-ehl-match.o \
12 soc-acpi-intel-hda-match.o
17 obj-$(CONFIG_SND_SOC_ACPI_INTEL_MATCH) += snd-soc-acpi-intel-match.o
/Linux-v5.4/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.4/lib/lz4/
Dlz4_decompress.c123 const BYTE *match; in LZ4_decompress_generic() local
164 match = op - offset; in LZ4_decompress_generic()
165 assert(match <= op); /* check overflow */ in LZ4_decompress_generic()
170 (dict == withPrefix64k || match >= lowPrefix)) { in LZ4_decompress_generic()
172 memcpy(op + 0, match + 0, 8); in LZ4_decompress_generic()
173 memcpy(op + 8, match + 8, 8); in LZ4_decompress_generic()
174 memcpy(op + 16, match + 16, 2); in LZ4_decompress_generic()
280 match = op - offset; in LZ4_decompress_generic()
286 if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) { in LZ4_decompress_generic()
326 if ((dict == usingExtDict) && (match < lowPrefix)) { in LZ4_decompress_generic()
[all …]
Dlz4_compress.c246 const BYTE *match; in LZ4_compress_generic() local
265 match = LZ4_getPositionOnHash(h, in LZ4_compress_generic()
270 if (match < (const BYTE *)source) { in LZ4_compress_generic()
284 ? (match < lowRefLimit) in LZ4_compress_generic()
288 : (match + MAX_DISTANCE < ip)) in LZ4_compress_generic()
289 || (LZ4_read32(match + refDelta) in LZ4_compress_generic()
294 while (((ip > anchor) & (match + refDelta > lowLimit)) in LZ4_compress_generic()
295 && (unlikely(ip[-1] == match[refDelta - 1]))) { in LZ4_compress_generic()
297 match--; in LZ4_compress_generic()
331 LZ4_writeLE16(op, (U16)(ip - match)); in LZ4_compress_generic()
[all …]
/Linux-v5.4/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.4/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.4/drivers/media/v4l2-core/
Dv4l2-async.c59 asd->match.i2c.adapter_id == client->adapter->nr && in match_i2c()
60 asd->match.i2c.address == client->addr; in match_i2c()
69 return !strcmp(asd->match.device_name, dev_name(sd->dev)); in match_devname()
74 return sd->fwnode == asd->match.fwnode; in match_fwnode()
79 if (!asd->match.custom.match) in match_custom()
83 return asd->match.custom.match(sd->dev, asd); in match_custom()
94 bool (*match)(struct v4l2_subdev *sd, struct v4l2_async_subdev *asd); in v4l2_async_find_match() local
101 match = match_custom; in v4l2_async_find_match()
104 match = match_devname; in v4l2_async_find_match()
107 match = match_i2c; in v4l2_async_find_match()
[all …]
/Linux-v5.4/arch/sh/mm/
Dtlbflush_64.c33 unsigned long long match, pteh=0, lpage; in local_flush_tlb_one() local
40 match = (asid << PTEH_ASID_SHIFT) | PTEH_VALID; in local_flush_tlb_one()
41 match |= lpage; in local_flush_tlb_one()
48 if (pteh == match) { in local_flush_tlb_one()
59 if (pteh == match) { in local_flush_tlb_one()
83 unsigned long long match, pteh=0, pteh_epn, pteh_low; in local_flush_tlb_range() local
97 match = (cpu_asid(cpu, mm) << PTEH_ASID_SHIFT) | PTEH_VALID; in local_flush_tlb_range()
108 if (pteh_low == match && pteh_epn >= start && pteh_epn <= end) in local_flush_tlb_range()
121 if (pteh_low == match && pteh_epn >= start && pteh_epn <= end) in local_flush_tlb_range()
/Linux-v5.4/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()
/Linux-v5.4/drivers/cpufreq/
Dti-cpufreq.c200 const struct of_device_id *match; in ti_cpufreq_match_node() local
203 match = of_match_node(ti_cpufreq_of_match, np); in ti_cpufreq_match_node()
206 return match; in ti_cpufreq_match_node()
212 const struct of_device_id *match; in ti_cpufreq_probe() local
218 match = dev_get_platdata(&pdev->dev); in ti_cpufreq_probe()
219 if (!match) in ti_cpufreq_probe()
226 opp_data->soc_data = match->data; in ti_cpufreq_probe()
295 const struct of_device_id *match; in ti_cpufreq_init() local
298 match = ti_cpufreq_match_node(); in ti_cpufreq_init()
299 if (match) in ti_cpufreq_init()
[all …]
/Linux-v5.4/drivers/media/rc/
Dwinbond-cir.c674 u8 match[11]; in wbcir_shutdown() local
682 memset(match, 0, sizeof(match)); in wbcir_shutdown()
697 match[1] |= 0x10; in wbcir_shutdown()
699 match[0] = (wake_sc & 0x003F); /* 6 command bits */ in wbcir_shutdown()
700 match[0] |= (wake_sc & 0x0300) >> 2; /* 2 address bits */ in wbcir_shutdown()
701 match[1] = (wake_sc & 0x1c00) >> 10; /* 3 address bits */ in wbcir_shutdown()
703 match[1] |= 0x10; in wbcir_shutdown()
714 match[1] = bitrev8(wake_sc); in wbcir_shutdown()
715 match[0] = ~match[1]; in wbcir_shutdown()
716 match[3] = bitrev8(wake_sc >> 8); in wbcir_shutdown()
[all …]

12345678910>>...60