Home
last modified time | relevance | path

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

/freebsd/sys/dev/acpica/
H A Dacpi_pci.c395 uint16_t pmstat; in acpi_pci_device_notify_handler() local
423 pmstat = pci_read_config(child, pmc + PCIR_POWER_STATUS, 2); in acpi_pci_device_notify_handler()
424 pmstat &= ~PCIM_PSTAT_PMEENABLE; in acpi_pci_device_notify_handler()
425 pmstat |= PCIM_PSTAT_PME; in acpi_pci_device_notify_handler()
426 pci_write_config(child, pmc + PCIR_POWER_STATUS, pmstat, 2); in acpi_pci_device_notify_handler()
/freebsd/sys/dev/rl/
H A Dif_rl.c1976 uint16_t pmstat; in rl_resume() local
1986 pmstat = pci_read_config(sc->rl_dev, in rl_resume()
1988 if ((pmstat & PCIM_PSTAT_PMEENABLE) != 0) { in rl_resume()
1989 pmstat &= ~PCIM_PSTAT_PMEENABLE; in rl_resume()
1991 pmc + PCIR_POWER_STATUS, pmstat, 2); in rl_resume()
2041 uint16_t pmstat; in rl_setwol() local
2083 pmstat = pci_read_config(sc->rl_dev, pmc + PCIR_POWER_STATUS, 2); in rl_setwol()
2084 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in rl_setwol()
2086 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in rl_setwol()
2087 pci_write_config(sc->rl_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in rl_setwol()
/freebsd/sys/dev/ste/
H A Dif_ste.c1996 uint16_t pmstat; in ste_resume() local
2002 pmstat = pci_read_config(sc->ste_dev, in ste_resume()
2004 if ((pmstat & PCIM_PSTAT_PMEENABLE) != 0) { in ste_resume()
2005 pmstat &= ~PCIM_PSTAT_PMEENABLE; in ste_resume()
2007 pmc + PCIR_POWER_STATUS, pmstat, 2); in ste_resume()
2098 uint16_t pmstat; in ste_setwol() local
2119 pmstat = pci_read_config(sc->ste_dev, pmc + PCIR_POWER_STATUS, 2); in ste_setwol()
2120 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in ste_setwol()
2122 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in ste_setwol()
2123 pci_write_config(sc->ste_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in ste_setwol()
/freebsd/sys/dev/nge/
H A Dif_nge.c2513 uint16_t pmstat; in nge_wol() local
2559 pmstat = pci_read_config(sc->nge_dev, pmc + PCIR_POWER_STATUS, 2); in nge_wol()
2560 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in nge_wol()
2562 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in nge_wol()
2563 pci_write_config(sc->nge_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in nge_wol()
2598 uint16_t pmstat; in nge_resume() local
2607 pmstat = pci_read_config(sc->nge_dev, in nge_resume()
2609 if ((pmstat & PCIM_PSTAT_PMEENABLE) != 0) { in nge_resume()
2610 pmstat &= ~PCIM_PSTAT_PMEENABLE; in nge_resume()
2612 pmc + PCIR_POWER_STATUS, pmstat, 2); in nge_resume()
/freebsd/sys/dev/vge/
H A Dif_vge.c2447 uint16_t pmstat; in vge_resume() local
2453 pmstat = pci_read_config(sc->vge_dev, in vge_resume()
2455 if ((pmstat & PCIM_PSTAT_PMEENABLE) != 0) { in vge_resume()
2456 pmstat &= ~PCIM_PSTAT_PMEENABLE; in vge_resume()
2458 sc->vge_pmcap + PCIR_POWER_STATUS, pmstat, 2); in vge_resume()
2839 uint16_t pmstat; in vge_setwol() local
2891 pmstat = pci_read_config(sc->vge_dev, sc->vge_pmcap + in vge_setwol()
2893 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in vge_setwol()
2895 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in vge_setwol()
2897 pmstat, 2); in vge_setwol()
/freebsd/sys/dev/ale/
H A Dif_ale.c1470 uint16_t pmstat; in ale_setwol() local
1521 pmstat = pci_read_config(sc->ale_dev, pmc + PCIR_POWER_STATUS, 2); in ale_setwol()
1522 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in ale_setwol()
1524 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in ale_setwol()
1525 pci_write_config(sc->ale_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in ale_setwol()
1549 uint16_t pmstat; in ale_resume() local
1556 pmstat = pci_read_config(sc->ale_dev, in ale_resume()
1558 if ((pmstat & PCIM_PSTAT_PMEENABLE) != 0) { in ale_resume()
1559 pmstat &= ~PCIM_PSTAT_PMEENABLE; in ale_resume()
1561 pmc + PCIR_POWER_STATUS, pmstat, 2); in ale_resume()
/freebsd/sys/dev/fxp/
H A Dif_fxp.c1058 uint16_t pmstat; in fxp_suspend() local
1064 pmstat = pci_read_config(sc->dev, pmc + PCIR_POWER_STATUS, 2); in fxp_suspend()
1065 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in fxp_suspend()
1068 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in fxp_suspend()
1074 pci_write_config(sc->dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in fxp_suspend()
1094 uint16_t pmstat; in fxp_resume() local
1100 pmstat = pci_read_config(sc->dev, pmc + PCIR_POWER_STATUS, 2); in fxp_resume()
1102 pmstat &= ~PCIM_PSTAT_PMEENABLE; in fxp_resume()
1103 pci_write_config(sc->dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in fxp_resume()
/freebsd/sys/dev/alc/
H A Dif_alc.c2533 uint16_t pmstat; in alc_setwol_813x() local
2582 pmstat = pci_read_config(sc->alc_dev, in alc_setwol_813x()
2584 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in alc_setwol_813x()
2586 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in alc_setwol_813x()
2588 sc->alc_pmcap + PCIR_POWER_STATUS, pmstat, 2); in alc_setwol_813x()
2596 uint16_t pmstat; in alc_setwol_816x() local
2647 pmstat = pci_read_config(sc->alc_dev, in alc_setwol_816x()
2649 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in alc_setwol_816x()
2651 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in alc_setwol_816x()
2653 sc->alc_pmcap + PCIR_POWER_STATUS, pmstat, 2); in alc_setwol_816x()
[all …]
/freebsd/sys/dev/jme/
H A Dif_jme.c1565 uint16_t pmstat; in jme_setwol() local
1605 pmstat = pci_read_config(sc->jme_dev, pmc + PCIR_POWER_STATUS, 2); in jme_setwol()
1606 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in jme_setwol()
1608 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in jme_setwol()
1609 pci_write_config(sc->jme_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in jme_setwol()
1636 uint16_t pmstat; in jme_resume() local
1643 pmstat = pci_read_config(sc->jme_dev, in jme_resume()
1646 pmstat &= ~PCIM_PSTAT_PMEENABLE; in jme_resume()
1648 pmc + PCIR_POWER_STATUS, pmstat, 2); in jme_resume()
/freebsd/sys/dev/sis/
H A Dif_sis.c2314 uint16_t pmstat; in sis_wol() local
2349 pmstat = pci_read_config(sc->sis_dev, in sis_wol()
2351 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in sis_wol()
2353 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in sis_wol()
2355 pmc + PCIR_POWER_STATUS, pmstat, 2); in sis_wol()
/freebsd/sys/dev/ae/
H A Dif_ae.c1305 uint16_t pmstat; in ae_pm_init() local
1367 pmstat = pci_read_config(sc->dev, pmc + PCIR_POWER_STATUS, 2); in ae_pm_init()
1368 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in ae_pm_init()
1370 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in ae_pm_init()
1371 pci_write_config(sc->dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in ae_pm_init()
/freebsd/sys/dev/vr/
H A Dif_vr.c2530 uint16_t pmstat; in vr_setwol() local
2575 pmstat = pci_read_config(sc->vr_dev, pmc + PCIR_POWER_STATUS, 2); in vr_setwol()
2576 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in vr_setwol()
2578 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in vr_setwol()
2579 pci_write_config(sc->vr_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in vr_setwol()
/freebsd/sys/dev/xl/
H A Dif_xl.c3259 u_int16_t cfg, pmstat; in xl_setwol() local
3276 pmstat = pci_read_config(sc->xl_dev, in xl_setwol()
3279 pmstat |= PCIM_PSTAT_PMEENABLE; in xl_setwol()
3281 pmstat &= ~PCIM_PSTAT_PMEENABLE; in xl_setwol()
3283 sc->xl_pmcap + PCIR_POWER_STATUS, pmstat, 2); in xl_setwol()
/freebsd/sys/dev/age/
H A Dif_age.c1306 uint16_t pmstat; in age_setwol() local
1417 pmstat = pci_read_config(sc->age_dev, pmc + PCIR_POWER_STATUS, 2); in age_setwol()
1418 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in age_setwol()
1420 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in age_setwol()
1421 pci_write_config(sc->age_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in age_setwol()
/freebsd/sys/dev/nfe/
H A Dif_nfe.c3313 uint16_t pmstat; in nfe_set_wol() local
3337 pmstat = pci_read_config(sc->nfe_dev, pmc + PCIR_POWER_STATUS, 2); in nfe_set_wol()
3338 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in nfe_set_wol()
3340 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in nfe_set_wol()
3341 pci_write_config(sc->nfe_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in nfe_set_wol()
/freebsd/sys/dev/re/
H A Dif_re.c3863 uint16_t pmstat; in re_setwol() local
3930 pmstat = pci_read_config(sc->rl_dev, pmc + PCIR_POWER_STATUS, 2); in re_setwol()
3931 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in re_setwol()
3933 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in re_setwol()
3934 pci_write_config(sc->rl_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in re_setwol()