Home
last modified time | relevance | path

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

/freebsd-12.1/sys/dev/rl/
H A Dif_rl.c1988 uint16_t pmstat; in rl_resume() local
1998 pmstat = pci_read_config(sc->rl_dev, in rl_resume()
2000 if ((pmstat & PCIM_PSTAT_PMEENABLE) != 0) { in rl_resume()
2001 pmstat &= ~PCIM_PSTAT_PMEENABLE; in rl_resume()
2003 pmc + PCIR_POWER_STATUS, pmstat, 2); in rl_resume()
2053 uint16_t pmstat; in rl_setwol() local
2095 pmstat = pci_read_config(sc->rl_dev, pmc + PCIR_POWER_STATUS, 2); in rl_setwol()
2096 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in rl_setwol()
2098 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in rl_setwol()
2099 pci_write_config(sc->rl_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in rl_setwol()
/freebsd-12.1/sys/dev/ste/
H A Dif_ste.c2006 uint16_t pmstat; in ste_resume() local
2012 pmstat = pci_read_config(sc->ste_dev, in ste_resume()
2014 if ((pmstat & PCIM_PSTAT_PMEENABLE) != 0) { in ste_resume()
2015 pmstat &= ~PCIM_PSTAT_PMEENABLE; in ste_resume()
2017 pmc + PCIR_POWER_STATUS, pmstat, 2); in ste_resume()
2108 uint16_t pmstat; in ste_setwol() local
2129 pmstat = pci_read_config(sc->ste_dev, pmc + PCIR_POWER_STATUS, 2); in ste_setwol()
2130 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in ste_setwol()
2132 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in ste_setwol()
2133 pci_write_config(sc->ste_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in ste_setwol()
/freebsd-12.1/sys/dev/nge/
H A Dif_nge.c2526 uint16_t pmstat; in nge_wol() local
2572 pmstat = pci_read_config(sc->nge_dev, pmc + PCIR_POWER_STATUS, 2); in nge_wol()
2573 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in nge_wol()
2575 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in nge_wol()
2576 pci_write_config(sc->nge_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in nge_wol()
2611 uint16_t pmstat; in nge_resume() local
2620 pmstat = pci_read_config(sc->nge_dev, in nge_resume()
2622 if ((pmstat & PCIM_PSTAT_PMEENABLE) != 0) { in nge_resume()
2623 pmstat &= ~PCIM_PSTAT_PMEENABLE; in nge_resume()
2625 pmc + PCIR_POWER_STATUS, pmstat, 2); in nge_resume()
/freebsd-12.1/sys/dev/vge/
H A Dif_vge.c2454 uint16_t pmstat; in vge_resume() local
2460 pmstat = pci_read_config(sc->vge_dev, in vge_resume()
2462 if ((pmstat & PCIM_PSTAT_PMEENABLE) != 0) { in vge_resume()
2463 pmstat &= ~PCIM_PSTAT_PMEENABLE; in vge_resume()
2465 sc->vge_pmcap + PCIR_POWER_STATUS, pmstat, 2); in vge_resume()
2846 uint16_t pmstat; in vge_setwol() local
2898 pmstat = pci_read_config(sc->vge_dev, sc->vge_pmcap + in vge_setwol()
2900 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in vge_setwol()
2902 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in vge_setwol()
2904 pmstat, 2); in vge_setwol()
/freebsd-12.1/sys/dev/ale/
H A Dif_ale.c1500 uint16_t pmstat; in ale_setwol() local
1551 pmstat = pci_read_config(sc->ale_dev, pmc + PCIR_POWER_STATUS, 2); in ale_setwol()
1552 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in ale_setwol()
1554 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in ale_setwol()
1555 pci_write_config(sc->ale_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in ale_setwol()
1579 uint16_t pmstat; in ale_resume() local
1586 pmstat = pci_read_config(sc->ale_dev, in ale_resume()
1588 if ((pmstat & PCIM_PSTAT_PMEENABLE) != 0) { in ale_resume()
1589 pmstat &= ~PCIM_PSTAT_PMEENABLE; in ale_resume()
1591 pmc + PCIR_POWER_STATUS, pmstat, 2); in ale_resume()
/freebsd-12.1/sys/dev/fxp/
H A Dif_fxp.c1073 uint16_t pmstat; in fxp_suspend() local
1079 pmstat = pci_read_config(sc->dev, pmc + PCIR_POWER_STATUS, 2); in fxp_suspend()
1080 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in fxp_suspend()
1083 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in fxp_suspend()
1089 pci_write_config(sc->dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in fxp_suspend()
1109 uint16_t pmstat; in fxp_resume() local
1115 pmstat = pci_read_config(sc->dev, pmc + PCIR_POWER_STATUS, 2); in fxp_resume()
1117 pmstat &= ~PCIM_PSTAT_PMEENABLE; in fxp_resume()
1118 pci_write_config(sc->dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in fxp_resume()
/freebsd-12.1/sys/dev/alc/
H A Dif_alc.c2528 uint16_t pmstat; in alc_setwol_813x() local
2577 pmstat = pci_read_config(sc->alc_dev, in alc_setwol_813x()
2581 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in alc_setwol_813x()
2583 sc->alc_pmcap + PCIR_POWER_STATUS, pmstat, 2); in alc_setwol_813x()
2591 uint16_t pmstat; in alc_setwol_816x() local
2642 pmstat = pci_read_config(sc->alc_dev, in alc_setwol_816x()
2646 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in alc_setwol_816x()
2672 uint16_t pmstat; in alc_resume() local
2679 pmstat = pci_read_config(sc->alc_dev, in alc_resume()
2681 if ((pmstat & PCIM_PSTAT_PMEENABLE) != 0) { in alc_resume()
[all …]
/freebsd-12.1/sys/dev/txp/
H A Dif_txp.c1131 uint16_t pmstat; in txp_suspend() local
1164 pmstat = pci_read_config(sc->sc_dev, in txp_suspend()
1166 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in txp_suspend()
1168 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in txp_suspend()
1170 pmc + PCIR_POWER_STATUS, pmstat, 2); in txp_suspend()
1182 uint16_t pmstat; in txp_resume() local
1189 pmstat = pci_read_config(sc->sc_dev, in txp_resume()
1191 if ((pmstat & PCIM_PSTAT_PMEENABLE) != 0) { in txp_resume()
1192 pmstat &= ~PCIM_PSTAT_PMEENABLE; in txp_resume()
1194 pmc + PCIR_POWER_STATUS, pmstat, 2); in txp_resume()
/freebsd-12.1/sys/dev/jme/
H A Dif_jme.c1587 uint16_t pmstat; in jme_setwol() local
1627 pmstat = pci_read_config(sc->jme_dev, pmc + PCIR_POWER_STATUS, 2); in jme_setwol()
1628 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in jme_setwol()
1630 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in jme_setwol()
1631 pci_write_config(sc->jme_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in jme_setwol()
1658 uint16_t pmstat; in jme_resume() local
1665 pmstat = pci_read_config(sc->jme_dev, in jme_resume()
1668 pmstat &= ~PCIM_PSTAT_PMEENABLE; in jme_resume()
1670 pmc + PCIR_POWER_STATUS, pmstat, 2); in jme_resume()
/freebsd-12.1/sys/dev/sis/
H A Dif_sis.c2317 uint16_t pmstat; in sis_wol() local
2352 pmstat = pci_read_config(sc->sis_dev, in sis_wol()
2354 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in sis_wol()
2356 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in sis_wol()
2358 pmc + PCIR_POWER_STATUS, pmstat, 2); in sis_wol()
/freebsd-12.1/sys/dev/ae/
H A Dif_ae.c1327 uint16_t pmstat; in ae_pm_init() local
1389 pmstat = pci_read_config(sc->dev, pmc + PCIR_POWER_STATUS, 2); in ae_pm_init()
1390 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in ae_pm_init()
1392 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in ae_pm_init()
1393 pci_write_config(sc->dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in ae_pm_init()
/freebsd-12.1/sys/dev/vr/
H A Dif_vr.c2529 uint16_t pmstat; in vr_setwol() local
2574 pmstat = pci_read_config(sc->vr_dev, pmc + PCIR_POWER_STATUS, 2); in vr_setwol()
2575 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in vr_setwol()
2577 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in vr_setwol()
2578 pci_write_config(sc->vr_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in vr_setwol()
/freebsd-12.1/sys/dev/xl/
H A Dif_xl.c3277 u_int16_t cfg, pmstat; in xl_setwol() local
3294 pmstat = pci_read_config(sc->xl_dev, in xl_setwol()
3297 pmstat |= PCIM_PSTAT_PMEENABLE; in xl_setwol()
3299 pmstat &= ~PCIM_PSTAT_PMEENABLE; in xl_setwol()
3301 sc->xl_pmcap + PCIR_POWER_STATUS, pmstat, 2); in xl_setwol()
/freebsd-12.1/sys/dev/nfe/
H A Dif_nfe.c3387 uint16_t pmstat; in nfe_set_wol() local
3411 pmstat = pci_read_config(sc->nfe_dev, pmc + PCIR_POWER_STATUS, 2); in nfe_set_wol()
3412 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in nfe_set_wol()
3414 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in nfe_set_wol()
3415 pci_write_config(sc->nfe_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in nfe_set_wol()
/freebsd-12.1/sys/dev/age/
H A Dif_age.c1330 uint16_t pmstat; in age_setwol() local
1441 pmstat = pci_read_config(sc->age_dev, pmc + PCIR_POWER_STATUS, 2); in age_setwol()
1442 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in age_setwol()
1444 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in age_setwol()
1445 pci_write_config(sc->age_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in age_setwol()
/freebsd-12.1/sys/dev/re/
H A Dif_re.c3859 uint16_t pmstat; in re_setwol() local
3926 pmstat = pci_read_config(sc->rl_dev, pmc + PCIR_POWER_STATUS, 2); in re_setwol()
3927 pmstat &= ~(PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE); in re_setwol()
3929 pmstat |= PCIM_PSTAT_PME | PCIM_PSTAT_PMEENABLE; in re_setwol()
3930 pci_write_config(sc->rl_dev, pmc + PCIR_POWER_STATUS, pmstat, 2); in re_setwol()