Home
last modified time | relevance | path

Searched refs:acpi_dev (Results 1 – 10 of 10) sorted by relevance

/freebsd-12.1/sys/dev/sdhci/
H A Dsdhci_acpi.c105 const struct sdhci_acpi_device *acpi_dev; member
211 acpi_dev = sc->acpi_dev; in sdhci_acpi_set_uhs_timing()
218 if (strcmp(acpi_dev->hid, "AMDI0040") == 0 && acpi_dev->uid == 0) { in sdhci_acpi_set_uhs_timing()
275 acpi_dev = sdhci_acpi_find_device(dev); in sdhci_acpi_probe()
276 if (acpi_dev == NULL) in sdhci_acpi_probe()
279 device_set_desc(dev, acpi_dev->desc); in sdhci_acpi_probe()
292 acpi_dev = sdhci_acpi_find_device(dev); in sdhci_acpi_attach()
293 if (acpi_dev == NULL) in sdhci_acpi_attach()
296 sc->acpi_dev = acpi_dev; in sdhci_acpi_attach()
297 quirks = acpi_dev->quirks; in sdhci_acpi_attach()
[all …]
/freebsd-12.1/sys/dev/acpica/Osd/
H A DOsdInterrupt.c116 KASSERT(sc != NULL && sc->acpi_dev != NULL, in AcpiOsInstallInterruptHandler()
147 device_printf(sc->acpi_dev, in AcpiOsInstallInterruptHandler()
154 bus_set_resource(sc->acpi_dev, SYS_RES_IRQ, ai->ai_rid, in AcpiOsInstallInterruptHandler()
156 ai->ai_irq = bus_alloc_resource_any(sc->acpi_dev, SYS_RES_IRQ, in AcpiOsInstallInterruptHandler()
159 device_printf(sc->acpi_dev, "could not allocate interrupt\n"); in AcpiOsInstallInterruptHandler()
162 if (bus_setup_intr(sc->acpi_dev, ai->ai_irq, in AcpiOsInstallInterruptHandler()
165 device_printf(sc->acpi_dev, "could not set up interrupt\n"); in AcpiOsInstallInterruptHandler()
174 acpi_intr_destroy(sc->acpi_dev, ai); in AcpiOsInstallInterruptHandler()
188 KASSERT(sc != NULL && sc->acpi_dev != NULL, in AcpiOsRemoveInterruptHandler()
206 acpi_intr_destroy(sc->acpi_dev, ai); in AcpiOsRemoveInterruptHandler()
/freebsd-12.1/sys/x86/xen/
H A Dxen_nexus.c69 device_t acpi_dev = NULL; in nexus_xen_attach() local
80 acpi_dev = BUS_ADD_CHILD(dev, 10, "acpi", 0); in nexus_xen_attach()
81 if (acpi_dev == NULL) in nexus_xen_attach()
87 acpi_install_wakeup_handler(device_get_softc(acpi_dev)); in nexus_xen_attach()
/freebsd-12.1/sys/dev/fdc/
H A Dfdc_acpi.c75 device_t acpi_dev; member
167 ctx->acpi_dev = bus; in fdc_acpi_probe_children()
168 ACPI_SCAN_CHILDREN(ctx->acpi_dev, dev, 1, fdc_acpi_probe_child, in fdc_acpi_probe_children()
228 status = ACPI_EVALUATE_OBJECT(ctx->acpi_dev, old_child, "_FDI", NULL, in fdc_acpi_probe_child()
/freebsd-12.1/sys/dev/acpica/
H A Dacpi_pcib.c268 device_t acpi_dev; in acpi_pcib_power_for_sleep() local
270 acpi_dev = devclass_get_device(devclass_find("acpi"), 0); in acpi_pcib_power_for_sleep()
271 acpi_device_pwr_for_sleep(acpi_dev, dev, pstate); in acpi_pcib_power_for_sleep()
H A Dacpi_throttle.c321 device_t acpi_dev; in acpi_throttle_quirks() local
324 acpi_dev = pci_find_device(PCI_VENDOR_INTEL, PCI_DEVICE_82371AB_3); in acpi_throttle_quirks()
325 if (acpi_dev) { in acpi_throttle_quirks()
326 switch (pci_get_revid(acpi_dev)) { in acpi_throttle_quirks()
H A Dacpi.c456 sc->acpi_dev = dev; in acpi_attach()
2135 device_printf(sc->acpi_dev, "Powering system off\n"); in acpi_shutdown_final()
2154 device_printf(sc->acpi_dev, "reset failed - %s\n", in acpi_shutdown_final()
2161 device_printf(sc->acpi_dev, "Shutting down\n"); in acpi_shutdown_final()
2739 device_printf(sc->acpi_dev, in acpi_SetSleepState()
2762 device_printf(sc->acpi_dev, in acpi_sleep_force()
2878 device_printf(sc->acpi_dev, in acpi_AckSleepState()
2984 device_printf(sc->acpi_dev, in acpi_EnterSleepState()
3038 device_printf(sc->acpi_dev, "device_suspend failed\n"); in acpi_EnterSleepState()
3090 device_printf(sc->acpi_dev, in acpi_EnterSleepState()
[all …]
H A Dacpi_cpu.c1328 device_t acpi_dev; in acpi_cpu_quirks_piix4() local
1332 acpi_dev = pci_find_device(PCI_VENDOR_INTEL, PCI_DEVICE_82371AB_3); in acpi_cpu_quirks_piix4()
1333 if (acpi_dev != NULL) { in acpi_cpu_quirks_piix4()
1334 switch (pci_get_revid(acpi_dev)) { in acpi_cpu_quirks_piix4()
1362 val = pci_read_config(acpi_dev, PIIX4_DEVACTB_REG, 4); in acpi_cpu_quirks_piix4()
1367 pci_write_config(acpi_dev, PIIX4_DEVACTB_REG, val, 4); in acpi_cpu_quirks_piix4()
H A Dacpivar.h54 device_t acpi_dev; member
/freebsd-12.1/sys/x86/acpica/
H A Dacpi_wakeup.c243 device_printf(sc->acpi_dev, "Failed to suspend APs\n"); in acpi_sleep_machdep()
289 device_printf(sc->acpi_dev, in acpi_sleep_machdep()
482 device_printf(sc->acpi_dev, "wakeup code va %#jx pa %#jx\n", in acpi_install_wakeup_handler()