Lines Matching refs:RTL_W8

80 #define RTL_W8(tp, reg, val8)	writeb((val8), tp->mmio_addr + (reg))  macro
670 RTL_W8(tp, Cfg9346, Cfg9346_Lock); in rtl_lock_config_regs()
675 RTL_W8(tp, Cfg9346, Cfg9346_Unlock); in rtl_unlock_config_regs()
1169 RTL_W8(tp, IBCR2, RTL_R8(tp, IBCR2) & ~0x01); in rtl8168ep_stop_cmac()
1171 RTL_W8(tp, IBISR0, RTL_R8(tp, IBISR0) | 0x20); in rtl8168ep_stop_cmac()
1172 RTL_W8(tp, IBCR0, RTL_R8(tp, IBCR0) & ~0x01); in rtl8168ep_stop_cmac()
1403 RTL_W8(tp, cfg[i].reg, options); in __rtl8169_set_wol()
1411 RTL_W8(tp, Config1, options); in __rtl8169_set_wol()
1419 RTL_W8(tp, Config2, options); in __rtl8169_set_wol()
2098 RTL_W8(tp, EEE_LED, RTL_R8(tp, EEE_LED) & ~0x07); in rtl8168_config_eee_mac()
2164 RTL_W8(tp, 0x82, 0x01); in rtl8169_init_phy()
2256 RTL_W8(tp, PMCH, RTL_R8(tp, PMCH) & ~0x80); in rtl_pll_power_down()
2262 RTL_W8(tp, PMCH, RTL_R8(tp, PMCH) & ~0x80); in rtl_pll_power_down()
2276 RTL_W8(tp, PMCH, RTL_R8(tp, PMCH) | 0x80); in rtl_pll_power_up()
2284 RTL_W8(tp, PMCH, RTL_R8(tp, PMCH) | 0xc0); in rtl_pll_power_up()
2289 RTL_W8(tp, PMCH, RTL_R8(tp, PMCH) | 0xc0); in rtl_pll_power_up()
2330 RTL_W8(tp, Config3, RTL_R8(tp, Config3) | Jumbo_En0); in r8168c_hw_jumbo_enable()
2331 RTL_W8(tp, Config4, RTL_R8(tp, Config4) | Jumbo_En1); in r8168c_hw_jumbo_enable()
2336 RTL_W8(tp, Config3, RTL_R8(tp, Config3) & ~Jumbo_En0); in r8168c_hw_jumbo_disable()
2337 RTL_W8(tp, Config4, RTL_R8(tp, Config4) & ~Jumbo_En1); in r8168c_hw_jumbo_disable()
2342 RTL_W8(tp, Config3, RTL_R8(tp, Config3) | Jumbo_En0); in r8168dp_hw_jumbo_enable()
2347 RTL_W8(tp, Config3, RTL_R8(tp, Config3) & ~Jumbo_En0); in r8168dp_hw_jumbo_disable()
2352 RTL_W8(tp, MaxTxPacketSize, 0x3f); in r8168e_hw_jumbo_enable()
2353 RTL_W8(tp, Config3, RTL_R8(tp, Config3) | Jumbo_En0); in r8168e_hw_jumbo_enable()
2354 RTL_W8(tp, Config4, RTL_R8(tp, Config4) | 0x01); in r8168e_hw_jumbo_enable()
2359 RTL_W8(tp, MaxTxPacketSize, 0x0c); in r8168e_hw_jumbo_disable()
2360 RTL_W8(tp, Config3, RTL_R8(tp, Config3) & ~Jumbo_En0); in r8168e_hw_jumbo_disable()
2361 RTL_W8(tp, Config4, RTL_R8(tp, Config4) & ~0x01); in r8168e_hw_jumbo_disable()
2366 RTL_W8(tp, Config4, RTL_R8(tp, Config4) | (1 << 0)); in r8168b_1_hw_jumbo_enable()
2371 RTL_W8(tp, Config4, RTL_R8(tp, Config4) & ~(1 << 0)); in r8168b_1_hw_jumbo_disable()
2427 RTL_W8(tp, ChipCmd, CmdReset); in rtl_hw_reset()
2494 RTL_W8(tp, ChipCmd, RTL_R8(tp, ChipCmd) | StopReq); in rtl_wait_txrx_fifo_empty()
2682 RTL_W8(tp, Config3, RTL_R8(tp, Config3) & ~Rdy_to_L23); in rtl_pcie_state_l2l3_disable()
2689 RTL_W8(tp, Config5, RTL_R8(tp, Config5) | ASPM_en); in rtl_hw_aspm_clkreq_enable()
2690 RTL_W8(tp, Config2, RTL_R8(tp, Config2) | ClkReqEn); in rtl_hw_aspm_clkreq_enable()
2692 RTL_W8(tp, Config2, RTL_R8(tp, Config2) & ~ClkReqEn); in rtl_hw_aspm_clkreq_enable()
2693 RTL_W8(tp, Config5, RTL_R8(tp, Config5) & ~ASPM_en); in rtl_hw_aspm_clkreq_enable()
2719 RTL_W8(tp, Config3, RTL_R8(tp, Config3) & ~Beacon_en); in rtl_hw_start_8168b()
2724 RTL_W8(tp, Config1, RTL_R8(tp, Config1) | Speed_down); in __rtl_hw_start_8168cp()
2726 RTL_W8(tp, Config3, RTL_R8(tp, Config3) & ~Beacon_en); in __rtl_hw_start_8168cp()
2752 RTL_W8(tp, Config3, RTL_R8(tp, Config3) & ~Beacon_en); in rtl_hw_start_8168cp_2()
2759 RTL_W8(tp, Config3, RTL_R8(tp, Config3) & ~Beacon_en); in rtl_hw_start_8168cp_3()
2762 RTL_W8(tp, DBG_REG, 0x20); in rtl_hw_start_8168cp_3()
2775 RTL_W8(tp, DBG_REG, 0x06 | FIX_NAK_1 | FIX_NAK_2); in rtl_hw_start_8168c_1()
2859 RTL_W8(tp, Config5, RTL_R8(tp, Config5) & ~Spi_en); in rtl_hw_start_8168e_1()
2887 RTL_W8(tp, MCU, RTL_R8(tp, MCU) & ~NOW_IS_OOB); in rtl_hw_start_8168e_2()
2891 RTL_W8(tp, DLLPR, RTL_R8(tp, DLLPR) | PFM_EN); in rtl_hw_start_8168e_2()
2893 RTL_W8(tp, Config5, RTL_R8(tp, Config5) & ~Spi_en); in rtl_hw_start_8168e_2()
2913 RTL_W8(tp, MCU, RTL_R8(tp, MCU) & ~NOW_IS_OOB); in rtl_hw_start_8168f()
2914 RTL_W8(tp, DLLPR, RTL_R8(tp, DLLPR) | PFM_EN); in rtl_hw_start_8168f()
2916 RTL_W8(tp, Config5, RTL_R8(tp, Config5) & ~Spi_en); in rtl_hw_start_8168f()
3214 RTL_W8(tp, DLLPR, RTL_R8(tp, DLLPR) & ~PFM_EN); in rtl_hw_start_8168h_1()
3215 RTL_W8(tp, MISC_1, RTL_R8(tp, MISC_1) & ~PFM_D3COLD_EN); in rtl_hw_start_8168h_1()
3217 RTL_W8(tp, DLLPR, RTL_R8(tp, DLLPR) & ~TX_10M_PS_EN); in rtl_hw_start_8168h_1()
3269 RTL_W8(tp, DLLPR, RTL_R8(tp, DLLPR) & ~TX_10M_PS_EN); in rtl_hw_start_8168ep()
3307 RTL_W8(tp, DLLPR, RTL_R8(tp, DLLPR) & ~PFM_EN); in rtl_hw_start_8168ep_2()
3308 RTL_W8(tp, MISC_1, RTL_R8(tp, MISC_1) & ~PFM_D3COLD_EN); in rtl_hw_start_8168ep_2()
3328 RTL_W8(tp, DLLPR, RTL_R8(tp, DLLPR) & ~PFM_EN); in rtl_hw_start_8168ep_3()
3329 RTL_W8(tp, MISC_1, RTL_R8(tp, MISC_1) & ~PFM_D3COLD_EN); in rtl_hw_start_8168ep_3()
3370 RTL_W8(tp, DLLPR, RTL_R8(tp, DLLPR) & ~PFM_EN); in rtl_hw_start_8117()
3371 RTL_W8(tp, MISC_1, RTL_R8(tp, MISC_1) & ~PFM_D3COLD_EN); in rtl_hw_start_8117()
3373 RTL_W8(tp, DLLPR, RTL_R8(tp, DLLPR) & ~TX_10M_PS_EN); in rtl_hw_start_8117()
3419 RTL_W8(tp, DBG_REG, FIX_NAK_1); in rtl_hw_start_8102e_1()
3421 RTL_W8(tp, Config1, in rtl_hw_start_8102e_1()
3423 RTL_W8(tp, Config3, RTL_R8(tp, Config3) & ~Beacon_en); in rtl_hw_start_8102e_1()
3427 RTL_W8(tp, Config1, cfg1 & ~LEDS0); in rtl_hw_start_8102e_1()
3436 RTL_W8(tp, Config1, MEMMAP | IOMAP | VPD | PMEnable); in rtl_hw_start_8102e_2()
3437 RTL_W8(tp, Config3, RTL_R8(tp, Config3) & ~Beacon_en); in rtl_hw_start_8102e_2()
3457 RTL_W8(tp, Config3, RTL_R8(tp, Config3) & ~Beacon_en); in rtl_hw_start_8401()
3479 RTL_W8(tp, MCU, RTL_R8(tp, MCU) | EN_NDP | EN_OOB_RESET); in rtl_hw_start_8105e_1()
3480 RTL_W8(tp, DLLPR, RTL_R8(tp, DLLPR) | PFM_EN); in rtl_hw_start_8105e_1()
3505 RTL_W8(tp, MCU, RTL_R8(tp, MCU) & ~NOW_IS_OOB); in rtl_hw_start_8402()
3529 RTL_W8(tp, MCU, RTL_R8(tp, MCU) | EN_NDP | EN_OOB_RESET); in rtl_hw_start_8106()
3530 RTL_W8(tp, DLLPR, RTL_R8(tp, DLLPR) & ~PFM_EN); in rtl_hw_start_8106()
3551 RTL_W8(tp, 0x4500, 0); in rtl_hw_start_8125_common()
3557 RTL_W8(tp, Config1, RTL_R8(tp, Config1) & ~0x10); in rtl_hw_start_8125_common()
3768 RTL_W8(tp, MaxTxPacketSize, EarlySize); in rtl_hw_start_8168()
3770 RTL_W8(tp, MaxTxPacketSize, TxPacketMax); in rtl_hw_start_8168()
3780 RTL_W8(tp, EarlyTxThres, NoEarlyTx); in rtl_hw_start_8169()
3818 RTL_W8(tp, ChipCmd, CmdTxEnb | CmdRxEnb); in rtl_hw_start()
3986 RTL_W8(tp, ChipCmd, RTL_R8(tp, ChipCmd) | StopReq); in rtl8169_cleanup()
3994 RTL_W8(tp, ChipCmd, RTL_R8(tp, ChipCmd) | StopReq); in rtl8169_cleanup()
4199 RTL_W8(tp, TxPoll, NPQ); in rtl8169_doorbell()
4922 RTL_W8(tp, ChipCmd, CmdRxEnb); in rtl_wol_shutdown_quirk()
5010 RTL_W8(tp, Config2, RTL_R8(tp, Config2) & ~MSIEnable); in rtl_alloc_irq()
5122 RTL_W8(tp, ChipCmd, RTL_R8(tp, ChipCmd) & ~(CmdTxEnb | CmdRxEnb)); in rtl_hw_init_8168g()
5124 RTL_W8(tp, MCU, RTL_R8(tp, MCU) & ~NOW_IS_OOB); in rtl_hw_init_8168g()
5137 RTL_W8(tp, ChipCmd, RTL_R8(tp, ChipCmd) & ~(CmdTxEnb | CmdRxEnb)); in rtl_hw_init_8125()
5139 RTL_W8(tp, MCU, RTL_R8(tp, MCU) & ~NOW_IS_OOB); in rtl_hw_init_8125()