Lines Matching full:region
128 struct iomem_region *region = iomem_regions; in phys_mapping() local
130 while (region != NULL) { in phys_mapping()
131 if ((phys >= region->phys) && in phys_mapping()
132 (phys < region->phys + region->size)) { in phys_mapping()
133 fd = region->fd; in phys_mapping()
134 *offset_out = phys - region->phys; in phys_mapping()
137 region = region->next; in phys_mapping()
167 " Configure <file> as an IO memory region named <name>.\n\n"
182 struct iomem_region *region = iomem_regions; in find_iomem() local
184 while (region != NULL) { in find_iomem()
185 if (!strcmp(region->driver, driver)) { in find_iomem()
186 *len_out = region->size; in find_iomem()
187 return region->virt; in find_iomem()
190 region = region->next; in find_iomem()
199 struct iomem_region *region = iomem_regions; in setup_iomem() local
203 while (region != NULL) { in setup_iomem()
204 err = os_map_memory((void *) iomem_start, region->fd, 0, in setup_iomem()
205 region->size, 1, 1, 0); in setup_iomem()
207 printk(KERN_ERR "Mapping iomem region for driver '%s' " in setup_iomem()
208 "failed, errno = %d\n", region->driver, -err); in setup_iomem()
210 region->virt = iomem_start; in setup_iomem()
211 region->phys = __pa(region->virt); in setup_iomem()
214 iomem_start += region->size + PAGE_SIZE; in setup_iomem()
215 region = region->next; in setup_iomem()