Lines Matching refs:tw32

104 #define tw32(reg,val)		tg3_write_indirect_reg32((reg),(val))  macro
114 tw32(reg, val); in tw32_carefully()
145 tw32(TG3PCI_MISC_HOST_CTRL, in tg3_disable_ints()
845 tw32(MAC_LED_CTRL, LED_CTRL_PHY_MODE_1); in tg3_setup_copper_phy()
1030 tw32(MAC_TX_AUTO_NEG, 0); in tg3_fiber_aneg_smachine()
1054 tw32(MAC_TX_AUTO_NEG, ap->txconfig); in tg3_fiber_aneg_smachine()
1069 tw32(MAC_TX_AUTO_NEG, ap->txconfig); in tg3_fiber_aneg_smachine()
1267 tw32(MAC_TX_AUTO_NEG, 0); in tg3_setup_fiber_phy()
1393 tw32(MAC_TX_LENGTHS, in tg3_setup_phy()
1398 tw32(MAC_TX_LENGTHS, in tg3_setup_phy()
1434 tw32(ofs, val); in tg3_stop_block()
1499 tw32(FTQ_RESET, 0xffffffff); in tg3_abort_hw()
1500 tw32(FTQ_RESET, 0x00000000); in tg3_abort_hw()
1525 tw32(NVRAM_SWARB, SWARB_REQ_SET1); in tg3_chip_reset()
1541 tw32(GRC_MISC_CFG, val); in tg3_chip_reset()
1570 tw32(MEMARB_MODE, MEMARB_MODE_ENABLE); in tg3_chip_reset()
1576 tw32(TG3PCI_CLOCK_CTRL, tp->pci_clock_ctrl); in tg3_chip_reset()
1579 tw32(TG3PCI_MISC_HOST_CTRL, tp->misc_host_ctrl); in tg3_chip_reset()
1591 tw32(GRC_RX_CPU_EVENT, val); in tg3_stop_fw()
1649 tw32(MAC_ADDR_0_HIGH + (i * 8), addr_high); in __tg3_set_mac_addr()
1650 tw32(MAC_ADDR_0_LOW + (i * 8), addr_low); in __tg3_set_mac_addr()
1657 tw32(MAC_EXTADDR_0_HIGH + (i * 8), addr_high); in __tg3_set_mac_addr()
1658 tw32(MAC_EXTADDR_0_LOW + (i * 8), addr_low); in __tg3_set_mac_addr()
1668 tw32(MAC_TX_BACKOFF_SEED, addr_high); in __tg3_set_mac_addr()
1736 tw32(_table[0], _table[1]); \
1762 tw32(TG3PCI_MEM_WIN_BASE_ADDR, 0); in tg3_setup_hw()
1773 tw32(GRC_MODE, tp->grc_mode); /* Redundant? */ in tg3_setup_hw()
1796 tw32(TG3PCI_PCISTATE, val); in tg3_setup_hw()
1819 tw32(TG3PCI_DMA_RW_CTRL, tp->dma_rwctrl); in tg3_setup_hw()
1829 tw32(GRC_MODE, in tg3_setup_hw()
1834 tw32(GRC_MISC_CFG, in tg3_setup_hw()
1839 tw32(BUFMGR_MB_POOL_ADDR, NIC_SRAM_MBUF_POOL_BASE); in tg3_setup_hw()
1841 tw32(BUFMGR_MB_POOL_SIZE, NIC_SRAM_MBUF_POOL_SIZE64); in tg3_setup_hw()
1843 tw32(BUFMGR_MB_POOL_SIZE, NIC_SRAM_MBUF_POOL_SIZE96); in tg3_setup_hw()
1844 tw32(BUFMGR_DMA_DESC_POOL_ADDR, NIC_SRAM_DMA_DESC_POOL_BASE); in tg3_setup_hw()
1845 tw32(BUFMGR_DMA_DESC_POOL_SIZE, NIC_SRAM_DMA_DESC_POOL_SIZE); in tg3_setup_hw()
1848 tw32(BUFMGR_MB_RDMA_LOW_WATER, in tg3_setup_hw()
1850 tw32(BUFMGR_MB_MACRX_LOW_WATER, in tg3_setup_hw()
1852 tw32(BUFMGR_MB_HIGH_WATER, in tg3_setup_hw()
1855 tw32(BUFMGR_MB_RDMA_LOW_WATER, in tg3_setup_hw()
1857 tw32(BUFMGR_MB_MACRX_LOW_WATER, in tg3_setup_hw()
1859 tw32(BUFMGR_MB_HIGH_WATER, in tg3_setup_hw()
1862 tw32(BUFMGR_DMA_LOW_WATER, in tg3_setup_hw()
1864 tw32(BUFMGR_DMA_HIGH_WATER, in tg3_setup_hw()
1867 tw32(BUFMGR_MODE, BUFMGR_MODE_ENABLE | BUFMGR_MODE_ATTN_ENABLE); in tg3_setup_hw()
1878 tw32(FTQ_RESET, 0xffffffff); in tg3_setup_hw()
1879 tw32(FTQ_RESET, 0x00000000); in tg3_setup_hw()
1932 tw32(RCVDBDI_STD_BD + TG3_BDINFO_HOST_ADDR + TG3_64BIT_REG_LOW, in tg3_setup_hw()
1935 tw32(RCVDBDI_STD_BD + TG3_BDINFO_MAXLEN_FLAGS, in tg3_setup_hw()
2010 tw32(HOSTCC_MODE, 0); in tg3_setup_hw()
2058 tw32(TG3PCI_X_CAPS, val); in tg3_setup_hw()
2136 tw32(HOSTCC_STATS_BLK_HOST_ADDR + TG3_64BIT_REG_LOW, in tg3_setup_hw()
2138 tw32(HOSTCC_STATUS_BLK_HOST_ADDR + TG3_64BIT_REG_LOW, in tg3_setup_hw()
2154 tw32(MAC_LED_CTRL, 0); in tg3_setup_hw()
2155 tw32(MAC_MI_STAT, MAC_MI_STAT_LNKSTAT_ATTN_ENAB); in tg3_setup_hw()
2163 tw32(MAC_SERDES_CFG, 0x616000); in tg3_setup_hw()
2168 tw32(MAC_LOW_WMARK_MAX_RX_FRAME, 2); in tg3_setup_hw()
2176 tw32(MAC_RCV_RULE_0, 0xc2000000 & RCV_RULE_DISABLE_MASK); in tg3_setup_hw()
2177 tw32(MAC_RCV_VALUE_0, 0xffffffff & RCV_RULE_DISABLE_MASK); in tg3_setup_hw()
2178 tw32(MAC_RCV_RULE_1, 0x86000004 & RCV_RULE_DISABLE_MASK); in tg3_setup_hw()
2179 tw32(MAC_RCV_VALUE_1, 0xffffffff & RCV_RULE_DISABLE_MASK); in tg3_setup_hw()
2188 case 16: tw32(MAC_RCV_RULE_15, 0); tw32(MAC_RCV_VALUE_15, 0); in tg3_setup_hw()
2189 case 15: tw32(MAC_RCV_RULE_14, 0); tw32(MAC_RCV_VALUE_14, 0); in tg3_setup_hw()
2190 case 14: tw32(MAC_RCV_RULE_13, 0); tw32(MAC_RCV_VALUE_13, 0); in tg3_setup_hw()
2191 case 13: tw32(MAC_RCV_RULE_12, 0); tw32(MAC_RCV_VALUE_12, 0); in tg3_setup_hw()
2192 case 12: tw32(MAC_RCV_RULE_11, 0); tw32(MAC_RCV_VALUE_11, 0); in tg3_setup_hw()
2193 case 11: tw32(MAC_RCV_RULE_10, 0); tw32(MAC_RCV_VALUE_10, 0); in tg3_setup_hw()
2194 case 10: tw32(MAC_RCV_RULE_9, 0); tw32(MAC_RCV_VALUE_9, 0); in tg3_setup_hw()
2195 case 9: tw32(MAC_RCV_RULE_8, 0); tw32(MAC_RCV_VALUE_8, 0); in tg3_setup_hw()
2196 case 8: tw32(MAC_RCV_RULE_7, 0); tw32(MAC_RCV_VALUE_7, 0); in tg3_setup_hw()
2197 case 7: tw32(MAC_RCV_RULE_6, 0); tw32(MAC_RCV_VALUE_6, 0); in tg3_setup_hw()
2198 case 6: tw32(MAC_RCV_RULE_5, 0); tw32(MAC_RCV_VALUE_5, 0); in tg3_setup_hw()
2199 case 5: tw32(MAC_RCV_RULE_4, 0); tw32(MAC_RCV_VALUE_4, 0); in tg3_setup_hw()
2216 tw32(GRC_EEPROM_ADDR, in tg3_nvram_init()
2237 tw32(NVRAM_CFG1, nvcfg1); in tg3_nvram_init()
2260 tw32(GRC_EEPROM_ADDR, in tg3_nvram_read_using_eeprom()
2297 tw32(NVRAM_SWARB, SWARB_REQ_SET1); in tg3_nvram_read()
2304 tw32(NVRAM_ADDR, offset); in tg3_nvram_read()
2305 tw32(NVRAM_CMD, in tg3_nvram_read()
2321 tw32(NVRAM_SWARB, SWARB_REQ_CLR1); in tg3_nvram_read()
2326 tw32(NVRAM_SWARB, 0x20); in tg3_nvram_read()
2745 tw32(GRC_MODE, tp->grc_mode); in tg3_get_invariants()
2750 tw32(TG3PCI_MEM_WIN_BASE_ADDR, 0); in tg3_get_invariants()
2862 tw32(TG3PCI_CLOCK_CTRL, 0); in tg3_setup_dma()
2908 tw32(TG3PCI_DMA_RW_CTRL, tp->dma_rwctrl); in tg3_setup_dma()