Lines Matching refs:cfg_base
37 void __iomem *cfg_base; /* Common for all channels */ member
162 void __iomem *cfg_base; /* Common for all channels */ member
180 u8 gp_outen = readb(card->cfg_base + PITA_GPOEN) & ~PITA_GPIN_SCL; in pita_set_scl_highz()
182 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_set_scl_highz()
187 u8 gp_outen = readb(card->cfg_base + PITA_GPOEN) & ~PITA_GPIN_SDA; in pita_set_sda_highz()
189 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_set_sda_highz()
205 gp_out = readb(card->cfg_base + PITA_GPOUT) & ~PITA_GPIN_SDA; in pita_setsda()
206 writeb(gp_out, card->cfg_base + PITA_GPOUT); in pita_setsda()
209 gp_outen = readb(card->cfg_base + PITA_GPOEN); in pita_setsda()
215 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_setsda()
224 gp_out = readb(card->cfg_base + PITA_GPOUT) & ~PITA_GPIN_SCL; in pita_setscl()
225 writeb(gp_out, card->cfg_base + PITA_GPOUT); in pita_setscl()
228 gp_outen = readb(card->cfg_base + PITA_GPOEN); in pita_setscl()
234 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_setscl()
244 return (readb(card->cfg_base + PITA_GPIN) & PITA_GPIN_SDA) ? 1 : 0; in pita_getsda()
254 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()
546 icr = readw(chan->cfg_base + PITA_ICR); in peak_pci_post_irq()
548 writew(chan->icr_mask, chan->cfg_base + PITA_ICR); in peak_pci_post_irq()
556 void __iomem *cfg_base, *reg_base; in peak_pci_probe() local
589 cfg_base = pci_iomap(pdev, 0, PEAK_PCI_CFG_SIZE); in peak_pci_probe()
590 if (!cfg_base) { in peak_pci_probe()
604 writew(0x0005, cfg_base + PITA_GPIOICR + 2); in peak_pci_probe()
606 writeb(0x00, cfg_base + PITA_GPIOICR); in peak_pci_probe()
608 writeb(0x05, cfg_base + PITA_MISC + 3); in peak_pci_probe()
611 writeb(0x04, cfg_base + PITA_MISC + 3); in peak_pci_probe()
614 if (readl(cfg_base + PEAK_VER_REG1)) { in peak_pci_probe()
616 u32 fw_ver = readl(cfg_base + PEAK_VER_REG2); in peak_pci_probe()
628 icr = readw(cfg_base + PITA_ICR + 2); in peak_pci_probe()
640 chan->cfg_base = cfg_base; in peak_pci_probe()
691 dev->name, priv->reg_base, chan->cfg_base, dev->irq); in peak_pci_probe()
695 writew(icr, cfg_base + PITA_ICR + 2); in peak_pci_probe()
705 writew(0x0, cfg_base + PITA_ICR + 2); in peak_pci_probe()
724 pci_iounmap(pdev, cfg_base); in peak_pci_probe()
744 void __iomem *cfg_base = chan->cfg_base; in peak_pci_remove() local
748 writew(0x0, cfg_base + PITA_ICR + 2); in peak_pci_remove()
769 pci_iounmap(pdev, cfg_base); in peak_pci_remove()