Lines Matching defs:__va
124 * On Book-E parts we need __va to parse the device tree and we can't
143 * existing equation for the __va()/__pa() translations:
145 * __va(x) = (x) - PHYSICAL_START + KERNELBASE
161 * Now __va(1MB) = (0x100000) - (0x4000000) + 0xc0000000
169 * __va(x) = (x) - [ PHYSICAL_START - Effective KERNELBASE ]
177 * To make the cost of __va() / __pa() more light weight, we introduce
186 * __va(x) = x - PHYSICAL_START + Effective KERNELBASE
194 * the other definitions for __va & __pa.
197 #define __va(x) ((void *)(unsigned long)((phys_addr_t)(x) + VIRT_PHYS_OFFSET))
209 #define __va(x) \
222 #define __va(x) ((void *)(unsigned long)((phys_addr_t)(x) + PAGE_OFFSET - MEMORY_START))
235 return __va(pfn << PAGE_SHIFT);