Lines Matching refs:hose

58 	struct pci_controller *hose = dev->sysdata;
63 if (start < PCIBIOS_MIN_IO + hose->io_resource->start)
64 start = PCIBIOS_MIN_IO + hose->io_resource->start;
73 if (start < PCIBIOS_MIN_MEM + hose->mem_resource->start)
74 start = PCIBIOS_MIN_MEM + hose->mem_resource->start;
80 static void pcibios_scanbus(struct pci_controller *hose)
93 if (hose->get_busno && pci_has_flag(PCI_PROBE_ONLY))
94 next_busno = (*hose->get_busno)();
97 hose->mem_resource, hose->mem_offset);
99 hose->io_resource, hose->io_offset);
102 bridge->sysdata = hose;
104 bridge->ops = hose->pci_ops;
113 hose->bus = bus = bridge->bus;
116 set_pci_need_domain_info(hose, need_domain_info);
119 /* Don't allow 8-bit bus number overflow inside the hose -
145 void pci_load_of_ranges(struct pci_controller *hose, struct device_node *node)
150 hose->of_node = node;
160 hose->io_map_base =
163 res = hose->io_resource;
166 res = hose->mem_resource;
181 struct pci_controller *hose = bus->sysdata;
183 return of_node_get(hose->of_node);
189 void register_pci_controller(struct pci_controller *hose)
193 parent = hose->mem_resource->parent;
197 if (request_resource(parent, hose->mem_resource) < 0)
200 parent = hose->io_resource->parent;
204 if (request_resource(parent, hose->io_resource) < 0) {
205 release_resource(hose->mem_resource);
209 INIT_LIST_HEAD(&hose->list);
210 list_add_tail(&hose->list, &controllers);
215 if (!hose->io_map_base) {
226 pcibios_scanbus(hose);
239 struct pci_controller *hose;
242 list_for_each_entry(hose, &controllers, list)
243 pcibios_scanbus(hose);