Lines Matching refs:region
127 struct iomem_region *region = iomem_regions; in phys_mapping() local
129 while (region != NULL) { in phys_mapping()
130 if ((phys >= region->phys) && in phys_mapping()
131 (phys < region->phys + region->size)) { in phys_mapping()
132 fd = region->fd; in phys_mapping()
133 *offset_out = phys - region->phys; in phys_mapping()
136 region = region->next; in phys_mapping()
183 struct iomem_region *region = iomem_regions; in find_iomem() local
185 while (region != NULL) { in find_iomem()
186 if (!strcmp(region->driver, driver)) { in find_iomem()
187 *len_out = region->size; in find_iomem()
188 return region->virt; in find_iomem()
191 region = region->next; in find_iomem()
200 struct iomem_region *region = iomem_regions; in setup_iomem() local
204 while (region != NULL) { in setup_iomem()
205 err = os_map_memory((void *) iomem_start, region->fd, 0, in setup_iomem()
206 region->size, 1, 1, 0); in setup_iomem()
209 "failed, errno = %d\n", region->driver, -err); in setup_iomem()
211 region->virt = iomem_start; in setup_iomem()
212 region->phys = __pa(region->virt); in setup_iomem()
215 iomem_start += region->size + PAGE_SIZE; in setup_iomem()
216 region = region->next; in setup_iomem()