tg3.c:87: 	((GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705 && \
tg3.c:88: 	  GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5750) ? 9000 : 1500)
tg3.c:106: 	((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 || \
tg3.c:107: 	  GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) ? \
tg3.c:129: #define RX_PKT_BUF_SZ		(1536 + tp->rx_offset + 64)
tg3.c:130: #define RX_JUMBO_PKT_BUF_SZ	(9046 + tp->rx_offset + 64)
tg3.c:310: 	if ((tp->tg3_flags & TG3_FLAG_PCIX_TARGET_HWBUG) != 0) {
tg3.c:313: 		spin_lock_irqsave(&tp->indirect_lock, flags);
tg3.c:314: 		pci_write_config_dword(tp->pdev, TG3PCI_REG_BASE_ADDR, off);
tg3.c:315: 		pci_write_config_dword(tp->pdev, TG3PCI_REG_DATA, val);
tg3.c:316: 		spin_unlock_irqrestore(&tp->indirect_lock, flags);
tg3.c:318: 		writel(val, tp->regs + off);
tg3.c:319: 		if ((tp->tg3_flags & TG3_FLAG_5701_REG_WRITE_BUG) != 0)
tg3.c:320: 			readl(tp->regs + off);
tg3.c:326: 	if ((tp->tg3_flags & TG3_FLAG_PCIX_TARGET_HWBUG) != 0) {
tg3.c:329: 		spin_lock_irqsave(&tp->indirect_lock, flags);
tg3.c:330: 		pci_write_config_dword(tp->pdev, TG3PCI_REG_BASE_ADDR, off);
tg3.c:331: 		pci_write_config_dword(tp->pdev, TG3PCI_REG_DATA, val);
tg3.c:332: 		spin_unlock_irqrestore(&tp->indirect_lock, flags);
tg3.c:334: 		void __iomem *dest = tp->regs + off;
tg3.c:342: 	void __iomem *mbox = tp->regs + off;
tg3.c:344: 	if (tp->tg3_flags & TG3_FLAG_MBOX_WRITE_REORDER)
tg3.c:350: 	void __iomem *mbox = tp->regs + off;
tg3.c:352: 	if (tp->tg3_flags & TG3_FLAG_TXD_MBOX_HWBUG)
tg3.c:354: 	if (tp->tg3_flags & TG3_FLAG_MBOX_WRITE_REORDER)
tg3.c:358: #define tw32_mailbox(reg, val)  writel(((val) & 0xffffffff), tp->regs + (reg))
tg3.c:364: #define tw16(reg,val)		writew(((val) & 0xffff), tp->regs + (reg))
tg3.c:365: #define tw8(reg,val)		writeb(((val) & 0xff), tp->regs + (reg))
tg3.c:366: #define tr32(reg)		readl(tp->regs + (reg))
tg3.c:367: #define tr16(reg)		readw(tp->regs + (reg))
tg3.c:368: #define tr8(reg)		readb(tp->regs + (reg))
tg3.c:374: 	spin_lock_irqsave(&tp->indirect_lock, flags);
tg3.c:375: 	pci_write_config_dword(tp->pdev, TG3PCI_MEM_WIN_BASE_ADDR, off);
tg3.c:376: 	pci_write_config_dword(tp->pdev, TG3PCI_MEM_WIN_DATA, val);
tg3.c:379: 	pci_write_config_dword(tp->pdev, TG3PCI_MEM_WIN_BASE_ADDR, 0);
tg3.c:380: 	spin_unlock_irqrestore(&tp->indirect_lock, flags);
tg3.c:387: 	spin_lock_irqsave(&tp->indirect_lock, flags);
tg3.c:388: 	pci_write_config_dword(tp->pdev, TG3PCI_MEM_WIN_BASE_ADDR, off);
tg3.c:389: 	pci_read_config_dword(tp->pdev, TG3PCI_MEM_WIN_DATA, val);
tg3.c:392: 	pci_write_config_dword(tp->pdev, TG3PCI_MEM_WIN_BASE_ADDR, 0);
tg3.c:393: 	spin_unlock_irqrestore(&tp->indirect_lock, flags);
tg3.c:399: 	     (tp->misc_host_ctrl | MISC_HOST_CTRL_MASK_PCI_INT));
tg3.c:406: 	if (tp->hw_status->status & SD_STATUS_UPDATED)
tg3.c:407: 		tw32(GRC_LOCAL_CTRL, tp->grc_local_ctrl | GRC_LCLCTRL_SETINT);
tg3.c:413: 	     (tp->misc_host_ctrl & ~MISC_HOST_CTRL_MASK_PCI_INT));
tg3.c:422: 	netif_poll_disable(tp->dev);
tg3.c:423: 	netif_tx_disable(tp->dev);
tg3.c:428: 	netif_wake_queue(tp->dev);
tg3.c:433: 	netif_poll_enable(tp->dev);
tg3.c:446: 	tp->pci_clock_ctrl = clock_ctrl;
tg3.c:448: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 ||
tg3.c:449: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) {
tg3.c:475: 	if ((tp->mi_mode & MAC_MI_MODE_AUTO_POLL) != 0) {
tg3.c:477: 		     (tp->mi_mode & ~MAC_MI_MODE_AUTO_POLL));
tg3.c:509: 	if ((tp->mi_mode & MAC_MI_MODE_AUTO_POLL) != 0) {
tg3.c:510: 		tw32_f(MAC_MI_MODE, tp->mi_mode);
tg3.c:522: 	if ((tp->mi_mode & MAC_MI_MODE_AUTO_POLL) != 0) {
tg3.c:524: 		     (tp->mi_mode & ~MAC_MI_MODE_AUTO_POLL));
tg3.c:552: 	if ((tp->mi_mode & MAC_MI_MODE_AUTO_POLL) != 0) {
tg3.c:553: 		tw32_f(MAC_MI_MODE, tp->mi_mode);
tg3.c:564: 	if (tp->tg3_flags2 & TG3_FLG2_NO_ETH_WIRE_SPEED)
tg3.c:758: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703 ||
tg3.c:759: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704) {
tg3.c:789: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703 ||
tg3.c:790: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704 ||
tg3.c:791: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705) {
tg3.c:803: 	if (tp->tg3_flags2 & TG3_FLG2_PHY_ADC_BUG) {
tg3.c:811: 	if (tp->tg3_flags2 & TG3_FLG2_PHY_5704_A0_BUG) {
tg3.c:815: 	if (tp->tg3_flags2 & TG3_FLG2_PHY_BER_BUG) {
tg3.c:827: 	if ((tp->phy_id & PHY_ID_MASK) == PHY_ID_BCM5401) {
tg3.c:830: 	} else if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705 &&
tg3.c:831: 		   GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5750) {
tg3.c:847: 	if ((tp->tg3_flags & TG3_FLAG_EEPROM_WRITE_PROT) != 0)
tg3.c:850: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704) {
tg3.c:851: 		tp_peer = pci_get_drvdata(tp->pdev_peer);
tg3.c:857: 	if ((tp->tg3_flags & TG3_FLAG_WOL_ENABLE) != 0 ||
tg3.c:859: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700 ||
tg3.c:860: 		    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5701) {
tg3.c:861: 			tw32_f(GRC_LOCAL_CTRL, tp->grc_local_ctrl |
tg3.c:873: 			tw32_f(GRC_LOCAL_CTRL, tp->grc_local_ctrl |
tg3.c:881: 			tw32_f(GRC_LOCAL_CTRL, tp->grc_local_ctrl |
tg3.c:890: 			tw32_f(GRC_LOCAL_CTRL, tp->grc_local_ctrl |
tg3.c:899: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5700 &&
tg3.c:900: 		    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5701) {
tg3.c:905: 			tw32_f(GRC_LOCAL_CTRL, tp->grc_local_ctrl |
tg3.c:910: 			tw32_f(GRC_LOCAL_CTRL, tp->grc_local_ctrl |
tg3.c:914: 			tw32_f(GRC_LOCAL_CTRL, tp->grc_local_ctrl |
tg3.c:934: 	int pm = tp->pm_cap;
tg3.c:939: 	pci_write_config_dword(tp->pdev,
tg3.c:941: 			       tp->misc_host_ctrl);
tg3.c:943: 	pci_read_config_word(tp->pdev,
tg3.c:951: 		pci_write_config_word(tp->pdev,
tg3.c:954: 		tw32_f(GRC_LOCAL_CTRL, tp->grc_local_ctrl);
tg3.c:974: 		       tp->dev->name, state);
tg3.c:984: 	if (tp->link_config.phy_is_low_power == 0) {
tg3.c:985: 		tp->link_config.phy_is_low_power = 1;
tg3.c:986: 		tp->link_config.orig_speed = tp->link_config.speed;
tg3.c:987: 		tp->link_config.orig_duplex = tp->link_config.duplex;
tg3.c:988: 		tp->link_config.orig_autoneg = tp->link_config.autoneg;
tg3.c:991: 	if (!(tp->tg3_flags2 & TG3_FLG2_PHY_SERDES)) {
tg3.c:992: 		tp->link_config.speed = SPEED_10;
tg3.c:993: 		tp->link_config.duplex = DUPLEX_HALF;
tg3.c:994: 		tp->link_config.autoneg = AUTONEG_ENABLE;
tg3.c:998: 	pci_read_config_word(tp->pdev, pm + PCI_PM_PMC, &power_caps);
tg3.c:1000: 	if (tp->tg3_flags & TG3_FLAG_WOL_ENABLE) {
tg3.c:1003: 		if (!(tp->tg3_flags2 & TG3_FLG2_PHY_SERDES)) {
tg3.c:1009: 			if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5700 ||
tg3.c:1010: 			    !(tp->tg3_flags & TG3_FLAG_WOL_SPEED_100MB))
tg3.c:1016: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5750)
tg3.c:1017: 			tw32(MAC_LED_CTRL, tp->led_ctrl);
tg3.c:1020: 		     (tp->tg3_flags & TG3_FLAG_WOL_ENABLE)))
tg3.c:1030: 	if (!(tp->tg3_flags & TG3_FLAG_WOL_SPEED_100MB) &&
tg3.c:1031: 	    (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700 ||
tg3.c:1032: 	     GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5701)) {
tg3.c:1035: 		base_val = tp->pci_clock_ctrl;
tg3.c:1043: 	} else if (!((GET_ASIC_REV(tp->pci_chip_rev_id) == 5750) &&
tg3.c:1044: 		     (tp->tg3_flags & TG3_FLAG_ENABLE_ASF))) {
tg3.c:1047: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700 ||
tg3.c:1048: 		    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5701) {
tg3.c:1053: 		} else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 ||
tg3.c:1054: 			   GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) {
tg3.c:1062: 		tw32_f(TG3PCI_CLOCK_CTRL, tp->pci_clock_ctrl | newbits1);
tg3.c:1065: 		tw32_f(TG3PCI_CLOCK_CTRL, tp->pci_clock_ctrl | newbits2);
tg3.c:1068: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705 &&
tg3.c:1069: 		    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5750) {
tg3.c:1072: 			if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700 ||
tg3.c:1073: 			    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5701) {
tg3.c:1082: 					 tp->pci_clock_ctrl | newbits3);
tg3.c:1090: 	pci_write_config_word(tp->pdev, pm + PCI_PM_CTRL, power_control);
tg3.c:1099: 	if (!netif_carrier_ok(tp->dev)) {
tg3.c:1100: 		printk(KERN_INFO PFX "%s: Link is down.\n", tp->dev->name);
tg3.c:1103: 		       tp->dev->name,
tg3.c:1104: 		       (tp->link_config.active_speed == SPEED_1000 ?
tg3.c:1106: 			(tp->link_config.active_speed == SPEED_100 ?
tg3.c:1108: 		       (tp->link_config.active_duplex == DUPLEX_FULL ?
tg3.c:1113: 		       tp->dev->name,
tg3.c:1114: 		       (tp->tg3_flags & TG3_FLAG_TX_PAUSE) ? "on" : "off",
tg3.c:1115: 		       (tp->tg3_flags & TG3_FLAG_RX_PAUSE) ? "on" : "off");
tg3.c:1122: 	u32 old_rx_mode = tp->rx_mode;
tg3.c:1123: 	u32 old_tx_mode = tp->tx_mode;
tg3.c:1125: 	if (tp->tg3_flags & TG3_FLAG_PAUSE_AUTONEG) {
tg3.c:1147: 		tp->tg3_flags &= ~(TG3_FLAG_RX_PAUSE | TG3_FLAG_TX_PAUSE);
tg3.c:1148: 		tp->tg3_flags |= new_tg3_flags;
tg3.c:1150: 		new_tg3_flags = tp->tg3_flags;
tg3.c:1154: 		tp->rx_mode |= RX_MODE_FLOW_CTRL_ENABLE;
tg3.c:1156: 		tp->rx_mode &= ~RX_MODE_FLOW_CTRL_ENABLE;
tg3.c:1158: 	if (old_rx_mode != tp->rx_mode) {
tg3.c:1159: 		tw32_f(MAC_RX_MODE, tp->rx_mode);
tg3.c:1163: 		tp->tx_mode |= TX_MODE_FLOW_CTRL_ENABLE;
tg3.c:1165: 		tp->tx_mode &= ~TX_MODE_FLOW_CTRL_ENABLE;
tg3.c:1167: 	if (old_tx_mode != tp->tx_mode) {
tg3.c:1168: 		tw32_f(MAC_TX_MODE, tp->tx_mode);
tg3.c:1217: 	if (tp->link_config.phy_is_low_power) {
tg3.c:1225: 		if (tp->tg3_flags & TG3_FLAG_WOL_SPEED_100MB)
tg3.c:1229: 	} else if (tp->link_config.speed == SPEED_INVALID) {
tg3.c:1230: 		tp->link_config.advertising =
tg3.c:1236: 		if (tp->tg3_flags & TG3_FLAG_10_100_ONLY)
tg3.c:1237: 			tp->link_config.advertising &=
tg3.c:1242: 		if (tp->link_config.advertising & ADVERTISED_10baseT_Half)
tg3.c:1244: 		if (tp->link_config.advertising & ADVERTISED_10baseT_Full)
tg3.c:1246: 		if (tp->link_config.advertising & ADVERTISED_100baseT_Half)
tg3.c:1248: 		if (tp->link_config.advertising & ADVERTISED_100baseT_Full)
tg3.c:1252: 		if (tp->link_config.advertising &
tg3.c:1255: 			if (tp->link_config.advertising & ADVERTISED_1000baseT_Half)
tg3.c:1257: 			if (tp->link_config.advertising & ADVERTISED_1000baseT_Full)
tg3.c:1259: 			if (!(tp->tg3_flags & TG3_FLAG_10_100_ONLY) &&
tg3.c:1260: 			    (tp->pci_chip_rev_id == CHIPREV_ID_5701_A0 ||
tg3.c:1261: 			     tp->pci_chip_rev_id == CHIPREV_ID_5701_B0))
tg3.c:1270: 		if (tp->link_config.speed == SPEED_1000) {
tg3.c:1274: 			if (tp->link_config.duplex == DUPLEX_FULL)
tg3.c:1278: 			if (tp->pci_chip_rev_id == CHIPREV_ID_5701_A0 ||
tg3.c:1279: 			    tp->pci_chip_rev_id == CHIPREV_ID_5701_B0)
tg3.c:1287: 			if (tp->link_config.speed == SPEED_100) {
tg3.c:1288: 				if (tp->link_config.duplex == DUPLEX_FULL)
tg3.c:1293: 				if (tp->link_config.duplex == DUPLEX_FULL)
tg3.c:1302: 	if (tp->link_config.autoneg == AUTONEG_DISABLE &&
tg3.c:1303: 	    tp->link_config.speed != SPEED_INVALID) {
tg3.c:1306: 		tp->link_config.active_speed = tp->link_config.speed;
tg3.c:1307: 		tp->link_config.active_duplex = tp->link_config.duplex;
tg3.c:1310: 		switch (tp->link_config.speed) {
tg3.c:1324: 		if (tp->link_config.duplex == DUPLEX_FULL)
tg3.c:1389: 	if (!(tp->tg3_flags & TG3_FLAG_10_100_ONLY)) {
tg3.c:1418: 	tp->mi_mode = MAC_MI_MODE_BASE;
tg3.c:1419: 	tw32_f(MAC_MI_MODE, tp->mi_mode);
tg3.c:1427: 	if ((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703 ||
tg3.c:1428: 	     GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704 ||
tg3.c:1429: 	     GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705) &&
tg3.c:1430: 	    netif_carrier_ok(tp->dev)) {
tg3.c:1439: 	if ((tp->phy_id & PHY_ID_MASK) == PHY_ID_BCM5401) {
tg3.c:1443: 		if (!(tp->tg3_flags & TG3_FLAG_INIT_COMPLETE))
tg3.c:1461: 			if ((tp->phy_id & PHY_ID_REV_MASK) == PHY_REV_BCM5401_B0 &&
tg3.c:1463: 			    tp->link_config.active_speed == SPEED_1000) {
tg3.c:1471: 	} else if (tp->pci_chip_rev_id == CHIPREV_ID_5701_A0 ||
tg3.c:1472: 		   tp->pci_chip_rev_id == CHIPREV_ID_5701_B0) {
tg3.c:1484: 	if (tp->tg3_flags & TG3_FLAG_USE_MI_INTERRUPT)
tg3.c:1489: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700 ||
tg3.c:1490: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5701) {
tg3.c:1491: 		if (tp->led_ctrl == LED_CTRL_MODE_PHY_1)
tg3.c:1502: 	if (tp->tg3_flags2 & TG3_FLG2_CAPACITIVE_COUPLING) {
tg3.c:1547: 		if (tp->link_config.autoneg == AUTONEG_ENABLE) {
tg3.c:1561: 			    tp->link_config.speed == current_speed &&
tg3.c:1562: 			    tp->link_config.duplex == current_duplex) {
tg3.c:1569: 		tp->link_config.active_speed = current_speed;
tg3.c:1570: 		tp->link_config.active_duplex = current_duplex;
tg3.c:1574: 	    (tp->link_config.active_duplex == DUPLEX_FULL) &&
tg3.c:1575: 	    (tp->link_config.autoneg == AUTONEG_ENABLE)) {
tg3.c:1605: 	tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK;
tg3.c:1607: 		if (tp->link_config.active_speed == SPEED_100 ||
tg3.c:1608: 		    tp->link_config.active_speed == SPEED_10)
tg3.c:1609: 			tp->mac_mode |= MAC_MODE_PORT_MODE_MII;
tg3.c:1611: 			tp->mac_mode |= MAC_MODE_PORT_MODE_GMII;
tg3.c:1613: 		tp->mac_mode |= MAC_MODE_PORT_MODE_GMII;
tg3.c:1615: 	tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX;
tg3.c:1616: 	if (tp->link_config.active_duplex == DUPLEX_HALF)
tg3.c:1617: 		tp->mac_mode |= MAC_MODE_HALF_DUPLEX;
tg3.c:1619: 	tp->mac_mode &= ~MAC_MODE_LINK_POLARITY;
tg3.c:1620: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700) {
tg3.c:1621: 		if ((tp->led_ctrl == LED_CTRL_MODE_PHY_2) ||
tg3.c:1623: 		     tp->link_config.active_speed == SPEED_10))
tg3.c:1624: 			tp->mac_mode |= MAC_MODE_LINK_POLARITY;
tg3.c:1627: 			tp->mac_mode |= MAC_MODE_LINK_POLARITY;
tg3.c:1633: 	if ((tp->phy_id & PHY_ID_MASK) == PHY_ID_BCM5411 &&
tg3.c:1634: 	    tp->pci_chip_rev_id == CHIPREV_ID_5700_ALTIMA) {
tg3.c:1635: 		tp->mi_mode |= MAC_MI_MODE_AUTO_POLL;
tg3.c:1636: 		tw32_f(MAC_MI_MODE, tp->mi_mode);
tg3.c:1640: 	tw32_f(MAC_MODE, tp->mac_mode);
tg3.c:1643: 	if (tp->tg3_flags & TG3_FLAG_USE_LINKCHG_REG) {
tg3.c:1651: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700 &&
tg3.c:1653: 	    tp->link_config.active_speed == SPEED_1000 &&
tg3.c:1654: 	    ((tp->tg3_flags & TG3_FLAG_PCIX_MODE) ||
tg3.c:1655: 	     (tp->tg3_flags & TG3_FLAG_PCI_HIGH_SPEED))) {
tg3.c:1666: 	if (current_link_up != netif_carrier_ok(tp->dev)) {
tg3.c:1668: 			netif_carrier_on(tp->dev);
tg3.c:1670: 			netif_carrier_off(tp->dev);
tg3.c:1820: 		tp->mac_mode |= MAC_MODE_SEND_CONFIGS;
tg3.c:1821: 		tw32_f(MAC_MODE, tp->mac_mode);
tg3.c:1845: 		tp->mac_mode |= MAC_MODE_SEND_CONFIGS;
tg3.c:1846: 		tw32_f(MAC_MODE, tp->mac_mode);
tg3.c:1861: 		tp->mac_mode |= MAC_MODE_SEND_CONFIGS;
tg3.c:1862: 		tw32_f(MAC_MODE, tp->mac_mode);
tg3.c:1947: 		tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS;
tg3.c:1948: 		tw32_f(MAC_MODE, tp->mac_mode);
tg3.c:1999: 	tmp = tp->mac_mode & ~MAC_MODE_PORT_MODE_MASK;
tg3.c:2003: 	tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_SEND_CONFIGS);
tg3.c:2019: 	tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS;
tg3.c:2020: 	tw32_f(MAC_MODE, tp->mac_mode);
tg3.c:2039: 	if ((tp->tg3_flags & TG3_FLAG_INIT_COMPLETE) &&
tg3.c:2096: 	if (tp->pci_chip_rev_id != CHIPREV_ID_5704_A0 &&
tg3.c:2097: 	    tp->pci_chip_rev_id != CHIPREV_ID_5704_A1) {
tg3.c:2108: 	if (tp->link_config.autoneg != AUTONEG_ENABLE) {
tg3.c:2144: 		tp->tg3_flags2 |= TG3_FLG2_PHY_JUST_INITTED;
tg3.c:2162: 			tp->tg3_flags2 &= ~TG3_FLG2_PHY_JUST_INITTED;
tg3.c:2164: 			if (tp->tg3_flags2 & TG3_FLG2_PHY_JUST_INITTED)
tg3.c:2165: 				tp->tg3_flags2 &= ~TG3_FLG2_PHY_JUST_INITTED;
tg3.c:2199: 		tp->tg3_flags &= ~TG3_FLAG_GOT_SERDES_FLOWCTL;
tg3.c:2203: 	if (tp->link_config.autoneg == AUTONEG_ENABLE) {
tg3.c:2219: 			tp->tg3_flags |= TG3_FLAG_GOT_SERDES_FLOWCTL;
tg3.c:2242: 		tp->tg3_flags |= TG3_FLAG_GOT_SERDES_FLOWCTL;
tg3.c:2244: 		tw32_f(MAC_MODE, (tp->mac_mode | MAC_MODE_SEND_CONFIGS));
tg3.c:2262: 		(tp->tg3_flags & (TG3_FLAG_RX_PAUSE |
tg3.c:2264: 	orig_active_speed = tp->link_config.active_speed;
tg3.c:2265: 	orig_active_duplex = tp->link_config.active_duplex;
tg3.c:2267: 	if (!(tp->tg3_flags2 & TG3_FLG2_HW_AUTONEG) &&
tg3.c:2268: 	    netif_carrier_ok(tp->dev) &&
tg3.c:2269: 	    (tp->tg3_flags & TG3_FLAG_INIT_COMPLETE)) {
tg3.c:2285: 	tp->mac_mode &= ~(MAC_MODE_PORT_MODE_MASK | MAC_MODE_HALF_DUPLEX);
tg3.c:2286: 	tp->mac_mode |= MAC_MODE_PORT_MODE_TBI;
tg3.c:2287: 	tw32_f(MAC_MODE, tp->mac_mode);
tg3.c:2290: 	if (tp->phy_id == PHY_ID_BCM8002)
tg3.c:2300: 	if (tp->tg3_flags2 & TG3_FLG2_HW_AUTONEG)
tg3.c:2305: 	tp->mac_mode &= ~MAC_MODE_LINK_POLARITY;
tg3.c:2306: 	tw32_f(MAC_MODE, tp->mac_mode);
tg3.c:2309: 	tp->hw_status->status =
tg3.c:2311: 		 (tp->hw_status->status & ~SD_STATUS_LINK_CHG));
tg3.c:2325: 		if (tp->link_config.autoneg == AUTONEG_ENABLE) {
tg3.c:2326: 			tw32_f(MAC_MODE, (tp->mac_mode |
tg3.c:2329: 			tw32_f(MAC_MODE, tp->mac_mode);
tg3.c:2334: 		tp->link_config.active_speed = SPEED_1000;
tg3.c:2335: 		tp->link_config.active_duplex = DUPLEX_FULL;
tg3.c:2336: 		tw32(MAC_LED_CTRL, (tp->led_ctrl |
tg3.c:2340: 		tp->link_config.active_speed = SPEED_INVALID;
tg3.c:2341: 		tp->link_config.active_duplex = DUPLEX_INVALID;
tg3.c:2342: 		tw32(MAC_LED_CTRL, (tp->led_ctrl |
tg3.c:2347: 	if (current_link_up != netif_carrier_ok(tp->dev)) {
tg3.c:2349: 			netif_carrier_on(tp->dev);
tg3.c:2351: 			netif_carrier_off(tp->dev);
tg3.c:2355: 			tp->tg3_flags & (TG3_FLAG_RX_PAUSE |
tg3.c:2358: 		    orig_active_speed != tp->link_config.active_speed ||
tg3.c:2359: 		    orig_active_duplex != tp->link_config.active_duplex)
tg3.c:2370: 	if (tp->tg3_flags2 & TG3_FLG2_PHY_SERDES) {
tg3.c:2376: 	if (tp->link_config.active_speed == SPEED_1000 &&
tg3.c:2377: 	    tp->link_config.active_duplex == DUPLEX_HALF)
tg3.c:2388: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705 &&
tg3.c:2389: 	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5750) {
tg3.c:2390: 		if (netif_carrier_ok(tp->dev)) {
tg3.c:2407: 	u32 hw_idx = tp->hw_status->idx[0].tx_consumer;
tg3.c:2408: 	u32 sw_idx = tp->tx_cons;
tg3.c:2411: 		struct tx_ring_info *ri = &tp->tx_buffers[sw_idx];
tg3.c:2418: 		pci_unmap_single(tp->pdev,
tg3.c:2431: 			ri = &tp->tx_buffers[sw_idx];
tg3.c:2435: 			pci_unmap_page(tp->pdev,
tg3.c:2446: 	tp->tx_cons = sw_idx;
tg3.c:2448: 	if (netif_queue_stopped(tp->dev) &&
tg3.c:2450: 		netif_wake_queue(tp->dev);
tg3.c:2477: 		desc = &tp->rx_std[dest_idx];
tg3.c:2478: 		map = &tp->rx_std_buffers[dest_idx];
tg3.c:2480: 			src_map = &tp->rx_std_buffers[src_idx];
tg3.c:2486: 		desc = &tp->rx_jumbo[dest_idx];
tg3.c:2487: 		map = &tp->rx_jumbo_buffers[dest_idx];
tg3.c:2489: 			src_map = &tp->rx_jumbo_buffers[src_idx];
tg3.c:2507: 	skb->dev = tp->dev;
tg3.c:2508: 	skb_reserve(skb, tp->rx_offset);
tg3.c:2510: 	mapping = pci_map_single(tp->pdev, skb->data,
tg3.c:2511: 				 skb_size - tp->rx_offset,
tg3.c:2540: 		dest_desc = &tp->rx_std[dest_idx];
tg3.c:2541: 		dest_map = &tp->rx_std_buffers[dest_idx];
tg3.c:2542: 		src_desc = &tp->rx_std[src_idx];
tg3.c:2543: 		src_map = &tp->rx_std_buffers[src_idx];
tg3.c:2548: 		dest_desc = &tp->rx_jumbo[dest_idx];
tg3.c:2549: 		dest_map = &tp->rx_jumbo_buffers[dest_idx];
tg3.c:2550: 		src_desc = &tp->rx_jumbo[src_idx];
tg3.c:2551: 		src_map = &tp->rx_jumbo_buffers[src_idx];
tg3.c:2570: 	return vlan_hwaccel_receive_skb(skb, tp->vlgrp, vlan_tag);
tg3.c:2601: 	u32 rx_rcb_ptr = tp->rx_rcb_ptr;
tg3.c:2605: 	hw_idx = tp->hw_status->idx[0].rx_producer;
tg3.c:2615: 		struct tg3_rx_buffer_desc *desc = &tp->rx_rcb[sw_idx];
tg3.c:2624: 			dma_addr = pci_unmap_addr(&tp->rx_std_buffers[desc_idx],
tg3.c:2626: 			skb = tp->rx_std_buffers[desc_idx].skb;
tg3.c:2627: 			post_ptr = &tp->rx_std_ptr;
tg3.c:2629: 			dma_addr = pci_unmap_addr(&tp->rx_jumbo_buffers[desc_idx],
tg3.c:2631: 			skb = tp->rx_jumbo_buffers[desc_idx].skb;
tg3.c:2632: 			post_ptr = &tp->rx_jumbo_ptr;
tg3.c:2647: 			tp->net_stats.rx_dropped++;
tg3.c:2661: 			pci_unmap_single(tp->pdev, dma_addr,
tg3.c:2662: 					 skb_size - tp->rx_offset,
tg3.c:2676: 			copy_skb->dev = tp->dev;
tg3.c:2679: 			pci_dma_sync_single_for_cpu(tp->pdev, dma_addr, len, PCI_DMA_FROMDEVICE);
tg3.c:2681: 			pci_dma_sync_single_for_device(tp->pdev, dma_addr, len, PCI_DMA_FROMDEVICE);
tg3.c:2687: 		if ((tp->tg3_flags & TG3_FLAG_RX_CHECKSUMS) &&
tg3.c:2695: 		skb->protocol = eth_type_trans(skb, tp->dev);
tg3.c:2697: 		if (tp->vlgrp != NULL &&
tg3.c:2705: 		tp->dev->last_rx = jiffies;
tg3.c:2717: 	tp->rx_rcb_ptr = rx_rcb_ptr;
tg3.c:2723: 		sw_idx = tp->rx_std_ptr % TG3_RX_RING_SIZE;
tg3.c:2728: 		sw_idx = tp->rx_jumbo_ptr % TG3_RX_JUMBO_RING_SIZE;
tg3.c:2739: 	struct tg3_hw_status *sblk = tp->hw_status;
tg3.c:2743: 	spin_lock_irqsave(&tp->lock, flags);
tg3.c:2746: 	if (!(tp->tg3_flags &
tg3.c:2757: 	if (sblk->idx[0].tx_consumer != tp->tx_cons) {
tg3.c:2758: 		spin_lock(&tp->tx_lock);
tg3.c:2760: 		spin_unlock(&tp->tx_lock);
tg3.c:2763: 	spin_unlock_irqrestore(&tp->lock, flags);
tg3.c:2770: 	if (sblk->idx[0].rx_producer != tp->rx_rcb_ptr) {
tg3.c:2788: 		spin_lock_irqsave(&tp->lock, flags);
tg3.c:2791: 		spin_unlock_irqrestore(&tp->lock, flags);
tg3.c:2799: 	struct tg3_hw_status *sblk = tp->hw_status;
tg3.c:2803: 	if (!(tp->tg3_flags &
tg3.c:2810: 	if (sblk->idx[0].tx_consumer != tp->tx_cons ||
tg3.c:2811: 	    sblk->idx[0].rx_producer != tp->rx_rcb_ptr)
tg3.c:2821: 	struct tg3_hw_status *sblk = tp->hw_status;
tg3.c:2825: 	spin_lock_irqsave(&tp->lock, flags);
tg3.c:2858: 	spin_unlock_irqrestore(&tp->lock, flags);
tg3.c:2880: 	spin_lock_irq(&tp->lock);
tg3.c:2881: 	spin_lock(&tp->tx_lock);
tg3.c:2883: 	restart_timer = tp->tg3_flags2 & TG3_FLG2_RESTART_TIMER;
tg3.c:2884: 	tp->tg3_flags2 &= ~TG3_FLG2_RESTART_TIMER;
tg3.c:2891: 	spin_unlock(&tp->tx_lock);
tg3.c:2892: 	spin_unlock_irq(&tp->lock);
tg3.c:2895: 		mod_timer(&tp->timer, jiffies + 1);
tg3.c:2905: 	schedule_work(&tp->reset_task);
tg3.c:2926: 	new_addr = pci_map_single(tp->pdev, new_skb->data, new_skb->len,
tg3.c:2942: 		pci_unmap_single(tp->pdev,
tg3.c:2943: 				 pci_unmap_addr(&tp->tx_buffers[entry], mapping),
tg3.c:2946: 			tp->tx_buffers[entry].skb = new_skb;
tg3.c:2947: 			pci_unmap_addr_set(&tp->tx_buffers[entry], mapping, new_addr);
tg3.c:2949: 			tp->tx_buffers[entry].skb = NULL;
tg3.c:2963: 	struct tg3_tx_buffer_desc *txd = &tp->tx_ring[entry];
tg3.c:3002: 	 * context and TX reclaim runs via tp->poll inside of a software
tg3.c:3010: 	 *   take tp->tx_lock
tg3.c:3012: 	 *			take tp->lock
tg3.c:3014: 	 *   spin on tp->lock
tg3.c:3015: 	 *			spin on tp->tx_lock
tg3.c:3021: 	if (!spin_trylock(&tp->tx_lock)) { 
tg3.c:3029: 		spin_unlock_irqrestore(&tp->tx_lock, flags);
tg3.c:3035: 	entry = tp->tx_prod;
tg3.c:3041: 	if (skb->len > (tp->dev->mtu + ETH_HLEN) &&
tg3.c:3057: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705) {
tg3.c:3079: 	if (tp->vlgrp != NULL && vlan_tx_tag_present(skb))
tg3.c:3085: 	mapping = pci_map_single(tp->pdev, skb->data, len, PCI_DMA_TODEVICE);
tg3.c:3087: 	tp->tx_buffers[entry].skb = skb;
tg3.c:3088: 	pci_unmap_addr_set(&tp->tx_buffers[entry], mapping, mapping);
tg3.c:3109: 			mapping = pci_map_page(tp->pdev,
tg3.c:3114: 			tp->tx_buffers[entry].skb = NULL;
tg3.c:3115: 			pci_unmap_addr_set(&tp->tx_buffers[entry], mapping, mapping);
tg3.c:3124: 			if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750)
tg3.c:3174: 	tp->tx_prod = entry;
tg3.c:3179: 	spin_unlock_irqrestore(&tp->tx_lock, flags);
tg3.c:3192: 		tp->tg3_flags |= TG3_FLAG_JUMBO_ENABLE;
tg3.c:3194: 		tp->tg3_flags &= ~TG3_FLAG_JUMBO_ENABLE;
tg3.c:3213: 	spin_lock_irq(&tp->lock);
tg3.c:3214: 	spin_lock(&tp->tx_lock);
tg3.c:3224: 	spin_unlock(&tp->tx_lock);
tg3.c:3225: 	spin_unlock_irq(&tp->lock);
tg3.c:3234:  * end up in the driver.  tp->{tx,}lock is not held and we are not
tg3.c:3243: 		rxp = &tp->rx_std_buffers[i];
tg3.c:3247: 		pci_unmap_single(tp->pdev,
tg3.c:3249: 				 RX_PKT_BUF_SZ - tp->rx_offset,
tg3.c:3256: 		rxp = &tp->rx_jumbo_buffers[i];
tg3.c:3260: 		pci_unmap_single(tp->pdev,
tg3.c:3262: 				 RX_JUMBO_PKT_BUF_SZ - tp->rx_offset,
tg3.c:3273: 		txp = &tp->tx_buffers[i];
tg3.c:3281: 		pci_unmap_single(tp->pdev,
tg3.c:3290: 			txp = &tp->tx_buffers[i & (TG3_TX_RING_SIZE - 1)];
tg3.c:3291: 			pci_unmap_page(tp->pdev,
tg3.c:3306:  * end up in the driver.  tp->{tx,}lock are held and thus
tg3.c:3317: 	memset(tp->rx_std, 0, TG3_RX_RING_BYTES);
tg3.c:3318: 	memset(tp->rx_jumbo, 0, TG3_RX_JUMBO_RING_BYTES);
tg3.c:3319: 	memset(tp->rx_rcb, 0, TG3_RX_RCB_RING_BYTES(tp));
tg3.c:3320: 	memset(tp->tx_ring, 0, TG3_TX_RING_BYTES);
tg3.c:3329: 		rxd = &tp->rx_std[i];
tg3.c:3330: 		rxd->idx_len = (RX_PKT_BUF_SZ - tp->rx_offset - 64)
tg3.c:3337: 	if (tp->tg3_flags & TG3_FLAG_JUMBO_ENABLE) {
tg3.c:3341: 			rxd = &tp->rx_jumbo[i];
tg3.c:3342: 			rxd->idx_len = (RX_JUMBO_PKT_BUF_SZ - tp->rx_offset - 64)
tg3.c:3352: 	for (i = 0; i < tp->rx_pending; i++) {
tg3.c:3358: 	if (tp->tg3_flags & TG3_FLAG_JUMBO_ENABLE) {
tg3.c:3359: 		for (i = 0; i < tp->rx_jumbo_pending; i++) {
tg3.c:3373: 	if (tp->rx_std_buffers) {
tg3.c:3374: 		kfree(tp->rx_std_buffers);
tg3.c:3375: 		tp->rx_std_buffers = NULL;
tg3.c:3377: 	if (tp->rx_std) {
tg3.c:3378: 		pci_free_consistent(tp->pdev, TG3_RX_RING_BYTES,
tg3.c:3379: 				    tp->rx_std, tp->rx_std_mapping);
tg3.c:3380: 		tp->rx_std = NULL;
tg3.c:3382: 	if (tp->rx_jumbo) {
tg3.c:3383: 		pci_free_consistent(tp->pdev, TG3_RX_JUMBO_RING_BYTES,
tg3.c:3384: 				    tp->rx_jumbo, tp->rx_jumbo_mapping);
tg3.c:3385: 		tp->rx_jumbo = NULL;
tg3.c:3387: 	if (tp->rx_rcb) {
tg3.c:3388: 		pci_free_consistent(tp->pdev, TG3_RX_RCB_RING_BYTES(tp),
tg3.c:3389: 				    tp->rx_rcb, tp->rx_rcb_mapping);
tg3.c:3390: 		tp->rx_rcb = NULL;
tg3.c:3392: 	if (tp->tx_ring) {
tg3.c:3393: 		pci_free_consistent(tp->pdev, TG3_TX_RING_BYTES,
tg3.c:3394: 			tp->tx_ring, tp->tx_desc_mapping);
tg3.c:3395: 		tp->tx_ring = NULL;
tg3.c:3397: 	if (tp->hw_status) {
tg3.c:3398: 		pci_free_consistent(tp->pdev, TG3_HW_STATUS_SIZE,
tg3.c:3399: 				    tp->hw_status, tp->status_mapping);
tg3.c:3400: 		tp->hw_status = NULL;
tg3.c:3402: 	if (tp->hw_stats) {
tg3.c:3403: 		pci_free_consistent(tp->pdev, sizeof(struct tg3_hw_stats),
tg3.c:3404: 				    tp->hw_stats, tp->stats_mapping);
tg3.c:3405: 		tp->hw_stats = NULL;
tg3.c:3415: 	tp->rx_std_buffers = kmalloc((sizeof(struct ring_info) *
tg3.c:3421: 	if (!tp->rx_std_buffers)
tg3.c:3424: 	memset(tp->rx_std_buffers, 0,
tg3.c:3431: 	tp->rx_jumbo_buffers = &tp->rx_std_buffers[TG3_RX_RING_SIZE];
tg3.c:3432: 	tp->tx_buffers = (struct tx_ring_info *)
tg3.c:3433: 		&tp->rx_jumbo_buffers[TG3_RX_JUMBO_RING_SIZE];
tg3.c:3435: 	tp->rx_std = pci_alloc_consistent(tp->pdev, TG3_RX_RING_BYTES,
tg3.c:3436: 					  &tp->rx_std_mapping);
tg3.c:3437: 	if (!tp->rx_std)
tg3.c:3440: 	tp->rx_jumbo = pci_alloc_consistent(tp->pdev, TG3_RX_JUMBO_RING_BYTES,
tg3.c:3441: 					    &tp->rx_jumbo_mapping);
tg3.c:3443: 	if (!tp->rx_jumbo)
tg3.c:3446: 	tp->rx_rcb = pci_alloc_consistent(tp->pdev, TG3_RX_RCB_RING_BYTES(tp),
tg3.c:3447: 					  &tp->rx_rcb_mapping);
tg3.c:3448: 	if (!tp->rx_rcb)
tg3.c:3451: 	tp->tx_ring = pci_alloc_consistent(tp->pdev, TG3_TX_RING_BYTES,
tg3.c:3452: 					   &tp->tx_desc_mapping);
tg3.c:3453: 	if (!tp->tx_ring)
tg3.c:3456: 	tp->hw_status = pci_alloc_consistent(tp->pdev,
tg3.c:3458: 					     &tp->status_mapping);
tg3.c:3459: 	if (!tp->hw_status)
tg3.c:3462: 	tp->hw_stats = pci_alloc_consistent(tp->pdev,
tg3.c:3464: 					    &tp->stats_mapping);
tg3.c:3465: 	if (!tp->hw_stats)
tg3.c:3468: 	memset(tp->hw_status, 0, TG3_HW_STATUS_SIZE);
tg3.c:3469: 	memset(tp->hw_stats, 0, sizeof(struct tg3_hw_stats));
tg3.c:3481:  * clears.  tp->lock is held.
tg3.c:3488: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 ||
tg3.c:3489: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) {
tg3.c:3527: /* tp->lock is held. */
tg3.c:3534: 	tp->rx_mode &= ~RX_MODE_ENABLE;
tg3.c:3535: 	tw32_f(MAC_RX_MODE, tp->rx_mode);
tg3.c:3555: 	tp->mac_mode &= ~MAC_MODE_TDE_ENABLE;
tg3.c:3556: 	tw32_f(MAC_MODE, tp->mac_mode);
tg3.c:3559: 	tp->tx_mode &= ~TX_MODE_ENABLE;
tg3.c:3560: 	tw32_f(MAC_TX_MODE, tp->tx_mode);
tg3.c:3570: 		       tp->dev->name, tr32(MAC_TX_MODE));
tg3.c:3586: 	if (tp->hw_status)
tg3.c:3587: 		memset(tp->hw_status, 0, TG3_HW_STATUS_SIZE);
tg3.c:3588: 	if (tp->hw_stats)
tg3.c:3589: 		memset(tp->hw_stats, 0, sizeof(struct tg3_hw_stats));
tg3.c:3595: /* tp->lock is held. */
tg3.c:3598: 	if (tp->tg3_flags & TG3_FLAG_NVRAM) {
tg3.c:3613: /* tp->lock is held. */
tg3.c:3616: 	if (tp->tg3_flags & TG3_FLAG_NVRAM)
tg3.c:3620: /* tp->lock is held. */
tg3.c:3626: 	if (tp->tg3_flags2 & TG3_FLG2_ASF_NEW_HANDSHAKE) {
tg3.c:3649: /* tp->lock is held. */
tg3.c:3652: 	if (tp->tg3_flags2 & TG3_FLG2_ASF_NEW_HANDSHAKE) {
tg3.c:3670: /* tp->lock is held. */
tg3.c:3673: 	if (tp->tg3_flags & TG3_FLAG_ENABLE_ASF) {
tg3.c:3698: /* tp->lock is held. */
tg3.c:3705: 	if (!(tp->tg3_flags2 & TG3_FLG2_SUN_570X))
tg3.c:3714: 	flags_save = tp->tg3_flags;
tg3.c:3715: 	tp->tg3_flags &= ~TG3_FLAG_5701_REG_WRITE_BUG;
tg3.c:3720: 	if (tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) {
tg3.c:3724: 		if (tp->pci_chip_rev_id != CHIPREV_ID_5750_A0) {
tg3.c:3730: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 ||
tg3.c:3731: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750)
tg3.c:3736: 	tp->tg3_flags = flags_save;
tg3.c:3759: 	pci_read_config_dword(tp->pdev, PCI_COMMAND, &val);
tg3.c:3763: 	if (tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) {
tg3.c:3764: 		if (tp->pci_chip_rev_id == CHIPREV_ID_5750_A0) {
tg3.c:3772: 			pci_read_config_dword(tp->pdev, 0xc4, &cfg_val);
tg3.c:3773: 			pci_write_config_dword(tp->pdev, 0xc4,
tg3.c:3777: 		pci_write_config_dword(tp->pdev, 0xd8, 0xf5000);
tg3.c:3781: 	pci_write_config_dword(tp->pdev, TG3PCI_MISC_HOST_CTRL,
tg3.c:3782: 			       tp->misc_host_ctrl);
tg3.c:3786: 	if (tp->pci_chip_rev_id == CHIPREV_ID_5704_A0 &&
tg3.c:3787: 	    (tp->tg3_flags & TG3_FLAG_PCIX_MODE))
tg3.c:3789: 	pci_write_config_dword(tp->pdev, TG3PCI_PCISTATE, val);
tg3.c:3791: 	pci_restore_state(tp->pdev, tp->pci_cfg_state);
tg3.c:3794: 	pci_read_config_dword(tp->pdev, TG3PCI_X_CAPS, &val);
tg3.c:3796: 	pci_write_config_dword(tp->pdev, TG3PCI_X_CAPS, val);
tg3.c:3800: 	if (tp->pci_chip_rev_id == CHIPREV_ID_5750_A3) {
tg3.c:3805: 	tw32(GRC_MODE, tp->grc_mode);
tg3.c:3807: 	if (tp->pci_chip_rev_id == CHIPREV_ID_5705_A0) {
tg3.c:3813: 	if ((tp->nic_sram_data_cfg & NIC_SRAM_DATA_CFG_MINI_PCI) != 0 &&
tg3.c:3814: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705) {
tg3.c:3815: 		tp->pci_clock_ctrl |= CLOCK_CTRL_CLKRUN_OENABLE;
tg3.c:3816: 		if (tp->pci_chip_rev_id == CHIPREV_ID_5705_A0)
tg3.c:3817: 			tp->pci_clock_ctrl |= CLOCK_CTRL_FORCE_CLKRUN;
tg3.c:3818: 		tw32(TG3PCI_CLOCK_CTRL, tp->pci_clock_ctrl);
tg3.c:3821: 	if (tp->tg3_flags2 & TG3_FLG2_PHY_SERDES) {
tg3.c:3822: 		tp->mac_mode = MAC_MODE_PORT_MODE_TBI;
tg3.c:3823: 		tw32_f(MAC_MODE, tp->mac_mode);
tg3.c:3836: 	    !(tp->tg3_flags2 & TG3_FLG2_SUN_570X)) {
tg3.c:3839: 		       tp->dev->name, val);
tg3.c:3843: 	if ((tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) &&
tg3.c:3844: 	    tp->pci_chip_rev_id != CHIPREV_ID_5750_A0) {
tg3.c:3851: 	tp->tg3_flags &= ~TG3_FLAG_ENABLE_ASF;
tg3.c:3852: 	tp->tg3_flags2 &= ~TG3_FLG2_ASF_NEW_HANDSHAKE;
tg3.c:3859: 			tp->tg3_flags |= TG3_FLAG_ENABLE_ASF;
tg3.c:3860: 			if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750)
tg3.c:3861: 				tp->tg3_flags2 |= TG3_FLG2_ASF_NEW_HANDSHAKE;
tg3.c:3868: /* tp->lock is held. */
tg3.c:3871: 	if (tp->tg3_flags & TG3_FLAG_ENABLE_ASF) {
tg3.c:3889: /* tp->lock is held. */
tg3.c:4039: /* tp->lock is held. */
tg3.c:4045: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705)
tg3.c:4071: 		       tp->dev->name,
tg3.c:4090: /* tp->lock is held. */
tg3.c:4095: 	u32 orig_tg3_flags = tp->tg3_flags;
tg3.c:4099: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705) {
tg3.c:4102: 		       tp->dev->name);
tg3.c:4106: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705)
tg3.c:4114: 	tp->tg3_flags |= TG3_FLAG_PCIX_TARGET_HWBUG;
tg3.c:4146: 	tp->tg3_flags = orig_tg3_flags;
tg3.c:4150: /* tp->lock is held. */
tg3.c:4193: 		       tp->dev->name, tr32(RX_CPU_BASE + CPU_PC),
tg3.c:4708: /* tp->lock is held. */
tg3.c:4715: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750)
tg3.c:4718: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705) {
tg3.c:4771: 		       tp->dev->name, tr32(cpu_base + CPU_PC),
tg3.c:4782: /* tp->lock is held. */
tg3.c:4788: 	addr_high = ((tp->dev->dev_addr[0] << 8) |
tg3.c:4789: 		     tp->dev->dev_addr[1]);
tg3.c:4790: 	addr_low = ((tp->dev->dev_addr[2] << 24) |
tg3.c:4791: 		    (tp->dev->dev_addr[3] << 16) |
tg3.c:4792: 		    (tp->dev->dev_addr[4] <<  8) |
tg3.c:4793: 		    (tp->dev->dev_addr[5] <<  0));
tg3.c:4799: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5700 &&
tg3.c:4800: 	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5701 &&
tg3.c:4801: 	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705) {
tg3.c:4808: 	addr_high = (tp->dev->dev_addr[0] +
tg3.c:4809: 		     tp->dev->dev_addr[1] +
tg3.c:4810: 		     tp->dev->dev_addr[2] +
tg3.c:4811: 		     tp->dev->dev_addr[3] +
tg3.c:4812: 		     tp->dev->dev_addr[4] +
tg3.c:4813: 		     tp->dev->dev_addr[5]) &
tg3.c:4825: 	spin_lock_irq(&tp->lock);
tg3.c:4827: 	spin_unlock_irq(&tp->lock);
tg3.c:4832: /* tp->lock is held. */
tg3.c:4847: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705)
tg3.c:4855: /* tp->lock is held. */
tg3.c:4867: 	if (tp->tg3_flags & TG3_FLAG_INIT_COMPLETE) {
tg3.c:4884: 	if (!(tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS))
tg3.c:4885: 		tp->pci_clock_ctrl |= CLOCK_CTRL_DELAY_PCI_GRANT;
tg3.c:4886: 	tw32_f(TG3PCI_CLOCK_CTRL, tp->pci_clock_ctrl);
tg3.c:4888: 	if (tp->pci_chip_rev_id == CHIPREV_ID_5704_A0 &&
tg3.c:4889: 	    (tp->tg3_flags & TG3_FLAG_PCIX_MODE)) {
tg3.c:4895: 	if (GET_CHIP_REV(tp->pci_chip_rev_id) == CHIPREV_5704_BX) {
tg3.c:4912: 	tw32(TG3PCI_DMA_RW_CTRL, tp->dma_rwctrl);
tg3.c:4914: 	tp->grc_mode &= ~(GRC_MODE_HOST_SENDBDS |
tg3.c:4918: 	tp->grc_mode |= GRC_MODE_HOST_SENDBDS;
tg3.c:4919: 	if (tp->tg3_flags & TG3_FLAG_NO_TX_PSEUDO_CSUM)
tg3.c:4920: 		tp->grc_mode |= GRC_MODE_NO_TX_PHDR_CSUM;
tg3.c:4921: 	if (tp->tg3_flags & TG3_FLAG_NO_RX_PSEUDO_CSUM)
tg3.c:4922: 		tp->grc_mode |= GRC_MODE_NO_RX_PHDR_CSUM;
tg3.c:4925: 	     tp->grc_mode |
tg3.c:4935: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) {
tg3.c:4937: 	} else if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705) {
tg3.c:4939: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704)
tg3.c:4947: 	else if (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE) {
tg3.c:4963: 	if (!(tp->tg3_flags & TG3_FLAG_JUMBO_ENABLE)) {
tg3.c:4965: 		     tp->bufmgr_config.mbuf_read_dma_low_water);
tg3.c:4967: 		     tp->bufmgr_config.mbuf_mac_rx_low_water);
tg3.c:4969: 		     tp->bufmgr_config.mbuf_high_water);
tg3.c:4972: 		     tp->bufmgr_config.mbuf_read_dma_low_water_jumbo);
tg3.c:4974: 		     tp->bufmgr_config.mbuf_mac_rx_low_water_jumbo);
tg3.c:4976: 		     tp->bufmgr_config.mbuf_high_water_jumbo);
tg3.c:4979: 	     tp->bufmgr_config.dma_low_water);
tg3.c:4981: 	     tp->bufmgr_config.dma_high_water);
tg3.c:4991: 		       tp->dev->name);
tg3.c:4996: 	tw32(RCVBDI_STD_THRESH, tp->rx_pending / 8);
tg3.c:5016: 	     ((u64) tp->rx_std_mapping >> 32));
tg3.c:5018: 	     ((u64) tp->rx_std_mapping & 0xffffffff));
tg3.c:5025: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 ||
tg3.c:5026: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) {
tg3.c:5037: 		tw32(RCVBDI_JUMBO_THRESH, tp->rx_jumbo_pending / 8);
tg3.c:5039: 		if (tp->tg3_flags & TG3_FLAG_JUMBO_ENABLE) {
tg3.c:5041: 			     ((u64) tp->rx_jumbo_mapping >> 32));
tg3.c:5043: 			     ((u64) tp->rx_jumbo_mapping & 0xffffffff));
tg3.c:5058: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705 &&
tg3.c:5059: 	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5750) {
tg3.c:5066: 	tp->tx_prod = 0;
tg3.c:5067: 	tp->tx_cons = 0;
tg3.c:5072: 		       tp->tx_desc_mapping,
tg3.c:5080: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705 &&
tg3.c:5081: 	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5750) {
tg3.c:5089: 	tp->rx_rcb_ptr = 0;
tg3.c:5093: 		       tp->rx_rcb_mapping,
tg3.c:5098: 	tp->rx_std_ptr = tp->rx_pending;
tg3.c:5100: 		     tp->rx_std_ptr);
tg3.c:5102: 	tp->rx_jumbo_ptr = (tp->tg3_flags & TG3_FLAG_JUMBO_ENABLE) ?
tg3.c:5103: 						tp->rx_jumbo_pending : 0;
tg3.c:5105: 		     tp->rx_jumbo_ptr);
tg3.c:5111: 	tw32(MAC_RX_MTU_SIZE, tp->dev->mtu + ETH_HLEN + 8);
tg3.c:5133: 	if (tp->tg3_flags & TG3_FLAG_SPLIT_MODE)
tg3.c:5135: 	if ((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 &&
tg3.c:5136: 	     tp->pci_chip_rev_id != CHIPREV_ID_5705_A0) ||
tg3.c:5137: 	    (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750)) {
tg3.c:5138: 		if (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE &&
tg3.c:5139: 		    (tp->pci_chip_rev_id == CHIPREV_ID_5705_A1 ||
tg3.c:5140: 		     tp->pci_chip_rev_id == CHIPREV_ID_5705_A2)) {
tg3.c:5143: 			   !(tp->tg3_flags2 & TG3_FLG2_IS_5788)) {
tg3.c:5149: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750)
tg3.c:5155: 	    (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE)) {
tg3.c:5180: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705 &&
tg3.c:5181: 	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5750) {
tg3.c:5190: 	     ((u64) tp->status_mapping >> 32));
tg3.c:5192: 	     ((u64) tp->status_mapping & 0xffffffff));
tg3.c:5194: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705 &&
tg3.c:5195: 	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5750) {
tg3.c:5203: 		     ((u64) tp->stats_mapping >> 32));
tg3.c:5205: 		     ((u64) tp->stats_mapping & 0xffffffff));
tg3.c:5210: 	tw32(HOSTCC_MODE, HOSTCC_MODE_ENABLE | tp->coalesce_mode);
tg3.c:5214: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705 &&
tg3.c:5215: 	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5750)
tg3.c:5225: 	memset(tp->hw_status, 0, TG3_HW_STATUS_SIZE);
tg3.c:5227: 	tp->mac_mode = MAC_MODE_TXSTAT_ENABLE | MAC_MODE_RXSTAT_ENABLE |
tg3.c:5229: 	tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_RXSTAT_CLEAR | MAC_MODE_TXSTAT_CLEAR);
tg3.c:5232: 	tp->grc_local_ctrl = GRC_LCLCTRL_INT_ON_ATTN | GRC_LCLCTRL_AUTO_SEEPROM;
tg3.c:5233: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700)
tg3.c:5234: 		tp->grc_local_ctrl |= (GRC_LCLCTRL_GPIO_OE1 |
tg3.c:5236: 	tw32_f(GRC_LOCAL_CTRL, tp->grc_local_ctrl);
tg3.c:5242: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705 &&
tg3.c:5243: 	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5750) {
tg3.c:5254: 	if ((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 &&
tg3.c:5255: 	     tp->pci_chip_rev_id != CHIPREV_ID_5705_A0) ||
tg3.c:5256: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) {
tg3.c:5257: 		if ((tp->tg3_flags & TG3_FLG2_TSO_CAPABLE) &&
tg3.c:5258: 		    (tp->pci_chip_rev_id == CHIPREV_ID_5705_A1 ||
tg3.c:5259: 		     tp->pci_chip_rev_id == CHIPREV_ID_5705_A2)) {
tg3.c:5262: 			   !(tp->tg3_flags2 & TG3_FLG2_IS_5788) &&
tg3.c:5263: 			   !(tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS)) {
tg3.c:5271: 	if ((tp->tg3_flags & TG3_FLAG_PCIX_MODE) != 0) {
tg3.c:5273: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703) {
tg3.c:5276: 		} else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704) {
tg3.c:5279: 			if (tp->tg3_flags & TG3_FLAG_SPLIT_MODE)
tg3.c:5280: 				val |= (tp->split_mode_max_reqs <<
tg3.c:5290: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5705 &&
tg3.c:5291: 	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5750)
tg3.c:5299: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750)
tg3.c:5305: 	if (tp->pci_chip_rev_id == CHIPREV_ID_5701_A0) {
tg3.c:5312: 	if (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE) {
tg3.c:5319: 	tp->tx_mode = TX_MODE_ENABLE;
tg3.c:5320: 	tw32_f(MAC_TX_MODE, tp->tx_mode);
tg3.c:5323: 	tp->rx_mode = RX_MODE_ENABLE;
tg3.c:5324: 	tw32_f(MAC_RX_MODE, tp->rx_mode);
tg3.c:5327: 	if (tp->link_config.phy_is_low_power) {
tg3.c:5328: 		tp->link_config.phy_is_low_power = 0;
tg3.c:5329: 		tp->link_config.speed = tp->link_config.orig_speed;
tg3.c:5330: 		tp->link_config.duplex = tp->link_config.orig_duplex;
tg3.c:5331: 		tp->link_config.autoneg = tp->link_config.orig_autoneg;
tg3.c:5334: 	tp->mi_mode = MAC_MI_MODE_BASE;
tg3.c:5335: 	tw32_f(MAC_MI_MODE, tp->mi_mode);
tg3.c:5338: 	tw32(MAC_LED_CTRL, tp->led_ctrl);
tg3.c:5341: 	if (tp->tg3_flags2 & TG3_FLG2_PHY_SERDES) {
tg3.c:5345: 	tw32_f(MAC_RX_MODE, tp->rx_mode);
tg3.c:5348: 	if (tp->tg3_flags2 & TG3_FLG2_PHY_SERDES) {
tg3.c:5349: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704) {
tg3.c:5356: 		if (tp->pci_chip_rev_id == CHIPREV_ID_5703_A1)
tg3.c:5365: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704 &&
tg3.c:5366: 	    (tp->tg3_flags2 & TG3_FLG2_PHY_SERDES)) {
tg3.c:5368: 		tp->tg3_flags2 |= TG3_FLG2_HW_AUTONEG;
tg3.c:5375: 	if (!(tp->tg3_flags2 & TG3_FLG2_PHY_SERDES)) {
tg3.c:5384: 	__tg3_set_rx_mode(tp->dev);
tg3.c:5392: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 ||
tg3.c:5393: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750)
tg3.c:5397: 	if (tp->tg3_flags & TG3_FLAG_ENABLE_ASF)
tg3.c:5437: 	if (tp->tg3_flags & TG3_FLAG_INIT_COMPLETE)
tg3.c:5444:  * packet processing.  Invoked with tp->lock held.
tg3.c:5474: 	struct tg3_hw_stats *sp = tp->hw_stats;
tg3.c:5476: 	if (!netif_carrier_ok(tp->dev))
tg3.c:5514: 	spin_lock_irqsave(&tp->lock, flags);
tg3.c:5515: 	spin_lock(&tp->tx_lock);
tg3.c:5521: 	if (tp->hw_status->status & SD_STATUS_UPDATED) {
tg3.c:5523: 		     tp->grc_local_ctrl | GRC_LCLCTRL_SETINT);
tg3.c:5525: 		tw32(HOSTCC_MODE, tp->coalesce_mode |
tg3.c:5530: 		tp->tg3_flags2 |= TG3_FLG2_RESTART_TIMER;
tg3.c:5531: 		spin_unlock(&tp->tx_lock);
tg3.c:5532: 		spin_unlock_irqrestore(&tp->lock, flags);
tg3.c:5533: 		schedule_work(&tp->reset_task);
tg3.c:5537: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 ||
tg3.c:5538: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750)
tg3.c:5542: 	if (!--tp->timer_counter) {
tg3.c:5543: 		if (tp->tg3_flags & TG3_FLAG_USE_LINKCHG_REG) {
tg3.c:5550: 			if (tp->tg3_flags & TG3_FLAG_USE_MI_INTERRUPT) {
tg3.c:5558: 		} else if (tp->tg3_flags & TG3_FLAG_POLL_SERDES) {
tg3.c:5562: 			if (netif_carrier_ok(tp->dev) &&
tg3.c:5566: 			if (! netif_carrier_ok(tp->dev) &&
tg3.c:5573: 				     (tp->mac_mode &
tg3.c:5576: 				tw32_f(MAC_MODE, tp->mac_mode);
tg3.c:5582: 		tp->timer_counter = tp->timer_multiplier;
tg3.c:5586: 	if (!--tp->asf_counter) {
tg3.c:5587: 		if (tp->tg3_flags & TG3_FLAG_ENABLE_ASF) {
tg3.c:5597: 		tp->asf_counter = tp->asf_multiplier;
tg3.c:5600: 	spin_unlock(&tp->tx_lock);
tg3.c:5601: 	spin_unlock_irqrestore(&tp->lock, flags);
tg3.c:5603: 	tp->timer.expires = jiffies + tp->timer_offset;
tg3.c:5604: 	add_timer(&tp->timer);
tg3.c:5612: 	spin_lock_irq(&tp->lock);
tg3.c:5613: 	spin_lock(&tp->tx_lock);
tg3.c:5616: 	tp->tg3_flags &= ~TG3_FLAG_INIT_COMPLETE;
tg3.c:5618: 	spin_unlock(&tp->tx_lock);
tg3.c:5619: 	spin_unlock_irq(&tp->lock);
tg3.c:5636: 	spin_lock_irq(&tp->lock);
tg3.c:5637: 	spin_lock(&tp->tx_lock);
tg3.c:5644: 		tp->timer_offset = HZ / 10;
tg3.c:5645: 		tp->timer_counter = tp->timer_multiplier = 10;
tg3.c:5646: 		tp->asf_counter = tp->asf_multiplier = (10 * 120);
tg3.c:5648: 		init_timer(&tp->timer);
tg3.c:5649: 		tp->timer.expires = jiffies + tp->timer_offset;
tg3.c:5650: 		tp->timer.data = (unsigned long) tp;
tg3.c:5651: 		tp->timer.function = tg3_timer;
tg3.c:5652: 		add_timer(&tp->timer);
tg3.c:5654: 		tp->tg3_flags |= TG3_FLAG_INIT_COMPLETE;
tg3.c:5657: 	spin_unlock(&tp->tx_lock);
tg3.c:5658: 	spin_unlock_irq(&tp->lock);
tg3.c:5666: 	spin_lock_irq(&tp->lock);
tg3.c:5667: 	spin_lock(&tp->tx_lock);
tg3.c:5671: 	spin_unlock(&tp->tx_lock);
tg3.c:5672: 	spin_unlock_irq(&tp->lock);
tg3.c:5686: 	pci_read_config_word(tp->pdev, PCI_STATUS, &val16);
tg3.c:5687: 	pci_read_config_dword(tp->pdev, TG3PCI_PCISTATE, &val32);
tg3.c:5838: 	       tp->hw_status->status,
tg3.c:5839: 	       tp->hw_status->status_tag,
tg3.c:5840: 	       tp->hw_status->rx_jumbo_consumer,
tg3.c:5841: 	       tp->hw_status->rx_consumer,
tg3.c:5842: 	       tp->hw_status->rx_mini_consumer,
tg3.c:5843: 	       tp->hw_status->idx[0].rx_producer,
tg3.c:5844: 	       tp->hw_status->idx[0].tx_consumer);
tg3.c:5848: 	       ((u32 *)tp->hw_stats)[0],
tg3.c:5849: 	       ((u32 *)tp->hw_stats)[1],
tg3.c:5850: 	       ((u32 *)tp->hw_stats)[2],
tg3.c:5851: 	       ((u32 *)tp->hw_stats)[3]);
tg3.c:5864: 		txd = tp->regs + NIC_SRAM_WIN_BASE + NIC_SRAM_TX_BUFFER_DESC
tg3.c:5876: 		rxd = tp->regs + NIC_SRAM_WIN_BASE + NIC_SRAM_RX_BUFFER_DESC
tg3.c:5892: 		rxd = tp->regs + NIC_SRAM_WIN_BASE + NIC_SRAM_RX_JUMBO_BUFFER_DESC
tg3.c:5916: 	del_timer_sync(&tp->timer);
tg3.c:5918: 	spin_lock_irq(&tp->lock);
tg3.c:5919: 	spin_lock(&tp->tx_lock);
tg3.c:5928: 	tp->tg3_flags &=
tg3.c:5931: 	netif_carrier_off(tp->dev);
tg3.c:5933: 	spin_unlock(&tp->tx_lock);
tg3.c:5934: 	spin_unlock_irq(&tp->lock);
tg3.c:5938: 	memcpy(&tp->net_stats_prev, tg3_get_stats(tp->dev),
tg3.c:5939: 	       sizeof(tp->net_stats_prev));
tg3.c:5940: 	memcpy(&tp->estats_prev, tg3_get_estats(tp),
tg3.c:5941: 	       sizeof(tp->estats_prev));
tg3.c:5962: 	struct tg3_hw_stats *hw_stats = tp->hw_stats;
tg3.c:5964: 	if (!(tp->tg3_flags2 & TG3_FLG2_PHY_SERDES) &&
tg3.c:5965: 	    (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700 ||
tg3.c:5966: 	     GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5701)) {
tg3.c:5970: 		spin_lock_irqsave(&tp->lock, flags);
tg3.c:5974: 		spin_unlock_irqrestore(&tp->lock, flags);
tg3.c:5976: 		tp->phy_crc_errors += val;
tg3.c:5978: 		return tp->phy_crc_errors;
tg3.c:5990: 	struct tg3_ethtool_stats *estats = &tp->estats;
tg3.c:5991: 	struct tg3_ethtool_stats *old_estats = &tp->estats_prev;
tg3.c:5992: 	struct tg3_hw_stats *hw_stats = tp->hw_stats;
tg3.c:6079: 	struct net_device_stats *stats = &tp->net_stats;
tg3.c:6080: 	struct net_device_stats *old_stats = &tp->net_stats_prev;
tg3.c:6081: 	struct tg3_hw_stats *hw_stats = tp->hw_stats;
tg3.c:6173: 	rx_mode = tp->rx_mode & ~(RX_MODE_PROMISC |
tg3.c:6180: 	if (!tp->vlgrp &&
tg3.c:6181: 	    !(tp->tg3_flags & TG3_FLAG_ENABLE_ASF))
tg3.c:6187: 	if (!(tp->tg3_flags & TG3_FLAG_ENABLE_ASF))
tg3.c:6225: 	if (rx_mode != tp->rx_mode) {
tg3.c:6226: 		tp->rx_mode = rx_mode;
tg3.c:6236: 	spin_lock_irq(&tp->lock);
tg3.c:6237: 	spin_lock(&tp->tx_lock);
tg3.c:6239: 	spin_unlock(&tp->tx_lock);
tg3.c:6240: 	spin_unlock_irq(&tp->lock);
tg3.c:6262: 	spin_lock_irq(&tp->lock);
tg3.c:6263: 	spin_lock(&tp->tx_lock);
tg3.c:6306: 	if (tp->tg3_flags & TG3_FLAG_NVRAM)
tg3.c:6313: 	spin_unlock(&tp->tx_lock);
tg3.c:6314: 	spin_unlock_irq(&tp->lock);
tg3.c:6387: 	if (!(tp->tg3_flags & TG3_FLAG_INIT_COMPLETE) ||
tg3.c:6388: 					tp->link_config.phy_is_low_power)
tg3.c:6393: 	if (!(tp->tg3_flags & TG3_FLAG_10_100_ONLY))
tg3.c:6397: 	if (!(tp->tg3_flags2 & TG3_FLG2_PHY_SERDES))
tg3.c:6406: 	cmd->advertising = tp->link_config.advertising;
tg3.c:6407: 	cmd->speed = tp->link_config.active_speed;
tg3.c:6408: 	cmd->duplex = tp->link_config.active_duplex;
tg3.c:6412: 	cmd->autoneg = tp->link_config.autoneg;
tg3.c:6422: 	if (!(tp->tg3_flags & TG3_FLAG_INIT_COMPLETE) ||
tg3.c:6423: 	    tp->link_config.phy_is_low_power)
tg3.c:6426: 	if (tp->tg3_flags2 & TG3_FLG2_PHY_SERDES) {
tg3.c:6436: 	spin_lock_irq(&tp->lock);
tg3.c:6437: 	spin_lock(&tp->tx_lock);
tg3.c:6439: 	tp->link_config.autoneg = cmd->autoneg;
tg3.c:6441: 		tp->link_config.advertising = cmd->advertising;
tg3.c:6442: 		tp->link_config.speed = SPEED_INVALID;
tg3.c:6443: 		tp->link_config.duplex = DUPLEX_INVALID;
tg3.c:6445: 		tp->link_config.advertising = 0;
tg3.c:6446: 		tp->link_config.speed = cmd->speed;
tg3.c:6447: 		tp->link_config.duplex = cmd->duplex;
tg3.c:6451: 	spin_unlock(&tp->tx_lock);
tg3.c:6452: 	spin_unlock_irq(&tp->lock);
tg3.c:6463: 	strcpy(info->bus_info, pci_name(tp->pdev));
tg3.c:6472: 	if (tp->tg3_flags & TG3_FLAG_WOL_ENABLE)
tg3.c:6484: 	    tp->tg3_flags2 & TG3_FLG2_PHY_SERDES &&
tg3.c:6485: 	    !(tp->tg3_flags & TG3_FLAG_SERDES_WOL_CAP))
tg3.c:6488: 	spin_lock_irq(&tp->lock);
tg3.c:6490: 		tp->tg3_flags |= TG3_FLAG_WOL_ENABLE;
tg3.c:6492: 		tp->tg3_flags &= ~TG3_FLAG_WOL_ENABLE;
tg3.c:6493: 	spin_unlock_irq(&tp->lock);
tg3.c:6501: 	return tp->msg_enable;
tg3.c:6507: 	tp->msg_enable = value;
tg3.c:6515: 	if (!(tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE)) {
tg3.c:6530: 	spin_lock_irq(&tp->lock);
tg3.c:6538: 	spin_unlock_irq(&tp->lock);
tg3.c:6551: 	ering->rx_pending = tp->rx_pending;
tg3.c:6553: 	ering->rx_jumbo_pending = tp->rx_jumbo_pending;
tg3.c:6554: 	ering->tx_pending = tp->tx_pending;
tg3.c:6567: 	spin_lock_irq(&tp->lock);
tg3.c:6568: 	spin_lock(&tp->tx_lock);
tg3.c:6570: 	tp->rx_pending = ering->rx_pending;
tg3.c:6572: 	if ((tp->tg3_flags2 & TG3_FLG2_MAX_RXPEND_64) &&
tg3.c:6573: 	    tp->rx_pending > 63)
tg3.c:6574: 		tp->rx_pending = 63;
tg3.c:6575: 	tp->rx_jumbo_pending = ering->rx_jumbo_pending;
tg3.c:6576: 	tp->tx_pending = ering->tx_pending;
tg3.c:6581: 	spin_unlock(&tp->tx_lock);
tg3.c:6582: 	spin_unlock_irq(&tp->lock);
tg3.c:6591: 	epause->autoneg = (tp->tg3_flags & TG3_FLAG_PAUSE_AUTONEG) != 0;
tg3.c:6592: 	epause->rx_pause = (tp->tg3_flags & TG3_FLAG_RX_PAUSE) != 0;
tg3.c:6593: 	epause->tx_pause = (tp->tg3_flags & TG3_FLAG_TX_PAUSE) != 0;
tg3.c:6601: 	spin_lock_irq(&tp->lock);
tg3.c:6602: 	spin_lock(&tp->tx_lock);
tg3.c:6604: 		tp->tg3_flags |= TG3_FLAG_PAUSE_AUTONEG;
tg3.c:6606: 		tp->tg3_flags &= ~TG3_FLAG_PAUSE_AUTONEG;
tg3.c:6608: 		tp->tg3_flags |= TG3_FLAG_RX_PAUSE;
tg3.c:6610: 		tp->tg3_flags &= ~TG3_FLAG_RX_PAUSE;
tg3.c:6612: 		tp->tg3_flags |= TG3_FLAG_TX_PAUSE;
tg3.c:6614: 		tp->tg3_flags &= ~TG3_FLAG_TX_PAUSE;
tg3.c:6618: 	spin_unlock(&tp->tx_lock);
tg3.c:6619: 	spin_unlock_irq(&tp->lock);
tg3.c:6627: 	return (tp->tg3_flags & TG3_FLAG_RX_CHECKSUMS) != 0;
tg3.c:6634: 	if (tp->tg3_flags & TG3_FLAG_BROKEN_CHECKSUMS) {
tg3.c:6640: 	spin_lock_irq(&tp->lock);
tg3.c:6642: 		tp->tg3_flags |= TG3_FLAG_RX_CHECKSUMS;
tg3.c:6644: 		tp->tg3_flags &= ~TG3_FLAG_RX_CHECKSUMS;
tg3.c:6645: 	spin_unlock_irq(&tp->lock);
tg3.c:6654: 	if (tp->tg3_flags & TG3_FLAG_BROKEN_CHECKSUMS) {
tg3.c:6689: 	memcpy(tmp_stats, tg3_get_estats(tp), sizeof(tp->estats));
tg3.c:6706: 		if (tp->tg3_flags2 & TG3_FLG2_PHY_SERDES)
tg3.c:6709: 		spin_lock_irq(&tp->lock);
tg3.c:6711: 		spin_unlock_irq(&tp->lock);
tg3.c:6719: 		if (tp->tg3_flags2 & TG3_FLG2_PHY_SERDES)
tg3.c:6725: 		spin_lock_irq(&tp->lock);
tg3.c:6727: 		spin_unlock_irq(&tp->lock);
tg3.c:6743: 	spin_lock_irq(&tp->lock);
tg3.c:6744: 	spin_lock(&tp->tx_lock);
tg3.c:6746: 	tp->vlgrp = grp;
tg3.c:6751: 	spin_unlock(&tp->tx_lock);
tg3.c:6752: 	spin_unlock_irq(&tp->lock);
tg3.c:6759: 	spin_lock_irq(&tp->lock);
tg3.c:6760: 	spin_lock(&tp->tx_lock);
tg3.c:6761: 	if (tp->vlgrp)
tg3.c:6762: 		tp->vlgrp->vlan_devices[vid] = NULL;
tg3.c:6763: 	spin_unlock(&tp->tx_lock);
tg3.c:6764: 	spin_unlock_irq(&tp->lock);
tg3.c:6806: 	if (tp->tg3_flags2 & TG3_FLG2_SUN_570X)
tg3.c:6823: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5700 &&
tg3.c:6824: 	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5701) {
tg3.c:6827: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) {
tg3.c:6835: 		tp->tg3_flags |= TG3_FLAG_NVRAM;
tg3.c:6838: 				tp->tg3_flags |= TG3_FLAG_NVRAM_BUFFERED;
tg3.c:6844: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) {
tg3.c:6850: 		tp->tg3_flags &= ~(TG3_FLAG_NVRAM | TG3_FLAG_NVRAM_BUFFERED);
tg3.c:6893: 	if (tp->tg3_flags2 & TG3_FLG2_SUN_570X) {
tg3.c:6898: 	if (!(tp->tg3_flags & TG3_FLAG_NVRAM))
tg3.c:6901: 	if (tp->tg3_flags & TG3_FLAG_NVRAM_BUFFERED)
tg3.c:6911: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) {
tg3.c:6934: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) {
tg3.c:6995: 		     tp->pdev->subsystem_vendor) &&
tg3.c:6997: 		     tp->pdev->subsystem_device))
tg3.c:7010: 	tp->phy_id = PHY_ID_INVALID;
tg3.c:7020: 		tp->nic_sram_data_cfg = nic_cfg;
tg3.c:7039: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) {
tg3.c:7049: 			tp->led_ctrl = LED_CTRL_MODE_PHY_1;
tg3.c:7053: 			tp->led_ctrl = LED_CTRL_MODE_PHY_2;
tg3.c:7057: 			tp->led_ctrl = LED_CTRL_MODE_MAC;
tg3.c:7061: 			tp->led_ctrl = LED_CTRL_MODE_SHARED;
tg3.c:7062: 			if (tp->pci_chip_rev_id != CHIPREV_ID_5750_A0 &&
tg3.c:7063: 			    tp->pci_chip_rev_id != CHIPREV_ID_5750_A1)
tg3.c:7064: 				tp->led_ctrl |= (LED_CTRL_MODE_PHY_1 |
tg3.c:7069: 			tp->led_ctrl = LED_CTRL_MODE_SHASTA_MAC;
tg3.c:7073: 			tp->led_ctrl = LED_CTRL_MODE_COMBO;
tg3.c:7074: 			if (tp->pci_chip_rev_id != CHIPREV_ID_5750_A0)
tg3.c:7075: 				tp->led_ctrl |= (LED_CTRL_MODE_PHY_1 |
tg3.c:7081: 		if ((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700 ||
tg3.c:7082: 		     GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5701) &&
tg3.c:7083: 		    tp->pdev->subsystem_vendor == PCI_VENDOR_ID_DELL)
tg3.c:7084: 			tp->led_ctrl = LED_CTRL_MODE_PHY_2;
tg3.c:7086: 		if (((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703) ||
tg3.c:7087: 		     (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704) ||
tg3.c:7088: 		     (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705)) &&
tg3.c:7090: 			tp->tg3_flags |= TG3_FLAG_EEPROM_WRITE_PROT;
tg3.c:7093: 			tp->tg3_flags |= TG3_FLAG_ENABLE_ASF;
tg3.c:7094: 			if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750)
tg3.c:7095: 				tp->tg3_flags2 |= TG3_FLG2_ASF_NEW_HANDSHAKE;
tg3.c:7098: 			tp->tg3_flags |= TG3_FLAG_SERDES_WOL_CAP;
tg3.c:7102: 			tp->tg3_flags2 |= TG3_FLG2_CAPACITIVE_COUPLING;
tg3.c:7109: 	if (tp->tg3_flags & TG3_FLAG_ENABLE_ASF) {
tg3.c:7128: 		tp->phy_id = hw_phy_id;
tg3.c:7130: 			tp->tg3_flags2 |= TG3_FLG2_PHY_SERDES;
tg3.c:7133: 			tp->phy_id = eeprom_phy_id;
tg3.c:7135: 				tp->tg3_flags2 |= TG3_FLG2_PHY_SERDES;
tg3.c:7146: 			tp->phy_id = p->phy_id;
tg3.c:7147: 			if (!tp->phy_id ||
tg3.c:7148: 			    tp->phy_id == PHY_ID_BCM8002)
tg3.c:7149: 				tp->tg3_flags2 |= TG3_FLG2_PHY_SERDES;
tg3.c:7153: 	if (!(tp->tg3_flags2 & TG3_FLG2_PHY_SERDES) &&
tg3.c:7154: 	    !(tp->tg3_flags & TG3_FLAG_ENABLE_ASF)) {
tg3.c:7171: 		if (!(tp->tg3_flags & TG3_FLAG_10_100_ONLY)) {
tg3.c:7174: 			if (tp->pci_chip_rev_id == CHIPREV_ID_5701_A0 ||
tg3.c:7175: 			    tp->pci_chip_rev_id == CHIPREV_ID_5701_B0)
tg3.c:7183: 			if (!(tp->tg3_flags & TG3_FLAG_10_100_ONLY))
tg3.c:7192: 		if (!(tp->tg3_flags & TG3_FLAG_10_100_ONLY))
tg3.c:7197: 	if ((tp->phy_id & PHY_ID_MASK) == PHY_ID_BCM5401) {
tg3.c:7203: 	if (!err && ((tp->phy_id & PHY_ID_MASK) == PHY_ID_BCM5401)) {
tg3.c:7208: 		tp->led_ctrl = LED_CTRL_MODE_PHY_1;
tg3.c:7210: 	if (tp->tg3_flags2 & TG3_FLG2_PHY_SERDES)
tg3.c:7211: 		tp->link_config.advertising =
tg3.c:7216: 	if (tp->tg3_flags & TG3_FLAG_10_100_ONLY)
tg3.c:7217: 		tp->link_config.advertising &=
tg3.c:7229: 	if (tp->tg3_flags2 & TG3_FLG2_SUN_570X) {
tg3.c:7233: 		strcpy(tp->board_part_number, "Sun 570X");
tg3.c:7276: 				memcpy(tp->board_part_number,
tg3.c:7290: 	strcpy(tp->board_part_number, "none");
tg3.c:7296: 	struct pci_dev *pdev = tp->pdev;
tg3.c:7326: 		tp->tg3_flags2 |= TG3_FLG2_SUN_570X;
tg3.c:7345: 		tp->tg3_flags |= TG3_FLAG_MBOX_WRITE_REORDER;
tg3.c:7354: 	pci_read_config_word(tp->pdev, PCI_COMMAND, &pci_cmd);
tg3.c:7356: 	pci_write_config_word(tp->pdev, PCI_COMMAND, pci_cmd);
tg3.c:7364: 	pci_read_config_dword(tp->pdev, TG3PCI_MISC_HOST_CTRL,
tg3.c:7367: 	tp->pci_chip_rev_id = (misc_ctrl_reg >>
tg3.c:7371: 	tp->misc_host_ctrl |= (misc_ctrl_reg &
tg3.c:7373: 	pci_write_config_dword(tp->pdev, TG3PCI_MISC_HOST_CTRL,
tg3.c:7374: 			       tp->misc_host_ctrl);
tg3.c:7376: 	pci_read_config_dword(tp->pdev, TG3PCI_CACHELINESZ,
tg3.c:7379: 	tp->pci_cacheline_sz = (cacheline_sz_reg >>  0) & 0xff;
tg3.c:7380: 	tp->pci_lat_timer    = (cacheline_sz_reg >>  8) & 0xff;
tg3.c:7381: 	tp->pci_hdr_type     = (cacheline_sz_reg >> 16) & 0xff;
tg3.c:7382: 	tp->pci_bist         = (cacheline_sz_reg >> 24) & 0xff;
tg3.c:7384: 	if (pci_find_capability(tp->pdev, PCI_CAP_ID_EXP) != 0)
tg3.c:7385: 		tp->tg3_flags2 |= TG3_FLG2_PCI_EXPRESS;
tg3.c:7387: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703 &&
tg3.c:7388: 	    tp->pci_lat_timer < 64) {
tg3.c:7389: 		tp->pci_lat_timer = 64;
tg3.c:7391: 		cacheline_sz_reg  = ((tp->pci_cacheline_sz & 0xff) <<  0);
tg3.c:7392: 		cacheline_sz_reg |= ((tp->pci_lat_timer    & 0xff) <<  8);
tg3.c:7393: 		cacheline_sz_reg |= ((tp->pci_hdr_type     & 0xff) << 16);
tg3.c:7394: 		cacheline_sz_reg |= ((tp->pci_bist         & 0xff) << 24);
tg3.c:7396: 		pci_write_config_dword(tp->pdev, TG3PCI_CACHELINESZ,
tg3.c:7400: 	pci_read_config_dword(tp->pdev, TG3PCI_PCISTATE,
tg3.c:7404: 		tp->tg3_flags |= TG3_FLAG_PCIX_MODE;
tg3.c:7412: 		if (GET_CHIP_REV(tp->pci_chip_rev_id) == CHIPREV_5700_BX) {
tg3.c:7416: 			tp->tg3_flags |= TG3_FLAG_PCIX_TARGET_HWBUG;
tg3.c:7422: 			pci_read_config_dword(tp->pdev, TG3PCI_PM_CTRL_STAT,
tg3.c:7426: 			pci_write_config_dword(tp->pdev, TG3PCI_PM_CTRL_STAT,
tg3.c:7430: 			pci_read_config_word(tp->pdev, PCI_COMMAND, &pci_cmd);
tg3.c:7432: 			pci_write_config_word(tp->pdev, PCI_COMMAND, pci_cmd);
tg3.c:7442: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5701 ||
tg3.c:7443: 	    ((tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) &&
tg3.c:7444: 	     tp->pci_chip_rev_id == CHIPREV_ID_5750_A0))
tg3.c:7445: 		tp->tg3_flags |= TG3_FLAG_5701_REG_WRITE_BUG;
tg3.c:7448: 		tp->tg3_flags |= TG3_FLAG_PCI_HIGH_SPEED;
tg3.c:7450: 		tp->tg3_flags |= TG3_FLAG_PCI_32BIT;
tg3.c:7453: 	if ((tp->pci_chip_rev_id == CHIPREV_ID_5704_A0) &&
tg3.c:7456: 		pci_write_config_dword(tp->pdev, TG3PCI_PCISTATE, pci_state_reg);
tg3.c:7463: 		       pci_name(tp->pdev));
tg3.c:7470: 	if (tp->pci_chip_rev_id == CHIPREV_ID_5700_B0)
tg3.c:7471: 		tp->tg3_flags |= TG3_FLAG_BROKEN_CHECKSUMS;
tg3.c:7479: 	tp->tg3_flags |= TG3_FLAG_NO_TX_PSEUDO_CSUM;
tg3.c:7480: 	tp->tg3_flags &= ~TG3_FLAG_NO_RX_PSEUDO_CSUM;
tg3.c:7485: 	if (tp->dev->mtu > ETH_DATA_LEN)
tg3.c:7486: 		tp->tg3_flags |= TG3_FLAG_JUMBO_ENABLE;
tg3.c:7489: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700 ||
tg3.c:7490: 	    tp->pci_chip_rev_id == CHIPREV_ID_5701_A0 ||
tg3.c:7491: 	    tp->pci_chip_rev_id == CHIPREV_ID_5701_B0 ||
tg3.c:7492: 	    tp->pci_chip_rev_id == CHIPREV_ID_5701_B2) {
tg3.c:7493: 		tp->tg3_flags &= ~(TG3_FLAG_WOL_SPEED_100MB);
tg3.c:7495: 		tp->tg3_flags |= TG3_FLAG_WOL_SPEED_100MB;
tg3.c:7499: 	if ((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700) ||
tg3.c:7500: 	    ((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705) &&
tg3.c:7501: 	     (tp->pci_chip_rev_id != CHIPREV_ID_5705_A0) &&
tg3.c:7502: 	     (tp->pci_chip_rev_id != CHIPREV_ID_5705_A1)))
tg3.c:7503: 		tp->tg3_flags2 |= TG3_FLG2_NO_ETH_WIRE_SPEED;
tg3.c:7505: 	if (GET_CHIP_REV(tp->pci_chip_rev_id) == CHIPREV_5703_AX ||
tg3.c:7506: 	    GET_CHIP_REV(tp->pci_chip_rev_id) == CHIPREV_5704_AX)
tg3.c:7507: 		tp->tg3_flags2 |= TG3_FLG2_PHY_ADC_BUG;
tg3.c:7508: 	if (tp->pci_chip_rev_id == CHIPREV_ID_5704_A0)
tg3.c:7509: 		tp->tg3_flags2 |= TG3_FLG2_PHY_5704_A0_BUG;
tg3.c:7511: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 ||
tg3.c:7512: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750)
tg3.c:7513: 		tp->tg3_flags2 |= TG3_FLG2_PHY_BER_BUG;
tg3.c:7522: 	tp->coalesce_mode = 0;
tg3.c:7524: 	if (GET_CHIP_REV(tp->pci_chip_rev_id) != CHIPREV_5700_AX &&
tg3.c:7525: 	    GET_CHIP_REV(tp->pci_chip_rev_id) != CHIPREV_5700_BX)
tg3.c:7526: 		tp->coalesce_mode |= HOSTCC_MODE_32BYTE;
tg3.c:7529: 	tw32_f(MAC_MI_MODE, tp->mi_mode);
tg3.c:7535: 	tw32(GRC_MODE, val | tp->grc_mode);
tg3.c:7542: 	pci_read_config_dword(tp->pdev, TG3PCI_PCISTATE,
tg3.c:7545: 	    (tp->tg3_flags & TG3_FLAG_PCIX_TARGET_HWBUG) == 0) {
tg3.c:7546: 		u32 chiprevid = GET_CHIP_REV_ID(tp->misc_host_ctrl);
tg3.c:7558: 			sram_base = tp->regs + NIC_SRAM_WIN_BASE + NIC_SRAM_STATS_BLK;
tg3.c:7564: 				tp->tg3_flags |= TG3_FLAG_PCIX_TARGET_HWBUG;
tg3.c:7576: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704 &&
tg3.c:7578: 		tp->tg3_flags |= TG3_FLAG_SPLIT_MODE;
tg3.c:7579: 		tp->split_mode_max_reqs = SPLIT_MODE_5704_MAX_REQ;
tg3.c:7582: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 &&
tg3.c:7585: 		tp->tg3_flags2 |= TG3_FLG2_IS_5788;
tg3.c:7588: 	if ((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703 &&
tg3.c:7590: 	    (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 &&
tg3.c:7591: 	     tp->pdev->vendor == PCI_VENDOR_ID_BROADCOM &&
tg3.c:7592: 	     (tp->pdev->device == PCI_DEVICE_ID_TIGON3_5901 ||
tg3.c:7593: 	      tp->pdev->device == PCI_DEVICE_ID_TIGON3_5901_2 ||
tg3.c:7594: 	      tp->pdev->device == PCI_DEVICE_ID_TIGON3_5705F)) ||
tg3.c:7595: 	    (tp->pdev->vendor == PCI_VENDOR_ID_BROADCOM &&
tg3.c:7596: 	     tp->pdev->device == PCI_DEVICE_ID_TIGON3_5751F))
tg3.c:7597: 		tp->tg3_flags |= TG3_FLAG_10_100_ONLY;
tg3.c:7602: 		       pci_name(tp->pdev), err);
tg3.c:7608: 	if (tp->tg3_flags2 & TG3_FLG2_PHY_SERDES) {
tg3.c:7609: 		tp->tg3_flags &= ~TG3_FLAG_USE_MI_INTERRUPT;
tg3.c:7611: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700)
tg3.c:7612: 			tp->tg3_flags |= TG3_FLAG_USE_MI_INTERRUPT;
tg3.c:7614: 			tp->tg3_flags &= ~TG3_FLAG_USE_MI_INTERRUPT;
tg3.c:7621: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700)
tg3.c:7622: 		tp->tg3_flags |= TG3_FLAG_USE_LINKCHG_REG;
tg3.c:7624: 		tp->tg3_flags &= ~TG3_FLAG_USE_LINKCHG_REG;
tg3.c:7630: 	if (tp->pdev->subsystem_vendor == PCI_VENDOR_ID_DELL &&
tg3.c:7631: 	    !(tp->tg3_flags2 & TG3_FLG2_PHY_SERDES)) {
tg3.c:7632: 		tp->tg3_flags |= (TG3_FLAG_USE_MI_INTERRUPT |
tg3.c:7637: 	if (tp->tg3_flags2 & TG3_FLG2_PHY_SERDES)
tg3.c:7638: 		tp->tg3_flags |= TG3_FLAG_POLL_SERDES;
tg3.c:7640: 		tp->tg3_flags &= ~TG3_FLAG_POLL_SERDES;
tg3.c:7645: 	if (GET_CHIP_REV(tp->pci_chip_rev_id) == CHIPREV_5700_BX)
tg3.c:7646: 		tp->tg3_flags |= TG3_FLAG_TXD_MBOX_HWBUG;
tg3.c:7648: 		tp->tg3_flags &= ~TG3_FLAG_TXD_MBOX_HWBUG;
tg3.c:7653: 	tp->dev->hard_start_xmit = tg3_start_xmit;
tg3.c:7655: 	tp->rx_offset = 2;
tg3.c:7656: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5701 &&
tg3.c:7657: 	    (tp->tg3_flags & TG3_FLAG_PCIX_MODE) != 0)
tg3.c:7658: 		tp->rx_offset = 0;
tg3.c:7663: 	tp->tg3_flags &= ~TG3_FLAG_WOL_ENABLE;
tg3.c:7671: 	struct net_device *dev = tp->dev;
tg3.c:7672: 	struct pci_dev *pdev = tp->pdev;
tg3.c:7689: 	struct net_device *dev = tp->dev;
tg3.c:7698: 	struct net_device *dev = tp->dev;
tg3.c:7707: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704 &&
tg3.c:7708: 	    !(tp->tg3_flags & TG3_FLG2_SUN_570X)) {
tg3.c:7730: 	else if (!(tp->tg3_flags & TG3_FLG2_SUN_570X) &&
tg3.c:7813: 		pci_write_config_dword(tp->pdev, TG3PCI_MEM_WIN_BASE_ADDR,
tg3.c:7815: 		pci_write_config_dword(tp->pdev, TG3PCI_MEM_WIN_DATA, val);
tg3.c:7817: 	pci_write_config_dword(tp->pdev, TG3PCI_MEM_WIN_BASE_ADDR, 0);
tg3.c:7852: 	buf = pci_alloc_consistent(tp->pdev, TEST_BUFFER_SIZE, &buf_dma);
tg3.c:7858: 	tp->dma_rwctrl = ((0x7 << DMA_RWCTRL_PCI_WRITE_CMD_SHIFT) |
tg3.c:7865: 		pci_read_config_byte(tp->pdev, PCI_CACHE_LINE_SIZE, &byte);
tg3.c:7877: 			if ((tp->tg3_flags & TG3_FLAG_PCIX_MODE) &&
tg3.c:7878: 			    !(tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS)) {
tg3.c:7879: 				tp->dma_rwctrl |=
tg3.c:7882: 			} else if (tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) {
tg3.c:7883: 				tp->dma_rwctrl &=
tg3.c:7885: 				tp->dma_rwctrl |=
tg3.c:7891: 			if (!(tp->tg3_flags & TG3_FLAG_PCIX_MODE) &&
tg3.c:7892: 			    !(tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS))
tg3.c:7893: 				tp->dma_rwctrl |=
tg3.c:7895: 			else if (!(tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS))
tg3.c:7896: 				tp->dma_rwctrl |=
tg3.c:7902: 	if (tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) {
tg3.c:7903: 		tp->dma_rwctrl |= 0x001f0000;
tg3.c:7904: 	} else if (!(tp->tg3_flags & TG3_FLAG_PCIX_MODE)) {
tg3.c:7905: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 ||
tg3.c:7906: 		    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750)
tg3.c:7907: 			tp->dma_rwctrl |= 0x003f0000;
tg3.c:7909: 			tp->dma_rwctrl |= 0x003f000f;
tg3.c:7911: 		if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703 ||
tg3.c:7912: 		    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704) {
tg3.c:7916: 				tp->dma_rwctrl |= DMA_RWCTRL_ONE_DMA;
tg3.c:7919: 			tp->dma_rwctrl |= 0x009f0000;
tg3.c:7921: 			tp->dma_rwctrl |= 0x001b000f;
tg3.c:7925: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5703 ||
tg3.c:7926: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704)
tg3.c:7927: 		tp->dma_rwctrl &= 0xfffffff0;
tg3.c:7929: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700 ||
tg3.c:7930: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5701) {
tg3.c:7932: 		tp->dma_rwctrl |= DMA_RWCTRL_USE_MEM_READ_MULT;
tg3.c:7944: 		tp->dma_rwctrl |= DMA_RWCTRL_ASSERT_ALL_BE;
tg3.c:7947: 	tw32(TG3PCI_DMA_RW_CTRL, tp->dma_rwctrl);
tg3.c:7955: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5700 &&
tg3.c:7956: 	    GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5701)
tg3.c:7997: 			if ((tp->dma_rwctrl & DMA_RWCTRL_WRITE_BNDRY_MASK) ==
tg3.c:7999: 				tp->dma_rwctrl |= DMA_RWCTRL_WRITE_BNDRY_16;
tg3.c:8000: 				tw32(TG3PCI_DMA_RW_CTRL, tp->dma_rwctrl);
tg3.c:8017: 	pci_free_consistent(tp->pdev, TEST_BUFFER_SIZE, buf, buf_dma);
tg3.c:8024: 	tp->link_config.advertising =
tg3.c:8029: 	tp->link_config.speed = SPEED_INVALID;
tg3.c:8030: 	tp->link_config.duplex = DUPLEX_INVALID;
tg3.c:8031: 	tp->link_config.autoneg = AUTONEG_ENABLE;
tg3.c:8032: 	netif_carrier_off(tp->dev);
tg3.c:8033: 	tp->link_config.active_speed = SPEED_INVALID;
tg3.c:8034: 	tp->link_config.active_duplex = DUPLEX_INVALID;
tg3.c:8035: 	tp->link_config.phy_is_low_power = 0;
tg3.c:8036: 	tp->link_config.orig_speed = SPEED_INVALID;
tg3.c:8037: 	tp->link_config.orig_duplex = DUPLEX_INVALID;
tg3.c:8038: 	tp->link_config.orig_autoneg = AUTONEG_INVALID;
tg3.c:8043: 	tp->bufmgr_config.mbuf_read_dma_low_water =
tg3.c:8045: 	tp->bufmgr_config.mbuf_mac_rx_low_water =
tg3.c:8047: 	tp->bufmgr_config.mbuf_high_water =
tg3.c:8050: 	tp->bufmgr_config.mbuf_read_dma_low_water_jumbo =
tg3.c:8052: 	tp->bufmgr_config.mbuf_mac_rx_low_water_jumbo =
tg3.c:8054: 	tp->bufmgr_config.mbuf_high_water_jumbo =
tg3.c:8057: 	tp->bufmgr_config.dma_low_water = DEFAULT_DMA_LOW_WATER;
tg3.c:8058: 	tp->bufmgr_config.dma_high_water = DEFAULT_DMA_HIGH_WATER;
tg3.c:8063: 	switch (tp->phy_id & PHY_ID_MASK) {
tg3.c:8081: 	unsigned int func, devnr = tp->pdev->devfn & ~7;
tg3.c:8084: 		peer = pci_get_slot(tp->pdev->bus, devnr | func);
tg3.c:8085: 		if (peer && peer != tp->pdev)
tg3.c:8089: 	if (!peer || peer == tp->pdev)
tg3.c:8188: 	tp->pdev = pdev;
tg3.c:8189: 	tp->dev = dev;
tg3.c:8190: 	tp->pm_cap = pm_cap;
tg3.c:8191: 	tp->mac_mode = TG3_DEF_MAC_MODE;
tg3.c:8192: 	tp->rx_mode = TG3_DEF_RX_MODE;
tg3.c:8193: 	tp->tx_mode = TG3_DEF_TX_MODE;
tg3.c:8194: 	tp->mi_mode = MAC_MI_MODE_BASE;
tg3.c:8196: 		tp->msg_enable = tg3_debug;
tg3.c:8198: 		tp->msg_enable = TG3_DEF_MSG_ENABLE;
tg3.c:8204: 	tp->misc_host_ctrl =
tg3.c:8216: 	tp->grc_mode = (GRC_MODE_WSWAP_DATA | GRC_MODE_BSWAP_DATA |
tg3.c:8219: 	tp->grc_mode |= GRC_MODE_BSWAP_NONFRM_DATA;
tg3.c:8221: 	spin_lock_init(&tp->lock);
tg3.c:8222: 	spin_lock_init(&tp->tx_lock);
tg3.c:8223: 	spin_lock_init(&tp->indirect_lock);
tg3.c:8224: 	INIT_WORK(&tp->reset_task, tg3_reset_task, tp);
tg3.c:8226: 	tp->regs = ioremap(tg3reg_base, tg3reg_len);
tg3.c:8227: 	if (tp->regs == 0UL) {
tg3.c:8238: 	tp->rx_pending = TG3_DEF_RX_RING_PENDING;
tg3.c:8239: 	tp->rx_jumbo_pending = TG3_DEF_RX_JUMBO_RING_PENDING;
tg3.c:8240: 	tp->tx_pending = TG3_DEF_TX_RING_PENDING;
tg3.c:8266: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705 ||
tg3.c:8267: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) {
tg3.c:8268: 		tp->bufmgr_config.mbuf_read_dma_low_water =
tg3.c:8270: 		tp->bufmgr_config.mbuf_mac_rx_low_water =
tg3.c:8272: 		tp->bufmgr_config.mbuf_high_water =
tg3.c:8277: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5700 ||
tg3.c:8278: 	    GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5701 ||
tg3.c:8279: 	    tp->pci_chip_rev_id == CHIPREV_ID_5705_A0 ||
tg3.c:8280: 	    ((tp->tg3_flags & TG3_FLAG_ENABLE_ASF) != 0 &&
tg3.c:8281: 	     GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5750)) {
tg3.c:8282: 		tp->tg3_flags2 &= ~TG3_FLG2_TSO_CAPABLE;
tg3.c:8284: 		tp->tg3_flags2 |= TG3_FLG2_TSO_CAPABLE;
tg3.c:8289: 	if (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE)
tg3.c:8295: 	if (tp->pci_chip_rev_id == CHIPREV_ID_5705_A1 &&
tg3.c:8296: 	    !(tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE) &&
tg3.c:8298: 		tp->tg3_flags2 |= TG3_FLG2_MAX_RXPEND_64;
tg3.c:8299: 		tp->rx_pending = 63;
tg3.c:8302: 	if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5704)
tg3.c:8303: 		tp->pdev_peer = tg3_find_5704_peer(tp);
tg3.c:8319: 		pci_save_state(tp->pdev, tp->pci_cfg_state);
tg3.c:8333: 	if ((tp->tg3_flags & TG3_FLAG_BROKEN_CHECKSUMS) == 0) {
tg3.c:8335: 		tp->tg3_flags |= TG3_FLAG_RX_CHECKSUMS;
tg3.c:8337: 		tp->tg3_flags &= ~TG3_FLAG_RX_CHECKSUMS;
tg3.c:8339: 	if (tp->tg3_flags2 & TG3_FLG2_IS_5788)
tg3.c:8343: 	tp->tg3_flags |= TG3_FLAG_PAUSE_AUTONEG;
tg3.c:8358: 	pci_save_state(tp->pdev, tp->pci_cfg_state);
tg3.c:8362: 	       tp->board_part_number,
tg3.c:8363: 	       tp->pci_chip_rev_id,
tg3.c:8365: 	       ((tp->tg3_flags & TG3_FLAG_PCIX_MODE) ? "X" : ""),
tg3.c:8366: 	       ((tp->tg3_flags & TG3_FLAG_PCI_HIGH_SPEED) ?
tg3.c:8367: 		((tp->tg3_flags & TG3_FLAG_PCIX_MODE) ? "133MHz" : "66MHz") :
tg3.c:8368: 		((tp->tg3_flags & TG3_FLAG_PCIX_MODE) ? "100MHz" : "33MHz")),
tg3.c:8369: 	       ((tp->tg3_flags & TG3_FLAG_PCI_32BIT) ? "32-bit" : "64-bit"),
tg3.c:8370: 	       (tp->tg3_flags & TG3_FLAG_10_100_ONLY) ? "10/100" : "10/100/1000");
tg3.c:8380: 	       (tp->tg3_flags & TG3_FLAG_RX_CHECKSUMS) != 0,
tg3.c:8381: 	       (tp->tg3_flags & TG3_FLAG_USE_LINKCHG_REG) != 0,
tg3.c:8382: 	       (tp->tg3_flags & TG3_FLAG_USE_MI_INTERRUPT) != 0,
tg3.c:8383: 	       (tp->tg3_flags & TG3_FLAG_ENABLE_ASF) != 0,
tg3.c:8384: 	       (tp->tg3_flags & TG3_FLAG_SPLIT_MODE) != 0,
tg3.c:8385: 	       (tp->tg3_flags2 & TG3_FLG2_NO_ETH_WIRE_SPEED) == 0,
tg3.c:8386: 	       (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE) != 0);
tg3.c:8391: 	iounmap(tp->regs);
tg3.c:8413: 		iounmap(tp->regs);
tg3.c:8432: 	del_timer_sync(&tp->timer);
tg3.c:8434: 	spin_lock_irq(&tp->lock);
tg3.c:8435: 	spin_lock(&tp->tx_lock);
tg3.c:8437: 	spin_unlock(&tp->tx_lock);
tg3.c:8438: 	spin_unlock_irq(&tp->lock);
tg3.c:8442: 	spin_lock_irq(&tp->lock);
tg3.c:8443: 	spin_lock(&tp->tx_lock);
tg3.c:8445: 	spin_unlock(&tp->tx_lock);
tg3.c:8446: 	spin_unlock_irq(&tp->lock);
tg3.c:8450: 		spin_lock_irq(&tp->lock);
tg3.c:8451: 		spin_lock(&tp->tx_lock);
tg3.c:8455: 		tp->timer.expires = jiffies + tp->timer_offset;
tg3.c:8456: 		add_timer(&tp->timer);
tg3.c:8461: 		spin_unlock(&tp->tx_lock);
tg3.c:8462: 		spin_unlock_irq(&tp->lock);
tg3.c:8477: 	pci_restore_state(tp->pdev, tp->pci_cfg_state);
tg3.c:8485: 	spin_lock_irq(&tp->lock);
tg3.c:8486: 	spin_lock(&tp->tx_lock);
tg3.c:8490: 	tp->timer.expires = jiffies + tp->timer_offset;
tg3.c:8491: 	add_timer(&tp->timer);
tg3.c:8497: 	spin_unlock(&tp->tx_lock);
tg3.c:8498: 	spin_unlock_irq(&tp->lock);
