Lines Matching refs:ppsc

869 	struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));  in rtl92cu_hw_init()  local
917 ppsc->rfpwr_state = ERFON; in rtl92cu_hw_init()
919 if (ppsc->rfpwr_state == ERFON) { in rtl92cu_hw_init()
1260 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_card_disable() local
1269 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl92cu_card_disable()
1406 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_get_hw_reg() local
1414 *((enum rf_pwrstate *)(val)) = ppsc->rfpwr_state; in rtl92cu_get_hw_reg()
1435 *((bool *) (val)) = ppsc->fw_current_inpsmode; in rtl92cu_get_hw_reg()
1486 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_set_hw_reg() local
1733 ppsc->fw_current_inpsmode = *((bool *) val); in rtl92cu_set_hw_reg()
2081 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_gpio_radio_on_off_checking() local
2089 if (ppsc->swrf_processing) in rtl92cu_gpio_radio_on_off_checking()
2092 if (ppsc->rfchange_inprogress) { in rtl92cu_gpio_radio_on_off_checking()
2096 ppsc->rfchange_inprogress = true; in rtl92cu_gpio_radio_on_off_checking()
2099 cur_rfstate = ppsc->rfpwr_state; in rtl92cu_gpio_radio_on_off_checking()
2103 if (ppsc->pwrdown_mode) { in rtl92cu_gpio_radio_on_off_checking()
2122 if ((ppsc->hwradiooff) && (e_rfpowerstate_toset == ERFON)) { in rtl92cu_gpio_radio_on_off_checking()
2125 ppsc->hwradiooff = false; in rtl92cu_gpio_radio_on_off_checking()
2127 } else if ((!ppsc->hwradiooff) && (e_rfpowerstate_toset == in rtl92cu_gpio_radio_on_off_checking()
2131 ppsc->hwradiooff = true; in rtl92cu_gpio_radio_on_off_checking()
2136 ppsc->hwradiooff, e_rfpowerstate_toset); in rtl92cu_gpio_radio_on_off_checking()
2139 ppsc->hwradiooff = true; in rtl92cu_gpio_radio_on_off_checking()
2141 if ((ppsc->reg_rfps_level & RT_RF_OFF_LEVL_ASPM) && in rtl92cu_gpio_radio_on_off_checking()
2142 RT_IN_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_ASPM)) in rtl92cu_gpio_radio_on_off_checking()
2143 RT_CLEAR_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_ASPM); in rtl92cu_gpio_radio_on_off_checking()
2144 else if ((ppsc->reg_rfps_level & RT_RF_OFF_LEVL_PCI_D3) in rtl92cu_gpio_radio_on_off_checking()
2145 && RT_IN_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_PCI_D3)) in rtl92cu_gpio_radio_on_off_checking()
2146 RT_CLEAR_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_PCI_D3); in rtl92cu_gpio_radio_on_off_checking()
2149 ppsc->rfchange_inprogress = false; in rtl92cu_gpio_radio_on_off_checking()
2155 if (ppsc->pwrdown_mode && e_rfpowerstate_toset == ERFOFF) { in rtl92cu_gpio_radio_on_off_checking()
2161 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_ASPM) in rtl92cu_gpio_radio_on_off_checking()
2162 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_ASPM); in rtl92cu_gpio_radio_on_off_checking()
2163 else if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_PCI_D3) in rtl92cu_gpio_radio_on_off_checking()
2164 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_PCI_D3); in rtl92cu_gpio_radio_on_off_checking()
2168 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_ASPM) in rtl92cu_gpio_radio_on_off_checking()
2169 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_ASPM); in rtl92cu_gpio_radio_on_off_checking()
2170 else if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_PCI_D3) in rtl92cu_gpio_radio_on_off_checking()
2171 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_PCI_D3); in rtl92cu_gpio_radio_on_off_checking()
2173 ppsc->rfchange_inprogress = false; in rtl92cu_gpio_radio_on_off_checking()
2177 ppsc->rfchange_inprogress = false; in rtl92cu_gpio_radio_on_off_checking()
2181 return !ppsc->hwradiooff; in rtl92cu_gpio_radio_on_off_checking()