Lines Matching refs:phys
42 void map_memory(unsigned long virt, unsigned long phys, unsigned long len, in map_memory() argument
48 fd = phys_mapping(phys, &offset); in map_memory()
119 int phys_mapping(unsigned long phys, unsigned long long *offset_out) in phys_mapping() argument
123 if (phys < physmem_size) { in phys_mapping()
125 *offset_out = phys; in phys_mapping()
127 else if (phys < __pa(end_iomem)) { in phys_mapping()
131 if ((phys >= region->phys) && in phys_mapping()
132 (phys < region->phys + region->size)) { in phys_mapping()
134 *offset_out = phys - region->phys; in phys_mapping()
140 else if (phys < __pa(end_iomem) + highmem) { in phys_mapping()
142 *offset_out = phys - iomem_size; in phys_mapping()
211 region->phys = __pa(region->virt); in setup_iomem()