Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 231) sorted by relevance

12345678910

/drivers/mfd/
Dtwl-core.c724 struct device *child; in add_children() local
727 child = add_child(TWL4030_MODULE_GPIO, "twl4030_gpio", in add_children()
730 if (IS_ERR(child)) in add_children()
731 return PTR_ERR(child); in add_children()
735 child = add_child(TWL4030_MODULE_KEYPAD, "twl4030_keypad", in add_children()
738 if (IS_ERR(child)) in add_children()
739 return PTR_ERR(child); in add_children()
744 child = add_child(TWL4030_MODULE_MADC, "twl4030_madc", in add_children()
747 if (IS_ERR(child)) in add_children()
748 return PTR_ERR(child); in add_children()
[all …]
/drivers/pwm/
Dsysfs.c27 struct device child; member
32 static struct pwm_export *child_to_pwm_export(struct device *child) in child_to_pwm_export() argument
34 return container_of(child, struct pwm_export, child); in child_to_pwm_export()
37 static struct pwm_device *child_to_pwm_device(struct device *child) in child_to_pwm_device() argument
39 struct pwm_export *export = child_to_pwm_export(child); in child_to_pwm_device()
44 static ssize_t period_show(struct device *child, in period_show() argument
48 const struct pwm_device *pwm = child_to_pwm_device(child); in period_show()
56 static ssize_t period_store(struct device *child, in period_store() argument
60 struct pwm_export *export = child_to_pwm_export(child); in period_store()
79 static ssize_t duty_cycle_show(struct device *child, in duty_cycle_show() argument
[all …]
/drivers/of/
Dof_mdio.c46 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 = irq_of_parse_and_map(child, 0); in of_mdiobus_register_phy()
71 if (of_property_read_bool(child, "broken-turn-around")) in of_mdiobus_register_phy()
76 of_node_get(child); in of_mdiobus_register_phy()
77 phy->mdio.dev.of_node = child; in of_mdiobus_register_phy()
84 of_node_put(child); in of_mdiobus_register_phy()
89 child->name, addr); in of_mdiobus_register_phy()
93 struct device_node *child, u32 addr) in of_mdiobus_register_device() argument
[all …]
Dresolver.c34 struct device_node *child, *found; in __of_find_node_by_full_name() local
43 for_each_child_of_node(node, child) { in __of_find_node_by_full_name()
44 found = __of_find_node_by_full_name(child, full_name); in __of_find_node_by_full_name()
46 of_node_put(child); in __of_find_node_by_full_name()
84 struct device_node *child; in __of_adjust_tree_phandles() local
114 for_each_child_of_node(node, child) in __of_adjust_tree_phandles()
115 __of_adjust_tree_phandles(child, phandle_delta); in __of_adjust_tree_phandles()
219 struct device_node *child, *childtarget; in __of_adjust_tree_phandle_references() local
275 for_each_child_of_node(node, child) { in __of_adjust_tree_phandle_references()
278 if (__of_node_name_cmp(child, childtarget) == 0) in __of_adjust_tree_phandle_references()
[all …]
Doverlay.c88 struct device_node *target, struct device_node *child) in of_overlay_apply_single_device_node() argument
94 cname = kbasename(child->full_name); in of_overlay_apply_single_device_node()
102 ret = of_overlay_apply_one(ov, tchild, child); in of_overlay_apply_single_device_node()
106 tchild = __of_node_dup(child, "%s/%s", target->full_name, cname); in of_overlay_apply_single_device_node()
117 ret = of_overlay_apply_one(ov, tchild, child); in of_overlay_apply_single_device_node()
135 struct device_node *child; in of_overlay_apply_one() local
148 for_each_child_of_node(overlay, child) { in of_overlay_apply_one()
149 ret = of_overlay_apply_single_device_node(ov, target, child); in of_overlay_apply_one()
152 target->full_name, child->name); in of_overlay_apply_one()
153 of_node_put(child); in of_overlay_apply_one()
[all …]
Dplatform.c355 struct device_node *child; in of_platform_bus_create() local
393 for_each_child_of_node(bus, child) { in of_platform_bus_create()
394 pr_debug(" create child: %s\n", child->full_name); in of_platform_bus_create()
395 rc = of_platform_bus_create(child, matches, lookup, &dev->dev, strict); in of_platform_bus_create()
397 of_node_put(child); in of_platform_bus_create()
418 struct device_node *child; in of_platform_bus_probe() local
431 } else for_each_child_of_node(root, child) { in of_platform_bus_probe()
432 if (!of_match_node(matches, child)) in of_platform_bus_probe()
434 rc = of_platform_bus_create(child, matches, NULL, parent, false); in of_platform_bus_probe()
436 of_node_put(child); in of_platform_bus_probe()
[all …]
/drivers/scsi/libsas/
Dsas_expander.c741 struct domain_device *child, in sas_ex_get_linkrate() argument
748 child->pathways = 0; in sas_ex_get_linkrate()
760 SAS_ADDR(child->sas_addr)) { in sas_ex_get_linkrate()
762 child->min_linkrate = min(parent->min_linkrate, in sas_ex_get_linkrate()
764 child->max_linkrate = max(parent->max_linkrate, in sas_ex_get_linkrate()
766 child->pathways++; in sas_ex_get_linkrate()
770 child->linkrate = min(parent_phy->linkrate, child->max_linkrate); in sas_ex_get_linkrate()
771 child->pathways = min(child->pathways, parent->pathways); in sas_ex_get_linkrate()
779 struct domain_device *child = NULL; in sas_ex_discover_end_dev() local
786 child = sas_alloc_device(); in sas_ex_discover_end_dev()
[all …]
/drivers/pci/pcie/
Daspm.c128 struct pci_dev *child; in pcie_set_clkpm_nocheck() local
132 list_for_each_entry(child, &linkbus->devices, bus_list) in pcie_set_clkpm_nocheck()
133 pcie_capability_clear_and_set_word(child, PCI_EXP_LNKCTL, in pcie_set_clkpm_nocheck()
155 struct pci_dev *child; in pcie_clkpm_cap_init() local
159 list_for_each_entry(child, &linkbus->devices, bus_list) { in pcie_clkpm_cap_init()
160 pcie_capability_read_dword(child, PCI_EXP_LNKCAP, &reg32); in pcie_clkpm_cap_init()
166 pcie_capability_read_word(child, PCI_EXP_LNKCTL, &reg16); in pcie_clkpm_cap_init()
185 struct pci_dev *child, *parent = link->pdev; in pcie_aspm_configure_common_clock() local
191 child = list_entry(linkbus->devices.next, struct pci_dev, bus_list); in pcie_aspm_configure_common_clock()
192 BUG_ON(!pci_is_pcie(child)); in pcie_aspm_configure_common_clock()
[all …]
/drivers/pci/
Dprobe.c342 static void pci_read_bridge_io(struct pci_bus *child) in pci_read_bridge_io() argument
344 struct pci_dev *dev = child->self; in pci_read_bridge_io()
358 res = child->resource[0]; in pci_read_bridge_io()
382 static void pci_read_bridge_mmio(struct pci_bus *child) in pci_read_bridge_mmio() argument
384 struct pci_dev *dev = child->self; in pci_read_bridge_mmio()
390 res = child->resource[1]; in pci_read_bridge_mmio()
404 static void pci_read_bridge_mmio_pref(struct pci_bus *child) in pci_read_bridge_mmio_pref() argument
406 struct pci_dev *dev = child->self; in pci_read_bridge_mmio_pref()
413 res = child->resource[2]; in pci_read_bridge_mmio_pref()
457 void pci_read_bridge_bases(struct pci_bus *child) in pci_read_bridge_bases() argument
[all …]
Dremove.c69 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 …]
/drivers/regulator/
Dof_regulator.c242 struct device_node *child; in of_regulator_match() local
265 for_each_child_of_node(node, child) { in of_regulator_match()
266 name = of_get_property(child, in of_regulator_match()
269 name = child->name; in of_regulator_match()
279 of_get_regulator_init_data(dev, child, in of_regulator_match()
284 child->name); in of_regulator_match()
287 match->of_node = of_node_get(child); in of_regulator_match()
302 struct device_node *search, *child; in regulator_of_get_init_data() local
321 for_each_available_child_of_node(search, child) { in regulator_of_get_init_data()
322 name = of_get_property(child, "regulator-compatible", NULL); in regulator_of_get_init_data()
[all …]
/drivers/net/wireless/ti/wlcore/
Dspi.c103 static void wl12xx_spi_reset(struct device *child) in wl12xx_spi_reset() argument
105 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_reset()
112 dev_err(child->parent, in wl12xx_spi_reset()
131 static void wl12xx_spi_init(struct device *child) in wl12xx_spi_init() argument
133 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_init()
140 dev_err(child->parent, in wl12xx_spi_init()
209 static int wl12xx_spi_read_busy(struct device *child) in wl12xx_spi_read_busy() argument
211 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent); in wl12xx_spi_read_busy()
212 struct wl1271 *wl = dev_get_drvdata(child); in wl12xx_spi_read_busy()
240 dev_err(child->parent, "SPI read busy-word timeout!\n"); in wl12xx_spi_read_busy()
[all …]
Dsdio.c64 static void wl1271_sdio_set_block_size(struct device *child, in wl1271_sdio_set_block_size() argument
67 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl1271_sdio_set_block_size()
75 static int __must_check wl12xx_sdio_raw_read(struct device *child, int addr, in wl12xx_sdio_raw_read() argument
79 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_read()
93 dev_dbg(child->parent, "sdio read 52 addr 0x%x, byte 0x%02x\n", in wl12xx_sdio_raw_read()
101 dev_dbg(child->parent, "sdio read 53 addr 0x%x, %zu bytes\n", in wl12xx_sdio_raw_read()
108 dev_err(child->parent, "sdio read failed (%d)\n", ret); in wl12xx_sdio_raw_read()
113 static int __must_check wl12xx_sdio_raw_write(struct device *child, int addr, in wl12xx_sdio_raw_write() argument
117 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_write()
131 dev_dbg(child->parent, "sdio write 52 addr 0x%x, byte 0x%02x\n", in wl12xx_sdio_raw_write()
[all …]
/drivers/pci/hotplug/
Dpnv_php.c135 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()
189 php_slot->dn->child = NULL; in pnv_php_rmv_devtree()
201 struct device_node *child, *next; in pnv_php_reverse_nodes() local
204 for_each_child_of_node(parent, child) in pnv_php_reverse_nodes()
205 pnv_php_reverse_nodes(child); in pnv_php_reverse_nodes()
208 child = parent->child; in pnv_php_reverse_nodes()
209 parent->child = NULL; in pnv_php_reverse_nodes()
[all …]
/drivers/thermal/
Dof-thermal.c476 struct device_node *np, *child, *sensor_np; in thermal_zone_of_sensor_register() local
490 for_each_available_child_of_node(np, child) { in thermal_zone_of_sensor_register()
495 ret = of_parse_phandle_with_args(child, "thermal-sensors", in thermal_zone_of_sensor_register()
511 tzd = thermal_zone_of_add_sensor(child, sensor_np, in thermal_zone_of_sensor_register()
517 of_node_put(child); in thermal_zone_of_sensor_register()
821 struct device_node *child = NULL, *gchild; in thermal_of_build_thermal_zone() local
864 child = of_get_child_by_name(np, "trips"); in thermal_of_build_thermal_zone()
867 if (!child) in thermal_of_build_thermal_zone()
870 tz->ntrips = of_get_child_count(child); in thermal_of_build_thermal_zone()
881 for_each_child_of_node(child, gchild) { in thermal_of_build_thermal_zone()
[all …]
/drivers/dma/qcom/
Dhidma_mgmt.c310 struct device_node *child; in hidma_mgmt_of_populate_channels() local
316 for_each_available_child_of_node(np, child) { in hidma_mgmt_of_populate_channels()
320 cell = of_get_property(child, "reg", &size); in hidma_mgmt_of_populate_channels()
328 (of_n_addr_cells(child) + of_n_size_cells(child)) + 1; in hidma_mgmt_of_populate_channels()
342 of_n_addr_cells(child)); in hidma_mgmt_of_populate_channels()
343 i += of_n_addr_cells(child); in hidma_mgmt_of_populate_channels()
346 of_n_size_cells(child)); in hidma_mgmt_of_populate_channels()
347 i += of_n_size_cells(child); in hidma_mgmt_of_populate_channels()
355 ret = of_irq_parse_one(child, 0, &out_irq); in hidma_mgmt_of_populate_channels()
364 pdevinfo.fwnode = &child->fwnode; in hidma_mgmt_of_populate_channels()
[all …]
/drivers/leds/
Dleds-pwm.c91 struct led_pwm *led, struct device_node *child) in led_pwm_add() argument
104 if (child) in led_pwm_add()
105 led_data->pwm = devm_of_pwm_get(dev, child, NULL); in led_pwm_add()
147 struct device_node *child; in led_pwm_create_of() local
153 for_each_child_of_node(dev->of_node, child) { in led_pwm_create_of()
154 led.name = of_get_property(child, "label", NULL) ? : in led_pwm_create_of()
155 child->name; in led_pwm_create_of()
157 led.default_trigger = of_get_property(child, in led_pwm_create_of()
159 led.active_low = of_property_read_bool(child, "active-low"); in led_pwm_create_of()
160 of_property_read_u32(child, "max-brightness", in led_pwm_create_of()
[all …]
Dleds-gpio.c159 struct fwnode_handle *child; in gpio_leds_create() local
171 device_for_each_child_node(dev, child) { in gpio_leds_create()
175 struct device_node *np = to_of_node(child); in gpio_leds_create()
177 led.gpiod = devm_get_gpiod_from_child(dev, NULL, child); in gpio_leds_create()
179 fwnode_handle_put(child); in gpio_leds_create()
183 ret = fwnode_property_read_string(child, "label", &led.name); in gpio_leds_create()
187 fwnode_handle_put(child); in gpio_leds_create()
191 fwnode_property_read_string(child, "linux,default-trigger", in gpio_leds_create()
194 if (!fwnode_property_read_string(child, "default-state", in gpio_leds_create()
204 if (fwnode_property_present(child, "retain-state-suspended")) in gpio_leds_create()
[all …]
/drivers/pinctrl/freescale/
Dpinctrl-mxs.c407 struct device_node *child; in mxs_pinctrl_probe_dt() local
415 child = of_get_next_child(np, NULL); in mxs_pinctrl_probe_dt()
416 if (!child) { in mxs_pinctrl_probe_dt()
423 for_each_child_of_node(np, child) { in mxs_pinctrl_probe_dt()
424 if (of_device_is_compatible(child, gpio_compat)) in mxs_pinctrl_probe_dt()
428 if (of_property_read_u32(child, "reg", &val)) in mxs_pinctrl_probe_dt()
430 if (strcmp(fn, child->name)) { in mxs_pinctrl_probe_dt()
431 fn = child->name; in mxs_pinctrl_probe_dt()
449 for_each_child_of_node(np, child) { in mxs_pinctrl_probe_dt()
450 if (of_device_is_compatible(child, gpio_compat)) in mxs_pinctrl_probe_dt()
[all …]
/drivers/gpu/drm/nouveau/nvkm/core/
Dobject.c114 struct nvkm_object *child; in nvkm_object_fini() local
120 list_for_each_entry(child, &object->tree, head) { in nvkm_object_fini()
121 ret = nvkm_object_fini(child, suspend); in nvkm_object_fini()
147 list_for_each_entry_continue_reverse(child, &object->tree, head) { in nvkm_object_fini()
148 nvkm_object_init(child); in nvkm_object_fini()
156 struct nvkm_object *child; in nvkm_object_init() local
169 list_for_each_entry(child, &object->tree, head) { in nvkm_object_init()
170 ret = nvkm_object_init(child); in nvkm_object_init()
180 list_for_each_entry_continue_reverse(child, &object->tree, head) in nvkm_object_init()
181 nvkm_object_fini(child, false); in nvkm_object_init()
[all …]
/drivers/staging/lustre/lustre/ldlm/
Dinterval_tree.c409 struct interval_node *child, *parent; in interval_erase() local
415 child = node->in_right; in interval_erase()
417 child = node->in_left; in interval_erase()
422 child = node->in_right; in interval_erase()
426 if (child) in interval_erase()
427 child->in_parent = parent; in interval_erase()
429 parent->in_right = child; in interval_erase()
431 parent->in_left = child; in interval_erase()
450 update_maxhigh(child ? : parent, node->in_max_high); in interval_erase()
459 if (child) in interval_erase()
[all …]
/drivers/gpu/drm/i915/
Dintel_bios.c463 const struct old_child_dev_config *child; /* legacy */ in parse_sdvo_device_mapping() local
478 if (p_defs->child_dev_size != sizeof(*child)) { in parse_sdvo_device_mapping()
489 child = &child_device_ptr(p_defs, i)->old; in parse_sdvo_device_mapping()
490 if (!child->device_type) { in parse_sdvo_device_mapping()
494 if (child->slave_addr != SLAVE_ADDR1 && in parse_sdvo_device_mapping()
495 child->slave_addr != SLAVE_ADDR2) { in parse_sdvo_device_mapping()
502 if (child->dvo_port != DEVICE_PORT_DVOB && in parse_sdvo_device_mapping()
503 child->dvo_port != DEVICE_PORT_DVOC) { in parse_sdvo_device_mapping()
510 child->slave_addr, in parse_sdvo_device_mapping()
511 (child->dvo_port == DEVICE_PORT_DVOB) ? in parse_sdvo_device_mapping()
[all …]
/drivers/acpi/acpica/
Dnsalloc.c175 next_node = parent_node->child; in acpi_ns_remove_node()
194 parent_node->child = node->peer; in acpi_ns_remove_node()
256 child_node = parent_node->child; in acpi_ns_install_node()
259 parent_node->child = node; in acpi_ns_install_node()
312 next_node = parent_node->child; in acpi_ns_delete_children()
317 if (next_node->child) { in acpi_ns_delete_children()
333 parent_node->child = NULL; in acpi_ns_delete_children()
386 if (child_node->child) { in acpi_ns_delete_namespace_subtree()
491 if (child_node->child) { in acpi_ns_delete_namespace_by_owner()
/drivers/firewire/
Dcore-topology.c186 struct fw_node *node, *child, *local_node, *irm_node; in build_tree() local
233 child = fw_node(h); in build_tree()
267 node->ports[i] = child; in build_tree()
272 child->ports[child->color] = node; in build_tree()
273 child->color = card->color; in build_tree()
274 child = fw_node(child->link.next); in build_tree()
329 struct fw_node *node, *next, *child, *parent; in for_each_fw_node() local
341 child = node->ports[i]; in for_each_fw_node()
342 if (!child) in for_each_fw_node()
344 if (child->color == card->color) in for_each_fw_node()
[all …]
/drivers/parport/
Dprocfs.c237 #define PARPORT_PORT_DIR(CHILD) { .procname = NULL, .mode = 0555, .child = CHILD }
239 .mode = 0555, .child = CHILD }
240 #define PARPORT_DEV_DIR(CHILD) { .procname = "dev", .mode = 0555, .child = CHILD }
242 .mode = 0555, .child = NULL }
401 .child = NULL
460 .child = parport_default_sysctl_table.vars
490 t->vars[5].child = t->device_dir; in parport_proc_register()
497 t->port_dir[0].child = t->vars; in parport_proc_register()
498 t->parport_dir[0].child = t->port_dir; in parport_proc_register()
499 t->dev_dir[0].child = t->parport_dir; in parport_proc_register()
[all …]

12345678910