Lines Matching refs:pmctrl
403 u32 val, pmctrl; in alx_reset_mac() local
408 pmctrl = 0; in alx_reset_mac()
426 pmctrl = alx_read_mem32(hw, ALX_PMCTRL); in alx_reset_mac()
427 if (pmctrl & (ALX_PMCTRL_L1_EN | ALX_PMCTRL_L0S_EN)) in alx_reset_mac()
429 pmctrl & ~(ALX_PMCTRL_L1_EN | in alx_reset_mac()
459 if (pmctrl & (ALX_PMCTRL_L1_EN | ALX_PMCTRL_L0S_EN)) in alx_reset_mac()
460 alx_write_mem32(hw, ALX_PMCTRL, pmctrl); in alx_reset_mac()
646 u32 pmctrl; in alx_enable_aspm() local
649 pmctrl = alx_read_mem32(hw, ALX_PMCTRL); in alx_enable_aspm()
651 ALX_SET_FIELD(pmctrl, ALX_PMCTRL_LCKDET_TIMER, in alx_enable_aspm()
653 pmctrl |= ALX_PMCTRL_RCVR_WT_1US | in alx_enable_aspm()
656 ALX_SET_FIELD(pmctrl, ALX_PMCTRL_L1REQ_TO, ALX_PMCTRL_L1REG_TO_DEF); in alx_enable_aspm()
657 ALX_SET_FIELD(pmctrl, ALX_PMCTRL_L1_TIMER, ALX_PMCTRL_L1_TIMER_16US); in alx_enable_aspm()
658 pmctrl &= ~(ALX_PMCTRL_L1_SRDS_EN | in alx_enable_aspm()
669 pmctrl |= ALX_PMCTRL_L1_SRDS_EN | ALX_PMCTRL_L1_SRDSPLL_EN; in alx_enable_aspm()
672 pmctrl |= (ALX_PMCTRL_L0S_EN | ALX_PMCTRL_ASPM_FCEN); in alx_enable_aspm()
674 pmctrl |= (ALX_PMCTRL_L1_EN | ALX_PMCTRL_ASPM_FCEN); in alx_enable_aspm()
676 alx_write_mem32(hw, ALX_PMCTRL, pmctrl); in alx_enable_aspm()