• Home
  • Raw
  • Download

Lines Matching refs:dev

15 void devm_ioremap_release(struct device *dev, void *res)  in devm_ioremap_release()  argument
20 static int devm_ioremap_match(struct device *dev, void *res, void *match_data) in devm_ioremap_match() argument
25 static void __iomem *__devm_ioremap(struct device *dev, resource_size_t offset, in __devm_ioremap() argument
49 devres_add(dev, ptr); in __devm_ioremap()
64 void __iomem *devm_ioremap(struct device *dev, resource_size_t offset, in devm_ioremap() argument
67 return __devm_ioremap(dev, offset, size, DEVM_IOREMAP); in devm_ioremap()
80 void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset, in devm_ioremap_nocache() argument
83 return __devm_ioremap(dev, offset, size, DEVM_IOREMAP_NC); in devm_ioremap_nocache()
95 void __iomem *devm_ioremap_wc(struct device *dev, resource_size_t offset, in devm_ioremap_wc() argument
98 return __devm_ioremap(dev, offset, size, DEVM_IOREMAP_WC); in devm_ioremap_wc()
109 void devm_iounmap(struct device *dev, void __iomem *addr) in devm_iounmap() argument
111 WARN_ON(devres_destroy(dev, devm_ioremap_release, devm_ioremap_match, in devm_iounmap()
134 void __iomem *devm_ioremap_resource(struct device *dev, in devm_ioremap_resource() argument
140 BUG_ON(!dev); in devm_ioremap_resource()
143 dev_err(dev, "invalid resource\n"); in devm_ioremap_resource()
149 if (!devm_request_mem_region(dev, res->start, size, dev_name(dev))) { in devm_ioremap_resource()
150 dev_err(dev, "can't request region for resource %pR\n", res); in devm_ioremap_resource()
154 dest_ptr = devm_ioremap(dev, res->start, size); in devm_ioremap_resource()
156 dev_err(dev, "ioremap failed for resource %pR\n", res); in devm_ioremap_resource()
157 devm_release_mem_region(dev, res->start, size); in devm_ioremap_resource()
187 void __iomem *devm_of_iomap(struct device *dev, struct device_node *node, int index, in devm_of_iomap() argument
196 return devm_ioremap_resource(dev, &res); in devm_of_iomap()
204 static void devm_ioport_map_release(struct device *dev, void *res) in devm_ioport_map_release() argument
209 static int devm_ioport_map_match(struct device *dev, void *res, in devm_ioport_map_match() argument
224 void __iomem *devm_ioport_map(struct device *dev, unsigned long port, in devm_ioport_map() argument
236 devres_add(dev, ptr); in devm_ioport_map()
252 void devm_ioport_unmap(struct device *dev, void __iomem *addr) in devm_ioport_unmap() argument
255 WARN_ON(devres_destroy(dev, devm_ioport_map_release, in devm_ioport_unmap()
273 struct pci_dev *dev = to_pci_dev(gendev); in pcim_iomap_release() local
279 pci_iounmap(dev, this->table[i]); in pcim_iomap_release()
299 dr = devres_find(&pdev->dev, pcim_iomap_release, NULL, NULL); in pcim_iomap_table()
306 dr = devres_get(&pdev->dev, new_dr, NULL, NULL); in pcim_iomap_table()