/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() 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 …]
|
/drivers/base/ |
D | component.c | 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 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 …]
|
D | soc.c | 195 const struct soc_device_attribute *match) in soc_device_match_attr() argument 197 if (match->machine && in soc_device_match_attr() 198 (!attr->machine || !glob_match(match->machine, attr->machine))) in soc_device_match_attr() 201 if (match->family && in soc_device_match_attr() 202 (!attr->family || !glob_match(match->family, attr->family))) in soc_device_match_attr() 205 if (match->revision && in soc_device_match_attr() 206 (!attr->revision || !glob_match(match->revision, attr->revision))) in soc_device_match_attr() 209 if (match->soc_id && in soc_device_match_attr() 210 (!attr->soc_id || !glob_match(match->soc_id, attr->soc_id))) in soc_device_match_attr()
|
/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() 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 …]
|
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 …]
|
/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 …]
|
/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 …]
|
/drivers/net/ethernet/mscc/ |
D | ocelot_flower.c | 392 struct flow_match_meta match; in ocelot_flower_parse_indev() local 395 flow_rule_match_meta(rule, &match); in ocelot_flower_parse_indev() 397 if (!match.mask->ingress_ifindex) in ocelot_flower_parse_indev() 400 if (match.mask->ingress_ifindex != 0xFFFFFFFF) { in ocelot_flower_parse_indev() 409 indev = __dev_get_by_index(dev_net(dev), match.key->ingress_ifindex); in ocelot_flower_parse_indev() 440 struct flow_dissector *dissector = rule->match.dissector; in ocelot_flower_parse_key() 466 struct flow_match_control match; in ocelot_flower_parse_key() local 468 flow_rule_match_control(rule, &match); in ocelot_flower_parse_key() 472 struct flow_match_vlan match; in ocelot_flower_parse_key() local 474 flow_rule_match_vlan(rule, &match); in ocelot_flower_parse_key() [all …]
|
/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() 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 …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun_mplsoudp.c | 64 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 …]
|
D | tc_tun.c | 542 struct flow_match_control match; in mlx5e_tc_tun_parse() local 545 flow_rule_match_enc_control(rule, &match); in mlx5e_tc_tun_parse() 546 addr_type = match.key->addr_type; in mlx5e_tc_tun_parse() 550 struct flow_match_ipv4_addrs match; in mlx5e_tc_tun_parse() local 552 flow_rule_match_enc_ipv4_addrs(rule, &match); in mlx5e_tc_tun_parse() 555 ntohl(match.mask->src)); in mlx5e_tc_tun_parse() 558 ntohl(match.key->src)); in mlx5e_tc_tun_parse() 562 ntohl(match.mask->dst)); in mlx5e_tc_tun_parse() 565 ntohl(match.key->dst)); in mlx5e_tc_tun_parse() 571 struct flow_match_ipv6_addrs match; in mlx5e_tc_tun_parse() local [all …]
|
D | tc_ct.c | 223 struct flow_match_ipv4_addrs match; in mlx5_tc_ct_rule_to_tuple() local 225 flow_rule_match_ipv4_addrs(rule, &match); in mlx5_tc_ct_rule_to_tuple() 226 tuple->ip.src_v4 = match.key->src; in mlx5_tc_ct_rule_to_tuple() 227 tuple->ip.dst_v4 = match.key->dst; in mlx5_tc_ct_rule_to_tuple() 229 struct flow_match_ipv6_addrs match; in mlx5_tc_ct_rule_to_tuple() local 231 flow_rule_match_ipv6_addrs(rule, &match); in mlx5_tc_ct_rule_to_tuple() 232 tuple->ip.src_v6 = match.key->src; in mlx5_tc_ct_rule_to_tuple() 233 tuple->ip.dst_v6 = match.key->dst; in mlx5_tc_ct_rule_to_tuple() 239 struct flow_match_ports match; in mlx5_tc_ct_rule_to_tuple() local 241 flow_rule_match_ports(rule, &match); in mlx5_tc_ct_rule_to_tuple() [all …]
|
/drivers/media/rc/ |
D | winbond-cir.c | 672 u8 match[11]; in wbcir_shutdown() local 680 memset(match, 0, sizeof(match)); in wbcir_shutdown() 695 match[1] |= 0x10; in wbcir_shutdown() 697 match[0] = (wake_sc & 0x003F); /* 6 command bits */ in wbcir_shutdown() 698 match[0] |= (wake_sc & 0x0300) >> 2; /* 2 address bits */ in wbcir_shutdown() 699 match[1] = (wake_sc & 0x1c00) >> 10; /* 3 address bits */ 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() [all …]
|
/drivers/soc/amlogic/ |
D | meson-secure-pwrc.c | 127 const struct meson_secure_pwrc_domain_data *match; in meson_secure_pwrc_probe() local 129 match = of_device_get_match_data(&pdev->dev); in meson_secure_pwrc_probe() 130 if (!match) { in meson_secure_pwrc_probe() 152 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe() 158 pwrc->domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe() 163 pwrc->xlate.num_domains = match->count; in meson_secure_pwrc_probe() 166 for (i = 0 ; i < match->count ; ++i) { in meson_secure_pwrc_probe() 169 if (!match->domains[i].index) in meson_secure_pwrc_probe() 173 dom->index = match->domains[i].index; in meson_secure_pwrc_probe() 174 dom->base.name = match->domains[i].name; in meson_secure_pwrc_probe() [all …]
|
/drivers/net/dsa/sja1105/ |
D | sja1105_flower.c | 200 struct flow_dissector *dissector = rule->match.dissector; in sja1105_flower_parse_key() 217 struct flow_match_basic match; in sja1105_flower_parse_key() local 219 flow_rule_match_basic(rule, &match); in sja1105_flower_parse_key() 220 if (match.key->n_proto) { in sja1105_flower_parse_key() 230 struct flow_match_eth_addrs match; in sja1105_flower_parse_key() local 232 flow_rule_match_eth_addrs(rule, &match); in sja1105_flower_parse_key() 234 if (!ether_addr_equal_masked(match.key->src, null, in sja1105_flower_parse_key() 235 match.mask->src)) { in sja1105_flower_parse_key() 241 if (!ether_addr_equal(match.mask->dst, bcast)) { in sja1105_flower_parse_key() 247 dmac = ether_addr_to_u64(match.key->dst); in sja1105_flower_parse_key() [all …]
|
/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() 190 const struct earlycon_id *match = *p_match; in setup_earlycon() local 191 size_t len = strlen(match->name); in setup_earlycon() 193 if (strncmp(buf, match->name, len)) in setup_earlycon() 197 if (empty_compatible && *match->compatible) in setup_earlycon() 207 return register_earlycon(buf, match); in setup_earlycon() 248 int __init of_setup_earlycon(const struct earlycon_id *match, in of_setup_earlycon() argument 262 pr_warn("[%s] bad address\n", match->name); in of_setup_earlycon() [all …]
|
/drivers/crypto/ccp/ |
D | sp-platform.c | 62 const struct of_device_id *match; in sp_get_of_version() local 64 match = of_match_node(sp_of_match, pdev->dev.of_node); in sp_get_of_version() 65 if (match && match->data) in sp_get_of_version() 66 return (struct sp_dev_vdata *)match->data; in sp_get_of_version() 74 const struct acpi_device_id *match; in sp_get_acpi_version() local 76 match = acpi_match_device(sp_acpi_match, &pdev->dev); in sp_get_acpi_version() 77 if (match && match->driver_data) in sp_get_acpi_version() 78 return (struct sp_dev_vdata *)match->driver_data; in sp_get_acpi_version()
|
/drivers/cpufreq/ |
D | ti-cpufreq.c | 314 const struct of_device_id *match; in ti_cpufreq_match_node() local 317 match = of_match_node(ti_cpufreq_of_match, np); in ti_cpufreq_match_node() 320 return match; in ti_cpufreq_match_node() 326 const struct of_device_id *match; in ti_cpufreq_probe() local 332 match = dev_get_platdata(&pdev->dev); in ti_cpufreq_probe() 333 if (!match) in ti_cpufreq_probe() 340 opp_data->soc_data = match->data; in ti_cpufreq_probe() 413 const struct of_device_id *match; in ti_cpufreq_init() local 416 match = ti_cpufreq_match_node(); in ti_cpufreq_init() 417 if (match) in ti_cpufreq_init() [all …]
|
/drivers/net/ethernet/netronome/nfp/abm/ |
D | cls.c | 174 struct nfp_abm_u32_match *match = NULL, *iter; in nfp_abm_u32_knode_replace() local 193 match = iter; in nfp_abm_u32_knode_replace() 205 if (!match) { in nfp_abm_u32_knode_replace() 206 match = kzalloc(sizeof(*match), GFP_KERNEL); in nfp_abm_u32_knode_replace() 207 if (!match) in nfp_abm_u32_knode_replace() 209 list_add(&match->list, &alink->dscp_map); in nfp_abm_u32_knode_replace() 211 match->handle = knode->handle; in nfp_abm_u32_knode_replace() 212 match->band = knode->res->classid; in nfp_abm_u32_knode_replace() 213 match->mask = mask; in nfp_abm_u32_knode_replace() 214 match->val = val; in nfp_abm_u32_knode_replace()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_tc.c | 372 struct flow_dissector *dissector = rule->match.dissector; in bnxt_tc_parse_flow() 383 struct flow_match_basic match; in bnxt_tc_parse_flow() local 385 flow_rule_match_basic(rule, &match); in bnxt_tc_parse_flow() 386 flow->l2_key.ether_type = match.key->n_proto; in bnxt_tc_parse_flow() 387 flow->l2_mask.ether_type = match.mask->n_proto; in bnxt_tc_parse_flow() 389 if (match.key->n_proto == htons(ETH_P_IP) || in bnxt_tc_parse_flow() 390 match.key->n_proto == htons(ETH_P_IPV6)) { in bnxt_tc_parse_flow() 391 flow->l4_key.ip_proto = match.key->ip_proto; in bnxt_tc_parse_flow() 392 flow->l4_mask.ip_proto = match.mask->ip_proto; in bnxt_tc_parse_flow() 397 struct flow_match_eth_addrs match; in bnxt_tc_parse_flow() local [all …]
|
/drivers/firmware/efi/ |
D | vars.c | 36 validate_device_path(efi_char16_t *var_name, int match, u8 *buffer, in validate_device_path() argument 69 validate_boot_order(efi_char16_t *var_name, int match, u8 *buffer, in validate_boot_order() argument 80 validate_load_option(efi_char16_t *var_name, int match, u8 *buffer, in validate_load_option() argument 89 for (i = match; i < match+4; i++) { in validate_load_option() 96 if (namelen > match + 4) in validate_load_option() 126 return validate_device_path(var_name, match, buffer + desclength + 6, in validate_load_option() 131 validate_uint16(efi_char16_t *var_name, int match, u8 *buffer, in validate_uint16() argument 142 validate_ascii_string(efi_char16_t *var_name, int match, u8 *buffer, in validate_ascii_string() argument 161 bool (*validate)(efi_char16_t *var_name, int match, u8 *data, 209 int *match) in variable_matches() argument [all …]
|
/drivers/media/pci/cx23885/ |
D | cx23885-ioctl.c | 19 if (chip->match.addr > 1) in cx23885_g_chip_info() 21 if (chip->match.addr == 1) { in cx23885_g_chip_info() 55 if (reg->match.addr > 1) in cx23885_g_register() 57 if (reg->match.addr) in cx23885_g_register() 87 if (reg->match.addr > 1) in cx23885_s_register() 89 if (reg->match.addr) in cx23885_s_register()
|
/drivers/acpi/ |
D | utils.c | 789 const struct acpi_dev_match_info *match = data; in acpi_dev_match_cb() local 793 if (acpi_match_device_ids(adev, match->hid)) in acpi_dev_match_cb() 796 if (match->uid && (!adev->pnp.unique_id || in acpi_dev_match_cb() 797 strcmp(adev->pnp.unique_id, match->uid))) in acpi_dev_match_cb() 800 if (match->hrv == -1) in acpi_dev_match_cb() 807 return hrv == match->hrv; in acpi_dev_match_cb() 832 struct acpi_dev_match_info match = {}; in acpi_dev_present() local 835 strlcpy(match.hid[0].id, hid, sizeof(match.hid[0].id)); in acpi_dev_present() 836 match.uid = uid; in acpi_dev_present() 837 match.hrv = hrv; in acpi_dev_present() [all …]
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | dmi.c | 161 const struct dmi_system_id *match; in brcmf_dmi_probe() local 169 for (match = dmi_first_match(dmi_platform_data); in brcmf_dmi_probe() 170 match; in brcmf_dmi_probe() 171 match = dmi_first_match(match + 1)) { in brcmf_dmi_probe() 172 data = match->driver_data; in brcmf_dmi_probe()
|
/drivers/of/ |
D | irq.c | 100 int imaplen, match, i, rc = -EINVAL; in of_irq_parse_raw() local 192 match = 0; in of_irq_parse_raw() 193 while (imaplen > (addrsize + intsize + 1) && !match) { in of_irq_parse_raw() 195 match = 1; in of_irq_parse_raw() 197 match &= !((match_array[i] ^ *imap++) & imask[i]); in of_irq_parse_raw() 199 pr_debug(" -> match=%d (imaplen=%d)\n", match, imaplen); in of_irq_parse_raw() 216 match = 0; in of_irq_parse_raw() 245 if (!match) in of_irq_parse_raw() 481 const struct of_device_id *match; in of_irq_init() local 489 for_each_matching_node_and_match(np, matches, &match) { in of_irq_init() [all …]
|