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);
92 pci_add_resource(&resources, hose->busn_resource);
95 bridge->sysdata = hose;
97 bridge->ops = hose->pci_ops;
106 hose->bus = bus = bridge->bus;
109 set_pci_need_domain_info(hose, need_domain_info);
112 /* Don't allow 8-bit bus number overflow inside the hose -
138 void pci_load_of_ranges(struct pci_controller *hose, struct device_node *node)
144 hose->of_node = node;
157 hose->io_map_base =
160 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);