/drivers/mtd/ |
D | mtdpart.c | 44 struct mtd_info *child; in allocate_partition() local 50 child = kzalloc(sizeof(*child), GFP_KERNEL); in allocate_partition() 52 if (!name || !child) { in allocate_partition() 56 kfree(child); in allocate_partition() 61 child->type = parent->type; in allocate_partition() 62 child->part.flags = parent->flags & ~part->mask_flags; in allocate_partition() 63 child->part.flags |= part->add_flags; in allocate_partition() 64 child->flags = child->part.flags; in allocate_partition() 65 child->part.size = part->size; in allocate_partition() 66 child->writesize = parent->writesize; in allocate_partition() [all …]
|
/drivers/pwm/ |
D | sysfs.c | 18 struct device child; member 24 static struct pwm_export *child_to_pwm_export(struct device *child) in child_to_pwm_export() argument 26 return container_of(child, struct pwm_export, child); in child_to_pwm_export() 29 static struct pwm_device *child_to_pwm_device(struct device *child) in child_to_pwm_device() argument 31 struct pwm_export *export = child_to_pwm_export(child); in child_to_pwm_device() 36 static ssize_t period_show(struct device *child, in period_show() argument 40 const struct pwm_device *pwm = child_to_pwm_device(child); in period_show() 48 static ssize_t period_store(struct device *child, in period_store() argument 52 struct pwm_export *export = child_to_pwm_export(child); in period_store() 71 static ssize_t duty_cycle_show(struct device *child, in duty_cycle_show() argument [all …]
|
/drivers/net/mdio/ |
D | of_mdio.c | 37 struct device_node *child, u32 addr) in of_mdiobus_phy_device_register() argument 40 of_fwnode_handle(child), in of_mdiobus_phy_device_register() 46 struct device_node *child, u32 addr) in of_mdiobus_register_phy() argument 48 return fwnode_mdiobus_register_phy(mdio, of_fwnode_handle(child), addr); in of_mdiobus_register_phy() 52 struct device_node *child, u32 addr) in of_mdiobus_register_device() argument 54 struct fwnode_handle *fwnode = of_fwnode_handle(child); in of_mdiobus_register_device() 78 child, addr); in of_mdiobus_register_device() 114 bool of_mdiobus_child_is_phy(struct device_node *child) in of_mdiobus_child_is_phy() argument 118 if (of_get_phy_id(child, &phy_id) != -EINVAL) in of_mdiobus_child_is_phy() 121 if (of_device_is_compatible(child, "ethernet-phy-ieee802.3-c45")) in of_mdiobus_child_is_phy() [all …]
|
D | fwnode_mdio.c | 62 struct fwnode_handle *child, u32 addr) in fwnode_mdiobus_phy_device_register() argument 66 rc = fwnode_irq_get(child, 0); in fwnode_mdiobus_phy_device_register() 82 if (fwnode_property_read_bool(child, "broken-turn-around")) in fwnode_mdiobus_phy_device_register() 85 fwnode_property_read_u32(child, "reset-assert-us", in fwnode_mdiobus_phy_device_register() 87 fwnode_property_read_u32(child, "reset-deassert-us", in fwnode_mdiobus_phy_device_register() 93 fwnode_handle_get(child); in fwnode_mdiobus_phy_device_register() 94 device_set_node(&phy->mdio.dev, child); in fwnode_mdiobus_phy_device_register() 102 fwnode_handle_put(child); in fwnode_mdiobus_phy_device_register() 107 child, addr); in fwnode_mdiobus_phy_device_register() 113 struct fwnode_handle *child, u32 addr) in fwnode_mdiobus_register_phy() argument [all …]
|
/drivers/pci/pcie/ |
D | aspm.c | 101 struct pci_dev *child; in pci_function_0() local 103 list_for_each_entry(child, &linkbus->devices, bus_list) in pci_function_0() 104 if (PCI_FUNC(child->devfn) == 0) in pci_function_0() 105 return child; in pci_function_0() 145 struct pci_dev *child; in pcie_set_clkpm_nocheck() local 149 list_for_each_entry(child, &linkbus->devices, bus_list) in pcie_set_clkpm_nocheck() 150 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_set_clkpm_nocheck() 175 struct pci_dev *child; in pcie_clkpm_cap_init() local 179 list_for_each_entry(child, &linkbus->devices, bus_list) { in pcie_clkpm_cap_init() 180 pcie_capability_read_dword(child, PCI_EXP_LNKCAP, ®32); in pcie_clkpm_cap_init() [all …]
|
/drivers/scsi/libsas/ |
D | sas_expander.c | 723 struct domain_device *child, in sas_ex_get_linkrate() argument 730 child->pathways = 0; in sas_ex_get_linkrate() 742 SAS_ADDR(child->sas_addr)) { in sas_ex_get_linkrate() 744 child->min_linkrate = min(parent->min_linkrate, in sas_ex_get_linkrate() 746 child->max_linkrate = max(parent->max_linkrate, in sas_ex_get_linkrate() 748 child->pathways++; in sas_ex_get_linkrate() 752 child->linkrate = min(parent_phy->linkrate, child->max_linkrate); in sas_ex_get_linkrate() 753 child->pathways = min(child->pathways, parent->pathways); in sas_ex_get_linkrate() 761 struct domain_device *child = NULL; in sas_ex_discover_end_dev() local 768 child = sas_alloc_device(); in sas_ex_discover_end_dev() [all …]
|
/drivers/firmware/efi/ |
D | dev-path-parser.c | 16 struct device *parent, struct device **child) in parse_acpi_path() argument 45 *child = get_device(phys_dev); in parse_acpi_path() 48 *child = &adev->dev; in parse_acpi_path() 61 struct device *parent, struct device **child) in parse_pci_path() argument 72 *child = device_find_child(parent, &devfn, match_pci_dev); in parse_pci_path() 73 if (!*child) in parse_pci_path() 97 struct device *parent, struct device **child) in parse_end_path() argument 107 *child = get_device(parent); in parse_end_path() 150 struct device *parent = NULL, *child; in efi_get_device_by_path() local 161 ret = parse_acpi_path(*node, parent, &child); in efi_get_device_by_path() [all …]
|
/drivers/bus/ |
D | tegra-gmi.c | 94 struct device_node *child; in tegra_gmi_parse_dt() local 98 child = of_get_next_available_child(gmi->dev->of_node, NULL); in tegra_gmi_parse_dt() 99 if (!child) { in tegra_gmi_parse_dt() 112 if (of_property_read_bool(child, "nvidia,snor-data-width-32bit")) in tegra_gmi_parse_dt() 115 if (of_property_read_bool(child, "nvidia,snor-mux-mode")) in tegra_gmi_parse_dt() 118 if (of_property_read_bool(child, "nvidia,snor-rdy-active-before-data")) in tegra_gmi_parse_dt() 121 if (of_property_read_bool(child, "nvidia,snor-rdy-active-high")) in tegra_gmi_parse_dt() 124 if (of_property_read_bool(child, "nvidia,snor-adv-active-high")) in tegra_gmi_parse_dt() 127 if (of_property_read_bool(child, "nvidia,snor-oe-active-high")) in tegra_gmi_parse_dt() 130 if (of_property_read_bool(child, "nvidia,snor-cs-active-high")) in tegra_gmi_parse_dt() [all …]
|
/drivers/pci/ |
D | remove.c | 69 struct pci_dev *child, *tmp; in pci_stop_bus_device() local 78 list_for_each_entry_safe_reverse(child, tmp, in pci_stop_bus_device() 80 pci_stop_bus_device(child); in pci_stop_bus_device() 89 struct pci_dev *child, *tmp; in pci_remove_bus_device() local 92 list_for_each_entry_safe(child, tmp, in pci_remove_bus_device() 94 pci_remove_bus_device(child); in pci_remove_bus_device() 132 struct pci_dev *child, *tmp; in pci_stop_root_bus() local 139 list_for_each_entry_safe_reverse(child, tmp, in pci_stop_root_bus() 141 pci_stop_bus_device(child); in pci_stop_root_bus() 150 struct pci_dev *child, *tmp; in pci_remove_root_bus() local [all …]
|
D | probe.c | 399 static void pci_read_bridge_io(struct pci_bus *child) in pci_read_bridge_io() argument 401 struct pci_dev *dev = child->self; in pci_read_bridge_io() 415 res = child->resource[0]; in pci_read_bridge_io() 439 static void pci_read_bridge_mmio(struct pci_bus *child) in pci_read_bridge_mmio() argument 441 struct pci_dev *dev = child->self; in pci_read_bridge_mmio() 447 res = child->resource[1]; in pci_read_bridge_mmio() 461 static void pci_read_bridge_mmio_pref(struct pci_bus *child) in pci_read_bridge_mmio_pref() argument 463 struct pci_dev *dev = child->self; in pci_read_bridge_mmio_pref() 470 res = child->resource[2]; in pci_read_bridge_mmio_pref() 514 void pci_read_bridge_bases(struct pci_bus *child) in pci_read_bridge_bases() argument [all …]
|
/drivers/soc/ti/ |
D | pruss.c | 167 struct device_node *child; in pruss_cfg_of_init() local 171 child = of_get_child_by_name(np, "cfg"); in pruss_cfg_of_init() 172 if (!child) { in pruss_cfg_of_init() 173 dev_err(dev, "%pOF is missing its 'cfg' node\n", child); in pruss_cfg_of_init() 177 if (of_address_to_resource(child, 0, &res)) { in pruss_cfg_of_init() 188 regmap_conf.name = kasprintf(GFP_KERNEL, "%pOFn@%llx", child, in pruss_cfg_of_init() 202 ret = pruss_clk_init(pruss, child); in pruss_cfg_of_init() 207 of_node_put(child); in pruss_cfg_of_init() 215 struct device_node *child; in pruss_probe() local 236 child = of_get_child_by_name(np, "memories"); in pruss_probe() [all …]
|
/drivers/net/wireless/ti/wlcore/ |
D | spi.c | 90 static void wl12xx_spi_reset(struct device *child) in wl12xx_spi_reset() argument 92 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_reset() 99 dev_err(child->parent, in wl12xx_spi_reset() 118 static void wl12xx_spi_init(struct device *child) in wl12xx_spi_init() argument 120 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_init() 127 dev_err(child->parent, in wl12xx_spi_init() 196 static int wl12xx_spi_read_busy(struct device *child) in wl12xx_spi_read_busy() argument 198 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_read_busy() 199 struct wl1271 *wl = dev_get_drvdata(child); in wl12xx_spi_read_busy() 227 dev_err(child->parent, "SPI read busy-word timeout!\n"); in wl12xx_spi_read_busy() [all …]
|
D | sdio.c | 42 static void wl1271_sdio_set_block_size(struct device *child, in wl1271_sdio_set_block_size() argument 45 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl1271_sdio_set_block_size() 53 static int __must_check wl12xx_sdio_raw_read(struct device *child, int addr, in wl12xx_sdio_raw_read() argument 57 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_read() 64 dev_dbg(child->parent, "sdio read 52 addr 0x%x, byte 0x%02x\n", in wl12xx_sdio_raw_read() 72 dev_dbg(child->parent, "sdio read 53 addr 0x%x, %zu bytes\n", in wl12xx_sdio_raw_read() 79 dev_err(child->parent, "sdio read failed (%d)\n", ret); in wl12xx_sdio_raw_read() 91 static int __must_check wl12xx_sdio_raw_write(struct device *child, int addr, in wl12xx_sdio_raw_write() argument 95 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_write() 109 dev_dbg(child->parent, "sdio write 52 addr 0x%x, byte 0x%02x\n", in wl12xx_sdio_raw_write() [all …]
|
/drivers/pci/hotplug/ |
D | pnv_php.c | 135 struct device_node *child; in pnv_php_rmv_pdns() local 137 for_each_child_of_node(dn, child) { in pnv_php_rmv_pdns() 138 pnv_php_rmv_pdns(child); in pnv_php_rmv_pdns() 140 pci_remove_device_node_info(child); in pnv_php_rmv_pdns() 183 php_slot->dn->child = NULL; in pnv_php_rmv_devtree() 195 struct device_node *child, *next; in pnv_php_reverse_nodes() local 198 for_each_child_of_node(parent, child) in pnv_php_reverse_nodes() 199 pnv_php_reverse_nodes(child); in pnv_php_reverse_nodes() 202 child = parent->child; in pnv_php_reverse_nodes() 203 parent->child = NULL; in pnv_php_reverse_nodes() [all …]
|
/drivers/gpu/drm/i915/display/ |
D | intel_bios.c | 68 struct child_device_config child; member 645 if (devdata && devdata->child.handle == DEVICE_HANDLE_LFP2) in vbt_get_panel_type() 648 drm_WARN_ON(&i915->drm, devdata && devdata->child.handle != DEVICE_HANDLE_LFP1); in vbt_get_panel_type() 1206 const struct child_device_config *child; in parse_sdvo_device_mapping() local 1219 child = &devdata->child; in parse_sdvo_device_mapping() 1221 if (child->slave_addr != SLAVE_ADDR1 && in parse_sdvo_device_mapping() 1222 child->slave_addr != SLAVE_ADDR2) { in parse_sdvo_device_mapping() 1229 if (child->dvo_port != DEVICE_PORT_DVOB && in parse_sdvo_device_mapping() 1230 child->dvo_port != DEVICE_PORT_DVOC) { in parse_sdvo_device_mapping() 1239 child->slave_addr, in parse_sdvo_device_mapping() [all …]
|
/drivers/regulator/ |
D | of_regulator.c | 394 struct device_node *child; in of_regulator_match() local 417 for_each_child_of_node(node, child) { in of_regulator_match() 418 name = of_get_property(child, in of_regulator_match() 421 name = child->name; in of_regulator_match() 431 of_get_regulator_init_data(dev, child, in of_regulator_match() 436 child); in of_regulator_match() 437 of_node_put(child); in of_regulator_match() 440 match->of_node = of_node_get(child); in of_regulator_match() 454 struct device_node *search, *child; in regulator_of_get_init_node() local 476 for_each_available_child_of_node(search, child) { in regulator_of_get_init_node() [all …]
|
/drivers/powercap/ |
D | dtpm.c | 61 struct dtpm *child; in __get_power_uw() local 72 list_for_each_entry(child, &dtpm->children, sibling) { in __get_power_uw() 73 ret = __get_power_uw(child, &power); in __get_power_uw() 89 struct dtpm *child; in __dtpm_rebalance_weight() local 91 list_for_each_entry(child, &dtpm->children, sibling) { in __dtpm_rebalance_weight() 94 child->weight, child->zone.name); in __dtpm_rebalance_weight() 96 child->weight = DIV64_U64_ROUND_CLOSEST( in __dtpm_rebalance_weight() 97 child->power_max * 1024, dtpm->power_max); in __dtpm_rebalance_weight() 99 __dtpm_rebalance_weight(child); in __dtpm_rebalance_weight() 206 struct dtpm *child; in __set_power_limit_uw() local [all …]
|
/drivers/input/keyboard/ |
D | gpio_keys_polled.c | 147 struct fwnode_handle *child; in gpio_keys_polled_get_devtree_pdata() local 169 device_for_each_child_node(dev, child) { in gpio_keys_polled_get_devtree_pdata() 170 if (fwnode_property_read_u32(child, "linux,code", in gpio_keys_polled_get_devtree_pdata() 173 fwnode_handle_put(child); in gpio_keys_polled_get_devtree_pdata() 177 fwnode_property_read_string(child, "label", &button->desc); in gpio_keys_polled_get_devtree_pdata() 179 if (fwnode_property_read_u32(child, "linux,input-type", in gpio_keys_polled_get_devtree_pdata() 183 if (fwnode_property_read_u32(child, "linux,input-value", in gpio_keys_polled_get_devtree_pdata() 188 fwnode_property_read_bool(child, "wakeup-source") || in gpio_keys_polled_get_devtree_pdata() 190 fwnode_property_read_bool(child, "gpio-key,wakeup"); in gpio_keys_polled_get_devtree_pdata() 192 if (fwnode_property_read_u32(child, "debounce-interval", in gpio_keys_polled_get_devtree_pdata() [all …]
|
/drivers/pinctrl/freescale/ |
D | pinctrl-mxs.c | 400 struct device_node *child; in mxs_pinctrl_probe_dt() local 408 child = of_get_next_child(np, NULL); in mxs_pinctrl_probe_dt() 409 if (!child) { in mxs_pinctrl_probe_dt() 416 for_each_child_of_node(np, child) { in mxs_pinctrl_probe_dt() 417 if (of_device_is_compatible(child, gpio_compat)) in mxs_pinctrl_probe_dt() 421 if (of_property_read_u32(child, "reg", &val)) in mxs_pinctrl_probe_dt() 423 if (strcmp(fn, child->name)) { in mxs_pinctrl_probe_dt() 424 fn = child->name; in mxs_pinctrl_probe_dt() 445 for_each_child_of_node(np, child) { in mxs_pinctrl_probe_dt() 446 if (of_device_is_compatible(child, gpio_compat)) in mxs_pinctrl_probe_dt() [all …]
|
/drivers/iio/multiplexer/ |
D | iio-mux.c | 36 struct mux_child *child; member 42 struct mux_child *child = &mux->child[idx]; in iio_mux_select() local 62 cache = &child->ext_info_cache[i]; in iio_mux_select() 232 devm_kfree(dev, mux->child[idx].ext_info_cache[private].data); in mux_write_ext_info() 233 mux->child[idx].ext_info_cache[private].data = new; in mux_write_ext_info() 234 mux->child[idx].ext_info_cache[private].size = len; in mux_write_ext_info() 244 struct mux_child *child = &mux->child[idx]; in mux_configure_channel() local 284 child->ext_info_cache = devm_kcalloc(dev, in mux_configure_channel() 286 sizeof(*child->ext_info_cache), in mux_configure_channel() 288 if (!child->ext_info_cache) in mux_configure_channel() [all …]
|
/drivers/of/ |
D | resolver.c | 43 struct device_node *child; in adjust_overlay_phandles() local 68 for_each_child_of_node(overlay, child) in adjust_overlay_phandles() 69 adjust_overlay_phandles(child, phandle_delta); in adjust_overlay_phandles() 162 struct device_node *child, *overlay_child; in adjust_local_phandle_references() local 206 for_each_child_of_node(local_fixups, child) { in adjust_local_phandle_references() 209 if (!node_name_cmp(child, overlay_child)) { in adjust_local_phandle_references() 215 of_node_put(child); in adjust_local_phandle_references() 219 err = adjust_local_phandle_references(child, overlay_child, in adjust_local_phandle_references() 222 of_node_put(child); in adjust_local_phandle_references() 265 struct device_node *child, *local_fixups, *refnode; in of_resolve_phandles() local [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | htb.c | 345 struct mlx5e_qos_node *node, *child; in mlx5e_htb_leaf_to_inner() local 369 child = mlx5e_htb_node_create_leaf(htb, child_classid, node->qid, node); in mlx5e_htb_leaf_to_inner() 370 if (IS_ERR(child)) { in mlx5e_htb_leaf_to_inner() 371 err = PTR_ERR(child); in mlx5e_htb_leaf_to_inner() 375 child->rate = rate; in mlx5e_htb_leaf_to_inner() 376 mlx5e_htb_convert_rate(htb, rate, node, &child->bw_share); in mlx5e_htb_leaf_to_inner() 377 mlx5e_htb_convert_ceil(htb, ceil, &child->max_average_bw); in mlx5e_htb_leaf_to_inner() 379 err = mlx5_qos_create_leaf_node(htb->mdev, new_hw_id, child->bw_share, in mlx5e_htb_leaf_to_inner() 380 child->max_average_bw, &child->hw_id); in mlx5e_htb_leaf_to_inner() 407 err = mlx5e_open_qos_sq(priv, &priv->channels, child->qid, child->hw_id); in mlx5e_htb_leaf_to_inner() [all …]
|
/drivers/iio/temperature/ |
D | ltc2983.c | 610 ltc2983_thermocouple_new(const struct fwnode_handle *child, struct ltc2983_data *st, in ltc2983_thermocouple_new() argument 622 if (fwnode_property_read_bool(child, "adi,single-ended")) in ltc2983_thermocouple_new() 625 ret = fwnode_property_read_u32(child, "adi,sensor-oc-current-microamp", &oc_current); in ltc2983_thermocouple_new() 661 ref = fwnode_find_reference(child, "adi,cold-junction-handle", 0); in ltc2983_thermocouple_new() 680 thermo->custom = __ltc2983_custom_sensor_new(st, child, in ltc2983_thermocouple_new() 702 ltc2983_rtd_new(const struct fwnode_handle *child, struct ltc2983_data *st, in ltc2983_rtd_new() argument 715 ref = fwnode_find_reference(child, "adi,rsense-handle", 0); in ltc2983_rtd_new() 727 ret = fwnode_property_read_u32(child, "adi,number-of-wires", &n_wires); in ltc2983_rtd_new() 750 if (fwnode_property_read_bool(child, "adi,rsense-share")) { in ltc2983_rtd_new() 752 if (fwnode_property_read_bool(child, "adi,current-rotate")) { in ltc2983_rtd_new() [all …]
|
/drivers/parport/ |
D | procfs.c | 239 #define PARPORT_PORT_DIR(CHILD) { .procname = NULL, .mode = 0555, .child = CHILD } 241 .mode = 0555, .child = CHILD } 242 #define PARPORT_DEV_DIR(CHILD) { .procname = "dev", .mode = 0555, .child = CHILD } 244 .mode = 0555, .child = NULL } 403 .child = NULL 462 .child = parport_default_sysctl_table.vars 492 t->vars[5].child = t->device_dir; in parport_proc_register() 499 t->port_dir[0].child = t->vars; in parport_proc_register() 500 t->parport_dir[0].child = t->port_dir; in parport_proc_register() 501 t->dev_dir[0].child = t->parport_dir; in parport_proc_register() [all …]
|
/drivers/cpuidle/ |
D | dt_idle_genpd.c | 134 struct of_phandle_args child, parent; in dt_idle_pd_init_topology() local 142 child.np = node; in dt_idle_pd_init_topology() 143 child.args_count = 0; in dt_idle_pd_init_topology() 144 ret = of_genpd_add_subdomain(&parent, &child); in dt_idle_pd_init_topology() 158 struct of_phandle_args child, parent; in dt_idle_pd_remove_topology() local 166 child.np = node; in dt_idle_pd_remove_topology() 167 child.args_count = 0; in dt_idle_pd_remove_topology() 168 ret = of_genpd_remove_subdomain(&parent, &child); in dt_idle_pd_remove_topology()
|