Lines Matching refs:hose
115 struct pci_controller *hose, *tmp; in pcibios_make_OF_bus_map() local
132 list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { in pcibios_make_OF_bus_map()
133 struct device_node* node = hose->dn; in pcibios_make_OF_bus_map()
137 make_one_node_map(node, hose->first_busno); in pcibios_make_OF_bus_map()
233 void pcibios_setup_phb_io_space(struct pci_controller *hose) in pcibios_setup_phb_io_space() argument
236 struct resource *res = &hose->io_resource; in pcibios_setup_phb_io_space()
239 io_offset = pcibios_io_space_offset(hose); in pcibios_setup_phb_io_space()
246 struct pci_controller *hose, *tmp; in pcibios_init() local
266 list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { in pcibios_init()
269 hose->first_busno = next_busno; in pcibios_init()
271 hose->last_busno = 0xff; in pcibios_init()
272 pcibios_scan_phb(hose); in pcibios_init()
273 pci_bus_add_devices(hose->bus); in pcibios_init()
275 if (pci_assign_all_buses || next_busno <= hose->last_busno) in pcibios_init()
276 next_busno = hose->last_busno + pcibios_assign_bus_offset; in pcibios_init()
312 struct pci_controller *hose, *tmp; in pci_bus_to_hose() local
314 list_for_each_entry_safe(hose, tmp, &hose_list, list_node) in pci_bus_to_hose()
315 if (bus >= hose->first_busno && bus <= hose->last_busno) in pci_bus_to_hose()
316 return hose; in pci_bus_to_hose()
329 struct pci_controller* hose; in SYSCALL_DEFINE3() local
332 hose = pci_bus_to_hose(bus); in SYSCALL_DEFINE3()
333 if (!hose) in SYSCALL_DEFINE3()
338 return (long)hose->first_busno; in SYSCALL_DEFINE3()
340 return (long)hose->mem_offset[0]; in SYSCALL_DEFINE3()
342 return (long)hose->io_base_phys; in SYSCALL_DEFINE3()