Lines Matching refs:reg
84 int reg;
101 reg = GPIO0P0CTLI;
103 reg = GPIO1P0CTLI;
106 reg = GPIO0P0CTLO;
108 reg = GPIO1P0CTLO;
111 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);
146 int reg = to_reg(gpio, CTRL_OUT);
148 if (reg < 0)
151 return regmap_write(cg->regmap, reg, CTLO_OUTPUT_SET | value);
158 int ret, reg = to_reg(gpio, CTRL_IN);
160 if (reg < 0)
163 ret = regmap_read(cg->regmap, reg, &val);
173 int reg = to_reg(gpio, CTRL_OUT);
175 if (reg < 0)
179 regmap_update_bits(cg->regmap, reg, 1, 1);
181 regmap_update_bits(cg->regmap, reg, 1, 0);