Lines Matching refs:reg
83 int reg;
100 reg = GPIO0P0CTLI;
102 reg = GPIO1P0CTLI;
105 reg = GPIO0P0CTLO;
107 reg = GPIO1P0CTLO;
110 return reg + gpio % 8;
127 int reg = to_reg(gpio, CTRL_IN);
129 regmap_update_bits(cg->regmap, reg, CTLI_INTCNT_BE, cg->intcnt_value);
135 int reg = to_reg(gpio, CTRL_OUT);
137 if (reg < 0)
140 return regmap_write(cg->regmap, reg, CTLO_INPUT_SET);
147 int reg = to_reg(gpio, CTRL_OUT);
149 if (reg < 0)
152 return regmap_write(cg->regmap, reg, CTLO_OUTPUT_SET | value);
159 int ret, reg = to_reg(gpio, CTRL_IN);
161 if (reg < 0)
164 ret = regmap_read(cg->regmap, reg, &val);
175 int reg = to_reg(gpio, CTRL_OUT);
177 if (reg < 0)
181 regmap_update_bits(cg->regmap, reg, 1, 1);
183 regmap_update_bits(cg->regmap, reg, 1, 0);