Lines Matching refs:reg
186 * @reg: Register to read.
189 int tps65217_reg_read(struct tps65217 *tps, unsigned int reg,
192 return regmap_read(tps->regmap, reg, val);
200 * @reg: Register to write to.
204 int tps65217_reg_write(struct tps65217 *tps, unsigned int reg,
212 return regmap_write(tps->regmap, reg, val);
214 xor_reg_val = reg ^ TPS65217_PASSWORD_REGS_UNLOCK;
220 return regmap_write(tps->regmap, reg, val);
222 xor_reg_val = reg ^ TPS65217_PASSWORD_REGS_UNLOCK;
227 ret = regmap_write(tps->regmap, reg, val);
234 return regmap_write(tps->regmap, reg, val);
245 * @reg: Register to read-write to.
250 static int tps65217_update_bits(struct tps65217 *tps, unsigned int reg,
256 ret = tps65217_reg_read(tps, reg, &data);
258 dev_err(tps->dev, "Read from reg 0x%x failed\n", reg);
265 ret = tps65217_reg_write(tps, reg, data, level);
267 dev_err(tps->dev, "Write for reg 0x%x failed\n", reg);
272 int tps65217_set_bits(struct tps65217 *tps, unsigned int reg,
275 return tps65217_update_bits(tps, reg, mask, val, level);
279 int tps65217_clear_bits(struct tps65217 *tps, unsigned int reg,
282 return tps65217_update_bits(tps, reg, mask, 0, level);
286 static bool tps65217_volatile_reg(struct device *dev, unsigned int reg)
288 switch (reg) {