Lines Matching refs:bus_res
50 struct pci_bus_resource *bus_res; in pci_bus_add_resource() local
52 bus_res = kzalloc(sizeof(struct pci_bus_resource), GFP_KERNEL); in pci_bus_add_resource()
53 if (!bus_res) { in pci_bus_add_resource()
58 bus_res->res = res; in pci_bus_add_resource()
59 bus_res->flags = flags; in pci_bus_add_resource()
60 list_add_tail(&bus_res->list, &bus->resources); in pci_bus_add_resource()
65 struct pci_bus_resource *bus_res; in pci_bus_resource_n() local
71 list_for_each_entry(bus_res, &bus->resources, list) { in pci_bus_resource_n()
73 return bus_res->res; in pci_bus_resource_n()
82 struct pci_bus_resource *bus_res, *tmp; in pci_bus_remove_resources() local
87 list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) { in pci_bus_remove_resources()
88 list_del(&bus_res->list); in pci_bus_remove_resources()
89 kfree(bus_res); in pci_bus_remove_resources()