Lines Matching refs:tw32_carefully

112 static void tw32_carefully(uint32_t reg, uint32_t val)  in tw32_carefully()  function
162 tw32_carefully(TG3PCI_CLOCK_CTRL, in tg3_switch_clocks()
164 tw32_carefully(TG3PCI_CLOCK_CTRL, in tg3_switch_clocks()
167 tw32_carefully(TG3PCI_CLOCK_CTRL, clock_ctrl); in tg3_switch_clocks()
177 tw32_carefully(MAC_MI_MODE, tp->mi_mode & ~MAC_MI_MODE_AUTO_POLL); in tg3_readphy()
187 tw32_carefully(MAC_MI_COM, frame_val); in tg3_readphy()
207 tw32_carefully(MAC_MI_MODE, tp->mi_mode); in tg3_readphy()
217 tw32_carefully(MAC_MI_MODE, tp->mi_mode & ~MAC_MI_MODE_AUTO_POLL); in tg3_writephy()
226 tw32_carefully(MAC_MI_COM, frame_val); in tg3_writephy()
243 tw32_carefully(MAC_MI_MODE, tp->mi_mode); in tg3_writephy()
512 tw32_carefully(GRC_LOCAL_CTRL, tp->grc_local_ctrl); in tg3_set_power_state_0()
678 tw32_carefully(MAC_STATUS, in tg3_setup_copper_phy()
682 tw32_carefully(MAC_MI_MODE, tp->mi_mode); in tg3_setup_copper_phy()
855 tw32_carefully(MAC_MI_MODE, tp->mi_mode); in tg3_setup_copper_phy()
858 tw32_carefully(MAC_MODE, tp->mac_mode); in tg3_setup_copper_phy()
861 tw32_carefully(MAC_EVENT, 0); in tg3_setup_copper_phy()
869 tw32_carefully(MAC_STATUS, in tg3_setup_copper_phy()
1032 tw32_carefully(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
1056 tw32_carefully(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
1071 tw32_carefully(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
1156 tw32_carefully(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
1212 tw32_carefully(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_phy()
1254 tw32_carefully(MAC_EVENT, 0); in tg3_setup_fiber_phy()
1270 tw32_carefully(MAC_MODE, tmp | MAC_MODE_PORT_MODE_GMII); in tg3_setup_fiber_phy()
1272 tw32_carefully(MAC_MODE, tp->mac_mode | MAC_MODE_SEND_CONFIGS); in tg3_setup_fiber_phy()
1287 tw32_carefully(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_phy()
1310 tw32_carefully(MAC_STATUS, in tg3_setup_fiber_phy()
1328 tw32_carefully(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_phy()
1336 tw32_carefully(MAC_STATUS, in tg3_setup_fiber_phy()
1369 tw32_carefully(MAC_MODE, tp->mac_mode | MAC_MODE_LINK_POLARITY); in tg3_setup_fiber_phy()
1371 tw32_carefully(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_phy()
1460 tw32_carefully(MAC_RX_MODE, tp->rx_mode); in tg3_abort_hw()
1479 tw32_carefully(MAC_MODE, tp->mac_mode); in tg3_abort_hw()
1482 tw32_carefully(MAC_TX_MODE, tp->tx_mode); in tg3_abort_hw()
1782 tw32_carefully(MAC_MODE, tp->mac_mode); in tg3_setup_hw()
1790 tw32_carefully(TG3PCI_CLOCK_CTRL, tp->pci_clock_ctrl); in tg3_setup_hw()
2019 tw32_carefully(MAC_MODE, tp->mac_mode | MAC_MODE_RXSTAT_CLEAR | MAC_MODE_TXSTAT_CLEAR); in tg3_setup_hw()
2025 tw32_carefully(GRC_LOCAL_CTRL, tp->grc_local_ctrl); in tg3_setup_hw()
2031 tw32_carefully(DMAC_MODE, DMAC_MODE_ENABLE); in tg3_setup_hw()
2044 tw32_carefully(WDMAC_MODE, val); in tg3_setup_hw()
2061 tw32_carefully(RDMAC_MODE, rdmac_mode); in tg3_setup_hw()
2146 tw32_carefully(MAC_TX_MODE, tp->tx_mode); in tg3_setup_hw()
2149 tw32_carefully(MAC_RX_MODE, tp->rx_mode); in tg3_setup_hw()
2152 tw32_carefully(MAC_MI_MODE, tp->mi_mode); in tg3_setup_hw()
2157 tw32_carefully(MAC_RX_MODE, RX_MODE_RESET); in tg3_setup_hw()
2160 tw32_carefully(MAC_RX_MODE, tp->rx_mode); in tg3_setup_hw()
2224 tw32_carefully(GRC_LOCAL_CTRL, in tg3_nvram_init()
2742 tw32_carefully(MAC_MI_MODE, tp->mi_mode); in tg3_get_invariants()
2955 tw32_carefully(MAC_MODE, tp->mac_mode & ~MAC_MODE_PORT_MODE_MASK); in tg3_poll_link()
2956 tw32_carefully(MAC_MODE, tp->mac_mode); in tg3_poll_link()