/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/ |
D | pci.c | 65 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl_pci_update_default_setting() local 73 switch (rtlpci->const_pci_aspm) { in _rtl_pci_update_default_setting() 111 switch (rtlpci->const_hwsw_rfoff_d3) { in _rtl_pci_update_default_setting() 129 switch (rtlpci->const_support_pciaspm) { in _rtl_pci_update_default_setting() 146 rtlpci->const_support_pciaspm); in _rtl_pci_update_default_setting() 153 pcie_capability_read_word(rtlpci->pdev, PCI_EXP_LNKCTL, &init_aspm); in _rtl_pci_update_default_setting() 164 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl_pci_platform_switch_device_pci_aspm() local 172 pcie_capability_clear_and_set_word(rtlpci->pdev, PCI_EXP_LNKCTL, in _rtl_pci_platform_switch_device_pci_aspm() 182 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl_pci_switch_clk_req() local 187 pcie_capability_clear_and_set_word(rtlpci->pdev, PCI_EXP_LNKCTL, in _rtl_pci_switch_clk_req() [all …]
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | hw.c | 49 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92de_set_bcn_ctrl_reg() local 52 rtlpci->reg_bcn_ctrl_val |= set_bits; in _rtl92de_set_bcn_ctrl_reg() 53 rtlpci->reg_bcn_ctrl_val &= ~clear_bits; in _rtl92de_set_bcn_ctrl_reg() 54 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8) rtlpci->reg_bcn_ctrl_val); in _rtl92de_set_bcn_ctrl_reg() 69 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92de_get_hw_reg() local 73 *((u32 *) (val)) = rtlpci->receive_config; in rtl92de_get_hw_reg() 84 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92de_set_hw_reg() local 91 if (rtlpci->acm_method != EACMWAY2_SW) in rtl92de_set_hw_reg() 103 acm_ctrl = acm_ctrl | ((rtlpci->acm_method == 2) ? 0x0 : 0x1); in rtl92de_set_hw_reg() 146 rtlpci->receive_config = ((u32 *) (val))[0]; in rtl92de_set_hw_reg() [all …]
|
D | sw.c | 26 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92d_init_aspm_vars() local 37 rtlpci->const_pci_aspm = 3; in rtl92d_init_aspm_vars() 40 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl92d_init_aspm_vars() 43 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl92d_init_aspm_vars() 53 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl92d_init_aspm_vars() 62 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl92d_init_aspm_vars() 70 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92d_init_sw_vars() local 88 rtlpci->rxbuffersize = 4096; in rtl92d_init_sw_vars() 91 rtlpci->transmit_config = CFENDFORM | BIT(12) | BIT(13); in rtl92d_init_sw_vars() 93 rtlpci->receive_config = ( in rtl92d_init_sw_vars() [all …]
|
D | trx.c | 53 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92de_tx_fill_desc() local 84 mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, skb->len, in rtl92de_tx_fill_desc() 86 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl92de_tx_fill_desc() 235 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92de_tx_fill_cmddesc() local 244 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl92de_tx_fill_cmddesc() 247 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl92de_tx_fill_cmddesc() 292 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92de_is_tx_desc_closed() local 293 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl92de_is_tx_desc_closed()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | sw.c | 22 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92s_init_aspm_vars() local 32 rtlpci->const_pci_aspm = 2; in rtl92s_init_aspm_vars() 35 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl92s_init_aspm_vars() 38 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl92s_init_aspm_vars() 47 rtlpci->const_hwsw_rfoff_d3 = 2; in rtl92s_init_aspm_vars() 55 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl92s_init_aspm_vars() 88 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92s_init_sw_vars() local 104 rtlpci->transmit_config = 0; in rtl92s_init_sw_vars() 106 rtlpci->receive_config = in rtl92s_init_sw_vars() 129 rtlpci->irq_mask[0] = (u32) in rtl92s_init_sw_vars() [all …]
|
D | hw.c | 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() [all …]
|
D | trx.c | 321 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92se_tx_fill_desc() local 331 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl92se_tx_fill_desc() 335 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl92se_tx_fill_desc() 498 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92se_tx_fill_cmddesc() local 503 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl92se_tx_fill_cmddesc() 506 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl92se_tx_fill_cmddesc()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | sw.c | 24 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8821ae_init_aspm_vars() local 35 rtlpci->const_pci_aspm = 3; in rtl8821ae_init_aspm_vars() 38 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl8821ae_init_aspm_vars() 41 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl8821ae_init_aspm_vars() 51 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl8821ae_init_aspm_vars() 60 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl8821ae_init_aspm_vars() 68 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8821ae_init_sw_vars() local 80 rtlpci->transmit_config = CFENDFORM | BIT(15) | BIT(24) | BIT(25); in rtl8821ae_init_sw_vars() 95 rtlpci->receive_config = (RCR_APPFCS | in rtl8821ae_init_sw_vars() 112 rtlpci->irq_mask[0] = in rtl8821ae_init_sw_vars() [all …]
|
D | hw.c | 27 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8821ae_return_beacon_queue_skb() local 28 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[BEACON_QUEUE]; in _rtl8821ae_return_beacon_queue_skb() 38 dma_unmap_single(&rtlpci->pdev->dev, in _rtl8821ae_return_beacon_queue_skb() 53 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8821ae_set_bcn_ctrl_reg() local 56 rtlpci->reg_bcn_ctrl_val |= set_bits; in _rtl8821ae_set_bcn_ctrl_reg() 57 rtlpci->reg_bcn_ctrl_val &= ~clear_bits; in _rtl8821ae_set_bcn_ctrl_reg() 59 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8)rtlpci->reg_bcn_ctrl_val); in _rtl8821ae_set_bcn_ctrl_reg() 173 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8821ae_set_fw_clock_off() local 190 ring = &rtlpci->tx_ring[queue]; in _rtl8821ae_set_fw_clock_off() 395 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8821ae_get_hw_reg() local [all …]
|
D | trx.c | 671 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8821ae_tx_fill_desc() local 696 mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, skb->len, in rtl8821ae_tx_fill_desc() 698 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl8821ae_tx_fill_desc() 835 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8821ae_tx_fill_cmddesc() local 839 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl8821ae_tx_fill_cmddesc() 842 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl8821ae_tx_fill_cmddesc() 965 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8821ae_is_tx_desc_closed() local 966 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl8821ae_is_tx_desc_closed()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | sw.c | 27 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_init_aspm_vars() local 37 rtlpci->const_pci_aspm = 3; in rtl8723be_init_aspm_vars() 40 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl8723be_init_aspm_vars() 43 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl8723be_init_aspm_vars() 52 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl8723be_init_aspm_vars() 60 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl8723be_init_aspm_vars() 67 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_init_sw_vars() local 78 rtlpci->transmit_config = CFENDFORM | BIT(15) | BIT(24) | BIT(25); in rtl8723be_init_sw_vars() 89 rtlpci->receive_config = (RCR_APPFCS | in rtl8723be_init_sw_vars() 103 rtlpci->irq_mask[0] = (u32) (IMR_PSTIMEOUT | in rtl8723be_init_sw_vars() [all …]
|
D | hw.c | 31 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8723be_return_beacon_queue_skb() local 32 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[BEACON_QUEUE]; in _rtl8723be_return_beacon_queue_skb() 42 dma_unmap_single(&rtlpci->pdev->dev, in _rtl8723be_return_beacon_queue_skb() 57 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8723be_set_bcn_ctrl_reg() local 60 rtlpci->reg_bcn_ctrl_val |= set_bits; in _rtl8723be_set_bcn_ctrl_reg() 61 rtlpci->reg_bcn_ctrl_val &= ~clear_bits; in _rtl8723be_set_bcn_ctrl_reg() 63 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8)rtlpci->reg_bcn_ctrl_val); in _rtl8723be_set_bcn_ctrl_reg() 175 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8723be_set_fw_clock_off() local 192 ring = &rtlpci->tx_ring[queue]; in _rtl8723be_set_fw_clock_off() 293 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_get_hw_reg() local [all …]
|
D | trx.c | 410 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_tx_fill_desc() local 443 mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, skb->len, in rtl8723be_tx_fill_desc() 445 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl8723be_tx_fill_desc() 591 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_tx_fill_cmddesc() local 595 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl8723be_tx_fill_cmddesc() 598 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl8723be_tx_fill_cmddesc() 720 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_is_tx_desc_closed() local 721 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl8723be_is_tx_desc_closed()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | sw.c | 25 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ee_init_aspm_vars() local 36 rtlpci->const_pci_aspm = 3; in rtl92ee_init_aspm_vars() 39 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl92ee_init_aspm_vars() 42 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl92ee_init_aspm_vars() 52 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl92ee_init_aspm_vars() 61 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl92ee_init_aspm_vars() 67 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ee_init_sw_vars() local 72 rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support; in rtl92ee_init_sw_vars() 78 rtlpci->transmit_config = CFENDFORM | BIT(15); in rtl92ee_init_sw_vars() 85 rtlpci->receive_config = (RCR_APPFCS | in rtl92ee_init_sw_vars() [all …]
|
D | hw.c | 26 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92ee_set_bcn_ctrl_reg() local 29 rtlpci->reg_bcn_ctrl_val |= set_bits; in _rtl92ee_set_bcn_ctrl_reg() 30 rtlpci->reg_bcn_ctrl_val &= ~clear_bits; in _rtl92ee_set_bcn_ctrl_reg() 32 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8)rtlpci->reg_bcn_ctrl_val); in _rtl92ee_set_bcn_ctrl_reg() 146 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92ee_set_fw_clock_off() local 164 ring = &rtlpci->tx_ring[queue]; in _rtl92ee_set_fw_clock_off() 278 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ee_get_hw_reg() local 282 *((u32 *)(val)) = rtlpci->receive_config; in rtl92ee_get_hw_reg() 410 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ee_set_hw_reg() local 505 if (rtlpci->acm_method != EACMWAY2_SW) in rtl92ee_set_hw_reg() [all …]
|
D | trx.c | 460 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ee_rx_desc_buff_remained_cnt() local 470 if (write_point != rtlpci->rx_ring[queue_index].next_rx_rp) { in rtl92ee_rx_desc_buff_remained_cnt() 490 rtlpci->rx_ring[queue_index].next_rx_rp = write_point; in rtl92ee_rx_desc_buff_remained_cnt() 560 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ee_pre_fill_tx_bd_desc() local 577 current_bd_desc = rtlpci->tx_ring[queue_index].cur_tx_wp; in rtl92ee_pre_fill_tx_bd_desc() 597 desc_dma_addr = rtlpci->tx_ring[queue_index].dma + in rtl92ee_pre_fill_tx_bd_desc() 651 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ee_tx_fill_desc() local 680 mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, skb->len, in rtl92ee_tx_fill_desc() 682 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl92ee_tx_fill_desc() 836 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ee_tx_fill_cmddesc() local [all …]
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | sw.c | 22 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88e_init_aspm_vars() local 32 rtlpci->const_pci_aspm = 3; in rtl88e_init_aspm_vars() 35 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl88e_init_aspm_vars() 38 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl88e_init_aspm_vars() 47 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl88e_init_aspm_vars() 55 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl88e_init_aspm_vars() 62 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88e_init_sw_vars() local 71 rtlpci->transmit_config = CFENDFORM | BIT(15); in rtl88e_init_sw_vars() 78 rtlpci->receive_config = (RCR_APPFCS | in rtl88e_init_sw_vars() 93 rtlpci->irq_mask[0] = in rtl88e_init_sw_vars() [all …]
|
D | hw.c | 26 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl88ee_set_bcn_ctrl_reg() local 29 rtlpci->reg_bcn_ctrl_val |= set_bits; in _rtl88ee_set_bcn_ctrl_reg() 30 rtlpci->reg_bcn_ctrl_val &= ~clear_bits; in _rtl88ee_set_bcn_ctrl_reg() 32 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8) rtlpci->reg_bcn_ctrl_val); in _rtl88ee_set_bcn_ctrl_reg() 69 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl88ee_return_beacon_queue_skb() local 70 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[BEACON_QUEUE]; in _rtl88ee_return_beacon_queue_skb() 80 dma_unmap_single(&rtlpci->pdev->dev, in _rtl88ee_return_beacon_queue_skb() 172 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl88ee_set_fw_clock_off() local 189 ring = &rtlpci->tx_ring[queue]; in _rtl88ee_set_fw_clock_off() 303 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_get_hw_reg() local [all …]
|
D | trx.c | 486 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_tx_fill_desc() local 518 mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, skb->len, in rtl88ee_tx_fill_desc() 520 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl88ee_tx_fill_desc() 672 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_tx_fill_cmddesc() local 679 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl88ee_tx_fill_cmddesc() 682 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl88ee_tx_fill_cmddesc() 809 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_is_tx_desc_closed() local 810 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl88ee_is_tx_desc_closed()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | sw.c | 27 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723e_init_aspm_vars() local 38 rtlpci->const_pci_aspm = 3; in rtl8723e_init_aspm_vars() 41 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl8723e_init_aspm_vars() 44 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl8723e_init_aspm_vars() 54 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl8723e_init_aspm_vars() 63 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl8723e_init_aspm_vars() 69 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723e_init_sw_vars() local 82 rtlpci->transmit_config = CFENDFORM | BIT(12) | BIT(13); in rtl8723e_init_sw_vars() 89 rtlpci->receive_config = (RCR_APPFCS | in rtl8723e_init_sw_vars() 103 rtlpci->irq_mask[0] = in rtl8723e_init_sw_vars() [all …]
|
D | hw.c | 30 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8723e_set_bcn_ctrl_reg() local 33 rtlpci->reg_bcn_ctrl_val |= set_bits; in _rtl8723e_set_bcn_ctrl_reg() 34 rtlpci->reg_bcn_ctrl_val &= ~clear_bits; in _rtl8723e_set_bcn_ctrl_reg() 36 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8) rtlpci->reg_bcn_ctrl_val); in _rtl8723e_set_bcn_ctrl_reg() 79 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723e_get_hw_reg() local 83 *((u32 *)(val)) = rtlpci->receive_config; in rtl8723e_get_hw_reg() 134 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723e_set_hw_reg() local 298 if (rtlpci->acm_method != EACMWAY2_SW) in rtl8723e_set_hw_reg() 312 acm_ctrl | ((rtlpci->acm_method == 2) ? 0x0 : 0x1); in rtl8723e_set_hw_reg() 358 rtlpci->receive_config = ((u32 *)(val))[0]; in rtl8723e_set_hw_reg() [all …]
|
D | trx.c | 350 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723e_tx_fill_desc() local 364 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl8723e_tx_fill_desc() 368 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl8723e_tx_fill_desc() 522 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723e_tx_fill_cmddesc() local 529 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl8723e_tx_fill_cmddesc() 532 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl8723e_tx_fill_cmddesc() 663 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723e_is_tx_desc_closed() local 664 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl8723e_is_tx_desc_closed()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | sw.c | 25 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92c_init_aspm_vars() local 36 rtlpci->const_pci_aspm = 3; in rtl92c_init_aspm_vars() 39 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl92c_init_aspm_vars() 42 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl92c_init_aspm_vars() 52 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl92c_init_aspm_vars() 61 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl92c_init_aspm_vars() 68 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92c_init_sw_vars() local 78 rtlpci->transmit_config = CFENDFORM | BIT(12) | BIT(13); in rtl92c_init_sw_vars() 85 rtlpci->receive_config = (RCR_APPFCS | in rtl92c_init_sw_vars() 97 rtlpci->irq_mask[0] = in rtl92c_init_sw_vars() [all …]
|
D | hw.c | 26 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92ce_set_bcn_ctrl_reg() local 29 rtlpci->reg_bcn_ctrl_val |= set_bits; in _rtl92ce_set_bcn_ctrl_reg() 30 rtlpci->reg_bcn_ctrl_val &= ~clear_bits; in _rtl92ce_set_bcn_ctrl_reg() 32 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8)rtlpci->reg_bcn_ctrl_val); in _rtl92ce_set_bcn_ctrl_reg() 75 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_get_hw_reg() local 79 *((u32 *) (val)) = rtlpci->receive_config; in rtl92ce_get_hw_reg() 129 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_set_hw_reg() local 296 if (rtlpci->acm_method != EACMWAY2_SW) in rtl92ce_set_hw_reg() 310 acm_ctrl | ((rtlpci->acm_method == 2) ? 0x0 : 0x1); in rtl92ce_set_hw_reg() 355 rtlpci->receive_config = ((u32 *) (val))[0]; in rtl92ce_set_hw_reg() [all …]
|
D | trx.c | 351 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_tx_fill_desc() local 363 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl92ce_tx_fill_desc() 368 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl92ce_tx_fill_desc() 521 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_tx_fill_cmddesc() local 528 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl92ce_tx_fill_cmddesc() 531 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl92ce_tx_fill_cmddesc() 661 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_is_tx_desc_closed() local 662 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl92ce_is_tx_desc_closed()
|