Lines Matching refs:res
92 unsigned long __virt_to_bus(unsigned long res)
95 if (res < PAGE_OFFSET || res >= (unsigned long)high_memory) {
96 printk("__virt_to_bus: invalid virtual address 0x%08lx\n", res);
100 return (res - PAGE_OFFSET) + (*CSR_PCISDRAMBASE & 0xfffffff0);
103 unsigned long __bus_to_virt(unsigned long res)
105 res -= (*CSR_PCISDRAMBASE & 0xfffffff0);
106 res += PAGE_OFFSET;
109 if (res < PAGE_OFFSET || res >= (unsigned long)high_memory) {
110 printk("__bus_to_virt: invalid virtual address 0x%08lx\n", res);
114 return res;