Home
last modified time | relevance | path

Searched refs:pmcsr (Results 1 – 7 of 7) sorted by relevance

/drivers/pci/
Dpci.c1091 u16 pmcsr; in pci_update_current_state() local
1093 pci_read_config_word(dev, dev->pm_cap + PCI_PM_CTRL, &pmcsr); in pci_update_current_state()
1094 if (PCI_POSSIBLE_ERROR(pmcsr)) { in pci_update_current_state()
1098 dev->current_state = pmcsr & PCI_PM_CTRL_STATE_MASK; in pci_update_current_state()
1208 u16 pmcsr; in pci_power_up() local
1222 pci_read_config_word(dev, dev->pm_cap + PCI_PM_CTRL, &pmcsr); in pci_power_up()
1223 if (PCI_POSSIBLE_ERROR(pmcsr)) { in pci_power_up()
1230 state = pmcsr & PCI_PM_CTRL_STATE_MASK; in pci_power_up()
1233 !(pmcsr & PCI_PM_CTRL_NO_SOFT_RESET); in pci_power_up()
1272 u16 pmcsr; in pci_set_full_power_state() local
[all …]
Dquirks.c2314 u16 command, pmcsr; in quirk_e100_interrupt() local
2355 pci_read_config_word(dev, dev->pm_cap + PCI_PM_CTRL, &pmcsr); in quirk_e100_interrupt()
2356 if ((pmcsr & PCI_PM_CTRL_STATE_MASK) != PCI_D0) in quirk_e100_interrupt()
/drivers/virtio/
Dvirtio_pci_common.c498 u16 pmcsr; in vp_supports_pm_no_reset() local
503 pci_read_config_word(pci_dev, pci_dev->pm_cap + PCI_PM_CTRL, &pmcsr); in vp_supports_pm_no_reset()
504 if (PCI_POSSIBLE_ERROR(pmcsr)) { in vp_supports_pm_no_reset()
509 return pmcsr & PCI_PM_CTRL_NO_SOFT_RESET; in vp_supports_pm_no_reset()
/drivers/net/ethernet/agere/
Det131x.c941 u32 pmcsr = readl(&adapter->regs->global.pm_csr); in et1310_in_phy_coma() local
943 return ET_PM_PHY_SW_COMA & pmcsr ? 1 : 0; in et1310_in_phy_coma()
1784 u32 pmcsr = readl(&adapter->regs->global.pm_csr); in et1310_enable_phy_coma() local
1793 pmcsr &= ~ET_PMCSR_INIT; in et1310_enable_phy_coma()
1794 writel(pmcsr, &adapter->regs->global.pm_csr); in et1310_enable_phy_coma()
1797 pmcsr |= ET_PM_PHY_SW_COMA; in et1310_enable_phy_coma()
1798 writel(pmcsr, &adapter->regs->global.pm_csr); in et1310_enable_phy_coma()
1803 u32 pmcsr; in et1310_disable_phy_coma() local
1805 pmcsr = readl(&adapter->regs->global.pm_csr); in et1310_disable_phy_coma()
1808 pmcsr |= ET_PMCSR_INIT; in et1310_disable_phy_coma()
[all …]
/drivers/platform/x86/intel/telemetry/
Ddebugfs.c510 u16 pmcsr; in telem_soc_states_show() local
584 pci_read_config_word(dev, dev->pm_cap + PCI_PM_CTRL, &pmcsr); in telem_soc_states_show()
585 d3_state = ((pmcsr & PCI_PM_CTRL_STATE_MASK) == in telem_soc_states_show()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3165 u16 pmcsr; in bnx2x_set_power_state() local
3173 pci_read_config_word(bp->pdev, bp->pdev->pm_cap + PCI_PM_CTRL, &pmcsr); in bnx2x_set_power_state()
3178 ((pmcsr & ~PCI_PM_CTRL_STATE_MASK) | in bnx2x_set_power_state()
3181 if (pmcsr & PCI_PM_CTRL_STATE_MASK) in bnx2x_set_power_state()
3195 pmcsr &= ~PCI_PM_CTRL_STATE_MASK; in bnx2x_set_power_state()
3196 pmcsr |= 3; in bnx2x_set_power_state()
3199 pmcsr |= PCI_PM_CTRL_PME_ENABLE; in bnx2x_set_power_state()
3202 pmcsr); in bnx2x_set_power_state()
/drivers/vfio/pci/
Dvfio_pci_core.c215 u16 pmcsr; in vfio_pci_probe_power_state() local
220 pci_read_config_word(pdev, pdev->pm_cap + PCI_PM_CTRL, &pmcsr); in vfio_pci_probe_power_state()
222 vdev->needs_pm_restore = !(pmcsr & PCI_PM_CTRL_NO_SOFT_RESET); in vfio_pci_probe_power_state()