Lines Matching refs:chan
25 struct pci_channel *chan = bus->sysdata; in sh7786_pcie_config_access() local
54 *data = pci_read_reg(chan, PCI_REG(reg)); in sh7786_pcie_config_access()
56 pci_write_reg(chan, *data, PCI_REG(reg)); in sh7786_pcie_config_access()
64 pci_write_reg(chan, pci_read_reg(chan, SH4A_PCIEERRFR), SH4A_PCIEERRFR); in sh7786_pcie_config_access()
67 pci_write_reg(chan, (bus->number << 24) | (dev << 19) | in sh7786_pcie_config_access()
71 pci_write_reg(chan, (1 << 31) | (type << 8), SH4A_PCIEPCTLR); in sh7786_pcie_config_access()
74 if (pci_read_reg(chan, SH4A_PCIEERRFR) & 0x10) in sh7786_pcie_config_access()
78 if (pci_read_reg(chan, SH4A_PCIEPCICONF1) & ((1 << 29) | (1 << 28))) in sh7786_pcie_config_access()
82 *data = pci_read_reg(chan, SH4A_PCIEPDR); in sh7786_pcie_config_access()
84 pci_write_reg(chan, *data, SH4A_PCIEPDR); in sh7786_pcie_config_access()
87 pci_write_reg(chan, 0, SH4A_PCIEPCTLR); in sh7786_pcie_config_access()