Lines Matching refs:tps
78 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_set_voltage_sel() local
82 ret = tps65218_set_bits(tps, dev->desc->vsel_reg, dev->desc->vsel_mask, in tps65218_pmic_set_voltage_sel()
89 ret = tps65218_set_bits(tps, TPS65218_REG_CONTRL_SLEW_RATE, in tps65218_pmic_set_voltage_sel()
101 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_enable() local
108 return tps65218_set_bits(tps, dev->desc->enable_reg, in tps65218_pmic_enable()
115 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_disable() local
122 return tps65218_clear_bits(tps, dev->desc->enable_reg, in tps65218_pmic_disable()
128 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_set_suspend_enable() local
134 return tps65218_clear_bits(tps, dev->desc->bypass_reg, in tps65218_pmic_set_suspend_enable()
141 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_set_suspend_disable() local
152 if (rid == TPS65218_DCDC_3 && tps->rev == TPS65218_REV_2_1) in tps65218_pmic_set_suspend_disable()
155 if (!tps->strobes[rid]) { in tps65218_pmic_set_suspend_disable()
157 tps->strobes[rid] = 3; in tps65218_pmic_set_suspend_disable()
162 return tps65218_set_bits(tps, dev->desc->bypass_reg, in tps65218_pmic_set_suspend_disable()
164 tps->strobes[rid], TPS65218_PROTECT_L1); in tps65218_pmic_set_suspend_disable()
201 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_set_input_current_lim() local
209 return tps65218_set_bits(tps, dev->desc->csel_reg, dev->desc->csel_mask, in tps65218_pmic_set_input_current_lim()
219 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_set_current_limit() local
229 return tps65218_set_bits(tps, dev->desc->csel_reg, dev->desc->csel_mask, in tps65218_pmic_set_current_limit()
314 struct tps65218 *tps = dev_get_drvdata(pdev->dev.parent); in tps65218_regulator_probe() local
321 config.dev->of_node = tps->dev->of_node; in tps65218_regulator_probe()
322 config.driver_data = tps; in tps65218_regulator_probe()
323 config.regmap = tps->regmap; in tps65218_regulator_probe()
326 tps->strobes = devm_kcalloc(&pdev->dev, in tps65218_regulator_probe()
329 if (!tps->strobes) in tps65218_regulator_probe()
336 dev_err(tps->dev, "failed to register %s regulator\n", in tps65218_regulator_probe()
341 ret = regmap_read(tps->regmap, regulators[i].bypass_reg, &val); in tps65218_regulator_probe()
345 tps->strobes[i] = val & regulators[i].bypass_mask; in tps65218_regulator_probe()