Searched refs:hour (Results 51 - 75 of 133) sorted by relevance

123456

/freebsd-11.0-release/contrib/ntp/clockstuff/
H A Dchutest.c548 int day, hour, minute, second; local
595 * Collect the day, the hour, the minute and the second.
600 hour = *code++;
601 hour = MULBY10(hour) + *code++;
613 || hour > 23 || minute > 59
616 day, hour, minute, second);
623 tmp = (u_long)(MULBY24((day-1)) + hour); /* hours */
/freebsd-11.0-release/sys/dev/iicbus/
H A Dds3231.c161 uint8_t data[2], hour; local
163 hour = 0;
165 &hour, sizeof(hour));
171 data[1] = hour & ~DS3231_C_MASK;
511 ct.hour = FROMBCD(data[DS3231_HOUR] & DS3231_HOUR_MASK);
548 data[DS3231_HOUR + 1] = TOBCD(ct.hour);
H A Dpcf8563.c171 ct.hour = FROMBCD(val[PCF8563_R_HOUR] & PCF8563_M_HOUR);
208 val[PCF8563_R_HOUR] = TOBCD(ct.hour);
H A Ds35390a.c278 ct.hour = FROMBCD(bcd[S390_RT1_HOUR] & 0x3f);
301 bcd[S390_RT1_HOUR] = TOBCD(ct.hour);
/freebsd-11.0-release/contrib/ntp/ntpd/
H A Drefclock_tsyncpci.c190 unsigned int hour; member in struct:DoyTimeObj
620 pp->hour = TimeContext.timeObj.hours;
633 jt.hour = 0;
639 offset.l_ui = (long)(((pp->day - 1) * 24) + pp->hour + GMT);
826 pSt->seconds += pDt->hour * SECSPERHR;
892 // Calculate the hour
903 pDt->hour = hrs;
H A Dntp_filegen.c157 cal.hour = cal.minute = cal.second = 0;
166 iso.hour = iso.minute = iso.second = 0;
176 cal.hour = cal.minute = cal.second = 0;
187 cal.hour = cal.minute = cal.second = 0;
H A Drefclock_palisade.c533 pp->hour = secint / 3600;
546 up->unit, mb(0) & 0xff, event, pp->hour, pp->minute,
618 pp->hour = mb(11);
626 up->unit, mb(0) & 0xff, event, pp->hour, pp->minute,
764 pp->hour = mb(12);
771 printf("TSIP_decode: unit %d: %02X #%d %02d:%02d:%02d.%09ld %02d/%02d/%04d ",up->unit, mb(0) & 0xff, event, pp->hour, pp->minute, pp->second, pp->nsec, mb(14), mb(13), pp->year);
920 up->unit, pp->year, pp->day, pp->hour, pp->minute,
933 pp->hour,pp->minute, pp->second, pp->nsec);
H A Drefclock_acts.c779 &mjd, &pp->year, &month, &day, &pp->hour,
803 &mjd, &pp->day, &pp->hour, &pp->minute,
825 &pp->second, &pp->year, &month, &day, &pp->hour,
849 &synchar, &pp->day, &pp->hour, &pp->minute,
867 &pp->hour, &pp->minute, &pp->second, &pp->nsec,
/freebsd-11.0-release/contrib/ntp/libparse/
H A Dclk_dcf7000.c108 Stoi(&buffer[format->field_offsets[O_HOUR].offset], &clock_time->hour,
H A Dclk_hopf6021.c152 STOI(O_HOUR, &clock_time->hour) ||
H A Dclk_rawdcf.c81 * 16 A1 - expect zone change (1 hour before)
87 * 19 A2 - expect leap insertion/deletion (1 hour before)
282 clock_time->hour = ext_bf(buffer, DCF_H10, dcfprm->zerobits);
283 clock_time->hour = TIMES10(clock_time->hour) + ext_bf(buffer, DCF_H1, dcfprm->zerobits);
317 (int)clock_time->hour, (int)clock_time->minute, (int)clock_time->day, (int)clock_time->month,(int) clock_time->year,
H A Dclk_trimtaip.c118 STOI(O_HOUR, &clock_time->hour) ||
H A Dclk_varitext.c90 * Bit 4 - Set= Seasonal change in approx hour; Reset= No seasonal change expected
101 {14, 2}, {17, 2}, {20, 2}, /* hour, minute, second */
154 Stoi(&buffer[format->field_offsets[O_HOUR].offset], &clock_time->hour,
179 if (((*f) & VT_SEASON_CHANGE)) Seasonal change expected in the next hour
/freebsd-11.0-release/contrib/ntp/parseutil/
H A Ddcfd.c200 #define DCFB_LEAP 0x0004 /* LEAP warning (1 hour prior to occurrence) */
209 long hour; member in struct:clocktime
272 * 16 A1 - expect zone change (1 hour before)
278 * 19 A2 - expect leap insertion/deletion (1 hour before)
467 clock_time->hour = ext_bf(buffer, DCF_H10);
468 clock_time->hour = TIMES10(clock_time->hour) + ext_bf(buffer, DCF_H1);
834 /* hour */
835 if (clock_time->hour < 0 || clock_time->hour >
[all...]
/freebsd-11.0-release/contrib/ntp/libntp/
H A Dntp_calendar.c351 unsigned short hour, minute, second, day, year; local
377 &hour, &minute, &second, monstr, &day, &year)) {
383 jd->hour = (uint8_t)hour;
988 jd->hour = (uint8_t)ts[0];
1309 * Convert elapsed days and the hour/minute/second information into
1424 return ntpcal_etime_to_seconds(jd->hour, jd->minute,
1757 id->hour = (uint8_t)ts[0];
1812 secs = ntpcal_etime_to_seconds(id->hour, id->minute, id->second);
H A Dprettydate.c192 jd.monthday, jd.year, jd.hour,
/freebsd-11.0-release/sys/dev/mc146818/
H A Dmc146818.c135 ct.hour = FROMREG((*sc->sc_mcread)(dev, MC_HOUR));
214 (*sc->sc_mcwrite)(dev, MC_HOUR, TOREG(ct.hour));
/freebsd-11.0-release/sys/arm/ti/am335x/
H A Dam335x_rtc.c173 ct.hour = FROMBCD(RTC_READ4(rtc_sc, RTC_HOURS) & 0x3f);
183 RTC_WRITE4(rtc_sc, RTC_ALARM2_HOURS, TOBCD(ct.hour));
/freebsd-11.0-release/sys/arm/allwinner/
H A Daw_rtc.c228 ct.hour = GET_HOUR_VALUE(rtime);
273 SET_HOUR_VALUE(ct.hour);
/freebsd-11.0-release/sys/arm/at91/
H A Dat91_rtc.c157 * Set 24-hour-clock mode.
285 ct.hour = RTC_TIMR_HR(timr);
327 WR4(sc, RTC_TIMR, RTC_TIMR_MK(ct.hour, ct.min, ct.sec));
/freebsd-11.0-release/sys/pc98/cbus/
H A Dpcrtc.c183 rtc_outb(bin2bcd(ct.hour)); /* Write back Hours */
208 ct.hour = bcd2bin(rtc_inb() & 0xff); /* hour */
/freebsd-11.0-release/sys/powerpc/mpc85xx/
H A Dds1553_core.c107 ct.hour = FROMBCD((*sc->sc_read)(dev, DS1553_OFF_HOURS) &
159 (*sc->sc_write)(dev, DS1553_OFF_HOURS, TOBCD(ct.hour) &
/freebsd-11.0-release/contrib/wpa/src/utils/
H A Dos_unix.c125 int os_mktime(int year, int month, int day, int hour, int min, int sec, argument
133 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 ||
141 tm.tm_hour = hour;
175 tm->hour = tm2->tm_hour;
/freebsd-11.0-release/crypto/heimdal/kadmin/
H A Dload.c74 int year, month, date, hour, minute, second; local
80 &year, &month, &date, &hour, &minute, &second) != 6)
85 tm.tm_hour = hour;
/freebsd-11.0-release/contrib/ntp/include/
H A Dntp_refclock.h160 int hour; /* hour of day */ member in struct:refclockproc
161 int minute; /* minute of hour */

Completed in 363 milliseconds

123456