Lines Matching refs:hose

50 	struct pci_controller *hose = dev->sysdata;  in pcibios_align_resource()  local
55 if (start < PCIBIOS_MIN_IO + hose->io_resource->start) in pcibios_align_resource()
56 start = PCIBIOS_MIN_IO + hose->io_resource->start; in pcibios_align_resource()
65 if (start < PCIBIOS_MIN_MEM + hose->mem_resource->start) in pcibios_align_resource()
66 start = PCIBIOS_MIN_MEM + hose->mem_resource->start; in pcibios_align_resource()
72 static void pcibios_scanbus(struct pci_controller *hose) in pcibios_scanbus() argument
85 if (hose->get_busno && pci_has_flag(PCI_PROBE_ONLY)) in pcibios_scanbus()
86 next_busno = (*hose->get_busno)(); in pcibios_scanbus()
89 hose->mem_resource, hose->mem_offset); in pcibios_scanbus()
91 hose->io_resource, hose->io_offset); in pcibios_scanbus()
94 bridge->sysdata = hose; in pcibios_scanbus()
96 bridge->ops = hose->pci_ops; in pcibios_scanbus()
105 hose->bus = bus = bridge->bus; in pcibios_scanbus()
108 set_pci_need_domain_info(hose, need_domain_info); in pcibios_scanbus()
137 void pci_load_of_ranges(struct pci_controller *hose, struct device_node *node) in pci_load_of_ranges() argument
142 hose->of_node = node; in pci_load_of_ranges()
152 hose->io_map_base = in pci_load_of_ranges()
155 res = hose->io_resource; in pci_load_of_ranges()
158 res = hose->mem_resource; in pci_load_of_ranges()
173 struct pci_controller *hose = bus->sysdata; in pcibios_get_phb_of_node() local
175 return of_node_get(hose->of_node); in pcibios_get_phb_of_node()
181 void register_pci_controller(struct pci_controller *hose) in register_pci_controller() argument
185 parent = hose->mem_resource->parent; in register_pci_controller()
189 if (request_resource(parent, hose->mem_resource) < 0) in register_pci_controller()
192 parent = hose->io_resource->parent; in register_pci_controller()
196 if (request_resource(parent, hose->io_resource) < 0) { in register_pci_controller()
197 release_resource(hose->mem_resource); in register_pci_controller()
201 INIT_LIST_HEAD(&hose->list); in register_pci_controller()
202 list_add_tail(&hose->list, &controllers); in register_pci_controller()
207 if (!hose->io_map_base) { in register_pci_controller()
218 pcibios_scanbus(hose); in register_pci_controller()
231 struct pci_controller *hose; in pcibios_init() local
234 list_for_each_entry(hose, &controllers, list) in pcibios_init()
235 pcibios_scanbus(hose); in pcibios_init()