Lines Matching refs:child
82 phandle_t child;
95 for (child = OF_child(ofw_bus_get_node(dev)); child != 0;
96 child = OF_peer(child)) {
101 if (OF_getencprop(child, "spi-chipselect", &paddr,
103 if (OF_getencprop(child, "reg", &paddr,
111 if (OF_hasprop(child, "spi-cpol"))
113 if (OF_hasprop(child, "spi-cpha")) {
123 if (OF_hasprop(child, "spi-cs-high"))
134 if (OF_getencprop(child, "spi-max-frequency", &clock,
149 if (ofw_bus_gen_setup_devinfo(&dinfo->opd_obdinfo, child) !=
157 ofw_bus_intr_to_rl(childdev, child,
168 device_t child;
171 child = device_add_child_ordered(dev, order, name, unit);
172 if (child == NULL)
173 return (child);
177 device_delete_child(dev, child);
191 device_set_ivars(child, devi);
193 return (child);
206 ofw_spibus_get_resource_list(device_t bus __unused, device_t child)
210 devi = SPIBUS_IVAR(child);