Lines Matching refs:rtlpci
23 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92se_get_hw_reg() local
27 *((u32 *) (val)) = rtlpci->receive_config; in rtl92se_get_hw_reg()
65 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92se_set_hw_reg() local
228 if (rtlpci->acm_method != EACMWAY2_SW) in rtl92se_set_hw_reg()
241 acm_ctrl = acm_ctrl | ((rtlpci->acm_method == 2) ? in rtl92se_set_hw_reg()
286 rtlpci->receive_config = ((u32 *) (val))[0]; in rtl92se_set_hw_reg()
531 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92se_macconfig_before_fwdownload() local
539 if (rtlpci->first_init) { in _rtl92se_macconfig_before_fwdownload()
695 rtl_write_dword(rtlpriv, RDQDA, rtlpci->rx_ring[RX_MPDU_QUEUE].dma); in _rtl92se_macconfig_before_fwdownload()
696 rtl_write_dword(rtlpriv, RCDA, rtlpci->rx_ring[RX_CMD_QUEUE].dma); in _rtl92se_macconfig_before_fwdownload()
699 rtl_write_dword(rtlpriv, TBKDA, rtlpci->tx_ring[BK_QUEUE].dma); in _rtl92se_macconfig_before_fwdownload()
700 rtl_write_dword(rtlpriv, TBEDA, rtlpci->tx_ring[BE_QUEUE].dma); in _rtl92se_macconfig_before_fwdownload()
701 rtl_write_dword(rtlpriv, TVIDA, rtlpci->tx_ring[VI_QUEUE].dma); in _rtl92se_macconfig_before_fwdownload()
702 rtl_write_dword(rtlpriv, TVODA, rtlpci->tx_ring[VO_QUEUE].dma); in _rtl92se_macconfig_before_fwdownload()
703 rtl_write_dword(rtlpriv, TBDA, rtlpci->tx_ring[BEACON_QUEUE].dma); in _rtl92se_macconfig_before_fwdownload()
704 rtl_write_dword(rtlpriv, TCDA, rtlpci->tx_ring[TXCMD_QUEUE].dma); in _rtl92se_macconfig_before_fwdownload()
705 rtl_write_dword(rtlpriv, TMDA, rtlpci->tx_ring[MGNT_QUEUE].dma); in _rtl92se_macconfig_before_fwdownload()
706 rtl_write_dword(rtlpriv, THPDA, rtlpci->tx_ring[HIGH_QUEUE].dma); in _rtl92se_macconfig_before_fwdownload()
707 rtl_write_dword(rtlpriv, HDA, rtlpci->tx_ring[HCCA_QUEUE].dma); in _rtl92se_macconfig_before_fwdownload()
748 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92se_macconfig_after_fwdownload() local
765 rtl_write_dword(rtlpriv, RCR, rtlpci->receive_config); in _rtl92se_macconfig_after_fwdownload()
883 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92se_hw_configure() local
901 (u8 *)(&rtlpci->shortretry_limit)); in _rtl92se_hw_configure()
924 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92se_hw_init() local
937 rtlpci->being_init_adapter = true; in rtl92se_hw_init()
988 rtlpci->receive_config = rtl_read_dword(rtlpriv, RCR); in rtl92se_hw_init()
989 rtlpci->receive_config &= ~(RCR_ACRC32 | RCR_AICV); in rtl92se_hw_init()
990 rtl_write_dword(rtlpriv, RCR, rtlpci->receive_config); in rtl92se_hw_init()
1109 rtlpci->being_init_adapter = false; in rtl92se_hw_init()
1232 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92se_enable_interrupt() local
1234 rtl_write_dword(rtlpriv, INTA_MASK, rtlpci->irq_mask[0]); in rtl92se_enable_interrupt()
1236 rtl_write_dword(rtlpriv, INTA_MASK + 4, rtlpci->irq_mask[1] & 0x3F); in rtl92se_enable_interrupt()
1237 rtlpci->irq_enabled = true; in rtl92se_enable_interrupt()
1243 struct rtl_pci *rtlpci; in rtl92se_disable_interrupt() local
1249 rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92se_disable_interrupt()
1252 rtlpci->irq_enabled = false; in rtl92se_disable_interrupt()
1373 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92se_gen_refreshledstate() local
1376 if (rtlpci->up_first_time) in _rtl92se_gen_refreshledstate()
1507 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92se_card_disable() local
1514 if (rtlpci->driver_is_goingto_unload || in rtl92se_card_disable()
1542 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92se_interrupt_recognized() local
1544 intvec->inta = rtl_read_dword(rtlpriv, ISR) & rtlpci->irq_mask[0]; in rtl92se_interrupt_recognized()
1547 intvec->intb = rtl_read_dword(rtlpriv, ISR + 4) & rtlpci->irq_mask[1]; in rtl92se_interrupt_recognized()
1597 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92se_update_interrupt_mask() local
1603 rtlpci->irq_mask[0] |= add_msr; in rtl92se_update_interrupt_mask()
1606 rtlpci->irq_mask[0] &= (~rm_msr); in rtl92se_update_interrupt_mask()
2289 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92se_gpio_radio_on_off_checking() local
2296 if (rtlpci->up_first_time || rtlpci->being_init_adapter) in rtl92se_gpio_radio_on_off_checking()
2498 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92se_suspend() local
2500 rtlpci->up_first_time = true; in rtl92se_suspend()
2505 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92se_resume() local
2508 pci_read_config_dword(rtlpci->pdev, 0x40, &val); in rtl92se_resume()
2510 pci_write_config_dword(rtlpci->pdev, 0x40, in rtl92se_resume()