Lines Matching refs:tw32
620 #define tw32(reg, val) tp->write32(tp, reg, val) macro
1001 tw32(TG3PCI_MISC_HOST_CTRL, in tg3_disable_ints()
1014 tw32(TG3PCI_MISC_HOST_CTRL, in tg3_enable_ints()
1031 tw32(GRC_LOCAL_CTRL, tp->grc_local_ctrl | GRC_LCLCTRL_SETINT); in tg3_enable_ints()
1033 tw32(HOSTCC_MODE, tp->coal_now); in tg3_enable_ints()
1078 tw32(HOSTCC_MODE, tp->coalesce_mode | in tg3_int_reenable()
1437 tw32(MAC_PHYCFG2, val); in tg3_mdio_config_5785()
1443 tw32(MAC_PHYCFG1, val); in tg3_mdio_config_5785()
1456 tw32(MAC_PHYCFG2, val); in tg3_mdio_config_5785()
1469 tw32(MAC_PHYCFG1, val); in tg3_mdio_config_5785()
1490 tw32(MAC_EXT_RGMII_MODE, val); in tg3_mdio_config_5785()
2049 tw32(MAC_MI_STAT, in tg3_adjust_link()
2053 tw32(MAC_MI_STAT, MAC_MI_STAT_LNKSTAT_ATTN_ENAB); in tg3_adjust_link()
2057 tw32(MAC_TX_LENGTHS, in tg3_adjust_link()
2062 tw32(MAC_TX_LENGTHS, in tg3_adjust_link()
2402 tw32(TG3_CPMU_EEE_CTRL, eeectl); in tg3_phy_eee_adjust()
2417 tw32(TG3_CPMU_EEE_MODE, val & ~TG3_CPMU_EEEMD_LPI_ENABLE); in tg3_phy_eee_adjust()
2437 tw32(TG3_CPMU_EEE_MODE, val | TG3_CPMU_EEEMD_LPI_ENABLE); in tg3_phy_eee_enable()
2662 tw32(TG3_CPMU_CTRL, in tg3_phy_reset()
2674 tw32(TG3_CPMU_CTRL, cpmuctrl); in tg3_phy_reset()
2803 tw32(TG3_CPMU_DRV_STATUS, status); in tg3_set_function_status()
3069 tw32(SG_DIG_CTRL, sg_dig_ctrl); in tg3_power_down_phy()
3070 tw32(MAC_SERDES_CFG, serdes_cfg | (1 << 15)); in tg3_power_down_phy()
3136 tw32(NVRAM_SWARB, SWARB_REQ_SET1); in tg3_nvram_lock()
3143 tw32(NVRAM_SWARB, SWARB_REQ_CLR1); in tg3_nvram_lock()
3169 tw32(NVRAM_ACCESS, nvaccess | ACCESS_ENABLE); in tg3_enable_nvram_access()
3179 tw32(NVRAM_ACCESS, nvaccess & ~ACCESS_ENABLE); in tg3_disable_nvram_access()
3195 tw32(GRC_EEPROM_ADDR, in tg3_nvram_read_using_eeprom()
3229 tw32(NVRAM_CMD, nvram_cmd); in tg3_nvram_exec_cmd()
3298 tw32(NVRAM_ADDR, offset); in tg3_nvram_read()
3342 tw32(GRC_EEPROM_DATA, swab32(be32_to_cpu(data))); in tg3_nvram_write_block_using_eeprom()
3345 tw32(GRC_EEPROM_ADDR, val | EEPROM_ADDR_COMPLETE); in tg3_nvram_write_block_using_eeprom()
3349 tw32(GRC_EEPROM_ADDR, val | in tg3_nvram_write_block_using_eeprom()
3423 tw32(NVRAM_ADDR, phy_addr); in tg3_nvram_write_block_unbuffered()
3442 tw32(NVRAM_WRDATA, be32_to_cpu(data)); in tg3_nvram_write_block_unbuffered()
3444 tw32(NVRAM_ADDR, phy_addr + j); in tg3_nvram_write_block_unbuffered()
3481 tw32(NVRAM_WRDATA, be32_to_cpu(data)); in tg3_nvram_write_block_buffered()
3500 tw32(NVRAM_ADDR, phy_addr); in tg3_nvram_write_block_buffered()
3547 tw32(NVRAM_WRITE1, 0x406); in tg3_nvram_write_block()
3550 tw32(GRC_MODE, grc_mode | GRC_MODE_NVRAM_WR_ENABLE); in tg3_nvram_write_block()
3561 tw32(GRC_MODE, grc_mode & ~GRC_MODE_NVRAM_WR_ENABLE); in tg3_nvram_write_block()
3587 tw32(cpu_base + CPU_STATE, 0xffffffff); in tg3_pause_cpu()
3588 tw32(cpu_base + CPU_MODE, CPU_MODE_HALT); in tg3_pause_cpu()
3603 tw32(RX_CPU_BASE + CPU_STATE, 0xffffffff); in tg3_rxcpu_pause()
3619 tw32(cpu_base + CPU_STATE, 0xffffffff); in tg3_resume_cpu()
3639 tw32(GRC_VCPU_EXT_CTRL, val | GRC_VCPU_EXT_CTRL_HALT_CPU); in tg3_halt_cpu()
3663 tw32(NVRAM_SWARB, SWARB_REQ_CLR0); in tg3_halt_cpu()
3728 tw32(cpu_base + CPU_STATE, 0xffffffff); in tg3_load_firmware_cpu()
3729 tw32(cpu_base + CPU_MODE, in tg3_load_firmware_cpu()
3766 tw32(cpu_base + CPU_STATE, 0xffffffff); in tg3_pause_cpu_and_set_pc()
3772 tw32(cpu_base + CPU_STATE, 0xffffffff); in tg3_pause_cpu_and_set_pc()
3773 tw32(cpu_base + CPU_MODE, CPU_MODE_HALT); in tg3_pause_cpu_and_set_pc()
3956 tw32(MAC_ADDR_0_HIGH + (index * 8), addr_high); in __tg3_set_one_mac_addr()
3957 tw32(MAC_ADDR_0_LOW + (index * 8), addr_low); in __tg3_set_one_mac_addr()
3960 tw32(MAC_EXTADDR_0_HIGH + (index * 8), addr_high); in __tg3_set_one_mac_addr()
3961 tw32(MAC_EXTADDR_0_LOW + (index * 8), addr_low); in __tg3_set_one_mac_addr()
3990 tw32(MAC_TX_BACKOFF_SEED, addr_high); in __tg3_set_mac_addr()
4035 tw32(TG3PCI_MISC_HOST_CTRL, in tg3_power_down_prepare()
4108 tw32(GRC_VCPU_EXT_CTRL, val | GRC_VCPU_EXT_CTRL_DISABLE_WOL); in tg3_power_down_prepare()
4165 tw32(MAC_LED_CTRL, tp->led_ctrl); in tg3_power_down_prepare()
4251 tw32(0x7d00, val); in tg3_power_down_prepare()
4350 tw32(TG3_CPMU_EEE_MODE, in tg3_phy_autoneg_cfg()
4728 tw32(MAC_EVENT, 0); in tg3_clear_mac_status()
5018 tw32(MAC_LED_CTRL, led_ctrl); in tg3_setup_copper_phy()
5230 tw32(MAC_TX_AUTO_NEG, 0); in tg3_fiber_aneg_smachine()
5259 tw32(MAC_TX_AUTO_NEG, ap->txconfig); in tg3_fiber_aneg_smachine()
5274 tw32(MAC_TX_AUTO_NEG, ap->txconfig); in tg3_fiber_aneg_smachine()
5787 tw32(MAC_LED_CTRL, (tp->led_ctrl | in tg3_setup_fiber_phy()
5793 tw32(MAC_LED_CTRL, (tp->led_ctrl | in tg3_setup_fiber_phy()
6088 tw32(GRC_MISC_CFG, val); in tg3_setup_phy()
6101 tw32(MAC_TX_LENGTHS, val | in tg3_setup_phy()
6104 tw32(MAC_TX_LENGTHS, val | in tg3_setup_phy()
6109 tw32(HOSTCC_STAT_COAL_TICKS, in tg3_setup_phy()
6112 tw32(HOSTCC_STAT_COAL_TICKS, 0); in tg3_setup_phy()
6123 tw32(PCIE_PWR_MGMT_THRESH, val); in tg3_setup_phy()
6147 tw32(TG3_EAV_REF_CLCK_CTL, clock_ctl | TG3_EAV_REF_CLCK_CTL_STOP); in tg3_refclk_write()
6148 tw32(TG3_EAV_REF_CLCK_LSB, newval & 0xffffffff); in tg3_refclk_write()
6149 tw32(TG3_EAV_REF_CLCK_MSB, newval >> 32); in tg3_refclk_write()
6199 tw32(TG3_EAV_REF_CLK_CORRECT_CTL, in tg3_ptp_adjfine()
6204 tw32(TG3_EAV_REF_CLK_CORRECT_CTL, 0); in tg3_ptp_adjfine()
6294 tw32(TG3_EAV_WATCHDOG0_LSB, (nsec & 0xffffffff)); in tg3_ptp_enable()
6295 tw32(TG3_EAV_WATCHDOG0_MSB, in tg3_ptp_enable()
6299 tw32(TG3_EAV_REF_CLCK_CTL, in tg3_ptp_enable()
6302 tw32(TG3_EAV_WATCHDOG0_MSB, 0); in tg3_ptp_enable()
6303 tw32(TG3_EAV_REF_CLCK_CTL, clock_ctl); in tg3_ptp_enable()
7266 tw32(HOSTCC_MODE, tp->coalesce_mode | in tg3_poll_msix()
8187 tw32(MAC_MODE, tp->mac_mode); in tg3_mac_loopback()
8278 tw32(MAC_MODE, mac_mode); in tg3_phy_lpbk_set()
8927 tw32(FTQ_RESET, 0xffffffff); in tg3_abort_hw()
8928 tw32(FTQ_RESET, 0x00000000); in tg3_abort_hw()
9005 tw32(MSGINT_MODE, val | MSGINT_MODE_ENABLE); in tg3_restore_pci_state()
9017 tw32(TG3_CPMU_CLCK_ORIDE_ENABLE, val | in tg3_override_clk()
9023 tw32(TG3_CPMU_CLCK_ORIDE, CPMU_CLCK_ORIDE_MAC_ORIDE_EN); in tg3_override_clk()
9038 tw32(TG3_CPMU_CLCK_ORIDE_ENABLE, in tg3_restore_clk()
9045 tw32(TG3_CPMU_CLCK_ORIDE, val & ~CPMU_CLCK_ORIDE_MAC_ORIDE_EN); in tg3_restore_clk()
9082 tw32(GRC_FASTBOOT_PC, 0); in tg3_chip_reset()
9121 tw32(TG3_PCIE_LNKCTL, val | TG3_PCIE_LNKCTL_L1_PLL_PD_DIS); in tg3_chip_reset()
9133 tw32(TG3_PCIE_PHY_TSTCTL, TG3_PCIE_PHY_TSTCTL_PSCRAM); in tg3_chip_reset()
9136 tw32(GRC_MISC_CFG, (1 << 29)); in tg3_chip_reset()
9142 tw32(VCPU_STATUS, tr32(VCPU_STATUS) | VCPU_STATUS_DRV_RESET); in tg3_chip_reset()
9143 tw32(GRC_VCPU_EXT_CTRL, in tg3_chip_reset()
9158 tw32(GRC_MISC_CFG, val); in tg3_chip_reset()
9230 tw32(MEMARB_MODE, val | MEMARB_MODE_ENABLE); in tg3_chip_reset()
9234 tw32(0x5000, 0x400); in tg3_chip_reset()
9251 tw32(GRC_MODE, tp->grc_mode); in tg3_chip_reset()
9256 tw32(0xc4, val | (1 << 15)); in tg3_chip_reset()
9264 tw32(TG3PCI_CLOCK_CTRL, tp->pci_clock_ctrl); in tg3_chip_reset()
9289 tw32(0x7c00, val | (1 << 25)); in tg3_chip_reset()
9299 tw32(TG3_CPMU_CLCK_ORIDE_ENABLE, val | in tg3_chip_reset()
9434 tw32(HOSTCC_TXCOL_TICKS, ec->tx_coalesce_usecs); in tg3_coal_tx_init()
9435 tw32(HOSTCC_TXMAX_FRAMES, ec->tx_max_coalesced_frames); in tg3_coal_tx_init()
9436 tw32(HOSTCC_TXCOAL_MAXF_INT, ec->tx_max_coalesced_frames_irq); in tg3_coal_tx_init()
9438 tw32(HOSTCC_TXCOL_TICKS, 0); in tg3_coal_tx_init()
9439 tw32(HOSTCC_TXMAX_FRAMES, 0); in tg3_coal_tx_init()
9440 tw32(HOSTCC_TXCOAL_MAXF_INT, 0); in tg3_coal_tx_init()
9446 tw32(reg, ec->tx_coalesce_usecs); in tg3_coal_tx_init()
9448 tw32(reg, ec->tx_max_coalesced_frames); in tg3_coal_tx_init()
9450 tw32(reg, ec->tx_max_coalesced_frames_irq); in tg3_coal_tx_init()
9455 tw32(HOSTCC_TXCOL_TICKS_VEC1 + i * 0x18, 0); in tg3_coal_tx_init()
9456 tw32(HOSTCC_TXMAX_FRAMES_VEC1 + i * 0x18, 0); in tg3_coal_tx_init()
9457 tw32(HOSTCC_TXCOAL_MAXF_INT_VEC1 + i * 0x18, 0); in tg3_coal_tx_init()
9467 tw32(HOSTCC_RXCOL_TICKS, ec->rx_coalesce_usecs); in tg3_coal_rx_init()
9468 tw32(HOSTCC_RXMAX_FRAMES, ec->rx_max_coalesced_frames); in tg3_coal_rx_init()
9469 tw32(HOSTCC_RXCOAL_MAXF_INT, ec->rx_max_coalesced_frames_irq); in tg3_coal_rx_init()
9472 tw32(HOSTCC_RXCOL_TICKS, 0); in tg3_coal_rx_init()
9473 tw32(HOSTCC_RXMAX_FRAMES, 0); in tg3_coal_rx_init()
9474 tw32(HOSTCC_RXCOAL_MAXF_INT, 0); in tg3_coal_rx_init()
9481 tw32(reg, ec->rx_coalesce_usecs); in tg3_coal_rx_init()
9483 tw32(reg, ec->rx_max_coalesced_frames); in tg3_coal_rx_init()
9485 tw32(reg, ec->rx_max_coalesced_frames_irq); in tg3_coal_rx_init()
9489 tw32(HOSTCC_RXCOL_TICKS_VEC1 + i * 0x18, 0); in tg3_coal_rx_init()
9490 tw32(HOSTCC_RXMAX_FRAMES_VEC1 + i * 0x18, 0); in tg3_coal_rx_init()
9491 tw32(HOSTCC_RXCOAL_MAXF_INT_VEC1 + i * 0x18, 0); in tg3_coal_rx_init()
9503 tw32(HOSTCC_RXCOAL_TICK_INT, ec->rx_coalesce_usecs_irq); in __tg3_set_coalesce()
9504 tw32(HOSTCC_TXCOAL_TICK_INT, ec->tx_coalesce_usecs_irq); in __tg3_set_coalesce()
9509 tw32(HOSTCC_STAT_COAL_TICKS, val); in __tg3_set_coalesce()
9650 tw32(HOSTCC_STATUS_BLK_HOST_ADDR + TG3_64BIT_REG_HIGH, in tg3_rings_reset()
9652 tw32(HOSTCC_STATUS_BLK_HOST_ADDR + TG3_64BIT_REG_LOW, in tg3_rings_reset()
9659 tw32(stblk + TG3_64BIT_REG_HIGH, mapping >> 32); in tg3_rings_reset()
9660 tw32(stblk + TG3_64BIT_REG_LOW, mapping & 0xffffffff); in tg3_rings_reset()
9691 tw32(RCVBDI_STD_THRESH, val); in tg3_setup_rxbd_thresholds()
9694 tw32(STD_REPLENISH_LWM, bdcache_maxcnt); in tg3_setup_rxbd_thresholds()
9704 tw32(RCVBDI_JUMBO_THRESH, val); in tg3_setup_rxbd_thresholds()
9707 tw32(JMB_REPLENISH_LWM, bdcache_maxcnt); in tg3_setup_rxbd_thresholds()
9737 tw32(MAC_HASH_REG_0, accept_all ? 0xffffffff : 0); in tg3_set_multi()
9738 tw32(MAC_HASH_REG_1, accept_all ? 0xffffffff : 0); in tg3_set_multi()
9739 tw32(MAC_HASH_REG_2, accept_all ? 0xffffffff : 0); in tg3_set_multi()
9740 tw32(MAC_HASH_REG_3, accept_all ? 0xffffffff : 0); in tg3_set_multi()
9784 tw32(MAC_HASH_REG_0, mc_filter[0]); in __tg3_set_rx_mode()
9785 tw32(MAC_HASH_REG_1, mc_filter[1]); in __tg3_set_rx_mode()
9786 tw32(MAC_HASH_REG_2, mc_filter[2]); in __tg3_set_rx_mode()
9787 tw32(MAC_HASH_REG_3, mc_filter[3]); in __tg3_set_rx_mode()
9853 tw32(reg, val); in tg3_rss_write_indir_tbl()
9905 tw32(TG3_CPMU_CTRL, val); in tg3_reset_hw()
9910 tw32(TG3_CPMU_LSPD_10MB_CLK, val); in tg3_reset_hw()
9915 tw32(TG3_CPMU_LNK_AWARE_PWRMD, val); in tg3_reset_hw()
9920 tw32(TG3_CPMU_HST_ACC, val); in tg3_reset_hw()
9927 tw32(PCIE_PWR_MGMT_THRESH, val); in tg3_reset_hw()
9930 tw32(TG3_PCIE_EIDLE_DELAY, val | TG3_PCIE_EIDLE_DELAY_13_CLKS); in tg3_reset_hw()
9932 tw32(TG3_CORR_ERR_STAT, TG3_CORR_ERR_STAT_CLEAR); in tg3_reset_hw()
9935 tw32(TG3_PCIE_LNKCTL, val | TG3_PCIE_LNKCTL_L1_PLL_PD_DIS); in tg3_reset_hw()
9943 tw32(GRC_MODE, val | GRC_MODE_PCIE_PL_SEL); in tg3_reset_hw()
9946 tw32(TG3_PCIE_TLDLPL_PORT + TG3_PCIE_PL_LO_PHYCTL1, in tg3_reset_hw()
9949 tw32(GRC_MODE, grc_mode); in tg3_reset_hw()
9958 tw32(GRC_MODE, val | GRC_MODE_PCIE_PL_SEL); in tg3_reset_hw()
9962 tw32(TG3_PCIE_TLDLPL_PORT + TG3_PCIE_PL_LO_PHYCTL5, in tg3_reset_hw()
9965 tw32(GRC_MODE, grc_mode); in tg3_reset_hw()
9974 tw32(TG3_CPMU_PADRNG_CTL, val); in tg3_reset_hw()
9980 tw32(GRC_MODE, val | GRC_MODE_PCIE_DL_SEL); in tg3_reset_hw()
9985 tw32(TG3_PCIE_TLDLPL_PORT + TG3_PCIE_DL_LO_FTSMAX, in tg3_reset_hw()
9988 tw32(GRC_MODE, grc_mode); in tg3_reset_hw()
9994 tw32(TG3_CPMU_LSPD_10MB_CLK, val); in tg3_reset_hw()
10012 tw32(TG3PCI_PCISTATE, val); in tg3_reset_hw()
10023 tw32(TG3PCI_PCISTATE, val); in tg3_reset_hw()
10030 tw32(TG3PCI_MSI_DATA, val); in tg3_reset_hw()
10051 tw32(TG3PCI_DMA_RW_CTRL, val | tp->dma_rwctrl); in tg3_reset_hw()
10057 tw32(TG3PCI_DMA_RW_CTRL, tp->dma_rwctrl); in tg3_reset_hw()
10076 tw32(TG3_RX_PTP_CTL, in tg3_reset_hw()
10082 tw32(GRC_MODE, tp->grc_mode | val); in tg3_reset_hw()
10091 tw32(TG3PCI_DEV_STATUS_CTRL, val | MAX_READ_REQ_SIZE_2048); in tg3_reset_hw()
10098 tw32(GRC_MISC_CFG, val); in tg3_reset_hw()
10104 tw32(BUFMGR_MB_POOL_ADDR, NIC_SRAM_MBUF_POOL_BASE); in tg3_reset_hw()
10106 tw32(BUFMGR_MB_POOL_SIZE, NIC_SRAM_MBUF_POOL_SIZE64); in tg3_reset_hw()
10108 tw32(BUFMGR_MB_POOL_SIZE, NIC_SRAM_MBUF_POOL_SIZE96); in tg3_reset_hw()
10109 tw32(BUFMGR_DMA_DESC_POOL_ADDR, NIC_SRAM_DMA_DESC_POOL_BASE); in tg3_reset_hw()
10110 tw32(BUFMGR_DMA_DESC_POOL_SIZE, NIC_SRAM_DMA_DESC_POOL_SIZE); in tg3_reset_hw()
10116 tw32(BUFMGR_MB_POOL_ADDR, in tg3_reset_hw()
10118 tw32(BUFMGR_MB_POOL_SIZE, in tg3_reset_hw()
10123 tw32(BUFMGR_MB_RDMA_LOW_WATER, in tg3_reset_hw()
10125 tw32(BUFMGR_MB_MACRX_LOW_WATER, in tg3_reset_hw()
10127 tw32(BUFMGR_MB_HIGH_WATER, in tg3_reset_hw()
10130 tw32(BUFMGR_MB_RDMA_LOW_WATER, in tg3_reset_hw()
10132 tw32(BUFMGR_MB_MACRX_LOW_WATER, in tg3_reset_hw()
10134 tw32(BUFMGR_MB_HIGH_WATER, in tg3_reset_hw()
10137 tw32(BUFMGR_DMA_LOW_WATER, in tg3_reset_hw()
10139 tw32(BUFMGR_DMA_HIGH_WATER, in tg3_reset_hw()
10150 tw32(BUFMGR_MODE, val); in tg3_reset_hw()
10162 tw32(ISO_PKT_TX, (tr32(ISO_PKT_TX) & ~0x3) | 0x2); in tg3_reset_hw()
10183 tw32(RCVDBDI_STD_BD + TG3_BDINFO_HOST_ADDR + TG3_64BIT_REG_HIGH, in tg3_reset_hw()
10185 tw32(RCVDBDI_STD_BD + TG3_BDINFO_HOST_ADDR + TG3_64BIT_REG_LOW, in tg3_reset_hw()
10188 tw32(RCVDBDI_STD_BD + TG3_BDINFO_NIC_ADDR, in tg3_reset_hw()
10193 tw32(RCVDBDI_MINI_BD + TG3_BDINFO_MAXLEN_FLAGS, in tg3_reset_hw()
10203 tw32(RCVDBDI_JUMBO_BD + TG3_BDINFO_HOST_ADDR + TG3_64BIT_REG_HIGH, in tg3_reset_hw()
10205 tw32(RCVDBDI_JUMBO_BD + TG3_BDINFO_HOST_ADDR + TG3_64BIT_REG_LOW, in tg3_reset_hw()
10209 tw32(RCVDBDI_JUMBO_BD + TG3_BDINFO_MAXLEN_FLAGS, in tg3_reset_hw()
10214 tw32(RCVDBDI_JUMBO_BD + TG3_BDINFO_NIC_ADDR, in tg3_reset_hw()
10217 tw32(RCVDBDI_JUMBO_BD + TG3_BDINFO_MAXLEN_FLAGS, in tg3_reset_hw()
10230 tw32(RCVDBDI_STD_BD + TG3_BDINFO_MAXLEN_FLAGS, val); in tg3_reset_hw()
10245 tw32(MAC_RX_MTU_SIZE, in tg3_reset_hw()
10261 tw32(MAC_TX_LENGTHS, val); in tg3_reset_hw()
10264 tw32(MAC_RCV_RULE_CFG, RCV_RULE_CFG_DEFAULT_CLASS); in tg3_reset_hw()
10265 tw32(RCVLPC_CONFIG, 0x0181); in tg3_reset_hw()
10343 tw32(tgtreg, val | TG3_RDMA_RSRVCTRL_FIFO_OFLW_FIX); in tg3_reset_hw()
10357 tw32(tgtreg, val | in tg3_reset_hw()
10366 tw32(RCVLPC_STATS_ENABLE, val); in tg3_reset_hw()
10371 tw32(RCVLPC_STATS_ENABLE, val); in tg3_reset_hw()
10373 tw32(RCVLPC_STATS_ENABLE, 0xffffff); in tg3_reset_hw()
10375 tw32(RCVLPC_STATSCTRL, RCVLPC_STATSCTRL_ENABLE); in tg3_reset_hw()
10376 tw32(SNDDATAI_STATSENAB, 0xffffff); in tg3_reset_hw()
10377 tw32(SNDDATAI_STATSCTRL, in tg3_reset_hw()
10382 tw32(HOSTCC_MODE, 0); in tg3_reset_hw()
10396 tw32(HOSTCC_STATS_BLK_HOST_ADDR + TG3_64BIT_REG_HIGH, in tg3_reset_hw()
10398 tw32(HOSTCC_STATS_BLK_HOST_ADDR + TG3_64BIT_REG_LOW, in tg3_reset_hw()
10400 tw32(HOSTCC_STATS_BLK_NIC_ADDR, NIC_SRAM_STATS_BLK); in tg3_reset_hw()
10402 tw32(HOSTCC_STATUS_BLK_NIC_ADDR, NIC_SRAM_STATUS_BLK); in tg3_reset_hw()
10413 tw32(HOSTCC_MODE, HOSTCC_MODE_ENABLE | tp->coalesce_mode); in tg3_reset_hw()
10415 tw32(RCVCC_MODE, RCVCC_MODE_ENABLE | RCVCC_MODE_ATTN_ENABLE); in tg3_reset_hw()
10416 tw32(RCVLPC_MODE, RCVLPC_MODE_ENABLE); in tg3_reset_hw()
10418 tw32(RCVLSC_MODE, RCVLSC_MODE_ENABLE | RCVLSC_MODE_ATTN_ENABLE); in tg3_reset_hw()
10477 tw32(MSGINT_MODE, val); in tg3_reset_hw()
10541 tw32(TG3_LSO_RD_DMA_CRPTEN_CTRL, val); in tg3_reset_hw()
10546 tw32(RCVDCC_MODE, RCVDCC_MODE_ENABLE | RCVDCC_MODE_ATTN_ENABLE); in tg3_reset_hw()
10548 tw32(MBFREE_MODE, MBFREE_MODE_ENABLE); in tg3_reset_hw()
10551 tw32(SNDDATAC_MODE, in tg3_reset_hw()
10554 tw32(SNDDATAC_MODE, SNDDATAC_MODE_ENABLE); in tg3_reset_hw()
10556 tw32(SNDBDC_MODE, SNDBDC_MODE_ENABLE | SNDBDC_MODE_ATTN_ENABLE); in tg3_reset_hw()
10557 tw32(RCVBDI_MODE, RCVBDI_MODE_ENABLE | RCVBDI_MODE_RCB_ATTN_ENAB); in tg3_reset_hw()
10561 tw32(RCVDBDI_MODE, val); in tg3_reset_hw()
10562 tw32(SNDDATAI_MODE, SNDDATAI_MODE_ENABLE); in tg3_reset_hw()
10566 tw32(SNDDATAI_MODE, SNDDATAI_MODE_ENABLE | 0x8); in tg3_reset_hw()
10570 tw32(SNDBDI_MODE, val); in tg3_reset_hw()
10571 tw32(SNDBDS_MODE, SNDBDS_MODE_ENABLE | SNDBDS_MODE_ATTN_ENABLE); in tg3_reset_hw()
10616 tw32(MAC_RSS_HASH_KEY_0 + i*4, rss_key[i]); in tg3_reset_hw()
10637 tw32(MAC_LED_CTRL, tp->led_ctrl); in tg3_reset_hw()
10639 tw32(MAC_MI_STAT, MAC_MI_STAT_LNKSTAT_ATTN_ENAB); in tg3_reset_hw()
10655 tw32(MAC_SERDES_CFG, val); in tg3_reset_hw()
10658 tw32(MAC_SERDES_CFG, 0x616000); in tg3_reset_hw()
10681 tw32(SERDES_RX_CTRL, tmp | SERDES_RX_SIG_DETECT); in tg3_reset_hw()
10684 tw32(GRC_LOCAL_CTRL, tp->grc_local_ctrl); in tg3_reset_hw()
10711 tw32(MAC_RCV_RULE_0, 0xc2000000 & RCV_RULE_DISABLE_MASK); in tg3_reset_hw()
10712 tw32(MAC_RCV_VALUE_0, 0xffffffff & RCV_RULE_DISABLE_MASK); in tg3_reset_hw()
10713 tw32(MAC_RCV_RULE_1, 0x86000004 & RCV_RULE_DISABLE_MASK); in tg3_reset_hw()
10714 tw32(MAC_RCV_VALUE_1, 0xffffffff & RCV_RULE_DISABLE_MASK); in tg3_reset_hw()
10724 tw32(MAC_RCV_RULE_15, 0); tw32(MAC_RCV_VALUE_15, 0); in tg3_reset_hw()
10727 tw32(MAC_RCV_RULE_14, 0); tw32(MAC_RCV_VALUE_14, 0); in tg3_reset_hw()
10730 tw32(MAC_RCV_RULE_13, 0); tw32(MAC_RCV_VALUE_13, 0); in tg3_reset_hw()
10733 tw32(MAC_RCV_RULE_12, 0); tw32(MAC_RCV_VALUE_12, 0); in tg3_reset_hw()
10736 tw32(MAC_RCV_RULE_11, 0); tw32(MAC_RCV_VALUE_11, 0); in tg3_reset_hw()
10739 tw32(MAC_RCV_RULE_10, 0); tw32(MAC_RCV_VALUE_10, 0); in tg3_reset_hw()
10742 tw32(MAC_RCV_RULE_9, 0); tw32(MAC_RCV_VALUE_9, 0); in tg3_reset_hw()
10745 tw32(MAC_RCV_RULE_8, 0); tw32(MAC_RCV_VALUE_8, 0); in tg3_reset_hw()
10748 tw32(MAC_RCV_RULE_7, 0); tw32(MAC_RCV_VALUE_7, 0); in tg3_reset_hw()
10751 tw32(MAC_RCV_RULE_6, 0); tw32(MAC_RCV_VALUE_6, 0); in tg3_reset_hw()
10754 tw32(MAC_RCV_RULE_5, 0); tw32(MAC_RCV_VALUE_5, 0); in tg3_reset_hw()
10757 tw32(MAC_RCV_RULE_4, 0); tw32(MAC_RCV_VALUE_4, 0); in tg3_reset_hw()
10794 tw32(TG3PCI_MEM_WIN_BASE_ADDR, 0); in tg3_init_hw()
10920 tw32(TG3_LSO_RD_DMA_CRPTEN_CTRL, val); in tg3_periodic_fetch_stats()
10949 tw32(HOSTCC_FLOW_ATTN, HOSTCC_FLOW_ATTN_MBUF_LWM); in tg3_periodic_fetch_stats()
11008 tw32(GRC_LOCAL_CTRL, in tg3_timer()
11011 tw32(HOSTCC_MODE, tp->coalesce_mode | in tg3_timer()
11296 tw32(MSGINT_MODE, val); in tg3_test_interrupt()
11342 tw32(MSGINT_MODE, val); in tg3_test_interrupt()
11540 tw32(MSGINT_MODE, msi_mode | MSGINT_MODE_ENABLE); in tg3_ints_init()
11636 tw32(PCIE_TRANSACTION_CFG, in tg3_start()
12040 tw32(TG3_CPMU_CTRL, cpmu_val & in tg3_get_eeprom()
12104 tw32(TG3_CPMU_CTRL, cpmu_val); in tg3_get_eeprom()
12793 tw32(MAC_LED_CTRL, LED_CTRL_LNKLED_OVERRIDE | in tg3_set_phys_id()
12803 tw32(MAC_LED_CTRL, LED_CTRL_LNKLED_OVERRIDE | in tg3_set_phys_id()
12808 tw32(MAC_LED_CTRL, tp->led_ctrl); in tg3_set_phys_id()
13264 tw32(offset, 0); in tg3_test_registers()
13276 tw32(offset, read_mask | write_mask); in tg3_test_registers()
13288 tw32(offset, save_val); in tg3_test_registers()
13297 tw32(offset, save_val); in tg3_test_registers()
13447 tw32(MAC_RX_MTU_SIZE, tx_len + ETH_FCS_LEN); in tg3_run_loopback()
13664 tw32(i, 0x0); in tg3_test_loopback()
13905 tw32(TG3_RX_PTP_CTL, in tg3_hwtstamp_set()
14385 tw32(NVRAM_CFG1, nvcfg1); in tg3_get_nvram_info()
14491 tw32(NVRAM_CFG1, nvcfg1); in tg3_get_5752_nvram_info()
14567 tw32(NVRAM_CFG1, nvcfg1); in tg3_get_5787_nvram_info()
14685 tw32(NVRAM_CFG1, nvcfg1); in tg3_get_57780_nvram_info()
14758 tw32(NVRAM_CFG1, nvcfg1); in tg3_get_5717_nvram_info()
14875 tw32(NVRAM_CFG1, nvcfg1); in tg3_get_5720_nvram_info()
15399 tw32(OTP_CTRL, cmd | OTP_CTRL_OTP_CMD_START); in tg3_issue_otp_command()
15400 tw32(OTP_CTRL, cmd); in tg3_issue_otp_command()
15421 tw32(OTP_MODE, OTP_MODE_OTP_THRU_GRC); in tg3_read_otp_phycfg()
15426 tw32(OTP_ADDRESS, OTP_ADDRESS_MAGIC1); in tg3_read_otp_phycfg()
15433 tw32(OTP_ADDRESS, OTP_ADDRESS_MAGIC2); in tg3_read_otp_phycfg()
16603 tw32(MEMARB_MODE, val | MEMARB_MODE_ENABLE); in tg3_get_invariants()
16800 tw32(GRC_MODE, val | tp->grc_mode); in tg3_get_invariants()
16805 tw32(TG3PCI_MEM_WIN_BASE_ADDR, 0); in tg3_get_invariants()
16808 tw32(TG3PCI_REG_BASE_ADDR, 0); in tg3_get_invariants()
17177 tw32(FTQ_RCVBD_COMP_FIFO_ENQDEQ, 0); in tg3_do_test_dma()
17178 tw32(FTQ_RCVDATA_COMP_FIFO_ENQDEQ, 0); in tg3_do_test_dma()
17179 tw32(RDMAC_STATUS, 0); in tg3_do_test_dma()
17180 tw32(WDMAC_STATUS, 0); in tg3_do_test_dma()
17182 tw32(BUFMGR_MODE, 0); in tg3_do_test_dma()
17183 tw32(FTQ_RESET, 0); in tg3_do_test_dma()
17226 tw32(FTQ_DMA_HIGH_READ_FIFO_ENQDEQ, sram_dma_descs); in tg3_do_test_dma()
17228 tw32(FTQ_DMA_HIGH_WRITE_FIFO_ENQDEQ, sram_dma_descs); in tg3_do_test_dma()
17344 tw32(TG3PCI_DMA_RW_CTRL, tp->dma_rwctrl); in tg3_test_dma()
17356 tw32(TG3PCI_DMA_RW_CTRL, tp->dma_rwctrl); in tg3_test_dma()
17390 tw32(TG3PCI_DMA_RW_CTRL, tp->dma_rwctrl); in tg3_test_dma()
17421 tw32(TG3PCI_DMA_RW_CTRL, tp->dma_rwctrl); in tg3_test_dma()
17875 tw32(MEMARB_MODE, MEMARB_MODE_ENABLE); in tg3_init_one()