Lines Matching refs:ppsc
1170 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_hw_init() local
1208 ppsc->rfpwr_state = ERFON; in rtl92cu_hw_init()
1210 if (ppsc->rfpwr_state == ERFON) { in rtl92cu_hw_init()
1554 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_card_disable() local
1563 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl92cu_card_disable()
1729 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_get_hw_reg() local
1737 *((enum rf_pwrstate *)(val)) = ppsc->rfpwr_state; in rtl92cu_get_hw_reg()
1758 *((bool *) (val)) = ppsc->fw_current_inpsmode; in rtl92cu_get_hw_reg()
1792 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_set_hw_reg() local
2114 ppsc->fw_current_inpsmode = *((bool *) val); in rtl92cu_set_hw_reg()
2388 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_gpio_radio_on_off_checking() local
2397 if (ppsc->swrf_processing) in rtl92cu_gpio_radio_on_off_checking()
2400 if (ppsc->rfchange_inprogress) { in rtl92cu_gpio_radio_on_off_checking()
2404 ppsc->rfchange_inprogress = true; in rtl92cu_gpio_radio_on_off_checking()
2407 cur_rfstate = ppsc->rfpwr_state; in rtl92cu_gpio_radio_on_off_checking()
2411 if (ppsc->pwrdown_mode) { in rtl92cu_gpio_radio_on_off_checking()
2430 if ((ppsc->hwradiooff) && (e_rfpowerstate_toset == ERFON)) { in rtl92cu_gpio_radio_on_off_checking()
2433 ppsc->hwradiooff = false; in rtl92cu_gpio_radio_on_off_checking()
2435 } else if ((!ppsc->hwradiooff) && (e_rfpowerstate_toset == in rtl92cu_gpio_radio_on_off_checking()
2439 ppsc->hwradiooff = true; in rtl92cu_gpio_radio_on_off_checking()
2445 "%x\n", ppsc->hwradiooff, e_rfpowerstate_toset)); in rtl92cu_gpio_radio_on_off_checking()
2448 ppsc->hwradiooff = 1; in rtl92cu_gpio_radio_on_off_checking()
2450 if ((ppsc->reg_rfps_level & RT_RF_OFF_LEVL_ASPM) && in rtl92cu_gpio_radio_on_off_checking()
2451 RT_IN_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_ASPM)) in rtl92cu_gpio_radio_on_off_checking()
2452 RT_CLEAR_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_ASPM); in rtl92cu_gpio_radio_on_off_checking()
2453 else if ((ppsc->reg_rfps_level & RT_RF_OFF_LEVL_PCI_D3) in rtl92cu_gpio_radio_on_off_checking()
2454 && RT_IN_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_PCI_D3)) in rtl92cu_gpio_radio_on_off_checking()
2455 RT_CLEAR_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_PCI_D3); in rtl92cu_gpio_radio_on_off_checking()
2458 ppsc->rfchange_inprogress = false; in rtl92cu_gpio_radio_on_off_checking()
2464 if (ppsc->pwrdown_mode && e_rfpowerstate_toset == ERFOFF) { in rtl92cu_gpio_radio_on_off_checking()
2483 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_ASPM) in rtl92cu_gpio_radio_on_off_checking()
2484 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_ASPM); in rtl92cu_gpio_radio_on_off_checking()
2485 else if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_PCI_D3) in rtl92cu_gpio_radio_on_off_checking()
2486 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_PCI_D3); in rtl92cu_gpio_radio_on_off_checking()
2490 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_ASPM) in rtl92cu_gpio_radio_on_off_checking()
2491 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_ASPM); in rtl92cu_gpio_radio_on_off_checking()
2492 else if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_PCI_D3) in rtl92cu_gpio_radio_on_off_checking()
2493 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_PCI_D3); in rtl92cu_gpio_radio_on_off_checking()
2495 ppsc->rfchange_inprogress = false; in rtl92cu_gpio_radio_on_off_checking()
2499 ppsc->rfchange_inprogress = false; in rtl92cu_gpio_radio_on_off_checking()
2503 return !ppsc->hwradiooff; in rtl92cu_gpio_radio_on_off_checking()