Lines Matching refs:ptr
78 void __iomem *ptr = (void __iomem *)addr; in test_8() local
79 return intc_get_field_from_handle(__raw_readb(ptr), h); in test_8()
85 void __iomem *ptr = (void __iomem *)addr; in test_16() local
86 return intc_get_field_from_handle(__raw_readw(ptr), h); in test_16()
92 void __iomem *ptr = (void __iomem *)addr; in test_32() local
93 return intc_get_field_from_handle(__raw_readl(ptr), h); in test_32()
99 void __iomem *ptr = (void __iomem *)addr; in write_8() local
100 __raw_writeb(intc_set_field_from_handle(0, data, h), ptr); in write_8()
101 (void)__raw_readb(ptr); /* Defeat write posting */ in write_8()
108 void __iomem *ptr = (void __iomem *)addr; in write_16() local
109 __raw_writew(intc_set_field_from_handle(0, data, h), ptr); in write_16()
110 (void)__raw_readw(ptr); /* Defeat write posting */ in write_16()
117 void __iomem *ptr = (void __iomem *)addr; in write_32() local
118 __raw_writel(intc_set_field_from_handle(0, data, h), ptr); in write_32()
119 (void)__raw_readl(ptr); /* Defeat write posting */ in write_32()
126 void __iomem *ptr = (void __iomem *)addr; in modify_8() local
130 value = intc_set_field_from_handle(__raw_readb(ptr), data, h); in modify_8()
131 __raw_writeb(value, ptr); in modify_8()
132 (void)__raw_readb(ptr); /* Defeat write posting */ in modify_8()
140 void __iomem *ptr = (void __iomem *)addr; in modify_16() local
144 value = intc_set_field_from_handle(__raw_readw(ptr), data, h); in modify_16()
145 __raw_writew(value, ptr); in modify_16()
146 (void)__raw_readw(ptr); /* Defeat write posting */ in modify_16()
154 void __iomem *ptr = (void __iomem *)addr; in modify_32() local
158 value = intc_set_field_from_handle(__raw_readl(ptr), data, h); in modify_32()
159 __raw_writel(value, ptr); in modify_32()
160 (void)__raw_readl(ptr); /* Defeat write posting */ in modify_32()