Lines Matching refs:seconds
265 u8 seconds, minutes, hours, wday, mday, month, years;
269 seconds = rtc->read(rtc, RTC_SECS);
284 tm->tm_sec = ds1685_rtc_bcd2bin(rtc, seconds, RTC_SECS_BCD_MASK,
312 u8 ctrlb, seconds, minutes, hours, wday, mday, month, years, century;
315 seconds = ds1685_rtc_bin2bcd(rtc, tm->tm_sec, RTC_SECS_BIN_MASK,
359 rtc->write(rtc, RTC_SECS, seconds);
377 * There are three primary alarm registers: seconds, minutes, and hours.
388 u8 seconds, minutes, hours, mday, ctrlb, ctrlc;
393 seconds = rtc->read(rtc, RTC_SECS_ALARM);
413 if (likely(seconds < 0xc0))
414 alrm->time.tm_sec = ds1685_rtc_bcd2bin(rtc, seconds,
446 u8 ctrlb, seconds, minutes, hours, mday;
450 seconds = ds1685_rtc_bin2bcd(rtc, alrm->time.tm_sec,
476 if (unlikely(seconds >= 0xc0))
477 seconds = 0xff;
509 rtc->write(rtc, RTC_SECS_ALARM, seconds);