Lines Matching refs:cfg_base

43 	void __iomem *cfg_base;		/* Common for all channels */  member
149 void __iomem *cfg_base; /* Common for all channels */ member
167 u8 gp_outen = readb(card->cfg_base + PITA_GPOEN) & ~PITA_GPIN_SCL; in pita_set_scl_highz()
168 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_set_scl_highz()
173 u8 gp_outen = readb(card->cfg_base + PITA_GPOEN) & ~PITA_GPIN_SDA; in pita_set_sda_highz()
174 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_set_sda_highz()
190 gp_out = readb(card->cfg_base + PITA_GPOUT) & ~PITA_GPIN_SDA; in pita_setsda()
191 writeb(gp_out, card->cfg_base + PITA_GPOUT); in pita_setsda()
194 gp_outen = readb(card->cfg_base + PITA_GPOEN); in pita_setsda()
200 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_setsda()
209 gp_out = readb(card->cfg_base + PITA_GPOUT) & ~PITA_GPIN_SCL; in pita_setscl()
210 writeb(gp_out, card->cfg_base + PITA_GPOUT); in pita_setscl()
213 gp_outen = readb(card->cfg_base + PITA_GPOEN); in pita_setscl()
219 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_setscl()
229 return (readb(card->cfg_base + PITA_GPIN) & PITA_GPIN_SDA) ? 1 : 0; in pita_getsda()
239 return (readb(card->cfg_base + PITA_GPIN) & PITA_GPIN_SCL) ? 1 : 0; in pita_getscl()
459 card->cfg_base = chan->cfg_base; in peak_pciec_probe()
548 icr = readw(chan->cfg_base + PITA_ICR); in peak_pci_post_irq()
550 writew(chan->icr_mask, chan->cfg_base + PITA_ICR); in peak_pci_post_irq()
558 void __iomem *cfg_base, *reg_base; in peak_pci_probe() local
590 cfg_base = pci_iomap(pdev, 0, PEAK_PCI_CFG_SIZE); in peak_pci_probe()
591 if (!cfg_base) { in peak_pci_probe()
605 writew(0x0005, cfg_base + PITA_GPIOICR + 2); in peak_pci_probe()
607 writeb(0x00, cfg_base + PITA_GPIOICR); in peak_pci_probe()
609 writeb(0x05, cfg_base + PITA_MISC + 3); in peak_pci_probe()
612 writeb(0x04, cfg_base + PITA_MISC + 3); in peak_pci_probe()
614 icr = readw(cfg_base + PITA_ICR + 2); in peak_pci_probe()
626 chan->cfg_base = cfg_base; in peak_pci_probe()
678 dev->name, priv->reg_base, chan->cfg_base, dev->irq); in peak_pci_probe()
682 writew(icr, cfg_base + PITA_ICR + 2); in peak_pci_probe()
692 writew(0x0, cfg_base + PITA_ICR + 2); in peak_pci_probe()
711 pci_iounmap(pdev, cfg_base); in peak_pci_probe()
727 void __iomem *cfg_base = chan->cfg_base; in peak_pci_remove() local
731 writew(0x0, cfg_base + PITA_ICR + 2); in peak_pci_remove()
753 pci_iounmap(pdev, cfg_base); in peak_pci_remove()