Lines Matching refs:resource
66 static void __iomem *_sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz);
69 static void _sparc_free_io(struct resource *res);
74 static struct resource _sparc_dvma = {
78 /*ext*/ struct resource sparc_iomap = {
92 struct resource xres; /* Must be first */
139 struct resource *res; in iounmap()
159 void __iomem *of_ioremap(struct resource *res, unsigned long offset, in of_ioremap()
168 void of_iounmap(struct resource *res, void __iomem *base, unsigned long size) in of_iounmap()
182 struct resource *res; in _sparc_alloc_io()
198 tack = kmalloc(sizeof (struct resource) + tlen + 1, GFP_KERNEL); in _sparc_alloc_io()
200 memset(tack, 0, sizeof(struct resource)); in _sparc_alloc_io()
201 res = (struct resource *) tack; in _sparc_alloc_io()
202 tack += sizeof (struct resource); in _sparc_alloc_io()
216 _sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz) in _sparc_ioremap()
238 static void _sparc_free_io(struct resource *res) in _sparc_free_io()
268 struct resource *res; in sbus_alloc_coherent()
285 if ((res = kzalloc(sizeof(struct resource), GFP_KERNEL)) == NULL) in sbus_alloc_coherent()
320 struct resource *res; in sbus_free_coherent()
436 struct resource *res; in pci32_alloc_coherent()
453 if ((res = kzalloc(sizeof(struct resource), GFP_KERNEL)) == NULL) { in pci32_alloc_coherent()
487 struct resource *res; in pci32_free_coherent()
681 struct resource *root = m->private, *r; in sparc_io_proc_show()