Lines Matching full:ticks

103 	unsigned long ticks, base, data;  in pm80x_rtc_read_time()  local
113 ticks = base + data; in pm80x_rtc_read_time()
114 dev_dbg(info->dev, "get base:0x%lx, RO count:0x%lx, ticks:0x%lx\n", in pm80x_rtc_read_time()
115 base, data, ticks); in pm80x_rtc_read_time()
116 rtc_time64_to_tm(ticks, tm); in pm80x_rtc_read_time()
124 unsigned long ticks, base, data; in pm80x_rtc_set_time() local
126 ticks = rtc_tm_to_time64(tm); in pm80x_rtc_set_time()
132 base = ticks - data; in pm80x_rtc_set_time()
133 dev_dbg(info->dev, "set base:0x%lx, RO count:0x%lx, ticks:0x%lx\n", in pm80x_rtc_set_time()
134 base, data, ticks); in pm80x_rtc_set_time()
148 unsigned long ticks, base, data; in pm80x_rtc_read_alarm() local
159 ticks = base + data; in pm80x_rtc_read_alarm()
160 dev_dbg(info->dev, "get base:0x%lx, RO count:0x%lx, ticks:0x%lx\n", in pm80x_rtc_read_alarm()
161 base, data, ticks); in pm80x_rtc_read_alarm()
163 rtc_time64_to_tm(ticks, &alrm->time); in pm80x_rtc_read_alarm()
174 unsigned long ticks, base, data; in pm80x_rtc_set_alarm() local
189 ticks = base + data; in pm80x_rtc_set_alarm()
190 dev_dbg(info->dev, "get base:0x%lx, RO count:0x%lx, ticks:0x%lx\n", in pm80x_rtc_set_alarm()
191 base, data, ticks); in pm80x_rtc_set_alarm()
193 rtc_time64_to_tm(ticks, &now_tm); in pm80x_rtc_set_alarm()
194 dev_dbg(info->dev, "%s, now time : %lu\n", __func__, ticks); in pm80x_rtc_set_alarm()
196 /* get new ticks for alarm in 24 hours */ in pm80x_rtc_set_alarm()
197 ticks = rtc_tm_to_time64(&alarm_tm); in pm80x_rtc_set_alarm()
198 dev_dbg(info->dev, "%s, alarm time: %lu\n", __func__, ticks); in pm80x_rtc_set_alarm()
199 data = ticks - base; in pm80x_rtc_set_alarm()