Lines Matching refs:tps_dev
71 struct device *tps_dev = to_tps6586x_dev(dev); in tps6586x_rtc_read_time() local
78 ret = tps6586x_reads(tps_dev, RTC_COUNT4_DUMMYREAD, sizeof(buff), buff); in tps6586x_rtc_read_time()
97 struct device *tps_dev = to_tps6586x_dev(dev); in tps6586x_rtc_set_time() local
113 ret = tps6586x_clr_bits(tps_dev, RTC_CTRL, RTC_ENABLE); in tps6586x_rtc_set_time()
119 ret = tps6586x_writes(tps_dev, RTC_COUNT4, sizeof(buff), buff); in tps6586x_rtc_set_time()
126 ret = tps6586x_set_bits(tps_dev, RTC_CTRL, RTC_ENABLE); in tps6586x_rtc_set_time()
151 struct device *tps_dev = to_tps6586x_dev(dev); in tps6586x_rtc_set_alarm() local
169 ret = tps6586x_reads(tps_dev, RTC_COUNT4_DUMMYREAD, in tps6586x_rtc_set_alarm()
190 ret = tps6586x_writes(tps_dev, RTC_ALARM1_HI, sizeof(buff), buff); in tps6586x_rtc_set_alarm()
199 struct device *tps_dev = to_tps6586x_dev(dev); in tps6586x_rtc_read_alarm() local
205 ret = tps6586x_reads(tps_dev, RTC_ALARM1_HI, sizeof(buff), buff); in tps6586x_rtc_read_alarm()
236 struct device *tps_dev = to_tps6586x_dev(&pdev->dev); in tps6586x_rtc_probe() local
248 ret = tps6586x_update(tps_dev, RTC_CTRL, in tps6586x_rtc_probe()
290 tps6586x_update(tps_dev, RTC_CTRL, 0, in tps6586x_rtc_probe()
297 struct device *tps_dev = to_tps6586x_dev(&pdev->dev); in tps6586x_rtc_remove() local
299 tps6586x_update(tps_dev, RTC_CTRL, 0, in tps6586x_rtc_remove()