Lines Matching refs:phys
41 void map_memory(unsigned long virt, unsigned long phys, unsigned long len, in map_memory() argument
47 fd = phys_mapping(phys, &offset); in map_memory()
118 int phys_mapping(unsigned long phys, unsigned long long *offset_out) in phys_mapping() argument
122 if (phys < physmem_size) { in phys_mapping()
124 *offset_out = phys; in phys_mapping()
126 else if (phys < __pa(end_iomem)) { in phys_mapping()
130 if ((phys >= region->phys) && in phys_mapping()
131 (phys < region->phys + region->size)) { in phys_mapping()
133 *offset_out = phys - region->phys; in phys_mapping()
139 else if (phys < __pa(end_iomem) + highmem) { in phys_mapping()
141 *offset_out = phys - iomem_size; in phys_mapping()
212 region->phys = __pa(region->virt); in setup_iomem()