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);
1075 u8 ctrla, ctrlb, hours;
1191 /* Reinitialize the time hours. */
1192 hours = rtc->read(rtc, RTC_HRS);
1193 am_pm = hours & RTC_HRS_AMPM_MASK;
1194 hours = ds1685_rtc_bcd2bin(rtc, hours, RTC_HRS_12_BCD_MASK,
1196 hours = ((hours == 12) ? 0 : ((am_pm) ? hours + 12 : hours));
1204 /* Write the time hours back. */
1206 ds1685_rtc_bin2bcd(rtc, hours,
1210 /* Reinitialize the alarm hours. */
1211 hours = rtc->read(rtc, RTC_HRS_ALARM);
1212 am_pm = hours & RTC_HRS_AMPM_MASK;
1213 hours = ds1685_rtc_bcd2bin(rtc, hours, RTC_HRS_12_BCD_MASK,
1215 hours = ((hours == 12) ? 0 : ((am_pm) ? hours + 12 : hours));
1217 /* Write the alarm hours back. */
1219 ds1685_rtc_bin2bcd(rtc, hours,