Lines Matching refs:hose

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