Lines Matching refs:p
33 static void do_write_test(void __iomem *p) in do_write_test() argument
40 iowrite8(i, p + i); in do_write_test()
43 iowrite16(v16(i), p + i); in do_write_test()
46 iowrite32(v32(i), p + i); in do_write_test()
49 static void do_read_test(void __iomem *p) in do_read_test() argument
57 if (ioread8(p + i) != i) in do_read_test()
61 if (ioread16(p + i) != v16(i)) in do_read_test()
65 if (ioread32(p + i) != v32(i)) in do_read_test()
72 static void do_read_far_test(void __iomem *p) in do_read_far_test() argument
77 ioread32(p + read_far); in do_read_far_test()
82 void __iomem *p = ioremap(mmio_address, size); in do_test() local
83 if (!p) { in do_test()
87 mmiotrace_printk("ioremap returned %p.\n", p); in do_test()
88 do_write_test(p); in do_test()
89 do_read_test(p); in do_test()
91 do_read_far_test(p); in do_test()
92 iounmap(p); in do_test()
103 void __iomem *p; in do_test_bulk_ioremapping() local
107 p = ioremap(mmio_address, PAGE_SIZE); in do_test_bulk_ioremapping()
108 if (p) in do_test_bulk_ioremapping()
109 iounmap(p); in do_test_bulk_ioremapping()