if ((tp->tg3_flags & TG3_FLAG_PCIX_TARGET_HWBUG) != 0) { spin_lock_bh(&tp->indirect_lock); pci_write_config_dword(tp->pdev, TG3PCI_REG_BASE_ADDR, off); pci_write_config_dword(tp->pdev, TG3PCI_REG_DATA, val); spin_unlock_bh(&tp->indirect_lock); } else { writel(val, tp->regs + off); if ((tp->tg3_flags & TG3_FLAG_5701_REG_WRITE_BUG) != 0) readl(tp->regs + off); } 
spin_lock_bh(&tp->indirect_lock); pci_write_config_dword(tp->pdev, TG3PCI_REG_BASE_ADDR, off); pci_write_config_dword(tp->pdev, TG3PCI_REG_DATA, val); spin_unlock_bh(&tp->indirect_lock); 
static void tg3_write_indirect_reg32(struct tg3 *tp, u32 off, u32 val){	if ((tp->tg3_flags & TG3_FLAG_PCIX_TARGET_HWBUG) != 0) {		spin_lock_bh(&tp->indirect_lock);		pci_write_config_dword(tp->pdev, TG3PCI_REG_BASE_ADDR, off);		pci_write_config_dword(tp->pdev, TG3PCI_REG_DATA, val);		spin_unlock_bh(&tp->indirect_lock);	} else {		writel(val, tp->regs + off);		if ((tp->tg3_flags & TG3_FLAG_5701_REG_WRITE_BUG) != 0)			readl(tp->regs + off);	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1ee582d8e49a1c9dd43b2599f1cd26507182a8d4/tg3.c/clean/drivers/net/tg3.c