/drivers/mfd/ |
D | twl-core.c | 711 struct device *child; in add_children() local 714 child = add_child(TWL4030_MODULE_GPIO, "twl4030_gpio", in add_children() 717 if (IS_ERR(child)) in add_children() 718 return PTR_ERR(child); in add_children() 722 child = add_child(TWL4030_MODULE_KEYPAD, "twl4030_keypad", in add_children() 725 if (IS_ERR(child)) in add_children() 726 return PTR_ERR(child); in add_children() 731 child = add_child(TWL4030_MODULE_MADC, "twl4030_madc", in add_children() 734 if (IS_ERR(child)) in add_children() 735 return PTR_ERR(child); in add_children() [all …]
|
/drivers/of/ |
D | of_mdio.c | 46 struct device_node *child, u32 addr) in of_mdiobus_register_phy() argument 53 is_c45 = of_device_is_compatible(child, in of_mdiobus_register_phy() 56 if (!is_c45 && !of_get_phy_id(child, &phy_id)) in of_mdiobus_register_phy() 63 rc = of_irq_get(child, 0); in of_mdiobus_register_phy() 75 if (of_property_read_bool(child, "broken-turn-around")) in of_mdiobus_register_phy() 78 of_property_read_u32(child, "reset-assert-us", in of_mdiobus_register_phy() 80 of_property_read_u32(child, "reset-deassert-us", in of_mdiobus_register_phy() 85 of_node_get(child); in of_mdiobus_register_phy() 86 phy->mdio.dev.of_node = child; in of_mdiobus_register_phy() 87 phy->mdio.dev.fwnode = of_fwnode_handle(child); in of_mdiobus_register_phy() [all …]
|
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/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/scsi/libsas/ |
D | sas_expander.c | 745 struct domain_device *child, in sas_ex_get_linkrate() argument 752 child->pathways = 0; in sas_ex_get_linkrate() 764 SAS_ADDR(child->sas_addr)) { in sas_ex_get_linkrate() 766 child->min_linkrate = min(parent->min_linkrate, in sas_ex_get_linkrate() 768 child->max_linkrate = max(parent->max_linkrate, in sas_ex_get_linkrate() 770 child->pathways++; in sas_ex_get_linkrate() 774 child->linkrate = min(parent_phy->linkrate, child->max_linkrate); in sas_ex_get_linkrate() 775 child->pathways = min(child->pathways, parent->pathways); in sas_ex_get_linkrate() 783 struct domain_device *child = NULL; in sas_ex_discover_end_dev() local 790 child = sas_alloc_device(); in sas_ex_discover_end_dev() [all …]
|
/drivers/firmware/efi/ |
D | dev-path-parser.c | 35 struct device *parent, struct device **child) in parse_acpi_path() argument 50 *child = bus_find_device(&acpi_bus_type, NULL, &hid_uid, in parse_acpi_path() 52 if (!*child) in parse_acpi_path() 55 phys_dev = acpi_get_first_physical_node(to_acpi_device(*child)); in parse_acpi_path() 58 put_device(*child); in parse_acpi_path() 59 *child = phys_dev; in parse_acpi_path() 73 struct device *parent, struct device **child) in parse_pci_path() argument 84 *child = device_find_child(parent, &devfn, match_pci_dev); in parse_pci_path() 85 if (!*child) in parse_pci_path() 109 struct device *parent, struct device **child) in parse_end_path() argument [all …]
|
/drivers/bus/ |
D | tegra-gmi.c | 91 struct device_node *child; in tegra_gmi_parse_dt() local 95 child = of_get_next_available_child(gmi->dev->of_node, NULL); in tegra_gmi_parse_dt() 96 if (!child) { in tegra_gmi_parse_dt() 109 if (of_property_read_bool(child, "nvidia,snor-data-width-32bit")) in tegra_gmi_parse_dt() 112 if (of_property_read_bool(child, "nvidia,snor-mux-mode")) in tegra_gmi_parse_dt() 115 if (of_property_read_bool(child, "nvidia,snor-rdy-active-before-data")) in tegra_gmi_parse_dt() 118 if (of_property_read_bool(child, "nvidia,snor-rdy-active-high")) in tegra_gmi_parse_dt() 121 if (of_property_read_bool(child, "nvidia,snor-adv-active-high")) in tegra_gmi_parse_dt() 124 if (of_property_read_bool(child, "nvidia,snor-oe-active-high")) in tegra_gmi_parse_dt() 127 if (of_property_read_bool(child, "nvidia,snor-cs-active-high")) in tegra_gmi_parse_dt() [all …]
|
D | hisi_lpc.c | 374 static int hisi_lpc_acpi_set_io_res(struct device *child, in hisi_lpc_acpi_set_io_res() argument 386 if (!child || !hostdev) in hisi_lpc_acpi_set_io_res() 390 adev = to_acpi_device(child); in hisi_lpc_acpi_set_io_res() 393 dev_dbg(child, "device is not present\n"); in hisi_lpc_acpi_set_io_res() 398 dev_dbg(child, "has been enumerated\n"); in hisi_lpc_acpi_set_io_res() 409 dev_dbg(child, "failed to get resources\n"); in hisi_lpc_acpi_set_io_res() 435 dev_err(child, "translate IO range %pR failed (%d)\n", in hisi_lpc_acpi_set_io_res() 462 struct acpi_device *child; in hisi_lpc_acpi_remove() local 466 list_for_each_entry(child, &adev->children, node) in hisi_lpc_acpi_remove() 467 acpi_device_clear_enumerated(child); in hisi_lpc_acpi_remove() [all …]
|
/drivers/gpu/drm/i915/display/ |
D | intel_bios.c | 452 const struct child_device_config *child; in parse_sdvo_device_mapping() local 465 child = dev_priv->vbt.child_dev + i; in parse_sdvo_device_mapping() 467 if (child->slave_addr != SLAVE_ADDR1 && in parse_sdvo_device_mapping() 468 child->slave_addr != SLAVE_ADDR2) { in parse_sdvo_device_mapping() 475 if (child->dvo_port != DEVICE_PORT_DVOB && in parse_sdvo_device_mapping() 476 child->dvo_port != DEVICE_PORT_DVOC) { in parse_sdvo_device_mapping() 483 child->slave_addr, in parse_sdvo_device_mapping() 484 (child->dvo_port == DEVICE_PORT_DVOB) ? in parse_sdvo_device_mapping() 486 mapping = &dev_priv->vbt.sdvo_mappings[child->dvo_port - 1]; in parse_sdvo_device_mapping() 488 mapping->dvo_port = child->dvo_port; in parse_sdvo_device_mapping() [all …]
|
/drivers/pci/pcie/ |
D | aspm.c | 151 struct pci_dev *child; in pcie_set_clkpm_nocheck() local 155 list_for_each_entry(child, &linkbus->devices, bus_list) in pcie_set_clkpm_nocheck() 156 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_set_clkpm_nocheck() 178 struct pci_dev *child; in pcie_clkpm_cap_init() local 182 list_for_each_entry(child, &linkbus->devices, bus_list) { in pcie_clkpm_cap_init() 183 pcie_capability_read_dword(child, PCI_EXP_LNKCAP, ®32); in pcie_clkpm_cap_init() 189 pcie_capability_read_word(child, PCI_EXP_LNKCTL, ®16); in pcie_clkpm_cap_init() 237 struct pci_dev *child, *parent = link->pdev; in pcie_aspm_configure_common_clock() local 243 child = list_entry(linkbus->devices.next, struct pci_dev, bus_list); in pcie_aspm_configure_common_clock() 244 BUG_ON(!pci_is_pcie(child)); in pcie_aspm_configure_common_clock() [all …]
|
/drivers/pci/ |
D | remove.c | 68 struct pci_dev *child, *tmp; in pci_stop_bus_device() local 77 list_for_each_entry_safe_reverse(child, tmp, in pci_stop_bus_device() 79 pci_stop_bus_device(child); in pci_stop_bus_device() 88 struct pci_dev *child, *tmp; in pci_remove_bus_device() local 91 list_for_each_entry_safe(child, tmp, in pci_remove_bus_device() 93 pci_remove_bus_device(child); in pci_remove_bus_device() 131 struct pci_dev *child, *tmp; in pci_stop_root_bus() local 138 list_for_each_entry_safe_reverse(child, tmp, in pci_stop_root_bus() 140 pci_stop_bus_device(child); in pci_stop_root_bus() 149 struct pci_dev *child, *tmp; in pci_remove_root_bus() local [all …]
|
D | probe.c | 397 static void pci_read_bridge_io(struct pci_bus *child) in pci_read_bridge_io() argument 399 struct pci_dev *dev = child->self; in pci_read_bridge_io() 413 res = child->resource[0]; in pci_read_bridge_io() 437 static void pci_read_bridge_mmio(struct pci_bus *child) in pci_read_bridge_mmio() argument 439 struct pci_dev *dev = child->self; in pci_read_bridge_mmio() 445 res = child->resource[1]; in pci_read_bridge_mmio() 459 static void pci_read_bridge_mmio_pref(struct pci_bus *child) in pci_read_bridge_mmio_pref() argument 461 struct pci_dev *dev = child->self; in pci_read_bridge_mmio_pref() 468 res = child->resource[2]; in pci_read_bridge_mmio_pref() 512 void pci_read_bridge_bases(struct pci_bus *child) in pci_read_bridge_bases() argument [all …]
|
/drivers/pci/hotplug/ |
D | pnv_php.c | 131 struct device_node *child; in pnv_php_rmv_pdns() local 133 for_each_child_of_node(dn, child) { in pnv_php_rmv_pdns() 134 pnv_php_rmv_pdns(child); in pnv_php_rmv_pdns() 136 pci_remove_device_node_info(child); in pnv_php_rmv_pdns() 185 php_slot->dn->child = NULL; in pnv_php_rmv_devtree() 197 struct device_node *child, *next; in pnv_php_reverse_nodes() local 200 for_each_child_of_node(parent, child) in pnv_php_reverse_nodes() 201 pnv_php_reverse_nodes(child); in pnv_php_reverse_nodes() 204 child = parent->child; in pnv_php_reverse_nodes() 205 parent->child = NULL; in pnv_php_reverse_nodes() [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 | 50 static void wl1271_sdio_set_block_size(struct device *child, in wl1271_sdio_set_block_size() argument 53 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl1271_sdio_set_block_size() 61 static int __must_check wl12xx_sdio_raw_read(struct device *child, int addr, in wl12xx_sdio_raw_read() argument 65 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_read() 72 dev_dbg(child->parent, "sdio read 52 addr 0x%x, byte 0x%02x\n", in wl12xx_sdio_raw_read() 80 dev_dbg(child->parent, "sdio read 53 addr 0x%x, %zu bytes\n", in wl12xx_sdio_raw_read() 87 dev_err(child->parent, "sdio read failed (%d)\n", ret); in wl12xx_sdio_raw_read() 99 static int __must_check wl12xx_sdio_raw_write(struct device *child, int addr, in wl12xx_sdio_raw_write() argument 103 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_write() 117 dev_dbg(child->parent, "sdio write 52 addr 0x%x, byte 0x%02x\n", in wl12xx_sdio_raw_write() [all …]
|
/drivers/regulator/ |
D | of_regulator.c | 332 struct device_node *child; in of_regulator_match() local 355 for_each_child_of_node(node, child) { in of_regulator_match() 356 name = of_get_property(child, in of_regulator_match() 359 name = child->name; in of_regulator_match() 369 of_get_regulator_init_data(dev, child, in of_regulator_match() 374 child); in of_regulator_match() 375 of_node_put(child); in of_regulator_match() 378 match->of_node = of_node_get(child); in of_regulator_match() 392 struct device_node *search, *child; in regulator_of_get_init_node() local 414 for_each_available_child_of_node(search, child) { in regulator_of_get_init_node() [all …]
|
/drivers/input/keyboard/ |
D | gpio_keys_polled.c | 148 struct fwnode_handle *child; in gpio_keys_polled_get_devtree_pdata() local 170 device_for_each_child_node(dev, child) { in gpio_keys_polled_get_devtree_pdata() 171 if (fwnode_property_read_u32(child, "linux,code", in gpio_keys_polled_get_devtree_pdata() 174 fwnode_handle_put(child); in gpio_keys_polled_get_devtree_pdata() 178 fwnode_property_read_string(child, "label", &button->desc); in gpio_keys_polled_get_devtree_pdata() 180 if (fwnode_property_read_u32(child, "linux,input-type", in gpio_keys_polled_get_devtree_pdata() 184 if (fwnode_property_read_u32(child, "linux,input-value", in gpio_keys_polled_get_devtree_pdata() 189 fwnode_property_read_bool(child, "wakeup-source") || in gpio_keys_polled_get_devtree_pdata() 191 fwnode_property_read_bool(child, "gpio-key,wakeup"); in gpio_keys_polled_get_devtree_pdata() 193 if (fwnode_property_read_u32(child, "debounce-interval", in gpio_keys_polled_get_devtree_pdata() [all …]
|
/drivers/iio/multiplexer/ |
D | iio-mux.c | 35 struct mux_child *child; member 40 struct mux_child *child = &mux->child[idx]; in iio_mux_select() local 59 cache = &child->ext_info_cache[i]; in iio_mux_select() 229 devm_kfree(dev, mux->child[idx].ext_info_cache[private].data); in mux_write_ext_info() 230 mux->child[idx].ext_info_cache[private].data = new; in mux_write_ext_info() 231 mux->child[idx].ext_info_cache[private].size = len; in mux_write_ext_info() 241 struct mux_child *child = &mux->child[idx]; in mux_configure_channel() local 281 child->ext_info_cache = devm_kcalloc(dev, in mux_configure_channel() 283 sizeof(*child->ext_info_cache), in mux_configure_channel() 285 if (!child->ext_info_cache) in mux_configure_channel() [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/thermal/ |
D | of-thermal.c | 487 struct device_node *np, *child, *sensor_np; in thermal_zone_of_sensor_register() local 501 for_each_available_child_of_node(np, child) { in thermal_zone_of_sensor_register() 506 ret = of_parse_phandle_with_args(child, "thermal-sensors", in thermal_zone_of_sensor_register() 522 tzd = thermal_zone_of_add_sensor(child, sensor_np, in thermal_zone_of_sensor_register() 528 of_node_put(child); in thermal_zone_of_sensor_register() 857 struct device_node *child = NULL, *gchild; in thermal_of_build_thermal_zone() local 900 child = of_get_child_by_name(np, "trips"); in thermal_of_build_thermal_zone() 903 if (!child) in thermal_of_build_thermal_zone() 906 tz->ntrips = of_get_child_count(child); in thermal_of_build_thermal_zone() 917 for_each_child_of_node(child, gchild) { in thermal_of_build_thermal_zone() [all …]
|
/drivers/leds/ |
D | leds-lm3697.c | 195 struct fwnode_handle *child = NULL; in lm3697_probe_dt() local 216 device_for_each_child_node(priv->dev, child) { in lm3697_probe_dt() 217 ret = fwnode_property_read_u32(child, "reg", &control_bank); in lm3697_probe_dt() 220 fwnode_handle_put(child); in lm3697_probe_dt() 227 fwnode_handle_put(child); in lm3697_probe_dt() 234 child, &led->lmu_data); in lm3697_probe_dt() 247 led->num_leds = fwnode_property_count_u32(child, "led-sources"); in lm3697_probe_dt() 253 ret = fwnode_property_read_u32_array(child, "led-sources", in lm3697_probe_dt() 258 fwnode_handle_put(child); in lm3697_probe_dt() 267 child, &led->lmu_data); in lm3697_probe_dt() [all …]
|
/drivers/gpu/drm/pl111/ |
D | pl111_vexpress.c | 30 struct device_node *child; in pl111_vexpress_clcd_init() local 46 for_each_available_child_of_node(root, child) { in pl111_vexpress_clcd_init() 47 if (of_device_is_compatible(child, "arm,pl111")) { in pl111_vexpress_clcd_init() 49 ct_clcd = child; in pl111_vexpress_clcd_init() 52 if (of_device_is_compatible(child, "arm,hdlcd")) { in pl111_vexpress_clcd_init() 54 of_node_put(child); in pl111_vexpress_clcd_init()
|
/drivers/dma/qcom/ |
D | hidma_mgmt.c | 351 struct device_node *child; in hidma_mgmt_of_populate_channels() local 360 for_each_available_child_of_node(np, child) { in hidma_mgmt_of_populate_channels() 363 ret = of_address_to_resource(child, 0, &res[0]); in hidma_mgmt_of_populate_channels() 367 ret = of_address_to_resource(child, 1, &res[1]); in hidma_mgmt_of_populate_channels() 371 ret = of_irq_to_resource(child, 0, &res[2]); in hidma_mgmt_of_populate_channels() 376 pdevinfo.fwnode = &child->fwnode; in hidma_mgmt_of_populate_channels() 378 pdevinfo.name = child->name; in hidma_mgmt_of_populate_channels() 390 new_pdev->dev.of_node = child; in hidma_mgmt_of_populate_channels() 391 of_dma_configure(&new_pdev->dev, child, true); in hidma_mgmt_of_populate_channels() 396 of_msi_configure(&new_pdev->dev, child); in hidma_mgmt_of_populate_channels() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/core/ |
D | object.c | 182 struct nvkm_object *child; in nvkm_object_fini() local 188 list_for_each_entry(child, &object->tree, head) { in nvkm_object_fini() 189 ret = nvkm_object_fini(child, suspend); in nvkm_object_fini() 215 list_for_each_entry_continue_reverse(child, &object->tree, head) { in nvkm_object_fini() 216 nvkm_object_init(child); in nvkm_object_fini() 224 struct nvkm_object *child; in nvkm_object_init() local 237 list_for_each_entry(child, &object->tree, head) { in nvkm_object_init() 238 ret = nvkm_object_init(child); in nvkm_object_init() 248 list_for_each_entry_continue_reverse(child, &object->tree, head) in nvkm_object_init() 249 nvkm_object_fini(child, false); in nvkm_object_init() [all …]
|
/drivers/hwtracing/coresight/ |
D | coresight.c | 116 struct coresight_device *child) in coresight_find_link_outport() argument 123 if (conn->child_dev == child) in coresight_find_link_outport() 128 dev_name(&csdev->dev), dev_name(&child->dev)); in coresight_find_link_outport() 254 struct coresight_device *child) in coresight_enable_link() argument 260 if (!parent || !child) in coresight_enable_link() 264 outport = coresight_find_link_outport(csdev, child); in coresight_enable_link() 282 struct coresight_device *child) in coresight_disable_link() argument 288 if (!parent || !child) in coresight_disable_link() 292 outport = coresight_find_link_outport(csdev, child); in coresight_disable_link() 364 struct coresight_device *csdev, *parent, *child; in coresight_disable_path_from() local [all …]
|