Searched refs:tod (Results 1 - 25 of 45) sorted by relevance

12

/illumos-gate/usr/src/uts/sun4u/io/
H A Dtodbq4802.c29 * tod driver module for TI BQ4802 part
87 &mod_miscops, "tod module for TI BQ4802"
165 todinfo_t tod; local
179 tod.tod_year = rtc.rtc_year + (rtc.rtc_century * 100) - 1900;
180 tod.tod_month = rtc.rtc_mon;
181 tod.tod_day = rtc.rtc_dom;
182 tod.tod_dow = rtc.rtc_dow;
183 tod.tod_hour = rtc.rtc_hrs;
184 tod.tod_min = rtc.rtc_min;
185 tod
249 todinfo_t tod = utc_to_tod(ts.tv_sec); local
319 todinfo_t tod; local
[all...]
H A Dtodmostek.c27 * tod driver module for Mostek M48T59 part
61 &mod_miscops, "tod module for Mostek M48T59"
122 todinfo_t tod; local
130 tod.tod_year = BCD_TO_BYTE(CLOCK->clk_year) + YRBASE;
131 tod.tod_month = BCD_TO_BYTE(CLOCK->clk_month & 0x1f);
132 tod.tod_day = BCD_TO_BYTE(CLOCK->clk_day & 0x3f);
133 tod.tod_dow = BCD_TO_BYTE(CLOCK->clk_weekday & 0x7);
134 tod.tod_hour = BCD_TO_BYTE(CLOCK->clk_hour & 0x3f);
135 tod.tod_min = BCD_TO_BYTE(CLOCK->clk_min & 0x7f);
136 tod
161 todinfo_t tod = utc_to_tod(ts.tv_sec); local
222 todinfo_t tod; local
[all...]
H A Dtodm5819p_rmc.c28 * tod driver module for ALI M5819P part
73 &mod_miscops, "tod module for ALI M5819P"
160 * Read current time from the tod. If the tod isn't accessible, wait and
177 * tod is inaccessible: just return current software time
194 todinfo_t tod; local
200 tod.tod_year = rtc->rtc_year + (rtc->rtc_century * 100) - 1900;
201 tod.tod_month = rtc->rtc_mon;
202 tod.tod_day = rtc->rtc_dom;
203 tod
250 todinfo_t tod = utc_to_tod(ts.tv_sec); local
364 todinfo_t tod; local
[all...]
H A Dtodm5819.c71 &mod_miscops, "tod module for ALI M5819",
149 * Read from the tod, and if it isnt accessible wait
179 todinfo_t tod; local
185 tod.tod_year = rtc->rtc_year + (rtc->rtc_century * 100) - 1900;
186 tod.tod_month = rtc->rtc_mon;
187 tod.tod_day = rtc->rtc_dom;
188 tod.tod_dow = rtc->rtc_dow;
189 tod.tod_hour = rtc->rtc_hrs;
190 tod.tod_min = rtc->rtc_min;
191 tod
246 todinfo_t tod = utc_to_tod(ts.tv_sec); local
336 todinfo_t tod; local
[all...]
H A Dtodblade.c174 * Read from the tod, and if it isnt accessible wait
204 todinfo_t tod; local
210 tod.tod_year = rtc->rtc_year + (rtc->rtc_century * 100) - 1900;
211 tod.tod_month = rtc->rtc_mon;
212 tod.tod_day = rtc->rtc_dom;
213 tod.tod_dow = rtc->rtc_dow;
214 tod.tod_hour = rtc->rtc_hrs;
215 tod.tod_min = rtc->rtc_min;
216 tod.tod_sec = rtc->rtc_sec;
218 return (tod);
272 todinfo_t tod = utc_to_tod(ts.tv_sec); local
[all...]
H A Dtodds1287.c28 * The "todds1287" module has implementation for both tod
31 * chip. The tod interface accesses the RTC unit and pbio
825 todinfo_t tod; local
838 tod.tod_year = rtc.rtc_year + (rtc.rtc_century * 100) - 1900;
839 tod.tod_month = rtc.rtc_mon;
840 tod.tod_day = rtc.rtc_dom;
841 tod.tod_dow = rtc.rtc_dow;
842 tod.tod_hour = rtc.rtc_hrs;
843 tod.tod_min = rtc.rtc_min;
844 tod
952 todinfo_t tod = utc_to_tod(ts.tv_sec); local
1071 todinfo_t tod; local
[all...]
H A Dtodds1337.c139 "tod driver for DS1337", /* Name of the module. */
215 * cyclical call to get tod.
396 todinfo_t tod; local
415 tod.tod_year = rtc.rtc_year;
417 tod.tod_year += 100;
418 tod.tod_month = rtc.rtc_mon;
419 tod.tod_day = rtc.rtc_dom;
420 tod.tod_dow = rtc.rtc_dow;
421 tod.tod_hour = rtc.rtc_hrs;
422 tod
443 todinfo_t tod = utc_to_tod(ts.tv_sec); local
478 todinfo_t tod; local
[all...]
/illumos-gate/usr/src/uts/i86pc/io/
H A Dtodpc_subr.c131 todinfo_t tod = utc_to_tod(ts.tv_sec - ggmtl()); local
144 tod.tod_year -= YRBASE;
145 if (tod.tod_year >= 100) {
146 tod.tod_year -= 100;
150 rtc.rtc_yr = BYTE_TO_BCD(tod.tod_year);
151 rtc.rtc_mon = BYTE_TO_BCD(tod.tod_month);
152 rtc.rtc_dom = BYTE_TO_BCD(tod.tod_day);
154 rtc.rtc_dow = (unsigned char)tod.tod_dow;
155 rtc.rtc_hr = BYTE_TO_BCD(tod.tod_hour);
156 rtc.rtc_min = BYTE_TO_BCD(tod
172 todinfo_t tod; local
[all...]
/illumos-gate/usr/src/uts/i86xpv/io/
H A Dxpvtod.c42 * tod driver module for i86xpv
48 todinfo_t tod; local
88 tod = utc_to_tod(ts.tv_sec);
89 if (tod.tod_year < 69) {
104 if (tod.tod_year > 38)
110 tod.tod_year += 100;
111 ts.tv_sec = tod_to_utc(tod);
/illumos-gate/usr/src/uts/common/os/
H A Dtimers.c1373 todinfo_t tod; local
1393 tod.tod_sec = utc % 60;
1394 tod.tod_min = (utc % 3600) / 60;
1395 tod.tod_hour = (utc % 86400) / 3600;
1396 tod.tod_dow = (dse + 4) % 7 + 1; /* epoch was a Thursday */
1408 tod.tod_day = day - days_thru_month[month] + 1;
1409 tod.tod_month = month & 15;
1410 tod.tod_year = year;
1412 saved_tod = tod;
1413 return (tod);
1417 tod_to_utc(todinfo_t tod) argument
[all...]
H A Dclock.c314 int tod_needsync = 0; /* need to sync tod chip with software time */
325 * for tod fault detection
372 * test hook for tod broken detection in tod_validate
637 timestruc_t tod; local
774 * the tod chip and software time and adjust one or
777 * - if dosynctodr is 0, then the tod chip is independent
780 * hrestime without any interference from the tod chip.
785 tod = tod_get();
786 drift = tod.tv_sec - hrestime.tv_sec;
793 hrestime = tod;
2163 tod_validate(time_t tod) argument
[all...]
H A Dfm.c412 timespec_t tod; local
419 tod = panic_hrestime;
422 gethrestime(&tod);
432 fm_msgid, tod.tv_sec, tod.tv_nsec, (u_longlong_t)now);
465 timespec_t tod; local
471 tod = panic_hrestime;
476 gethrestime(&tod);
497 ed.ed_tod_base.sec = tod.tv_sec;
498 ed.ed_tod_base.nsec = tod
[all...]
/illumos-gate/usr/src/cmd/valtools/
H A Dcktime.c126 char *tod; local
241 tod = (char *)malloc(len);
242 if (!tod) {
247 n = cktime(tod, fmt, deflt, error, help, prompt);
253 (void) fputs(tod, stdout);
/illumos-gate/usr/src/uts/common/syscall/
H A Dntptime.c74 timestruc_t tod; local
78 gethrestime(&tod);
79 if (tod.tv_sec > TIME32_MAX)
81 ntv.time.tv_sec = tod.tv_sec;
82 ntv.time.tv_usec = tod.tv_nsec / (NANOSEC / MICROSEC);
/illumos-gate/usr/src/uts/sun4u/snowbird/io/todds1307/
H A Dtodds1307.c146 "tod driver for DS1307 v1.12", /* Name of the module */
218 * cyclical call to get tod.
374 todinfo_t tod; local
393 tod.tod_year = rtc.rtc_year;
395 tod.tod_year += 100;
396 tod.tod_month = rtc.rtc_mon;
397 tod.tod_day = rtc.rtc_dom;
398 tod.tod_dow = rtc.rtc_dow;
399 tod.tod_hour = rtc.rtc_hrs;
400 tod
421 todinfo_t tod = utc_to_tod(ts.tv_sec); local
[all...]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_event.c58 uint64_t *tod; local
69 FMD_EVN_TOD, &tod, &n) == 0 && n >= 2)
70 ep->ev_time = *(const fmd_timeval_t *)tod;
81 fmd_timeval_t tod; local
117 fmd_time_sync(&tod, &hr0, 1);
118 fmd_time_tod2hrt(hr0, &tod, &ep->ev_time, &ep->ev_hrt);
129 fmd_timeval_t tod; local
152 fmd_time_sync(&tod, &hr0, 1);
167 fmd_time_hrt2tod(hr0, &tod, hrt, &ep->ev_time);
H A Dfmd_time.c87 struct timeval tod; local
90 (void) ftop->fto_gettimeofday(&tod, NULL);
97 todbase = tod;
239 fmd_dprintf(FMD_DBG_TMR, "simulator tod base tv_sec=%lx hrt=%llx\n",
257 hrtime_t tod, hrt, sec, rem; local
261 tod = fts->fts_tod;
266 sec = tod / NANOSEC + hrt / NANOSEC;
267 rem = tod % NANOSEC + hrt % NANOSEC;
H A Dfmd_protocol.c147 int64_t tod[2]; local
153 tod[0] = tvp->tv_sec;
154 tod[1] = tvp->tv_usec;
163 err |= nvlist_add_int64_array(nvl, FM_SUSPECT_DIAG_TIME, tod, 2);
217 int64_t tod[2]; local
220 tod[0] = tvp->tv_sec;
221 tod[1] = tvp->tv_usec;
244 err |= nvlist_add_int64_array(nvl, FM_SUSPECT_DIAG_TIME, tod, 2);
/illumos-gate/usr/src/cmd/krb5/kwarn/
H A Dkwarnd_send.c80 time_t tod; local
132 time(&tod);
133 cftime(time_buf, "%c", &tod);
/illumos-gate/usr/src/uts/sun4u/tod/
H A DMakefile23 # uts/sun4u/tod/Makefile
29 # This makefile drives the production of tod driver
42 MODULE = tod
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsrvsvc_clnt.c492 struct mslm_TIME_OF_DAY_INFO *tod; local
527 tod = arg.bufptr;
530 tv->tv_sec = tod->tod_elapsedt;
531 tv->tv_usec = tod->tod_msecs;
535 tm->tm_sec = tod->tod_secs;
536 tm->tm_min = tod->tod_mins;
537 tm->tm_hour = tod->tod_hours;
538 tm->tm_mday = tod->tod_day;
539 tm->tm_mon = tod->tod_month - 1;
540 tm->tm_year = tod
[all...]
/illumos-gate/usr/src/lib/fm/libfmevent/common/
H A Dfmev_evaccess.c72 uint64_t *tod; local
97 if (nvlist_lookup_uint64_array(iep->ei_nvl, "__tod", &tod,
105 iep->ei_fmtime[FM_TIME_SEC] = tod[0];
106 iep->ei_fmtime[FM_TIME_NSEC] = tod[1];
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-diagnosis/
H A Dzfs_de.c236 uint64_t *tod; local
259 &tod, &nelem);
261 loaded.ertv_sec = tod[0];
262 loaded.ertv_nsec = tod[1];
293 uint64_t *tod; local
314 &tod, &nelem) == 0 && nelem == 2) {
316 lta->lt_time->ertv_sec = tod[0];
317 lta->lt_time->ertv_nsec = tod[1];
510 uint64_t *tod; local
513 if (nvlist_lookup_uint64_array(nvl, FMD_EVN_TOD, &tod,
[all...]
/illumos-gate/usr/src/lib/libadm/common/
H A Dcktime.c349 cktime(char *tod, char *fmt, char *defstr, char *error, char *help, argument
371 (void) strcpy(tod, defstr);
388 (void) strcpy(tod, input);
/illumos-gate/usr/src/cmd/write/
H A Dwrite.c100 time_t tod; local
358 time(&tod);
360 dcgettext(NULL, DATE_FMT, LC_TIME), localtime(&tod));

Completed in 123 milliseconds

12