Lines Matching refs:hose
42 struct pci_controller *hose, *tmp;
57 list_for_each_entry_safe(hose, tmp, &hose_list, list_node)
58 pcibios_scan_phb(hose);
64 list_for_each_entry_safe(hose, tmp, &hose_list, list_node)
65 pci_bus_add_devices(hose->bus);
80 struct pci_controller *hose;
110 hose = pci_bus_to_host(bus);
112 pr_debug("IO unmapping for PHB %pOF\n", hose->dn);
113 pr_debug(" alloc=0x%p\n", hose->io_base_alloc);
115 iounmap(hose->io_base_alloc);
151 static int pcibios_map_phb_io_space(struct pci_controller *hose)
157 phys_page = ALIGN_DOWN(hose->io_base_phys, PAGE_SIZE);
158 size_page = ALIGN(hose->pci_io_size, PAGE_SIZE);
161 hose->io_base_alloc = NULL;
164 if (hose->pci_io_size == 0 || hose->io_base_phys == 0)
173 hose->io_base_alloc = ioremap_phb(phys_page, size_page);
174 if (!hose->io_base_alloc)
176 hose->io_base_virt = hose->io_base_alloc +
177 hose->io_base_phys - phys_page;
179 pr_debug("IO mapping for PHB %pOF\n", hose->dn);
181 hose->io_base_phys, hose->io_base_virt, hose->io_base_alloc);
183 hose->pci_io_size, size_page);
185 /* Fixup hose IO resource */
186 io_virt_offset = pcibios_io_space_offset(hose);
187 hose->io_resource.start += io_virt_offset;
188 hose->io_resource.end += io_virt_offset;
190 pr_debug(" hose->io_resource=%pR\n", &hose->io_resource);
215 void pcibios_setup_phb_io_space(struct pci_controller *hose)
217 pcibios_map_phb_io_space(hose);
229 struct pci_controller* hose;
262 hose = PCI_DN(hose_node)->phb;
266 return (long)hose->first_busno;
268 return (long)hose->mem_offset[0];
270 return (long)hose->io_base_phys;