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