Lines Matching refs:tps

70 	struct tps65218 *tps = rdev_get_drvdata(dev);  in tps65218_pmic_set_voltage_sel()  local
74 ret = tps65218_set_bits(tps, dev->desc->vsel_reg, dev->desc->vsel_mask, in tps65218_pmic_set_voltage_sel()
81 ret = tps65218_set_bits(tps, TPS65218_REG_CONTRL_SLEW_RATE, in tps65218_pmic_set_voltage_sel()
93 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_enable() local
100 return tps65218_set_bits(tps, dev->desc->enable_reg, in tps65218_pmic_enable()
107 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_disable() local
114 return tps65218_clear_bits(tps, dev->desc->enable_reg, in tps65218_pmic_disable()
120 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_set_suspend_enable() local
126 return tps65218_clear_bits(tps, dev->desc->bypass_reg, in tps65218_pmic_set_suspend_enable()
133 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_set_suspend_disable() local
144 if (rid == TPS65218_DCDC_3 && tps->rev == TPS65218_REV_2_1) in tps65218_pmic_set_suspend_disable()
147 if (!tps->strobes[rid]) { in tps65218_pmic_set_suspend_disable()
149 tps->strobes[rid] = 3; in tps65218_pmic_set_suspend_disable()
154 return tps65218_set_bits(tps, dev->desc->bypass_reg, in tps65218_pmic_set_suspend_disable()
156 tps->strobes[rid], TPS65218_PROTECT_L1); in tps65218_pmic_set_suspend_disable()
193 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_set_input_current_lim() local
201 return tps65218_set_bits(tps, dev->desc->csel_reg, dev->desc->csel_mask, in tps65218_pmic_set_input_current_lim()
211 struct tps65218 *tps = rdev_get_drvdata(dev); in tps65218_pmic_set_current_limit() local
221 return tps65218_set_bits(tps, dev->desc->csel_reg, dev->desc->csel_mask, in tps65218_pmic_set_current_limit()
306 struct tps65218 *tps = dev_get_drvdata(pdev->dev.parent); in tps65218_regulator_probe() local
313 config.dev->of_node = tps->dev->of_node; in tps65218_regulator_probe()
314 config.driver_data = tps; in tps65218_regulator_probe()
315 config.regmap = tps->regmap; in tps65218_regulator_probe()
318 tps->strobes = devm_kcalloc(&pdev->dev, in tps65218_regulator_probe()
321 if (!tps->strobes) in tps65218_regulator_probe()
328 dev_err(tps->dev, "failed to register %s regulator\n", in tps65218_regulator_probe()
333 ret = regmap_read(tps->regmap, regulators[i].bypass_reg, &val); in tps65218_regulator_probe()
337 tps->strobes[i] = val & regulators[i].bypass_mask; in tps65218_regulator_probe()