Lines Matching refs:to_reg
102 static inline int to_reg(int gpio, enum ctrl_register type)
139 int reg = to_reg(gpio, CTRL_IN);
147 int reg = to_reg(gpio, CTRL_OUT);
159 int reg = to_reg(gpio, CTRL_OUT);
171 int ret, reg = to_reg(gpio, CTRL_OUT);
190 int ret, reg = to_reg(gpio, CTRL_IN);
205 int reg = to_reg(gpio, CTRL_OUT);
220 int reg = to_reg(gpio, CTRL_OUT);
380 ret += regmap_read(wg->regmap, to_reg(gpio, CTRL_OUT), &ctlo);
381 ret += regmap_read(wg->regmap, to_reg(gpio, CTRL_IN), &ctli);