Lines Matching refs:cfg_base

43 	void __iomem *cfg_base;		/* Common for all channels */  member
150 void __iomem *cfg_base; /* Common for all channels */ member
168 u8 gp_outen = readb(card->cfg_base + PITA_GPOEN) & ~PITA_GPIN_SCL; in pita_set_scl_highz()
169 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_set_scl_highz()
174 u8 gp_outen = readb(card->cfg_base + PITA_GPOEN) & ~PITA_GPIN_SDA; in pita_set_sda_highz()
175 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_set_sda_highz()
191 gp_out = readb(card->cfg_base + PITA_GPOUT) & ~PITA_GPIN_SDA; in pita_setsda()
192 writeb(gp_out, card->cfg_base + PITA_GPOUT); in pita_setsda()
195 gp_outen = readb(card->cfg_base + PITA_GPOEN); in pita_setsda()
201 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_setsda()
210 gp_out = readb(card->cfg_base + PITA_GPOUT) & ~PITA_GPIN_SCL; in pita_setscl()
211 writeb(gp_out, card->cfg_base + PITA_GPOUT); in pita_setscl()
214 gp_outen = readb(card->cfg_base + PITA_GPOEN); in pita_setscl()
220 writeb(gp_outen, card->cfg_base + PITA_GPOEN); in pita_setscl()
230 return (readb(card->cfg_base + PITA_GPIN) & PITA_GPIN_SDA) ? 1 : 0; in pita_getsda()
240 return (readb(card->cfg_base + PITA_GPIN) & PITA_GPIN_SCL) ? 1 : 0; in pita_getscl()
460 card->cfg_base = chan->cfg_base; in peak_pciec_probe()
549 icr = readw(chan->cfg_base + PITA_ICR); in peak_pci_post_irq()
551 writew(chan->icr_mask, chan->cfg_base + PITA_ICR); in peak_pci_post_irq()
559 void __iomem *cfg_base, *reg_base; in peak_pci_probe() local
591 cfg_base = pci_iomap(pdev, 0, PEAK_PCI_CFG_SIZE); in peak_pci_probe()
592 if (!cfg_base) { in peak_pci_probe()
606 writew(0x0005, cfg_base + PITA_GPIOICR + 2); in peak_pci_probe()
608 writeb(0x00, cfg_base + PITA_GPIOICR); in peak_pci_probe()
610 writeb(0x05, cfg_base + PITA_MISC + 3); in peak_pci_probe()
613 writeb(0x04, cfg_base + PITA_MISC + 3); in peak_pci_probe()
615 icr = readw(cfg_base + PITA_ICR + 2); in peak_pci_probe()
627 chan->cfg_base = cfg_base; in peak_pci_probe()
679 dev->name, priv->reg_base, chan->cfg_base, dev->irq); in peak_pci_probe()
683 writew(icr, cfg_base + PITA_ICR + 2); in peak_pci_probe()
693 writew(0x0, cfg_base + PITA_ICR + 2); in peak_pci_probe()
712 pci_iounmap(pdev, cfg_base); in peak_pci_probe()
728 void __iomem *cfg_base = chan->cfg_base; in peak_pci_remove() local
732 writew(0x0, cfg_base + PITA_ICR + 2); in peak_pci_remove()
754 pci_iounmap(pdev, cfg_base); in peak_pci_remove()