Lines Matching refs:ogpio
133 #define BASIC_DATA_REG_MASK(ogpio) (1 << ogpio) argument
134 #define BASIC_MODE_REG_VALUE(mode, ogpio) \ argument
135 (mode << BASIC_MODE_REG_SHIFT(ogpio))
136 #define BASIC_MODE_REG_MASK(ogpio) \ argument
137 BASIC_MODE_REG_VALUE(0xf, ogpio)
138 #define BASIC_MODE_REG_SHIFT(ogpio) (ogpio * 4) argument
139 #define BASIC_MODE_REG_FROM_REG(data, ogpio) \ argument
140 ((data & BASIC_MODE_REG_MASK(ogpio)) >> BASIC_MODE_REG_SHIFT(ogpio))
178 #define EXTENDED_REG_DISABLE(ogpio) (0x2 << ((ogpio * 2) + 16)) argument
179 #define EXTENDED_REG_ENABLE(ogpio) (0x1 << ((ogpio * 2) + 16)) argument
180 #define EXTENDED_REG_SET(ogpio) (0x2 << (ogpio * 2)) argument
181 #define EXTENDED_REG_CLR(ogpio) (0x1 << (ogpio * 2)) argument