/linux-6.1.9/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 ppsc->const_amdpci_aspm = rtlpci->const_amdpci_aspm; in _rtl_pci_update_default_setting() 74 switch (rtlpci->const_pci_aspm) { in _rtl_pci_update_default_setting() 112 switch (rtlpci->const_hwsw_rfoff_d3) { in _rtl_pci_update_default_setting() 130 switch (rtlpci->const_support_pciaspm) { in _rtl_pci_update_default_setting() 147 rtlpci->const_support_pciaspm); in _rtl_pci_update_default_setting() 154 pci_read_config_byte(rtlpci->pdev, 0x80, &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 170 pci_write_config_byte(rtlpci->pdev, 0x80, value); in _rtl_pci_platform_switch_device_pci_aspm() 178 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl_pci_switch_clk_req() local [all …]
|
/linux-6.1.9/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 25 rtlpci->const_amdpci_aspm = 0; in rtl92s_init_aspm_vars() 35 rtlpci->const_pci_aspm = 2; in rtl92s_init_aspm_vars() 38 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl92s_init_aspm_vars() 41 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl92s_init_aspm_vars() 50 rtlpci->const_hwsw_rfoff_d3 = 2; in rtl92s_init_aspm_vars() 58 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl92s_init_aspm_vars() 91 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92s_init_sw_vars() local 107 rtlpci->transmit_config = 0; in rtl92s_init_sw_vars() 109 rtlpci->receive_config = 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.1.9/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 25 rtlpci->const_amdpci_aspm = 0; in rtl88e_init_aspm_vars() 35 rtlpci->const_pci_aspm = 3; in rtl88e_init_aspm_vars() 38 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl88e_init_aspm_vars() 41 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl88e_init_aspm_vars() 50 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl88e_init_aspm_vars() 58 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl88e_init_aspm_vars() 65 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88e_init_sw_vars() local 74 rtlpci->transmit_config = CFENDFORM | BIT(15); in rtl88e_init_sw_vars() 81 rtlpci->receive_config = (RCR_APPFCS | 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() 78 dma_unmap_single(&rtlpci->pdev->dev, in _rtl88ee_return_beacon_queue_skb() 168 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl88ee_set_fw_clock_off() local 185 ring = &rtlpci->tx_ring[queue]; in _rtl88ee_set_fw_clock_off() 299 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() 673 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_tx_fill_cmddesc() local 680 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl88ee_tx_fill_cmddesc() 683 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl88ee_tx_fill_cmddesc() 811 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_is_tx_desc_closed() local 812 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl88ee_is_tx_desc_closed()
|
/linux-6.1.9/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 28 rtlpci->const_amdpci_aspm = 0; in rtl92ee_init_aspm_vars() 39 rtlpci->const_pci_aspm = 3; in rtl92ee_init_aspm_vars() 42 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl92ee_init_aspm_vars() 45 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl92ee_init_aspm_vars() 55 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl92ee_init_aspm_vars() 64 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl92ee_init_aspm_vars() 70 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ee_init_sw_vars() local 75 rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support; in rtl92ee_init_sw_vars() 81 rtlpci->transmit_config = CFENDFORM | BIT(15); 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() 558 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ee_pre_fill_tx_bd_desc() local 575 current_bd_desc = rtlpci->tx_ring[queue_index].cur_tx_wp; in rtl92ee_pre_fill_tx_bd_desc() 595 desc_dma_addr = rtlpci->tx_ring[queue_index].dma + in rtl92ee_pre_fill_tx_bd_desc() 649 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ee_tx_fill_desc() local 678 mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, skb->len, in rtl92ee_tx_fill_desc() 680 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl92ee_tx_fill_desc() 835 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ee_tx_fill_cmddesc() local [all …]
|
/linux-6.1.9/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 30 rtlpci->const_amdpci_aspm = 0; in rtl8723be_init_aspm_vars() 40 rtlpci->const_pci_aspm = 3; in rtl8723be_init_aspm_vars() 43 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl8723be_init_aspm_vars() 46 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl8723be_init_aspm_vars() 55 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl8723be_init_aspm_vars() 63 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl8723be_init_aspm_vars() 70 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_init_sw_vars() local 81 rtlpci->transmit_config = CFENDFORM | BIT(15) | BIT(24) | BIT(25); in rtl8723be_init_sw_vars() 92 rtlpci->receive_config = (RCR_APPFCS | 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() 40 dma_unmap_single(&rtlpci->pdev->dev, in _rtl8723be_return_beacon_queue_skb() 53 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8723be_set_bcn_ctrl_reg() local 56 rtlpci->reg_bcn_ctrl_val |= set_bits; in _rtl8723be_set_bcn_ctrl_reg() 57 rtlpci->reg_bcn_ctrl_val &= ~clear_bits; in _rtl8723be_set_bcn_ctrl_reg() 59 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8)rtlpci->reg_bcn_ctrl_val); in _rtl8723be_set_bcn_ctrl_reg() 171 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8723be_set_fw_clock_off() local 188 ring = &rtlpci->tx_ring[queue]; in _rtl8723be_set_fw_clock_off() 289 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() 592 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_tx_fill_cmddesc() local 596 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl8723be_tx_fill_cmddesc() 599 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl8723be_tx_fill_cmddesc() 721 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_is_tx_desc_closed() local 722 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl8723be_is_tx_desc_closed()
|
/linux-6.1.9/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 27 rtlpci->const_amdpci_aspm = 0; in rtl8821ae_init_aspm_vars() 38 rtlpci->const_pci_aspm = 3; in rtl8821ae_init_aspm_vars() 41 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl8821ae_init_aspm_vars() 44 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl8821ae_init_aspm_vars() 54 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl8821ae_init_aspm_vars() 63 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl8821ae_init_aspm_vars() 71 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8821ae_init_sw_vars() local 83 rtlpci->transmit_config = CFENDFORM | BIT(15) | BIT(24) | BIT(25); in rtl8821ae_init_sw_vars() 98 rtlpci->receive_config = (RCR_APPFCS | 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() 36 dma_unmap_single(&rtlpci->pdev->dev, in _rtl8821ae_return_beacon_queue_skb() 49 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8821ae_set_bcn_ctrl_reg() local 52 rtlpci->reg_bcn_ctrl_val |= set_bits; in _rtl8821ae_set_bcn_ctrl_reg() 53 rtlpci->reg_bcn_ctrl_val &= ~clear_bits; in _rtl8821ae_set_bcn_ctrl_reg() 55 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8)rtlpci->reg_bcn_ctrl_val); in _rtl8821ae_set_bcn_ctrl_reg() 169 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8821ae_set_fw_clock_off() local 186 ring = &rtlpci->tx_ring[queue]; in _rtl8821ae_set_fw_clock_off() 391 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() 836 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8821ae_tx_fill_cmddesc() local 840 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl8821ae_tx_fill_cmddesc() 843 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl8821ae_tx_fill_cmddesc() 966 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8821ae_is_tx_desc_closed() local 967 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl8821ae_is_tx_desc_closed()
|
/linux-6.1.9/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 30 rtlpci->const_amdpci_aspm = 0; in rtl8723e_init_aspm_vars() 41 rtlpci->const_pci_aspm = 3; in rtl8723e_init_aspm_vars() 44 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl8723e_init_aspm_vars() 47 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl8723e_init_aspm_vars() 57 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl8723e_init_aspm_vars() 66 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl8723e_init_aspm_vars() 72 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723e_init_sw_vars() local 85 rtlpci->transmit_config = CFENDFORM | BIT(12) | BIT(13); in rtl8723e_init_sw_vars() 92 rtlpci->receive_config = (RCR_APPFCS | 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 303 if (rtlpci->acm_method != EACMWAY2_SW) in rtl8723e_set_hw_reg() 317 acm_ctrl | ((rtlpci->acm_method == 2) ? 0x0 : 0x1); in rtl8723e_set_hw_reg() 363 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 365 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl8723e_tx_fill_desc() 369 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl8723e_tx_fill_desc() 527 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723e_tx_fill_cmddesc() local 534 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl8723e_tx_fill_cmddesc() 537 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl8723e_tx_fill_cmddesc() 669 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723e_is_tx_desc_closed() local 670 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl8723e_is_tx_desc_closed()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | sw.c | 22 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92d_init_aspm_vars() local 25 rtlpci->const_amdpci_aspm = 0; in rtl92d_init_aspm_vars() 36 rtlpci->const_pci_aspm = 3; in rtl92d_init_aspm_vars() 39 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl92d_init_aspm_vars() 42 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl92d_init_aspm_vars() 52 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl92d_init_aspm_vars() 61 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl92d_init_aspm_vars() 69 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92d_init_sw_vars() local 87 rtlpci->rxbuffersize = 4096; in rtl92d_init_sw_vars() 90 rtlpci->transmit_config = CFENDFORM | BIT(12) | BIT(13); in rtl92d_init_sw_vars() [all …]
|
D | hw.c | 45 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92de_set_bcn_ctrl_reg() local 48 rtlpci->reg_bcn_ctrl_val |= set_bits; in _rtl92de_set_bcn_ctrl_reg() 49 rtlpci->reg_bcn_ctrl_val &= ~clear_bits; in _rtl92de_set_bcn_ctrl_reg() 50 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8) rtlpci->reg_bcn_ctrl_val); in _rtl92de_set_bcn_ctrl_reg() 95 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92de_get_hw_reg() local 99 *((u32 *) (val)) = rtlpci->receive_config; in rtl92de_get_hw_reg() 152 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92de_set_hw_reg() local 296 if (rtlpci->acm_method != EACMWAY2_SW) in rtl92de_set_hw_reg() 308 acm_ctrl = acm_ctrl | ((rtlpci->acm_method == 2) ? 0x0 : 0x1); in rtl92de_set_hw_reg() 351 rtlpci->receive_config = ((u32 *) (val))[0]; in rtl92de_set_hw_reg() [all …]
|
D | trx.c | 480 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92de_tx_fill_desc() local 511 mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, skb->len, in rtl92de_tx_fill_desc() 513 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl92de_tx_fill_desc() 663 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92de_tx_fill_cmddesc() local 672 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl92de_tx_fill_cmddesc() 675 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl92de_tx_fill_cmddesc() 802 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92de_is_tx_desc_closed() local 803 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl92de_is_tx_desc_closed()
|
/linux-6.1.9/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 28 rtlpci->const_amdpci_aspm = 0; in rtl92c_init_aspm_vars() 39 rtlpci->const_pci_aspm = 3; in rtl92c_init_aspm_vars() 42 rtlpci->const_devicepci_aspm_setting = 0x03; in rtl92c_init_aspm_vars() 45 rtlpci->const_hostpci_aspm_setting = 0x02; in rtl92c_init_aspm_vars() 55 rtlpci->const_hwsw_rfoff_d3 = 0; in rtl92c_init_aspm_vars() 64 rtlpci->const_support_pciaspm = rtlpriv->cfg->mod_params->aspm_support; in rtl92c_init_aspm_vars() 71 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92c_init_sw_vars() local 81 rtlpci->transmit_config = CFENDFORM | BIT(12) | BIT(13); in rtl92c_init_sw_vars() 88 rtlpci->receive_config = (RCR_APPFCS | 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 301 if (rtlpci->acm_method != EACMWAY2_SW) in rtl92ce_set_hw_reg() 315 acm_ctrl | ((rtlpci->acm_method == 2) ? 0x0 : 0x1); in rtl92ce_set_hw_reg() 360 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 364 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl92ce_tx_fill_desc() 369 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl92ce_tx_fill_desc() 526 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_tx_fill_cmddesc() local 533 dma_addr_t mapping = dma_map_single(&rtlpci->pdev->dev, skb->data, in rtl92ce_tx_fill_cmddesc() 536 if (dma_mapping_error(&rtlpci->pdev->dev, mapping)) { in rtl92ce_tx_fill_cmddesc() 668 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_is_tx_desc_closed() local 669 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[hw_queue]; in rtl92ce_is_tx_desc_closed()
|