Lines Matching refs:base_addr
177 void __iomem *base_addr = d->hba.base_addr; in dino_cfg_read() local
180 DBG("%s: %p, %d, %d, %d\n", __func__, base_addr, devfn, where, in dino_cfg_read()
185 __raw_writel(v, base_addr + DINO_PCI_ADDR); in dino_cfg_read()
189 *val = readb(base_addr + DINO_CONFIG_DATA + (where & 3)); in dino_cfg_read()
191 *val = readw(base_addr + DINO_CONFIG_DATA + (where & 2)); in dino_cfg_read()
193 *val = readl(base_addr + DINO_CONFIG_DATA); in dino_cfg_read()
212 void __iomem *base_addr = d->hba.base_addr; in dino_cfg_write() local
215 DBG("%s: %p, %d, %d, %d\n", __func__, base_addr, devfn, where, in dino_cfg_write()
220 __raw_writel(v & 0xffffff00, base_addr + DINO_PCI_ADDR); in dino_cfg_write()
221 __raw_readl(base_addr + DINO_CONFIG_DATA); in dino_cfg_write()
224 __raw_writel(v, base_addr + DINO_PCI_ADDR); in dino_cfg_write()
227 writeb(val, base_addr + DINO_CONFIG_DATA + (where & 3)); in dino_cfg_write()
229 writew(val, base_addr + DINO_CONFIG_DATA + (where & 2)); in dino_cfg_write()
231 writel(val, base_addr + DINO_CONFIG_DATA); in dino_cfg_write()
260 __raw_writel((u32) addr, d->base_addr + DINO_PCI_ADDR); \
262 v = read##type(d->base_addr+DINO_IO_DATA+(addr&mask)); \
277 __raw_writel((u32) addr, d->base_addr + DINO_PCI_ADDR); \
279 write##type(val, d->base_addr+DINO_IO_DATA+(addr&mask)); \
305 __raw_writel(dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR); in dino_mask_irq()
322 __raw_readl(dino_dev->hba.base_addr+DINO_IPR); in dino_unmask_irq()
326 __raw_writel( dino_dev->imr, dino_dev->hba.base_addr+DINO_IMR); in dino_unmask_irq()
337 tmp = __raw_readl(dino_dev->hba.base_addr+DINO_ILR); in dino_unmask_irq()
363 __raw_writel(eim, dino_dev->hba.base_addr+DINO_IAR0); in dino_set_affinity_irq()
397 mask = __raw_readl(dino_dev->hba.base_addr+DINO_IRR0) & DINO_IRR_MASK; in dino_isr()
419 mask = __raw_readl(dino_dev->hba.base_addr+DINO_ILR) & dino_dev->imr; in dino_isr()
424 dino_dev->hba.base_addr, mask); in dino_isr()
508 dino_card_setup(struct pci_bus *bus, void __iomem *base_addr) in dino_card_setup() argument
550 i, res->start, base_addr + DINO_IO_ADDR_EN); in dino_card_setup()
551 __raw_writel(1 << i, base_addr + DINO_IO_ADDR_EN); in dino_card_setup()
609 dino_card_setup(bus, dino_dev->hba.base_addr); in dino_fixup_bus()
710 status = __raw_readl(dino_dev->hba.base_addr+DINO_IO_STATUS); in dino_card_init()
713 dino_dev->hba.base_addr+DINO_IO_COMMAND); in dino_card_init()
717 __raw_writel(0x00000000, dino_dev->hba.base_addr+DINO_GMASK); in dino_card_init()
718 __raw_writel(0x00000001, dino_dev->hba.base_addr+DINO_IO_FBB_EN); in dino_card_init()
719 __raw_writel(0x00000000, dino_dev->hba.base_addr+DINO_ICR); in dino_card_init()
729 __raw_writel( brdg_feat, dino_dev->hba.base_addr+DINO_BRDG_FEAT); in dino_card_init()
736 __raw_writel(0x00000000, dino_dev->hba.base_addr+DINO_IO_ADDR_EN); in dino_card_init()
738 __raw_writel(0x00000000, dino_dev->hba.base_addr+DINO_DAMODE); in dino_card_init()
739 __raw_writel(0x00222222, dino_dev->hba.base_addr+DINO_PCIROR); in dino_card_init()
740 __raw_writel(0x00222222, dino_dev->hba.base_addr+DINO_PCIWOR); in dino_card_init()
742 __raw_writel(0x00000040, dino_dev->hba.base_addr+DINO_MLTIM); in dino_card_init()
743 __raw_writel(0x00000080, dino_dev->hba.base_addr+DINO_IO_CONTROL); in dino_card_init()
744 __raw_writel(0x0000008c, dino_dev->hba.base_addr+DINO_TLTIM); in dino_card_init()
747 __raw_writel(0x0000007e, dino_dev->hba.base_addr+DINO_PAMR); in dino_card_init()
748 __raw_writel(0x0000007f, dino_dev->hba.base_addr+DINO_PAPR); in dino_card_init()
749 __raw_writel(0x00000000, dino_dev->hba.base_addr+DINO_PAMR); in dino_card_init()
756 __raw_writel(0x0000004f, dino_dev->hba.base_addr+DINO_PCICMD); in dino_card_init()
777 io_addr = __raw_readl(dino_dev->hba.base_addr + DINO_IO_ADDR_EN); in dino_bridge_init()
881 __raw_writel(eim, dino_dev->hba.base_addr+DINO_IAR0); in dino_common_init()
887 __raw_readl(dino_dev->hba.base_addr+DINO_IRR0); in dino_common_init()
903 dino_dev->hba.base_addr); in dino_common_init()
1002 dino_dev->hba.base_addr = ioremap(hpa, 4096); in dino_probe()