Lines Matching defs:offset
34 * base time, normally an offset from the beginning of the POSIX
36 * local timezone's offset.
38 * The RTC's value is the RTT counter plus that offset. The RTC's alarm
39 * is likewise a base (ALMV) plus that offset.
107 u32 offset;
109 /* read current time offset */
110 offset = gpbr_readl(rtc);
111 if (offset == 0)
120 rtc_time64_to_tm(offset + secs, tm);
133 u32 offset, alarm, mr;
145 /* read current time offset */
146 offset = gpbr_readl(rtc);
155 if (offset > secs) {
157 alarm += (offset - secs);
158 } else if ((alarm + offset) > secs) {
160 alarm -= (secs - offset);
180 u32 offset;
182 offset = gpbr_readl(rtc);
183 if (offset == 0)
188 rtc_time64_to_tm(offset + alarm, tm);
204 u32 offset;
209 offset = gpbr_readl(rtc);
210 if (offset == 0) {
218 if (secs <= offset) {
224 rtt_writel(rtc, AR, secs - offset);