Lines Matching refs:where

48 #define  PCIE_CONF_ADDR(bus, devfn, where) \  argument
50 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | PCIE_CONF_REG(where) | \
278 u32 devfn, int where, int size, u32 *val) in mvebu_pcie_hw_rd_conf() argument
282 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), in mvebu_pcie_hw_rd_conf()
287 *val = readb_relaxed(conf_data + (where & 3)); in mvebu_pcie_hw_rd_conf()
290 *val = readw_relaxed(conf_data + (where & 2)); in mvebu_pcie_hw_rd_conf()
302 u32 devfn, int where, int size, u32 val) in mvebu_pcie_hw_wr_conf() argument
306 mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), in mvebu_pcie_hw_wr_conf()
311 writeb(val, conf_data + (where & 3)); in mvebu_pcie_hw_wr_conf()
314 writew(val, conf_data + (where & 2)); in mvebu_pcie_hw_wr_conf()
488 unsigned int where, int size, u32 *value) in mvebu_sw_pci_bridge_read() argument
492 switch (where & ~3) { in mvebu_sw_pci_bridge_read()
512 *value = bridge->bar[((where & ~3) - PCI_BASE_ADDRESS_0) / 4]; in mvebu_sw_pci_bridge_read()
620 *value = (*value >> (8 * (where & 3))) & 0xffff; in mvebu_sw_pci_bridge_read()
622 *value = (*value >> (8 * (where & 3))) & 0xff; in mvebu_sw_pci_bridge_read()
629 unsigned int where, int size, u32 value) in mvebu_sw_pci_bridge_write() argument
638 mask = ~(0xffff << ((where & 3) * 8)); in mvebu_sw_pci_bridge_write()
640 mask = ~(0xff << ((where & 3) * 8)); in mvebu_sw_pci_bridge_write()
644 err = mvebu_sw_pci_bridge_read(port, where & ~3, 4, &reg); in mvebu_sw_pci_bridge_write()
648 value = (reg & mask) | value << ((where & 3) * 8); in mvebu_sw_pci_bridge_write()
650 switch (where & ~3) { in mvebu_sw_pci_bridge_write()
667 bridge->bar[((where & ~3) - PCI_BASE_ADDRESS_0) / 4] = value; in mvebu_sw_pci_bridge_write()
780 int where, int size, u32 val) in mvebu_pcie_wr_conf() argument
792 return mvebu_sw_pci_bridge_write(port, where, size, val); in mvebu_pcie_wr_conf()
799 where, size, val); in mvebu_pcie_wr_conf()
805 static int mvebu_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, in mvebu_pcie_rd_conf() argument
820 return mvebu_sw_pci_bridge_read(port, where, size, val); in mvebu_pcie_rd_conf()
829 where, size, val); in mvebu_pcie_rd_conf()