Searched refs:childdev (Results 1 – 6 of 6) sorted by relevance
| /freebsd-14-stable/sys/dev/gpio/ |
| HD | ofw_gpiobus.c | 145 device_t childdev; in ofw_gpiobus_add_fdt_child() local 154 childdev = ofw_bus_find_child_device_by_phandle(bus, child); in ofw_gpiobus_add_fdt_child() 155 if (childdev != NULL) in ofw_gpiobus_add_fdt_child() 156 return (childdev); in ofw_gpiobus_add_fdt_child() 161 childdev = device_add_child(bus, drvname, -1); in ofw_gpiobus_add_fdt_child() 162 if (childdev == NULL) in ofw_gpiobus_add_fdt_child() 164 dinfo = ofw_gpiobus_setup_devinfo(bus, childdev, child); in ofw_gpiobus_add_fdt_child() 166 device_delete_child(bus, childdev); in ofw_gpiobus_add_fdt_child() 169 if (device_probe_and_attach(childdev) != 0) { in ofw_gpiobus_add_fdt_child() 171 device_delete_child(bus, childdev); in ofw_gpiobus_add_fdt_child() [all …]
|
| HD | gpiobus.c | 176 gpio_pin_get_by_child_index(device_t childdev, uint32_t idx, gpio_pin_t *ppin) in gpio_pin_get_by_child_index() argument 180 devi = GPIOBUS_IVAR(childdev); in gpio_pin_get_by_child_index() 184 return (gpio_pin_get_by_bus_pinnum(device_get_parent(childdev), in gpio_pin_get_by_child_index()
|
| /freebsd-14-stable/sys/dev/dpaa2/ |
| HD | memac_mdio_fdt.c | 213 device_t childdev; in memac_mdio_fdt_probe_child() local 216 childdev = ofw_bus_find_child_device_by_phandle(bus, child); in memac_mdio_fdt_probe_child() 217 if (childdev != NULL) in memac_mdio_fdt_probe_child() 220 childdev = simplebus_add_device(bus, child, 0, NULL, -1, NULL); in memac_mdio_fdt_probe_child() 221 if (childdev == NULL) in memac_mdio_fdt_probe_child() 224 return (device_probe_and_attach(childdev)); in memac_mdio_fdt_probe_child()
|
| HD | dpaa2_mc_fdt.c | 230 device_t childdev; in dpaa2_mc_fdt_probe_child() local 233 childdev = ofw_bus_find_child_device_by_phandle(bus, child); in dpaa2_mc_fdt_probe_child() 234 if (childdev != NULL) in dpaa2_mc_fdt_probe_child() 237 childdev = simplebus_add_device(bus, child, 0, "dpaa2_mac_fdt", -1, in dpaa2_mc_fdt_probe_child() 239 if (childdev == NULL) in dpaa2_mc_fdt_probe_child() 242 return (device_probe_and_attach(childdev)); in dpaa2_mc_fdt_probe_child()
|
| /freebsd-14-stable/sys/dev/spibus/ |
| HD | ofw_spibus.c | 82 device_t childdev; in ofw_spibus_attach() local 152 childdev = device_add_child(dev, NULL, -1); in ofw_spibus_attach() 155 ofw_bus_intr_to_rl(childdev, child, in ofw_spibus_attach() 157 device_set_ivars(childdev, dinfo); in ofw_spibus_attach()
|
| /freebsd-14-stable/sys/dev/iicbus/ |
| HD | ofw_iicbus.c | 109 device_t childdev; in ofw_iicbus_attach() local 189 childdev = device_add_child(dev, NULL, -1); in ofw_iicbus_attach() 191 ofw_bus_intr_to_rl(childdev, child, in ofw_iicbus_attach() 193 device_set_ivars(childdev, dinfo); in ofw_iicbus_attach()
|