| /freebsd-14.2/sys/arm/nvidia/tegra124/ |
| H A D | tegra124_cpufreq.c | 425 device_t parent_dev; in get_fdt_resources() local 427 parent_dev = device_get_parent(sc->dev); in get_fdt_resources() 428 rv = regulator_get_by_ofw_property(parent_dev, 0, "vdd-cpu-supply", in get_fdt_resources() 435 rv = clk_get_by_ofw_name(parent_dev, 0, "cpu_g", &sc->clk_cpu_g); in get_fdt_resources() 441 rv = clk_get_by_ofw_name(parent_dev, 0, "cpu_lp", &sc->clk_cpu_lp); in get_fdt_resources() 447 rv = clk_get_by_ofw_name(parent_dev, 0, "pll_x", &sc->clk_pll_x); in get_fdt_resources() 452 rv = clk_get_by_ofw_name(parent_dev, 0, "pll_p", &sc->clk_pll_p); in get_fdt_resources() 454 device_printf(parent_dev, "Cannot get 'pll_p' clock\n"); in get_fdt_resources() 457 rv = clk_get_by_ofw_name(parent_dev, 0, "dfll", &sc->clk_dfll); in get_fdt_resources()
|
| /freebsd-14.2/sys/arm64/nvidia/tegra210/ |
| H A D | tegra210_cpufreq.c | 354 device_t parent_dev; in get_fdt_resources() local 356 parent_dev = device_get_parent(sc->dev); in get_fdt_resources() 358 rv = clk_get_by_ofw_name(parent_dev, 0, "cpu_g", &sc->clk_cpu_g); in get_fdt_resources() 364 rv = clk_get_by_ofw_name(parent_dev, 0, "pll_x", &sc->clk_pll_x); in get_fdt_resources() 369 rv = clk_get_by_ofw_name(parent_dev, 0, "pll_p", &sc->clk_pll_p); in get_fdt_resources() 371 device_printf(parent_dev, "Cannot get 'pll_p' clock\n"); in get_fdt_resources() 374 rv = clk_get_by_ofw_name(parent_dev, 0, "dfll", &sc->clk_dfll); in get_fdt_resources()
|
| /freebsd-14.2/lib/libmixer/ |
| H A D | mixer.c | 213 mixer_add_ctl(struct mix_dev *parent_dev, int id, const char *name, in mixer_add_ctl() argument 221 if (parent_dev == NULL) { in mixer_add_ctl() 227 ctl->parent_dev = parent_dev; in mixer_add_ctl() 233 dp = ctl->parent_dev; in mixer_add_ctl() 256 return (mixer_add_ctl(ctl->parent_dev, ctl->id, ctl->name, in mixer_add_ctl_s() 272 p = ctl->parent_dev; in mixer_remove_ctl()
|
| H A D | mixer.h | 47 struct mix_dev *parent_dev; /* parent device */ member
|
| /freebsd-14.2/sys/dev/bhnd/bhndb/ |
| H A D | bhndbvar.h | 94 device_t dev, device_t parent_dev, 181 device_t parent_dev; /**< parent device */ member
|
| H A D | bhndb.c | 478 hw_table = BHNDB_BUS_GET_HARDWARE_TABLE(sc->parent_dev, sc->dev); in bhndb_find_hwspec() 526 sc->parent_dev = device_get_parent(dev); in bhndb_attach() 542 hwcfg = BHNDB_BUS_GET_GENERIC_HWCFG(sc->parent_dev, dev); in bhndb_attach() 582 hwprio = BHNDB_BUS_GET_HARDWARE_PRIO(sc->parent_dev, sc->dev); in bhndb_attach() 904 if (BHNDB_BUS_IS_CORE_DISABLED(sc->parent_dev, dev, core)) in bhndb_is_core_disabled() 966 return (BUS_ALLOC_RESOURCE(device_get_parent(sc->parent_dev), in bhndb_alloc_resource() 1053 return (BUS_RELEASE_RESOURCE(device_get_parent(sc->parent_dev), in bhndb_release_resource() 1097 return (BUS_ADJUST_RESOURCE(device_get_parent(sc->parent_dev), in bhndb_adjust_resource() 1435 return (BUS_ACTIVATE_RESOURCE(device_get_parent(sc->parent_dev), in bhndb_activate_resource() 1461 device_get_parent(sc->parent_dev), child, type, rid, r)); in bhndb_deactivate_resource() [all …]
|
| H A D | bhndb_subr.c | 267 bhndb_alloc_resources(device_t dev, device_t parent_dev, in bhndb_alloc_resources() argument 408 error = bhndb_alloc_host_resources(&r->res, dev, parent_dev, r->cfg); in bhndb_alloc_resources() 412 device_get_nameunit(parent_dev), error); in bhndb_alloc_resources() 650 device_t dev, device_t parent_dev, const struct bhndb_hwcfg *hwcfg) in bhndb_alloc_host_resources() argument 658 parent_dmat = bus_get_dma_tag(parent_dev); in bhndb_alloc_host_resources() 661 hr->owner = parent_dev; in bhndb_alloc_host_resources() 735 "%s: %d\n", device_get_nameunit(parent_dev), error); in bhndb_alloc_host_resources()
|
| H A D | bhndb_pci.c | 1292 device_t parent_dev; in bhndb_pci_probe_alloc() local 1295 parent_dev = device_get_parent(dev); in bhndb_pci_probe_alloc() 1300 p->pci_dev = parent_dev; in bhndb_pci_probe_alloc() 1313 hwcfg = BHNDB_BUS_GET_GENERIC_HWCFG(parent_dev, dev); in bhndb_pci_probe_alloc() 1314 hint = BHNDB_BUS_GET_CHIPID(parent_dev, dev); in bhndb_pci_probe_alloc() 1317 error = bhndb_alloc_host_resources(&p->hr, dev, parent_dev, hwcfg); in bhndb_pci_probe_alloc()
|
| H A D | bhndb_private.h | 62 device_t parent_dev,
|
| /freebsd-14.2/sys/arm64/cavium/ |
| H A D | thunder_pcie_pem.c | 634 device_t parent_dev; in thunder_pem_alloc_resource() local 644 parent_dev = device_get_parent(device_get_parent(dev)); in thunder_pem_alloc_resource() 645 return (BUS_ALLOC_RESOURCE(parent_dev, dev, type, rid, start, in thunder_pem_alloc_resource() 694 device_t parent_dev; in thunder_pem_release_resource() local 702 parent_dev = device_get_parent(device_get_parent(dev)); in thunder_pem_release_resource() 705 return (BUS_RELEASE_RESOURCE(parent_dev, child, in thunder_pem_release_resource()
|
| /freebsd-14.2/usr.sbin/mixer/ |
| H A D | mixer.c | 187 cp->mod(cp->parent_dev, p); in main() 197 (void)cp->print(cp->parent_dev, cp->name); in main() 203 cp->mod(cp->parent_dev, valstr); in main() 305 (void)cp->print(cp->parent_dev, cp->name); in printdev()
|
| /freebsd-14.2/sys/dev/usb/ |
| H A D | usb_device.h | 216 device_t parent_dev; /* parent device */ member 302 struct usb_device *usb_alloc_device(device_t parent_dev, struct usb_bus *bus,
|
| H A D | usb_device.c | 1239 device_get_nameunit(udev->parent_dev), in usb_detach_device_sub() 1252 if (device_delete_child(udev->parent_dev, dev)) { in usb_detach_device_sub() 1351 if (device_delete_child(udev->parent_dev, dev)) { in usb_probe_and_attach_sub() 1362 uaa->temp_dev = device_add_child(udev->parent_dev, NULL, -1); in usb_probe_and_attach_sub() 1364 device_printf(udev->parent_dev, in usb_probe_and_attach_sub() 1552 if (device_delete_child(udev->parent_dev, uaa.temp_dev)) in usb_probe_and_attach() 1751 usb_alloc_device(device_t parent_dev, struct usb_bus *bus, in usb_alloc_device() argument 1767 parent_dev, bus, parent_hub, depth, port_index, port_no, in usb_alloc_device() 1818 udev->parent_dev = parent_dev; in usb_alloc_device()
|
| /freebsd-14.2/sys/contrib/openzfs/cmd/zed/ |
| H A D | zed_disk_event.c | 141 struct udev_device *parent_dev = udev_device_get_parent(dev); in dev_event_nvlist() local 142 if ((value = udev_device_get_sysattr_value(parent_dev, "size")) in dev_event_nvlist()
|
| /freebsd-14.2/sys/cam/ |
| H A D | cam_xpt_internal.h | 190 device_t parent_dev; member
|
| H A D | cam_xpt.c | 3903 new_bus->parent_dev = parent; in xpt_bus_register() 5474 return (path->bus->parent_dev); in xpt_path_sim_device()
|