Lines Matching refs:tps

53 	struct tps6594 *tps = dev_get_drvdata(dev->parent);  in tps6594_rtc_alarm_irq_enable()  local
58 return regmap_update_bits(tps->regmap, TPS6594_REG_RTC_INTERRUPTS, in tps6594_rtc_alarm_irq_enable()
63 static int tps6594_rtc_shadow_timestamp(struct device *dev, struct tps6594 *tps) in tps6594_rtc_shadow_timestamp() argument
71 ret = regmap_clear_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, in tps6594_rtc_shadow_timestamp()
80 return regmap_set_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, in tps6594_rtc_shadow_timestamp()
87 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_read_time() local
91 ret = regmap_test_bits(tps->regmap, TPS6594_REG_RTC_STATUS, in tps6594_rtc_read_time()
98 ret = tps6594_rtc_shadow_timestamp(dev, tps); in tps6594_rtc_read_time()
103 ret = regmap_bulk_read(tps->regmap, TPS6594_REG_RTC_SECONDS, rtc_data, in tps6594_rtc_read_time()
122 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_set_time() local
134 ret = regmap_clear_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, in tps6594_rtc_set_time()
140 ret = regmap_bulk_write(tps->regmap, TPS6594_REG_RTC_SECONDS, rtc_data, in tps6594_rtc_set_time()
146 return regmap_set_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, in tps6594_rtc_set_time()
154 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_read_alarm() local
157 ret = regmap_bulk_read(tps->regmap, TPS6594_REG_ALARM_SECONDS, in tps6594_rtc_read_alarm()
169 ret = regmap_read(tps->regmap, TPS6594_REG_RTC_INTERRUPTS, &int_val); in tps6594_rtc_read_alarm()
181 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_set_alarm() local
197 ret = regmap_bulk_write(tps->regmap, TPS6594_REG_ALARM_SECONDS, in tps6594_rtc_set_alarm()
210 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_set_calibration() local
228 ret = regmap_bulk_write(tps->regmap, TPS6594_REG_RTC_COMP_LSB, &value, in tps6594_rtc_set_calibration()
234 return regmap_set_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, in tps6594_rtc_set_calibration()
240 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_get_calibration() local
245 ret = regmap_read(tps->regmap, TPS6594_REG_RTC_CTRL_1, &ctrl); in tps6594_rtc_get_calibration()
255 ret = regmap_bulk_read(tps->regmap, TPS6594_REG_RTC_COMP_LSB, &value, in tps6594_rtc_get_calibration()
336 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_interrupt() local
341 ret = regmap_read(tps->regmap, TPS6594_REG_RTC_STATUS, &rtc_reg); in tps6594_rtc_interrupt()
362 struct tps6594 *tps = dev_get_drvdata(pdev->dev.parent); in tps6594_rtc_probe() local
377 ret = regmap_set_bits(tps->regmap, TPS6594_REG_RTC_CTRL_2, in tps6594_rtc_probe()
382 ret = regmap_test_bits(tps->regmap, TPS6594_REG_RTC_STATUS, in tps6594_rtc_probe()
388 ret = regmap_set_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, in tps6594_rtc_probe()
403 ret = regmap_test_bits(tps->regmap, TPS6594_REG_RTC_STATUS, in tps6594_rtc_probe()
411 ret = regmap_clear_bits(tps->regmap, TPS6594_REG_RTC_CTRL_1, in tps6594_rtc_probe()
446 struct tps6594 *tps = dev_get_drvdata(dev->parent); in tps6594_rtc_resume() local
450 ret = regmap_test_bits(tps->regmap, TPS6594_REG_INT_STARTUP, in tps6594_rtc_resume()
463 ret = regmap_write(tps->regmap, TPS6594_REG_RTC_STATUS, in tps6594_rtc_resume()