/drivers/net/ethernet/netronome/nfp/flower/ |
D | match.c | 29 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 …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_flower.c | 146 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 …]
|
D | spectrum_dpipe.c | 101 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 …]
|
/drivers/base/ |
D | component.c | 68 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 component *component = 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() 211 match->compare[i].component = c; in find_components() [all …]
|
D | devcon.c | 17 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 …]
|
D | soc.c | 199 const struct soc_device_attribute *match) in soc_device_match_attr() argument 201 if (match->machine && in soc_device_match_attr() 202 (!attr->machine || !glob_match(match->machine, attr->machine))) in soc_device_match_attr() 205 if (match->family && in soc_device_match_attr() 206 (!attr->family || !glob_match(match->family, attr->family))) in soc_device_match_attr() 209 if (match->revision && in soc_device_match_attr() 210 (!attr->revision || !glob_match(match->revision, attr->revision))) in soc_device_match_attr() 213 if (match->soc_id && in soc_device_match_attr() 214 (!attr->soc_id || !glob_match(match->soc_id, attr->soc_id))) in soc_device_match_attr()
|
/drivers/regulator/ |
D | devres.c | 243 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 …]
|
/drivers/net/ethernet/mscc/ |
D | ocelot_flower.c | 45 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 …]
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_tc_flower.c | 91 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 …]
|
/drivers/media/v4l2-core/ |
D | v4l2-async.c | 59 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 …]
|
/drivers/media/rc/ |
D | winbond-cir.c | 674 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 …]
|
/drivers/cpufreq/ |
D | ti-cpufreq.c | 200 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 …]
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_tc.c | 177 struct flow_dissector *dissector = rule->match.dissector; in bnxt_tc_parse_flow() 188 struct flow_match_basic match; in bnxt_tc_parse_flow() local 190 flow_rule_match_basic(rule, &match); in bnxt_tc_parse_flow() 191 flow->l2_key.ether_type = match.key->n_proto; in bnxt_tc_parse_flow() 192 flow->l2_mask.ether_type = match.mask->n_proto; in bnxt_tc_parse_flow() 194 if (match.key->n_proto == htons(ETH_P_IP) || in bnxt_tc_parse_flow() 195 match.key->n_proto == htons(ETH_P_IPV6)) { in bnxt_tc_parse_flow() 196 flow->l4_key.ip_proto = match.key->ip_proto; in bnxt_tc_parse_flow() 197 flow->l4_mask.ip_proto = match.mask->ip_proto; in bnxt_tc_parse_flow() 202 struct flow_match_eth_addrs match; in bnxt_tc_parse_flow() local [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_tc.c | 1674 struct flow_match_control match; in parse_tunnel_attr() local 1677 flow_rule_match_enc_control(rule, &match); in parse_tunnel_attr() 1678 addr_type = match.key->addr_type; in parse_tunnel_attr() 1682 struct flow_match_ipv4_addrs match; in parse_tunnel_attr() local 1684 flow_rule_match_enc_ipv4_addrs(rule, &match); in parse_tunnel_attr() 1687 ntohl(match.mask->src)); in parse_tunnel_attr() 1690 ntohl(match.key->src)); in parse_tunnel_attr() 1694 ntohl(match.mask->dst)); in parse_tunnel_attr() 1697 ntohl(match.key->dst)); in parse_tunnel_attr() 1704 struct flow_match_ipv6_addrs match; in parse_tunnel_attr() local [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/tty/serial/ |
D | earlycon.c | 127 static int __init register_earlycon(char *buf, const struct earlycon_id *match) in register_earlycon() argument 141 earlycon_init(&early_console_dev, match->name); in register_earlycon() 142 err = match->setup(&early_console_dev, buf); in register_earlycon() 182 const struct earlycon_id *match = *p_match; in setup_earlycon() local 183 size_t len = strlen(match->name); in setup_earlycon() 185 if (strncmp(buf, match->name, len)) in setup_earlycon() 195 return register_earlycon(buf, match); in setup_earlycon() 231 int __init of_setup_earlycon(const struct earlycon_id *match, in of_setup_earlycon() argument 245 pr_warn("[%s] bad address\n", match->name); in of_setup_earlycon() 274 pr_warn("[%s] unsupported reg-io-width\n", match->name); in of_setup_earlycon() [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 195 match = iter; in nfp_abm_u32_knode_replace() 208 if (!match) { in nfp_abm_u32_knode_replace() 209 match = kzalloc(sizeof(*match), GFP_KERNEL); in nfp_abm_u32_knode_replace() 210 if (!match) { in nfp_abm_u32_knode_replace() 215 list_add(&match->list, &alink->dscp_map); in nfp_abm_u32_knode_replace() 217 match->handle = knode->handle; in nfp_abm_u32_knode_replace() 218 match->band = knode->res->classid; in nfp_abm_u32_knode_replace() 219 match->mask = mask; in nfp_abm_u32_knode_replace() 220 match->val = val; in nfp_abm_u32_knode_replace()
|
/drivers/firmware/efi/ |
D | vars.c | 40 validate_device_path(efi_char16_t *var_name, int match, u8 *buffer, in validate_device_path() argument 73 validate_boot_order(efi_char16_t *var_name, int match, u8 *buffer, in validate_boot_order() argument 84 validate_load_option(efi_char16_t *var_name, int match, u8 *buffer, in validate_load_option() argument 93 for (i = match; i < match+4; i++) { in validate_load_option() 100 if (namelen > match + 4) in validate_load_option() 130 return validate_device_path(var_name, match, buffer + desclength + 6, in validate_load_option() 135 validate_uint16(efi_char16_t *var_name, int match, u8 *buffer, in validate_uint16() argument 146 validate_ascii_string(efi_char16_t *var_name, int match, u8 *buffer, in validate_ascii_string() argument 165 bool (*validate)(efi_char16_t *var_name, int match, u8 *data, 213 int *match) in variable_matches() argument [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_tc.c | 399 struct flow_dissector *dissector = rule->match.dissector; in tc_add_basic_flow() 400 struct flow_match_basic match; in tc_add_basic_flow() local 406 flow_rule_match_basic(rule, &match); in tc_add_basic_flow() 407 entry->ip_proto = match.key->ip_proto; in tc_add_basic_flow() 416 struct flow_dissector *dissector = rule->match.dissector; in tc_add_ip4_flow() 418 struct flow_match_ipv4_addrs match; in tc_add_ip4_flow() local 426 flow_rule_match_ipv4_addrs(rule, &match); in tc_add_ip4_flow() 427 hw_match = ntohl(match.key->src) & ntohl(match.mask->src); in tc_add_ip4_flow() 435 hw_match = ntohl(match.key->dst) & ntohl(match.mask->dst); in tc_add_ip4_flow() 451 struct flow_dissector *dissector = rule->match.dissector; in tc_add_ports_flow() [all …]
|
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | dmi.c | 119 const struct dmi_system_id *match; in brcmf_dmi_probe() local 127 for (match = dmi_first_match(dmi_platform_data); in brcmf_dmi_probe() 128 match; in brcmf_dmi_probe() 129 match = dmi_first_match(match + 1)) { in brcmf_dmi_probe() 130 data = match->driver_data; in brcmf_dmi_probe()
|
/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 | 736 const struct acpi_dev_match_info *match = data; in acpi_dev_match_cb() local 740 if (acpi_match_device_ids(adev, match->hid)) in acpi_dev_match_cb() 743 if (match->uid && (!adev->pnp.unique_id || in acpi_dev_match_cb() 744 strcmp(adev->pnp.unique_id, match->uid))) in acpi_dev_match_cb() 747 if (match->hrv == -1) in acpi_dev_match_cb() 754 return hrv == match->hrv; in acpi_dev_match_cb() 779 struct acpi_dev_match_info match = {}; in acpi_dev_present() local 782 strlcpy(match.hid[0].id, hid, sizeof(match.hid[0].id)); in acpi_dev_present() 783 match.uid = uid; in acpi_dev_present() 784 match.hrv = hrv; in acpi_dev_present() [all …]
|
/drivers/gpu/drm/sun4i/ |
D | sun4i_drv.c | 185 const struct of_device_id *match; in sun4i_drv_node_is_tcon_with_ch0() local 187 match = of_match_node(sun4i_tcon_of_table, node); in sun4i_drv_node_is_tcon_with_ch0() 188 if (match) { in sun4i_drv_node_is_tcon_with_ch0() 191 quirks = (struct sun4i_tcon_quirks *)match->data; in sun4i_drv_node_is_tcon_with_ch0() 299 struct component_match **match, in sun4i_drv_add_endpoints() argument 333 drm_of_component_match_add(dev, match, compare_of, node); in sun4i_drv_add_endpoints() 351 struct component_match *match = NULL; in sun4i_drv_probe() local 370 ret = sun4i_drv_add_endpoints(&pdev->dev, &list, &match, in sun4i_drv_probe() 383 match); in sun4i_drv_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 …]
|
/drivers/media/platform/vimc/ |
D | vimc-core.c | 242 struct component_match *match = NULL; in vimc_add_subdevs() local 259 match = ERR_CAST(vimc->subdevs[i]); in vimc_add_subdevs() 263 return match; in vimc_add_subdevs() 266 component_match_add(&vimc->pdev.dev, &match, vimc_comp_compare, in vimc_add_subdevs() 270 return match; in vimc_add_subdevs() 289 struct component_match *match = NULL; in vimc_probe() local 302 match = vimc_add_subdevs(vimc); in vimc_probe() 303 if (IS_ERR(match)) in vimc_probe() 304 return PTR_ERR(match); in vimc_probe() 319 match); in vimc_probe()
|