Home
last modified time | relevance | path

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

/freebsd/sys/arm/nvidia/tegra124/
H A Dtegra124_cpufreq.c424 device_t parent_dev; in get_fdt_resources() local
426 parent_dev = device_get_parent(sc->dev); in get_fdt_resources()
427 rv = regulator_get_by_ofw_property(parent_dev, 0, "vdd-cpu-supply", in get_fdt_resources()
434 rv = clk_get_by_ofw_name(parent_dev, 0, "cpu_g", &sc->clk_cpu_g); in get_fdt_resources()
440 rv = clk_get_by_ofw_name(parent_dev, 0, "cpu_lp", &sc->clk_cpu_lp); in get_fdt_resources()
446 rv = clk_get_by_ofw_name(parent_dev, 0, "pll_x", &sc->clk_pll_x); in get_fdt_resources()
451 rv = clk_get_by_ofw_name(parent_dev, 0, "pll_p", &sc->clk_pll_p); in get_fdt_resources()
453 device_printf(parent_dev, "Cannot get 'pll_p' clock\n"); in get_fdt_resources()
456 rv = clk_get_by_ofw_name(parent_dev, 0, "dfll", &sc->clk_dfll); in get_fdt_resources()
/freebsd/sys/arm64/nvidia/tegra210/
H A Dtegra210_cpufreq.c353 device_t parent_dev; in get_fdt_resources() local
355 parent_dev = device_get_parent(sc->dev); in get_fdt_resources()
357 rv = clk_get_by_ofw_name(parent_dev, 0, "cpu_g", &sc->clk_cpu_g); in get_fdt_resources()
363 rv = clk_get_by_ofw_name(parent_dev, 0, "pll_x", &sc->clk_pll_x); in get_fdt_resources()
368 rv = clk_get_by_ofw_name(parent_dev, 0, "pll_p", &sc->clk_pll_p); in get_fdt_resources()
370 device_printf(parent_dev, "Cannot get 'pll_p' clock\n"); in get_fdt_resources()
373 rv = clk_get_by_ofw_name(parent_dev, 0, "dfll", &sc->clk_dfll); in get_fdt_resources()
/freebsd/lib/libmixer/
H A Dmixer.c213 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 Dmixer.h47 struct mix_dev *parent_dev; /* parent device */ member
/freebsd/sys/dev/bhnd/bhndb/
H A Dbhndbvar.h94 device_t dev, device_t parent_dev,
181 device_t parent_dev; /**< parent device */ member
H A Dbhndb.c476 hw_table = BHNDB_BUS_GET_HARDWARE_TABLE(sc->parent_dev, sc->dev); in bhndb_find_hwspec()
524 sc->parent_dev = device_get_parent(dev); in bhndb_attach()
540 hwcfg = BHNDB_BUS_GET_GENERIC_HWCFG(sc->parent_dev, dev); in bhndb_attach()
552 sc->bus_res = bhndb_alloc_resources(sc->dev, sc->parent_dev, hwcfg); in bhndb_attach()
580 hwprio = BHNDB_BUS_GET_HARDWARE_PRIO(sc->parent_dev, sc->dev); in bhndb_attach()
897 if (BHNDB_BUS_IS_CORE_DISABLED(sc->parent_dev, dev, core)) in bhndb_is_core_disabled()
959 return (BUS_ALLOC_RESOURCE(device_get_parent(sc->parent_dev), in bhndb_alloc_resource()
1046 return (BUS_RELEASE_RESOURCE(device_get_parent(sc->parent_dev), in bhndb_release_resource()
1091 return (BUS_ADJUST_RESOURCE(device_get_parent(sc->parent_dev), in bhndb_adjust_resource()
1425 return (BUS_ACTIVATE_RESOURCE(device_get_parent(sc->parent_dev), in bhndb_activate_resource()
[all …]
H A Dbhndb_subr.c266 bhndb_alloc_resources(device_t dev, device_t parent_dev, in bhndb_alloc_resources() argument
407 error = bhndb_alloc_host_resources(&r->res, dev, parent_dev, r->cfg); in bhndb_alloc_resources()
411 device_get_nameunit(parent_dev), error); in bhndb_alloc_resources()
649 device_t dev, device_t parent_dev, const struct bhndb_hwcfg *hwcfg) in bhndb_alloc_host_resources() argument
657 parent_dmat = bus_get_dma_tag(parent_dev); in bhndb_alloc_host_resources()
660 hr->owner = parent_dev; in bhndb_alloc_host_resources()
734 "%s: %d\n", device_get_nameunit(parent_dev), error); in bhndb_alloc_host_resources()
H A Dbhndb_pci.c1291 device_t parent_dev; in bhndb_pci_probe_alloc() local
1294 parent_dev = device_get_parent(dev); in bhndb_pci_probe_alloc()
1299 p->pci_dev = parent_dev; in bhndb_pci_probe_alloc()
1312 hwcfg = BHNDB_BUS_GET_GENERIC_HWCFG(parent_dev, dev); in bhndb_pci_probe_alloc()
1313 hint = BHNDB_BUS_GET_CHIPID(parent_dev, dev); in bhndb_pci_probe_alloc()
1316 error = bhndb_alloc_host_resources(&p->hr, dev, parent_dev, hwcfg); in bhndb_pci_probe_alloc()
H A Dbhndb_private.h62 device_t parent_dev,
/freebsd/sys/contrib/openzfs/cmd/zed/
H A Dzed_disk_event.c141 struct udev_device *parent_dev = udev_device_get_parent(dev); in dev_event_nvlist() local
142 if (parent_dev != NULL && in dev_event_nvlist()
143 (value = udev_device_get_sysattr_value(parent_dev, "size")) in dev_event_nvlist()
/freebsd/usr.sbin/mixer/
H A Dmixer.c187 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/sys/arm64/cavium/
H A Dthunder_pcie_pem.c659 device_t parent_dev; in thunder_pem_alloc_resource() local
670 parent_dev = device_get_parent(device_get_parent(dev)); in thunder_pem_alloc_resource()
671 return (BUS_ALLOC_RESOURCE(parent_dev, dev, type, rid, start, in thunder_pem_alloc_resource()
706 device_t parent_dev; in thunder_pem_release_resource() local
717 parent_dev = device_get_parent(device_get_parent(dev)); in thunder_pem_release_resource()
718 return (BUS_RELEASE_RESOURCE(parent_dev, child, res)); in thunder_pem_release_resource()
/freebsd/sys/dev/usb/
H A Dusb_device.h216 device_t parent_dev; /* parent device */ member
302 struct usb_device *usb_alloc_device(device_t parent_dev, struct usb_bus *bus,
H A Dusb_device.c1240 device_get_nameunit(udev->parent_dev), in usb_detach_device_sub()
1253 if (device_delete_child(udev->parent_dev, dev)) { in usb_detach_device_sub()
1352 if (device_delete_child(udev->parent_dev, dev)) { in usb_probe_and_attach_sub()
1363 uaa->temp_dev = device_add_child(udev->parent_dev, NULL, DEVICE_UNIT_ANY); in usb_probe_and_attach_sub()
1365 device_printf(udev->parent_dev, in usb_probe_and_attach_sub()
1553 if (device_delete_child(udev->parent_dev, uaa.temp_dev)) in usb_probe_and_attach()
1752 usb_alloc_device(device_t parent_dev, struct usb_bus *bus, in usb_alloc_device() argument
1768 parent_dev, bus, parent_hub, depth, port_index, port_no, in usb_alloc_device()
1819 udev->parent_dev = parent_dev; in usb_alloc_device()
/freebsd/sys/cam/
H A Dcam_xpt_internal.h190 device_t parent_dev; member
H A Dcam_xpt.c3899 new_bus->parent_dev = parent; in xpt_bus_register()
5469 return (path->bus->parent_dev); in xpt_path_sim_device()