Home
last modified time | relevance | path

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

12345678910>>...28

/drivers/net/ethernet/netronome/nfp/flower/
A Dmatch.c107 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 …]
/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_flower.c352 struct flow_match_meta match; in mlxsw_sp_flower_parse_meta() local
360 match.key->l2_miss, match.mask->l2_miss); in mlxsw_sp_flower_parse_meta()
420 struct flow_match_ports match; in mlxsw_sp_flower_parse_ports() local
460 if (match.mask->tp_min.src) { in mlxsw_sp_flower_parse_ports_range()
479 if (match.mask->tp_min.dst) { in mlxsw_sp_flower_parse_ports_range()
509 struct flow_match_tcp match; in mlxsw_sp_flower_parse_tcp() local
540 struct flow_match_ip match; in mlxsw_sp_flower_parse_ip() local
554 match.key->ttl, match.mask->ttl); in mlxsw_sp_flower_parse_ip()
642 match.key->dst, in mlxsw_sp_flower_parse()
650 match.key->src, in mlxsw_sp_flower_parse()
[all …]
A Dspectrum_dpipe.c102 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 …]
/drivers/base/
A Dcomponent.c86 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 …]
/drivers/net/ethernet/marvell/prestera/
A Dprestera_flower.c147 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 …]
/drivers/net/ethernet/sfc/
A Dtc.c901 match->mask._key = match->mask._ekey; \ in efx_tc_flower_translate_flhs_match()
903 match->value._key = match->value._ekey; \ in efx_tc_flower_translate_flhs_match()
918 match->mask.src_ip6 = match->mask.enc_src_ip6; in efx_tc_flower_translate_flhs_match()
1531 rule->match = *match; in efx_tc_flower_replace_foreign_lhs_ar()
1643 rule->match = *match; in efx_tc_flower_replace_foreign_lhs()
1684 memset(&match, 0, sizeof(match)); in efx_tc_flower_replace_foreign()
1949 rule->match = match; in efx_tc_flower_replace_foreign()
2045 rule->match = *match; in efx_tc_flower_replace_lhs()
2106 memset(&match, 0, sizeof(match)); in efx_tc_flower_replace()
2503 rule->match = match; in efx_tc_flower_replace()
[all …]
A Dmae.c1624 match->value.src_ip); in efx_mae_populate_lhs_match_criteria()
1626 match->mask.src_ip); in efx_mae_populate_lhs_match_criteria()
1628 match->value.dst_ip); in efx_mae_populate_lhs_match_criteria()
1630 match->mask.dst_ip); in efx_mae_populate_lhs_match_criteria()
1644 match->mask.l4_sport); in efx_mae_populate_lhs_match_criteria()
1648 match->mask.l4_dport); in efx_mae_populate_lhs_match_criteria()
1654 if (WARN_ON_ONCE(match->encap && !match->encap->type)) in efx_mae_populate_lhs_match_criteria()
2164 match->value.src_ip); in efx_mae_populate_match_criteria()
2166 match->mask.src_ip); in efx_mae_populate_match_criteria()
2170 match->mask.dst_ip); in efx_mae_populate_match_criteria()
[all …]
/drivers/media/v4l2-core/
A Dv4l2-async.c142 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()
500 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match_entry()
504 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match_entry()
531 if (&asc->match == match) in v4l2_async_nf_has_async_match()
533 if (v4l2_async_match_equal(&asc->match, match)) in v4l2_async_nf_has_async_match()
551 switch (match->type) { in v4l2_async_nf_match_valid()
561 match->type, match); in v4l2_async_nf_match_valid()
[all …]
/drivers/regulator/
A Ddevres.c499 return match->dev == target->dev && strcmp(match->id, target->id) == 0; in devm_regulator_match_supply_alias()
506 regulator_unregister_supply_alias(match->dev, match->id); in devm_regulator_destroy_supply_alias()
532 if (!match) in devm_regulator_register_supply_alias()
535 match->dev = dev; in devm_regulator_register_supply_alias()
536 match->id = id; in devm_regulator_register_supply_alias()
556 match.dev = dev; in devm_regulator_unregister_supply_alias()
557 match.id = id; in devm_regulator_unregister_supply_alias()
633 regulator_unregister_notifier(match->regulator, match->nb); in devm_regulator_destroy_notifier()
655 if (!match) in devm_regulator_register_notifier()
659 match->nb = nb; in devm_regulator_register_notifier()
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_tc_flower.c206 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 …]
/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_tc.c591 if (!match.mask->vlan_id) { in otx2_tc_process_vlan()
599 ntohs(match.key->vlan_tpid), match.key->vlan_id); in otx2_tc_process_vlan()
605 if (match.mask->vlan_id || in otx2_tc_process_vlan()
606 match.mask->vlan_dei || in otx2_tc_process_vlan()
672 if (match.mask->ip_proto && in otx2_tc_prepare_flow()
682 match.key->ip_proto); in otx2_tc_prepare_flow()
685 if (match.mask->ip_proto) in otx2_tc_prepare_flow()
744 (u8 *)&match.mask->dst); in otx2_tc_prepare_flow()
753 if (!match.mask->spi) { in otx2_tc_prepare_flow()
774 match.mask->tos) { in otx2_tc_prepare_flow()
[all …]
/drivers/net/ethernet/intel/ice/
A Dice_tc_lib.c1326 if (match->key->dst) { in ice_tc_set_ipv4()
1453 if (match.key->dst) { in ice_tc_set_port()
1462 if (match.key->src) { in ice_tc_set_port()
1508 if (match.key->dst) { in ice_parse_gtp_type()
1749 match.key->dst); in ice_parse_cls_flower()
1751 match.mask->dst); in ice_parse_cls_flower()
1757 match.key->src); in ice_parse_cls_flower()
1759 match.mask->src); in ice_parse_cls_flower()
1771 match.key = &key; in ice_parse_cls_flower()
1774 match.mask = &mask; in ice_parse_cls_flower()
[all …]
/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-switch-flower.c33 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 …]
/drivers/gpu/drm/xe/
A Dxe_rtp.c40 bool match; in rule_matches() local
52 match = xe->info.platform == r->platform; in rule_matches()
117 match = !xe->info.is_dgfx; in rule_matches()
120 match = xe->info.is_dgfx; in rule_matches()
126 match = hwe->class == r->engine_class; in rule_matches()
132 match = hwe->class != r->engine_class; in rule_matches()
138 match = r->match_func(gt, hwe); in rule_matches()
143 match = false; in rule_matches()
146 if (!match) { in rule_matches()
296 bool match = false; in xe_rtp_process_to_sr() local
[all …]
/drivers/net/ethernet/mscc/
A Docelot_flower.c559 struct flow_match_meta match; in ocelot_flower_parse_indev() local
626 struct flow_match_meta match; in ocelot_flower_parse_key() local
629 if (match.mask->l2_miss) { in ocelot_flower_parse_key()
690 match.key->dst); in ocelot_flower_parse_key()
692 match.key->src); in ocelot_flower_parse_key()
694 match.mask->dst); in ocelot_flower_parse_key()
696 match.mask->src); in ocelot_flower_parse_key()
713 match.key->ip_proto; in ocelot_flower_parse_key()
715 match.mask->ip_proto; in ocelot_flower_parse_key()
727 match.key->ip_proto; in ocelot_flower_parse_key()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtc_tun_mplsoudp.c62 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 …]
A Dtc_ct.c414 &match.mask->src, sizeof(match.mask->src)); in mlx5_tc_ct_set_tuple_match()
417 &match.key->src, sizeof(match.key->src)); in mlx5_tc_ct_set_tuple_match()
420 &match.mask->dst, sizeof(match.mask->dst)); in mlx5_tc_ct_set_tuple_match()
423 &match.key->dst, sizeof(match.key->dst)); in mlx5_tc_ct_set_tuple_match()
432 &match.mask->src, sizeof(match.mask->src)); in mlx5_tc_ct_set_tuple_match()
435 &match.key->src, sizeof(match.key->src)); in mlx5_tc_ct_set_tuple_match()
439 &match.mask->dst, sizeof(match.mask->dst)); in mlx5_tc_ct_set_tuple_match()
442 &match.key->dst, sizeof(match.key->dst)); in mlx5_tc_ct_set_tuple_match()
493 if (match.key->ingress_ifindex & match.mask->ingress_ifindex) { in mlx5_tc_ct_set_tuple_match()
1371 if (!(match.key->ingress_ifindex & match.mask->ingress_ifindex)) in mlx5_tc_ct_filter_legacy_non_nic_flows()
[all …]
/drivers/tty/serial/
A Dearlycon.c153 earlycon_init(&early_console_dev, match->name); in register_earlycon()
154 err = match->setup(&early_console_dev, buf); in register_earlycon()
185 const struct earlycon_id *match; in setup_earlycon() local
195 for (match = __earlycon_table; match < __earlycon_table_end; match++) { in setup_earlycon()
196 size_t len = strlen(match->name); in setup_earlycon()
198 if (strncmp(buf, match->name, len)) in setup_earlycon()
202 if (empty_compatible && *match->compatible) in setup_earlycon()
212 return register_earlycon(buf, match); in setup_earlycon()
293 pr_warn("[%s] bad address\n", match->name); in of_setup_earlycon()
340 earlycon_init(&early_console_dev, match->name); in of_setup_earlycon()
[all …]
/drivers/media/rc/
A Dwinbond-cir.c672 u8 match[11]; in wbcir_shutdown() local
680 memset(match, 0, sizeof(match)); in wbcir_shutdown()
695 match[1] |= 0x10; in wbcir_shutdown()
701 match[1] |= 0x10; in wbcir_shutdown()
712 match[1] = bitrev8(wake_sc); in wbcir_shutdown()
713 match[0] = ~match[1]; in wbcir_shutdown()
714 match[3] = bitrev8(wake_sc >> 8); in wbcir_shutdown()
715 match[2] = ~match[3]; in wbcir_shutdown()
726 match[1] = bitrev8(wake_sc); in wbcir_shutdown()
727 match[0] = ~match[1]; in wbcir_shutdown()
[all …]
/drivers/pmdomain/amlogic/
A Dmeson-secure-pwrc.c274 match = of_device_get_match_data(&pdev->dev); in meson_secure_pwrc_probe()
275 if (!match) { in meson_secure_pwrc_probe()
308 pwrc->xlate.num_domains = match->count; in meson_secure_pwrc_probe()
311 for (i = 0 ; i < match->count ; ++i) { in meson_secure_pwrc_probe()
314 if (!match->domains[i].name) in meson_secure_pwrc_probe()
318 dom->index = match->domains[i].index; in meson_secure_pwrc_probe()
319 dom->parent = match->domains[i].parent; in meson_secure_pwrc_probe()
320 dom->base.name = match->domains[i].name; in meson_secure_pwrc_probe()
321 dom->base.flags = match->domains[i].flags; in meson_secure_pwrc_probe()
333 for (i = 0; i < match->count; i++) { in meson_secure_pwrc_probe()
[all …]
/drivers/net/dsa/sja1105/
A Dsja1105_flower.c221 struct flow_match_basic match; in sja1105_flower_parse_key() local
224 if (match.key->n_proto) { in sja1105_flower_parse_key()
234 struct flow_match_eth_addrs match; in sja1105_flower_parse_key() local
239 match.mask->src)) { in sja1105_flower_parse_key()
256 struct flow_match_vlan match; in sja1105_flower_parse_key() local
260 if (match.mask->vlan_id && in sja1105_flower_parse_key()
267 if (match.mask->vlan_priority && in sja1105_flower_parse_key()
274 if (match.mask->vlan_id) in sja1105_flower_parse_key()
275 vid = match.key->vlan_id; in sja1105_flower_parse_key()
276 if (match.mask->vlan_priority) in sja1105_flower_parse_key()
[all …]
/drivers/crypto/ccp/
A Dsp-platform.c57 const struct of_device_id *match; in sp_get_of_version() local
59 match = of_match_node(sp_of_match, pdev->dev.of_node); in sp_get_of_version()
60 if (match && match->data) in sp_get_of_version()
61 return (struct sp_dev_vdata *)match->data; in sp_get_of_version()
68 const struct acpi_device_id *match; in sp_get_acpi_version() local
70 match = acpi_match_device(sp_acpi_match, &pdev->dev); in sp_get_acpi_version()
71 if (match && match->driver_data) in sp_get_acpi_version()
72 return (struct sp_dev_vdata *)match->driver_data; in sp_get_acpi_version()
/drivers/perf/arm_cspmu/
A Dnvidia_cspmu.c285 const struct nv_cspmu_match *match) in nv_cspmu_format_name() argument
292 switch (match->name_fmt) { in nv_cspmu_format_name()
297 name = devm_kasprintf(dev, GFP_KERNEL, match->name_pattern, in nv_cspmu_format_name()
319 const struct nv_cspmu_match *match = nv_cspmu_match; in nv_cspmu_init_ops() local
328 for (; match->prodid; match++) { in nv_cspmu_init_ops()
329 const u32 prodid_mask = match->prodid_mask; in nv_cspmu_init_ops()
335 ctx->name = nv_cspmu_format_name(cspmu, match); in nv_cspmu_init_ops()
336 ctx->filter_mask = match->filter_mask; in nv_cspmu_init_ops()
337 ctx->filter_default_val = match->filter_default_val; in nv_cspmu_init_ops()
338 ctx->event_attr = match->event_attr; in nv_cspmu_init_ops()
[all …]
A Darm_cspmu.c344 for (; match->pmiidr_val; match++) { in arm_cspmu_impl_match_get()
348 return match; in arm_cspmu_impl_match_get()
385 if (match) { in arm_cspmu_init_impl_ops()
392 cspmu->impl.match = match; in arm_cspmu_init_impl_ops()
398 match->module_name); in arm_cspmu_init_impl_ops()
1318 if (match) { in arm_cspmu_impl_register()
1327 match->module_name, in arm_cspmu_impl_register()
1328 match->pmiidr_val, in arm_cspmu_impl_register()
1353 return (cspmu && cspmu->impl.match == match) ? 1 : 0; in arm_cspmu_match_device()
1363 if (WARN_ON(!match)) in arm_cspmu_impl_unregister()
[all …]
/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt_tc.c388 struct flow_match_basic match; in bnxt_tc_parse_flow() local
402 struct flow_match_eth_addrs match; in bnxt_tc_parse_flow() local
413 struct flow_match_vlan match; in bnxt_tc_parse_flow() local
415 flow_rule_match_vlan(rule, &match); in bnxt_tc_parse_flow()
418 match.key->vlan_priority)); in bnxt_tc_parse_flow()
428 struct flow_match_ipv4_addrs match; in bnxt_tc_parse_flow() local
437 struct flow_match_ipv6_addrs match; in bnxt_tc_parse_flow() local
448 struct flow_match_ports match; in bnxt_tc_parse_flow() local
459 struct flow_match_icmp match; in bnxt_tc_parse_flow() local
484 struct flow_match_enc_keyid match; in bnxt_tc_parse_flow() local
[all …]

Completed in 108 milliseconds

12345678910>>...28