Lines Matching full:resource

20 void pci_add_resource_offset(struct list_head *resources, struct resource *res,  in pci_add_resource_offset()
36 void pci_add_resource(struct list_head *resources, struct resource *res) in pci_add_resource()
48 void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, in pci_bus_add_resource()
55 dev_err(&bus->dev, "can't add %pR resource\n", res); in pci_bus_add_resource()
64 struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n) in pci_bus_resource_n()
69 return bus->resource[n]; in pci_bus_resource_n()
80 void pci_bus_remove_resource(struct pci_bus *bus, struct resource *res) in pci_bus_remove_resource()
86 if (bus->resource[i] == res) { in pci_bus_remove_resource()
87 bus->resource[i] = NULL; in pci_bus_remove_resource()
107 bus->resource[i] = NULL; in pci_bus_remove_resources()
119 struct resource *parent, *res; in devm_request_pci_bus_resources()
155 * addresses of resources we allocate, e.g., we may need a resource that
159 struct resource *res, in pci_clip_resource_to_region()
176 static int pci_bus_alloc_from_region(struct pci_bus *bus, struct resource *res, in pci_bus_alloc_from_region()
180 const struct resource *, in pci_bus_alloc_from_region() argument
186 struct resource *r, avail; in pci_bus_alloc_from_region()
202 /* We cannot allocate a non-prefetching resource in pci_bus_alloc_from_region()
236 * pci_bus_alloc_resource - allocate a resource from a parent bus
238 * @res: resource to allocate
239 * @size: size of resource to allocate
240 * @align: alignment of resource to allocate
243 * @alignf: resource alignment function
244 * @alignf_data: data argument for resource alignment function
247 * alignment and type, try to find an acceptable resource allocation
248 * for a specific device resource.
250 int pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res, in pci_bus_alloc_resource()
254 const struct resource *, in pci_bus_alloc_resource() argument
282 * The @idx resource of @dev should be a PCI-PCI bridge window. If this
283 * resource fits inside a window of an upstream bridge, do nothing. If it
284 * overlaps an upstream window but extends outside it, clip the resource so
290 struct resource *res = &dev->resource[idx]; in pci_bus_clip_resource()
291 struct resource orig_res = *res; in pci_bus_clip_resource()
292 struct resource *r; in pci_bus_clip_resource()