Lines Matching refs:addr
200 static int is_swapped(unsigned long addr)
205 if (addr < sizeof(struct lowcore))
209 if (addr > lc + sizeof(struct lowcore) - 1 || addr < lc)
222 void *xlate_dev_mem_ptr(phys_addr_t addr)
224 void *bounce = (void *) addr;
229 if (is_swapped(addr)) {
230 size = PAGE_SIZE - (addr & ~PAGE_MASK);
233 memcpy_absolute(bounce, (void *) addr, size);
243 void unxlate_dev_mem_ptr(phys_addr_t addr, void *buf)
245 if ((void *) addr != buf)