Lines Matching refs:where
74 int where, int size, u32 value) in ar724x_pci_local_write() argument
80 WARN_ON(where & (size - 1)); in ar724x_pci_local_write()
86 data = __raw_readl(base + (where & ~3)); in ar724x_pci_local_write()
90 s = ((where & 3) * 8); in ar724x_pci_local_write()
95 s = ((where & 2) * 8); in ar724x_pci_local_write()
106 __raw_writel(data, base + (where & ~3)); in ar724x_pci_local_write()
108 __raw_readl(base + (where & ~3)); in ar724x_pci_local_write()
113 static int ar724x_pci_read(struct pci_bus *bus, unsigned int devfn, int where, in ar724x_pci_read() argument
128 data = __raw_readl(base + (where & ~3)); in ar724x_pci_read()
132 if (where & 1) in ar724x_pci_read()
134 if (where & 2) in ar724x_pci_read()
139 if (where & 2) in ar724x_pci_read()
149 if (where == PCI_BASE_ADDRESS_0 && size == 4 && in ar724x_pci_read()
160 static int ar724x_pci_write(struct pci_bus *bus, unsigned int devfn, int where, in ar724x_pci_write() argument
175 if (soc_is_ar7240() && where == PCI_BASE_ADDRESS_0 && size == 4) { in ar724x_pci_write()
197 data = __raw_readl(base + (where & ~3)); in ar724x_pci_write()
201 s = ((where & 3) * 8); in ar724x_pci_write()
206 s = ((where & 2) * 8); in ar724x_pci_write()
217 __raw_writel(data, base + (where & ~3)); in ar724x_pci_write()
219 __raw_readl(base + (where & ~3)); in ar724x_pci_write()