• Home
  • Raw
  • Download

Lines Matching refs:res

15 void devm_ioremap_release(struct device *dev, void *res)  in devm_ioremap_release()  argument
17 iounmap(*(void __iomem **)res); in devm_ioremap_release()
20 static int devm_ioremap_match(struct device *dev, void *res, void *match_data) in devm_ioremap_match() argument
22 return *(void **)res == match_data; in devm_ioremap_match()
117 __devm_ioremap_resource(struct device *dev, const struct resource *res, in __devm_ioremap_resource() argument
126 if (!res || resource_type(res) != IORESOURCE_MEM) { in __devm_ioremap_resource()
131 size = resource_size(res); in __devm_ioremap_resource()
133 if (res->name) in __devm_ioremap_resource()
135 dev_name(dev), res->name); in __devm_ioremap_resource()
141 if (!devm_request_mem_region(dev, res->start, size, pretty_name)) { in __devm_ioremap_resource()
142 dev_err(dev, "can't request region for resource %pR\n", res); in __devm_ioremap_resource()
146 dest_ptr = __devm_ioremap(dev, res->start, size, type); in __devm_ioremap_resource()
148 dev_err(dev, "ioremap failed for resource %pR\n", res); in __devm_ioremap_resource()
149 devm_release_mem_region(dev, res->start, size); in __devm_ioremap_resource()
176 const struct resource *res) in devm_ioremap_resource() argument
178 return __devm_ioremap_resource(dev, res, DEVM_IOREMAP); in devm_ioremap_resource()
192 const struct resource *res) in devm_ioremap_resource_wc() argument
194 return __devm_ioremap_resource(dev, res, DEVM_IOREMAP_WC); in devm_ioremap_resource_wc()
230 struct resource res; in devm_of_iomap() local
232 if (of_address_to_resource(node, index, &res)) in devm_of_iomap()
235 *size = resource_size(&res); in devm_of_iomap()
236 return devm_ioremap_resource(dev, &res); in devm_of_iomap()
244 static void devm_ioport_map_release(struct device *dev, void *res) in devm_ioport_map_release() argument
246 ioport_unmap(*(void __iomem **)res); in devm_ioport_map_release()
249 static int devm_ioport_map_match(struct device *dev, void *res, in devm_ioport_map_match() argument
252 return *(void **)res == match_data; in devm_ioport_map_match()
313 static void pcim_iomap_release(struct device *gendev, void *res) in pcim_iomap_release() argument
316 struct pcim_iomap_devres *this = res; in pcim_iomap_release()