Home
last modified time | relevance | path

Searched refs:parent_dev (Results 1 – 13 of 13) sorted by relevance

/freebsd-12.1/sys/arm/nvidia/tegra124/
H A Dtegra124_cpufreq.c431 device_t parent_dev; in get_fdt_resources() local
433 parent_dev = device_get_parent(sc->dev); in get_fdt_resources()
434 rv = regulator_get_by_ofw_property(parent_dev, 0, "vdd-cpu-supply", in get_fdt_resources()
441 rv = clk_get_by_ofw_name(parent_dev, 0, "cpu_g", &sc->clk_cpu_g); in get_fdt_resources()
447 rv = clk_get_by_ofw_name(parent_dev, 0, "cpu_lp", &sc->clk_cpu_lp); in get_fdt_resources()
453 rv = clk_get_by_ofw_name(parent_dev, 0, "pll_x", &sc->clk_pll_x); in get_fdt_resources()
458 rv = clk_get_by_ofw_name(parent_dev, 0, "pll_p", &sc->clk_pll_p); in get_fdt_resources()
460 device_printf(parent_dev, "Cannot get 'pll_p' clock\n"); in get_fdt_resources()
463 rv = clk_get_by_ofw_name(parent_dev, 0, "dfll", &sc->clk_dfll); in get_fdt_resources()
/freebsd-12.1/sys/dev/bhnd/bhndb/
H A Dbhndbvar.h95 device_t dev, device_t parent_dev,
182 device_t parent_dev; /**< parent device */ member
H A Dbhndb.c491 hw_table = BHNDB_BUS_GET_HARDWARE_TABLE(sc->parent_dev, sc->dev); in bhndb_find_hwspec()
539 sc->parent_dev = device_get_parent(dev); in bhndb_attach()
555 hwcfg = BHNDB_BUS_GET_GENERIC_HWCFG(sc->parent_dev, dev); in bhndb_attach()
595 hwprio = BHNDB_BUS_GET_HARDWARE_PRIO(sc->parent_dev, sc->dev); in bhndb_attach()
917 if (BHNDB_BUS_IS_CORE_DISABLED(sc->parent_dev, dev, core)) in bhndb_is_core_disabled()
979 return (BUS_ALLOC_RESOURCE(device_get_parent(sc->parent_dev), in bhndb_alloc_resource()
1066 return (BUS_RELEASE_RESOURCE(device_get_parent(sc->parent_dev), in bhndb_release_resource()
1110 return (BUS_ADJUST_RESOURCE(device_get_parent(sc->parent_dev), in bhndb_adjust_resource()
1448 return (BUS_ACTIVATE_RESOURCE(device_get_parent(sc->parent_dev), in bhndb_activate_resource()
1474 device_get_parent(sc->parent_dev), child, type, rid, r)); in bhndb_deactivate_resource()
[all …]
H A Dbhndb_subr.c269 bhndb_alloc_resources(device_t dev, device_t parent_dev, in bhndb_alloc_resources() argument
412 error = bhndb_alloc_host_resources(&r->res, dev, parent_dev, r->cfg); in bhndb_alloc_resources()
416 device_get_nameunit(parent_dev), error); in bhndb_alloc_resources()
654 device_t dev, device_t parent_dev, const struct bhndb_hwcfg *hwcfg) in bhndb_alloc_host_resources() argument
662 parent_dmat = bus_get_dma_tag(parent_dev); in bhndb_alloc_host_resources()
665 hr->owner = parent_dev; in bhndb_alloc_host_resources()
739 "%s: %d\n", device_get_nameunit(parent_dev), error); in bhndb_alloc_host_resources()
H A Dbhndb_pci.c1295 device_t parent_dev; in bhndb_pci_probe_alloc() local
1298 parent_dev = device_get_parent(dev); in bhndb_pci_probe_alloc()
1303 p->pci_dev = parent_dev; in bhndb_pci_probe_alloc()
1316 hwcfg = BHNDB_BUS_GET_GENERIC_HWCFG(parent_dev, dev); in bhndb_pci_probe_alloc()
1317 hint = BHNDB_BUS_GET_CHIPID(parent_dev, dev); in bhndb_pci_probe_alloc()
1320 error = bhndb_alloc_host_resources(&p->hr, dev, parent_dev, hwcfg); in bhndb_pci_probe_alloc()
H A Dbhndb_private.h63 device_t parent_dev,
/freebsd-12.1/sys/arm64/cavium/
H A Dthunder_pcie_pem.c636 device_t parent_dev; in thunder_pem_alloc_resource() local
646 parent_dev = device_get_parent(device_get_parent(dev)); in thunder_pem_alloc_resource()
647 return (BUS_ALLOC_RESOURCE(parent_dev, dev, type, rid, start, in thunder_pem_alloc_resource()
698 device_t parent_dev; in thunder_pem_release_resource() local
706 parent_dev = device_get_parent(device_get_parent(dev)); in thunder_pem_release_resource()
709 return (BUS_RELEASE_RESOURCE(parent_dev, child, in thunder_pem_release_resource()
/freebsd-12.1/sys/dev/sound/isa/
H A Dsb16.c98 device_t parent_dev; member
129 sbc_lock(device_get_softc(sb->parent_dev)); in sb_lock()
135 sbc_lockassert(device_get_softc(sb->parent_dev)); in sb_lockassert()
141 sbc_unlock(device_get_softc(sb->parent_dev)); in sb_unlock()
821 sb->parent_dev = device_get_parent(dev); in sb16_attach()
822 BUS_READ_IVAR(sb->parent_dev, dev, 1, &ver); in sb16_attach()
H A Dsb8.c79 device_t parent_dev; member
120 sbc_lock(device_get_softc(sb->parent_dev)); in sb_lock()
126 sbc_unlock(device_get_softc(sb->parent_dev)); in sb_unlock()
724 sb->parent_dev = device_get_parent(dev); in sb_attach()
H A Dess.c97 device_t parent_dev; member
147 sbc_lock(device_get_softc(sc->parent_dev)); in ess_lock()
153 sbc_unlock(device_get_softc(sc->parent_dev)); in ess_unlock()
819 sc->parent_dev = device_get_parent(dev); in ess_attach()
/freebsd-12.1/sys/dev/usb/
H A Dusb_device.h205 device_t parent_dev; /* parent device */ member
291 struct usb_device *usb_alloc_device(device_t parent_dev, struct usb_bus *bus,
H A Dusb_device.c1227 device_get_nameunit(udev->parent_dev), in usb_detach_device_sub()
1240 if (device_delete_child(udev->parent_dev, dev)) { in usb_detach_device_sub()
1341 if (device_delete_child(udev->parent_dev, dev)) { in usb_probe_and_attach_sub()
1354 uaa->temp_dev = device_add_child(udev->parent_dev, NULL, -1); in usb_probe_and_attach_sub()
1356 device_printf(udev->parent_dev, in usb_probe_and_attach_sub()
1546 if (device_delete_child(udev->parent_dev, uaa.temp_dev)) in usb_probe_and_attach()
1667 usb_alloc_device(device_t parent_dev, struct usb_bus *bus, in usb_alloc_device() argument
1685 parent_dev, bus, parent_hub, depth, port_index, port_no, in usb_alloc_device()
1734 udev->parent_dev = parent_dev; in usb_alloc_device()
/freebsd-12.1/sys/cam/
H A Dcam_xpt_internal.h196 device_t parent_dev; member