Lines Matching refs:bus_res
51 struct pci_bus_resource *bus_res; in pci_bus_add_resource() local
53 bus_res = kzalloc(sizeof(struct pci_bus_resource), GFP_KERNEL); in pci_bus_add_resource()
54 if (!bus_res) { in pci_bus_add_resource()
59 bus_res->res = res; in pci_bus_add_resource()
60 bus_res->flags = flags; in pci_bus_add_resource()
61 list_add_tail(&bus_res->list, &bus->resources); in pci_bus_add_resource()
66 struct pci_bus_resource *bus_res; in pci_bus_resource_n() local
72 list_for_each_entry(bus_res, &bus->resources, list) { in pci_bus_resource_n()
74 return bus_res->res; in pci_bus_resource_n()
82 struct pci_bus_resource *bus_res, *tmp; in pci_bus_remove_resource() local
92 list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) { in pci_bus_remove_resource()
93 if (bus_res->res == res) { in pci_bus_remove_resource()
94 list_del(&bus_res->list); in pci_bus_remove_resource()
95 kfree(bus_res); in pci_bus_remove_resource()
104 struct pci_bus_resource *bus_res, *tmp; in pci_bus_remove_resources() local
109 list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) { in pci_bus_remove_resources()
110 list_del(&bus_res->list); in pci_bus_remove_resources()
111 kfree(bus_res); in pci_bus_remove_resources()