Lines Matching refs:hour
55 uint8_t hour;
181 int hour;
207 KASSERT(ct.hour >= 0 && ct.hour <= 23, ("invalid clocktime hour %d",
208 ct.hour));
223 hour = ct.hour;
226 * Convert to the 12-hour format.
228 switch (ct.hour) {
231 hour = 12;
235 * The remaining 'ct.hour' values are interpreted as:
239 hour = ct.hour % 12;
244 rtc->hour = rtcset(rtc, hour);
246 if ((rtc->reg_b & RTCSB_24HR) == 0 && ct.hour >= 12)
247 rtc->hour |= 0x80; /* set MSB to indicate PM */
283 int century, error, hour, pm, year;
305 hour = rtc->hour;
307 if (hour & 0x80) {
308 hour &= ~0x80;
312 error = rtcget(rtc, hour, &ct.hour);
314 if (ct.hour >= 1 && ct.hour <= 12) {
316 * Convert from 12-hour format to internal 24-hour
319 * 12-hour format ct.hour
325 if (ct.hour == 12)
326 ct.hour = 0;
328 ct.hour += 12;
330 VM_CTR2(vm, "Invalid RTC 12-hour format %#x/%d",
331 rtc->hour, ct.hour);
336 if (error || ct.hour < 0 || ct.hour > 23) {
337 VM_CTR2(vm, "Invalid RTC hour %#x/%d", rtc->hour, ct.hour);
381 ct.hour, ct.min, ct.sec);
461 (alarm_hour >= 0xC0 || alarm_hour == rtc->hour)) {