Lines Matching refs:reg
74 #define GAMMA_OFF(reg) \ argument
75 ((reg < 0x1000) \
76 ? reg \
77 : ((reg < 0x10000) \
78 ? (reg - 0x1000) \
79 : ((reg < 0x11000) \
80 ? (reg - 0x10000) \
81 : (reg - 0x11000))))
83 #define GAMMA_BASE(reg) ((unsigned long) \ argument
84 ((reg < 0x1000) ? dev_priv->mmio0->handle : \
85 ((reg < 0x10000) ? dev_priv->mmio1->handle : \
86 ((reg < 0x11000) ? dev_priv->mmio2->handle : \
88 #define GAMMA_ADDR(reg) (GAMMA_BASE(reg) + GAMMA_OFF(reg)) argument
89 #define GAMMA_DEREF(reg) *(__volatile__ int *)GAMMA_ADDR(reg) argument
90 #define GAMMA_READ(reg) GAMMA_DEREF(reg) argument
91 #define GAMMA_WRITE(reg,val) do { GAMMA_DEREF(reg) = val; } while (0) argument