Home
last modified time | relevance | path

Searched refs:tod (Results 1 – 17 of 17) sorted by relevance

/openbsd/src/sys/arch/octeon/dev/
Doctrtc.c126 uint8_t tod[8]; in octrtc_gettime() local
134 rc = octrtc_read(&tod[0], 1); /* ia read */ in octrtc_gettime()
141 rc = octrtc_read(&tod[i], 0); /* current address */ in octrtc_gettime()
146 DPRINTF(("%#X ", tod[i])); in octrtc_gettime()
155 if ((check & 0xf) == (tod[0] & 0xf)) in octrtc_gettime()
161 ((tod[5] & 0x80) ? 2000 : 1900) + FROMBCD(tod[6]), /* year */ in octrtc_gettime()
162 FROMBCD(tod[5] & 0x1f), /* month */ in octrtc_gettime()
163 FROMBCD(tod[4] & 0x3f), /* day */ in octrtc_gettime()
164 (tod[3] & 0x7), /* day of the week */ in octrtc_gettime()
165 FROMBCD(tod[2] & 0x3f), /* hour */ in octrtc_gettime()
[all …]
/openbsd/src/sys/arch/hppa/dev/
Dclock.c77 struct pdc_tod tod PDC_ALIGNMENT; in pdc_gettime()
81 &tod, 0, 0, 0, 0, 0))) { in pdc_gettime()
86 tv->tv_sec = tod.sec; in pdc_gettime()
87 tv->tv_usec = tod.usec; in pdc_gettime()
/openbsd/src/sys/arch/sparc64/dev/
Dvrtc.c80 u_int64_t tod; in vrtc_gettime() local
82 if (hv_tod_get(&tod) != H_EOK) in vrtc_gettime()
85 tv->tv_sec = tod; in vrtc_gettime()
Dsbbc.c318 struct sbbc_sram_tod *tod; in sbbc_attach_tod() local
321 tod = (struct sbbc_sram_tod *)(sc->sc_sram + offset); in sbbc_attach_tod()
322 if (tod->tod_magic != SBBC_TOD_MAGIC || in sbbc_attach_tod()
323 tod->tod_version < SBBC_TOD_VERSION) in sbbc_attach_tod()
330 handle->cookie = tod; in sbbc_attach_tod()
342 struct sbbc_sram_tod *tod = handle->cookie; in sbbc_tod_gettime() local
344 tv->tv_sec = tod->tod_time + tod->tod_skew; in sbbc_tod_gettime()
352 struct sbbc_sram_tod *tod = handle->cookie; in sbbc_tod_settime() local
354 tod->tod_skew = tv->tv_sec - tod->tod_time; in sbbc_tod_settime()
Dprtc.c107 u_int32_t tod = 0; in prtc_gettime() local
109 snprintf(buf, sizeof(buf), "h# %08lx unix-gettod", (long)&tod); in prtc_gettime()
112 tv->tv_sec = tod; in prtc_gettime()
/openbsd/src/sys/dev/fdt/
Dplrtc.c66 uint32_t tod; in plrtc_gettime() local
68 tod = bus_space_read_4(sc->sc_iot, sc->sc_ioh, RTCDR); in plrtc_gettime()
70 tv->tv_sec = tod; in plrtc_gettime()
/openbsd/src/usr.bin/cvs/
Ddate.y540 time_t tod; in Convert() local
571 if ((tod = ToSeconds(Hours, Minutes, Seconds, Meridian)) < 0) in Convert()
573 julian += tod; in Convert()
811 time_t Start, tod, nowtime, tz; in date_parse() local
861 tod = RelativeDate(Start, yyDayOrdinal, yyDayNumber); in date_parse()
862 Start += tod; in date_parse()
/openbsd/src/gnu/usr.bin/cvs/lib/
Dgetdate.y612 time_t tod; local
641 if ((tod = ToSeconds(Hours, Minutes, Seconds, Meridian)) < 0)
643 Julian += tod;
893 time_t tod; local
965 tod = RelativeDate(Start, yyDayOrdinal, yyDayNumber);
966 Start += tod;
Dgetdate.c1629 time_t tod; local
1655 if ((tod = ToSeconds(Hours, Minutes, Seconds, Meridian)) < 0)
1657 Julian += tod;
1907 time_t tod; local
1979 tod = RelativeDate(Start, yyDayOrdinal, yyDayNumber);
1980 Start += tod;
/openbsd/src/usr.bin/rcs/
Ddate.y545 time_t tod; in Convert() local
576 if ((tod = ToSeconds(Hours, Minutes, Seconds, Meridian)) < 0) in Convert()
578 julian += tod; in Convert()
816 time_t Start, tod, nowtime, tz; in date_parse() local
866 tod = RelativeDate(Start, yyDayOrdinal, yyDayNumber); in date_parse()
867 Start += tod; in date_parse()
/openbsd/src/usr.bin/top/
Ddisplay.c264 i_timeofday(time_t * tod) in i_timeofday() argument
281 foo = ctime(tod); in i_timeofday()
285 printwp("%s %-8.8s", buf, &(ctime(tod)[11])); in i_timeofday()
/openbsd/src/usr.bin/at/
Dparsetime.c385 tod(struct tm *tm) in tod() function
656 if (tod(&runtime) != 0 || month(&runtime) != 0) in parsetime()
/openbsd/src/usr.sbin/zic/
Dzic.c1052 long dayoff, tod; in inleap() local
1115 tod = gethms(fields[LP_TIME], "invalid time of day", FALSE); in inleap()
1141 leapadd(tadd(t, tod), positive, lp->l_value, count); in inleap()
1772 long tod; in stringrule() local
1807 tod = rp->r_tod; in stringrule()
1809 tod += gmtoff; in stringrule()
1811 tod += dstoff; in stringrule()
1812 if (tod < 0) { in stringrule()
1816 if (tod != 2 * SECSPERMIN * MINSPERHOUR) { in stringrule()
1819 if (stringoffset(ep, size - (ep - result), tod) != 0) in stringrule()
/openbsd/src/sys/arch/sparc64/include/
Dhypervisor.h128 int64_t hv_tod_get(uint64_t *tod);
129 int64_t hv_tod_set(uint64_t tod);
/openbsd/src/usr.sbin/ldomctl/
Dconfig.c110 uint64_t tod; variable
901 md_get_prop_val(md, node, "tod", &tod); in hvmd_init()
1401 if (tod != 0) in hvmd_finalize()
1402 md_add_prop_val(md, node, "tod", tod); in hvmd_finalize()
/openbsd/src/share/dict/
Dweb2a65173 tod stove
Dweb2204129 tod