Lines Matching refs:ppsc
3100 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92d_phy_set_rf_power_state() local
3105 if (rfpwr_state == ppsc->rfpwr_state) in rtl92d_phy_set_rf_power_state()
3109 if ((ppsc->rfpwr_state == ERFOFF) && in rtl92d_phy_set_rf_power_state()
3110 RT_IN_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC)) { in rtl92d_phy_set_rf_power_state()
3120 RT_CLEAR_PS_LEVEL(ppsc, in rtl92d_phy_set_rf_power_state()
3126 ppsc->last_sleep_jiffies), in rtl92d_phy_set_rf_power_state()
3128 ppsc->last_awake_jiffies = jiffies; in rtl92d_phy_set_rf_power_state()
3140 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_HALT_NIC) { in rtl92d_phy_set_rf_power_state()
3144 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl92d_phy_set_rf_power_state()
3146 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS) in rtl92d_phy_set_rf_power_state()
3155 if (ppsc->rfpwr_state == ERFOFF) in rtl92d_phy_set_rf_power_state()
3189 jiffies_to_msecs(jiffies - ppsc->last_awake_jiffies)); in rtl92d_phy_set_rf_power_state()
3193 ppsc->last_awake_jiffies), in rtl92d_phy_set_rf_power_state()
3195 ppsc->last_sleep_jiffies = jiffies; in rtl92d_phy_set_rf_power_state()
3205 ppsc->rfpwr_state = rfpwr_state; in rtl92d_phy_set_rf_power_state()