Lines Matching refs:hours
265 u8 seconds, minutes, hours, wday, mday, month, years;
271 hours = rtc->read(rtc, RTC_HRS);
288 tm->tm_hour = ds1685_rtc_bcd2bin(rtc, hours, RTC_HRS_24_BCD_MASK,
312 u8 ctrlb, seconds, minutes, hours, wday, mday, month, years, century;
319 hours = ds1685_rtc_bin2bcd(rtc, tm->tm_hour, RTC_HRS_24_BIN_MASK,
361 rtc->write(rtc, RTC_HRS, hours);
377 * There are three primary alarm registers: seconds, minutes, and hours.
388 u8 seconds, minutes, hours, mday, ctrlb, ctrlc;
395 hours = rtc->read(rtc, RTC_HRS_ALARM);
423 if (likely(hours < 0xc0))
424 alrm->time.tm_hour = ds1685_rtc_bcd2bin(rtc, hours,
446 u8 ctrlb, seconds, minutes, hours, mday;
456 hours = ds1685_rtc_bin2bcd(rtc, alrm->time.tm_hour,
482 if (unlikely(hours >= 0xc0))
483 hours = 0xff;
511 rtc->write(rtc, RTC_HRS_ALARM, hours);
1073 u8 ctrla, ctrlb, hours;
1189 /* Reinitialize the time hours. */
1190 hours = rtc->read(rtc, RTC_HRS);
1191 am_pm = hours & RTC_HRS_AMPM_MASK;
1192 hours = ds1685_rtc_bcd2bin(rtc, hours, RTC_HRS_12_BCD_MASK,
1194 hours = ((hours == 12) ? 0 : ((am_pm) ? hours + 12 : hours));
1202 /* Write the time hours back. */
1204 ds1685_rtc_bin2bcd(rtc, hours,
1208 /* Reinitialize the alarm hours. */
1209 hours = rtc->read(rtc, RTC_HRS_ALARM);
1210 am_pm = hours & RTC_HRS_AMPM_MASK;
1211 hours = ds1685_rtc_bcd2bin(rtc, hours, RTC_HRS_12_BCD_MASK,
1213 hours = ((hours == 12) ? 0 : ((am_pm) ? hours + 12 : hours));
1215 /* Write the alarm hours back. */
1217 ds1685_rtc_bin2bcd(rtc, hours,