Lines Matching refs:chan
22 struct pci_channel *chan = bus->sysdata; in sh7786_pcie_config_access() local
51 *data = pci_read_reg(chan, PCI_REG(reg)); in sh7786_pcie_config_access()
53 pci_write_reg(chan, *data, PCI_REG(reg)); in sh7786_pcie_config_access()
61 pci_write_reg(chan, pci_read_reg(chan, SH4A_PCIEERRFR), SH4A_PCIEERRFR); in sh7786_pcie_config_access()
64 pci_write_reg(chan, (bus->number << 24) | (dev << 19) | in sh7786_pcie_config_access()
68 pci_write_reg(chan, (1 << 31) | (type << 8), SH4A_PCIEPCTLR); in sh7786_pcie_config_access()
71 if (pci_read_reg(chan, SH4A_PCIEERRFR) & 0x10) in sh7786_pcie_config_access()
75 if (pci_read_reg(chan, SH4A_PCIEPCICONF1) & ((1 << 29) | (1 << 28))) in sh7786_pcie_config_access()
79 *data = pci_read_reg(chan, SH4A_PCIEPDR); in sh7786_pcie_config_access()
81 pci_write_reg(chan, *data, SH4A_PCIEPDR); in sh7786_pcie_config_access()
84 pci_write_reg(chan, 0, SH4A_PCIEPCTLR); in sh7786_pcie_config_access()