Lines Matching refs:ppsc
379 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92cu_phy_set_rf_power_state() local
386 if ((ppsc->rfpwr_state == ERFOFF) && in _rtl92cu_phy_set_rf_power_state()
387 RT_IN_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC)) { in _rtl92cu_phy_set_rf_power_state()
397 RT_CLEAR_PS_LEVEL(ppsc, in _rtl92cu_phy_set_rf_power_state()
403 ppsc->last_sleep_jiffies)); in _rtl92cu_phy_set_rf_power_state()
404 ppsc->last_awake_jiffies = jiffies; in _rtl92cu_phy_set_rf_power_state()
441 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_HALT_NIC) { in _rtl92cu_phy_set_rf_power_state()
445 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in _rtl92cu_phy_set_rf_power_state()
447 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS) { in _rtl92cu_phy_set_rf_power_state()
457 if (ppsc->rfpwr_state == ERFOFF) in _rtl92cu_phy_set_rf_power_state()
484 jiffies_to_msecs(jiffies - ppsc->last_awake_jiffies)); in _rtl92cu_phy_set_rf_power_state()
485 ppsc->last_sleep_jiffies = jiffies; in _rtl92cu_phy_set_rf_power_state()
495 ppsc->rfpwr_state = rfpwr_state; in _rtl92cu_phy_set_rf_power_state()
502 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_phy_set_rf_power_state() local
505 if (rfpwr_state == ppsc->rfpwr_state) in rtl92cu_phy_set_rf_power_state()