Searched refs:child (Results 1 - 25 of 80) sorted by relevance

1234

/drivers/mfd/
H A Dtwl-core.c675 struct device *child; local
679 child = add_child(SUB_CHIP_ID1, "twl4030_gpio",
682 if (IS_ERR(child))
683 return PTR_ERR(child);
687 child = add_child(SUB_CHIP_ID2, "twl4030_keypad",
690 if (IS_ERR(child))
691 return PTR_ERR(child);
695 child = add_child(2, "twl4030_madc",
698 if (IS_ERR(child))
699 return PTR_ERR(child);
[all...]
H A Ddm355evm_msp.c257 struct device *child; local
300 child = add_child(client, "leds-gpio",
303 if (IS_ERR(child))
304 return PTR_ERR(child);
326 child = add_child(client, "rtc-dm355evm",
328 if (IS_ERR(child))
329 return PTR_ERR(child);
334 child = add_child(client, "dm355evm_keys",
336 if (IS_ERR(child))
337 return PTR_ERR(child);
[all...]
/drivers/scsi/
H A Dscsi_sysctl.c27 .child = scsi_table },
34 .child = scsi_dir_table },
/drivers/of/
H A Dof_mdio.c31 * for each child node of @np.
36 struct device_node *child; local
53 /* Loop over the child nodes and register a phy_device for each one */
54 for_each_child_of_node(np, child) {
60 paddr = of_get_property(child, "reg", &len);
63 child->full_name);
70 child->full_name, addr);
75 mdio->irq[addr] = irq_of_parse_and_map(child, 0);
89 of_node_get(child);
90 phy->dev.of_node = child;
[all...]
H A Dplatform.c340 * recursively create devices for all the child nodes.
348 struct device_node *child; local
376 for_each_child_of_node(bus, child) {
377 pr_debug(" create child: %s\n", child->full_name);
378 rc = of_platform_bus_create(child, matches, lookup, &dev->dev, strict);
380 of_node_put(child);
400 struct device_node *child; local
413 } else for_each_child_of_node(root, child) {
414 if (!of_match_node(matches, child))
449 struct device_node *child; local
[all...]
/drivers/acpi/acpica/
H A Dpstree.c214 /* Look for an argument or child */
264 * PARAMETERS: Op - Get the child of this Op
274 union acpi_parse_object *child = NULL; local
285 child = acpi_ps_get_arg(op, 0);
295 child = acpi_ps_get_arg(op, 1);
301 child = acpi_ps_get_arg(op, 2);
307 child = acpi_ps_get_arg(op, 3);
315 return (child);
H A Dnsalloc.c165 next_node = parent_node->child;
167 /* Find the node that is the previous peer in the parent's child list */
176 /* Node is not first child, unlink it */
181 * Node is first child (has no previous peer).
184 parent_node->child = node->peer;
232 * A method is creating a new node that is not a child of the
246 child_node = parent_node->child;
249 parent_node->child = node;
302 next_node = parent_node->child;
307 if (next_node->child) {
[all...]
H A Dnsxfobj.c217 * last_child - Previous child that was found.
218 * The NEXT child will be returned
231 acpi_handle child, acpi_handle * ret_handle)
251 if (!child) {
264 child_node = acpi_ns_validate_handle(child);
/drivers/pci/hotplug/
H A Dshpchp_pci.c66 struct pci_bus *child; local
80 child = pci_add_new_bus(parent, dev, busnr);
81 if (!child) {
87 child->subordinate = pci_do_scan_bus(child);
88 pci_bus_size_bridges(child);
H A Dcpci_hotplug_pci.c294 struct pci_bus *child; local
308 child = pci_add_new_bus(parent, dev, busnr);
309 if (!child) {
315 child->subordinate = pci_do_scan_bus(child);
316 pci_bus_size_bridges(child);
/drivers/pci/pcie/
H A Daspm.c46 struct list_head children; /* list of child link states */
130 struct pci_dev *child; local
133 list_for_each_entry(child, &linkbus->devices, bus_list) {
134 pos = pci_pcie_cap(child);
137 pci_read_config_word(child, pos + PCI_EXP_LNKCTL, &reg16);
142 pci_write_config_word(child, pos + PCI_EXP_LNKCTL, reg16);
163 struct pci_dev *child; local
167 list_for_each_entry(child, &linkbus->devices, bus_list) {
168 pos = pci_pcie_cap(child);
171 pci_read_config_dword(child, po
196 struct pci_dev *child, *parent = link->pdev; local
362 struct pci_dev *child, *parent = link->pdev; local
459 struct pci_dev *child, *parent = link->pdev; local
507 struct pci_dev *child; local
645 struct pci_dev *child; local
799 struct pci_dev *child; local
[all...]
/drivers/scsi/libsas/
H A Dsas_expander.c727 struct domain_device *child,
734 child->pathways = 0;
746 SAS_ADDR(child->sas_addr)) {
748 child->min_linkrate = min(parent->min_linkrate,
750 child->max_linkrate = max(parent->max_linkrate,
752 child->pathways++;
756 child->linkrate = min(parent_phy->linkrate, child->max_linkrate);
757 child->pathways = min(child
726 sas_ex_get_linkrate(struct domain_device *parent, struct domain_device *child, struct ex_phy *parent_phy) argument
765 struct domain_device *child = NULL; local
899 struct domain_device *child = NULL; local
976 struct domain_device *child = NULL; local
1119 struct domain_device *child; local
1233 sas_print_parent_topology_bug(struct domain_device *child, struct ex_phy *parent_phy, struct ex_phy *child_phy) argument
1258 sas_check_eeds(struct domain_device *child, struct ex_phy *parent_phy, struct ex_phy *child_phy) argument
1304 sas_check_parent_topology(struct domain_device *child) argument
1513 sas_configure_parent(struct domain_device *parent, struct domain_device *child, u8 *sas_addr, int include) argument
1855 struct domain_device *child, *n; local
1873 struct domain_device *child, *n, *found = NULL; local
1905 struct domain_device *child; local
1945 struct domain_device *child; local
[all...]
/drivers/net/wireless/wl12xx/
H A Dspi.c78 static void wl12xx_spi_reset(struct device *child) argument
80 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent);
87 dev_err(child->parent,
106 static void wl12xx_spi_init(struct device *child) argument
108 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent);
115 dev_err(child->parent,
163 static int wl12xx_spi_read_busy(struct device *child) argument
165 struct wl12xx_spi_glue *glue = dev_get_drvdata(child->parent);
166 struct wl1271 *wl = dev_get_drvdata(child);
194 dev_err(child
198 wl12xx_spi_raw_read(struct device *child, int addr, void *buf, size_t len, bool fixed) argument
263 wl12xx_spi_raw_write(struct device *child, int addr, void *buf, size_t len, bool fixed) argument
[all...]
H A Dsdio.c59 static void wl1271_sdio_set_block_size(struct device *child, argument
62 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent);
70 static void wl12xx_sdio_raw_read(struct device *child, int addr, void *buf, argument
74 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent);
81 dev_dbg(child->parent, "sdio read 52 addr 0x%x, byte 0x%02x\n",
89 dev_dbg(child->parent, "sdio read 53 addr 0x%x, %zu bytes\n",
96 dev_err(child->parent, "sdio read failed (%d)\n", ret);
99 static void wl12xx_sdio_raw_write(struct device *child, int addr, void *buf, argument
103 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent);
110 dev_dbg(child
174 wl12xx_sdio_set_power(struct device *child, bool enable) argument
[all...]
/drivers/pci/
H A Dprobe.c346 static void __devinit pci_read_bridge_io(struct pci_bus *child) argument
348 struct pci_dev *dev = child->self;
354 res = child->resource[0];
382 static void __devinit pci_read_bridge_mmio(struct pci_bus *child) argument
384 struct pci_dev *dev = child->self;
390 res = child->resource[1];
404 static void __devinit pci_read_bridge_mmio_pref(struct pci_bus *child) argument
406 struct pci_dev *dev = child->self;
412 res = child->resource[2];
453 void __devinit pci_read_bridge_bases(struct pci_bus *child) argument
641 struct pci_bus *child; local
691 struct pci_bus *child; local
702 pci_fixup_parent_subordinate_busnr(struct pci_bus *child, int max) argument
730 struct pci_bus *child; local
[all...]
H A Dbus.c178 * pci_bus_add_child - add a child bus
209 * the parents list of child buses, and recurse (breadth-first
217 struct pci_bus *child; local
232 child = dev->subordinate;
237 if (!child)
239 if (list_empty(&child->node)) {
241 list_add_tail(&child->node, &dev->bus->children);
244 pci_bus_add_devices(child);
250 if (child->is_added)
252 retval = pci_bus_add_child(child);
[all...]
/drivers/i2c/busses/
H A Di2c-pxa-pci.c25 struct device_node *child; local
40 for_each_child_of_node(dev->dev.of_node, child) {
45 ret = of_address_to_resource(child, 0, &r);
55 prop = of_get_property(child, "fast-mode", NULL);
62 if (!child) {
71 of_node_put(child);
76 pdev->dev.of_node = child;
/drivers/leds/
H A Dleds-gpio.c171 struct device_node *np = pdev->dev.of_node, *child; local
176 for_each_child_of_node(np, child)
185 for_each_child_of_node(np, child) {
190 led.gpio = of_get_gpio_flags(child, 0, &flags);
192 led.name = of_get_property(child, "label", NULL) ? : child->name;
194 of_get_property(child, "linux,default-trigger", NULL);
195 state = of_get_property(child, "default-state", NULL);
208 of_node_put(child);
/drivers/firewire/
H A Dcore-topology.c142 * the hop count is the sum of the two biggest child depths plus 2.
144 * containted in a child tree, in which case the max hop count is just
145 * the max hop count of this child.
186 struct fw_node *node, *child, *local_node, *irm_node; local
225 * start of the child nodes for this node.
233 child = fw_node(h);
267 node->ports[i] = child;
270 * child node.
272 child->ports[child
329 struct fw_node *node, *next, *child, *parent; local
[all...]
/drivers/parport/
H A Dprocfs.c236 #define PARPORT_PORT_DIR(CHILD) { .procname = NULL, .mode = 0555, .child = CHILD }
238 .mode = 0555, .child = CHILD }
239 #define PARPORT_DEV_DIR(CHILD) { .procname = "dev", .mode = 0555, .child = CHILD }
241 .mode = 0555, .child = NULL }
400 .child = NULL
459 .child = parport_default_sysctl_table.vars
490 t->vars[5].child = t->device_dir;
497 t->port_dir[0].child = t->vars;
498 t->parport_dir[0].child = t->port_dir;
499 t->dev_dir[0].child
[all...]
/drivers/md/persistent-data/
H A Ddm-btree-remove.c49 * Once this rebalancing has occurred we can then step into the child node
136 struct child { struct
151 unsigned index, struct child *result)
175 static int exit_child(struct dm_btree_info *info, struct child *c)
207 struct child *l, struct child *r)
243 struct child left, right;
274 struct child *l, struct child *c, struct child *
446 struct dm_block *child; local
[all...]
/drivers/clk/
H A Dclk.c90 struct clk *child; local
102 hlist_for_each_entry(child, tmp, &clk->children, child_node)
103 clk_debug_create_subtree(child, clk->dentry);
203 struct clk *child; local
210 hlist_for_each_entry(child, tmp, &clk->children, child_node)
211 clk_disable_unused_subtree(child);
334 struct clk *child; local
341 hlist_for_each_entry(child, tmp, &clk->children, child_node) {
342 ret = __clk_lookup_subtree(name, child);
677 struct clk *child; local
719 struct clk *child; local
747 struct clk *child; local
808 struct clk *child, *fail_clk = NULL; local
835 struct clk *child; local
[all...]
/drivers/parisc/
H A Dgsc.h44 void (*choose)(struct parisc_device *child, void *ctrl));
/drivers/macintosh/
H A Dwindfarm_smu_sat.c239 struct device_node *child; local
256 child = NULL;
257 while ((child = of_get_next_child(dev, child)) != NULL) {
258 reg = of_get_property(child, "reg", NULL);
259 type = of_get_property(child, "device_type", NULL);
260 loc = of_get_property(child, "location", NULL);
276 "location %s for %s\n", loc, child->full_name);
/drivers/input/gameport/
H A Dgameport.c392 * Destroy child gameport port (if any) that has not been fully registered yet.
394 * Note that we rely on the fact that port can have only one child and therefore
395 * only one child registration request can be pending. Additionally, children
397 * pending registration together with a child.
402 struct gameport *gameport, *child = NULL; local
411 child = gameport;
418 return child;
519 gameport->parent->child = gameport;
545 struct gameport *child; local
547 child
[all...]

Completed in 782 milliseconds

1234