/titanic_41/usr/src/uts/sun4u/io/ |
H A D | todmostek.c | 122 todinfo_t tod; in todm_get() local 130 tod.tod_year = BCD_TO_BYTE(CLOCK->clk_year) + YRBASE; in todm_get() 131 tod.tod_month = BCD_TO_BYTE(CLOCK->clk_month & 0x1f); in todm_get() 132 tod.tod_day = BCD_TO_BYTE(CLOCK->clk_day & 0x3f); in todm_get() 133 tod.tod_dow = BCD_TO_BYTE(CLOCK->clk_weekday & 0x7); in todm_get() 134 tod.tod_hour = BCD_TO_BYTE(CLOCK->clk_hour & 0x3f); in todm_get() 135 tod.tod_min = BCD_TO_BYTE(CLOCK->clk_min & 0x7f); in todm_get() 136 tod.tod_sec = BCD_TO_BYTE(CLOCK->clk_sec & 0x7f); in todm_get() 148 ts.tv_sec = tod_to_utc(tod); in todm_get() 161 todinfo_t tod = utc_to_tod(ts.tv_sec); in todm_set() local [all …]
|
H A D | todm5819p_rmc.c | 194 todinfo_t tod; in rtc_to_tod() local 200 tod.tod_year = rtc->rtc_year + (rtc->rtc_century * 100) - 1900; in rtc_to_tod() 201 tod.tod_month = rtc->rtc_mon; in rtc_to_tod() 202 tod.tod_day = rtc->rtc_dom; in rtc_to_tod() 203 tod.tod_dow = rtc->rtc_dow; in rtc_to_tod() 204 tod.tod_hour = rtc->rtc_hrs; in rtc_to_tod() 205 tod.tod_min = rtc->rtc_min; in rtc_to_tod() 206 tod.tod_sec = rtc->rtc_sec; in rtc_to_tod() 208 return (tod); in rtc_to_tod() 250 todinfo_t tod = utc_to_tod(ts.tv_sec); in todm5819p_rmc_set() local [all …]
|
H A D | todbq4802.c | 165 todinfo_t tod; in todbq4802_get() local 179 tod.tod_year = rtc.rtc_year + (rtc.rtc_century * 100) - 1900; in todbq4802_get() 180 tod.tod_month = rtc.rtc_mon; in todbq4802_get() 181 tod.tod_day = rtc.rtc_dom; in todbq4802_get() 182 tod.tod_dow = rtc.rtc_dow; in todbq4802_get() 183 tod.tod_hour = rtc.rtc_hrs; in todbq4802_get() 184 tod.tod_min = rtc.rtc_min; in todbq4802_get() 185 tod.tod_sec = rtc.rtc_sec; in todbq4802_get() 187 ts.tv_sec = tod_to_utc(tod); in todbq4802_get() 249 todinfo_t tod = utc_to_tod(ts.tv_sec); in todbq4802_set() local [all …]
|
H A D | todm5819.c | 179 todinfo_t tod; in rtc_to_tod() local 185 tod.tod_year = rtc->rtc_year + (rtc->rtc_century * 100) - 1900; in rtc_to_tod() 186 tod.tod_month = rtc->rtc_mon; in rtc_to_tod() 187 tod.tod_day = rtc->rtc_dom; in rtc_to_tod() 188 tod.tod_dow = rtc->rtc_dow; in rtc_to_tod() 189 tod.tod_hour = rtc->rtc_hrs; in rtc_to_tod() 190 tod.tod_min = rtc->rtc_min; in rtc_to_tod() 191 tod.tod_sec = rtc->rtc_sec; in rtc_to_tod() 193 return (tod); in rtc_to_tod() 246 todinfo_t tod = utc_to_tod(ts.tv_sec); in todm5819_set() local [all …]
|
H A D | todblade.c | 204 todinfo_t tod; in rtc_to_tod() local 210 tod.tod_year = rtc->rtc_year + (rtc->rtc_century * 100) - 1900; in rtc_to_tod() 211 tod.tod_month = rtc->rtc_mon; in rtc_to_tod() 212 tod.tod_day = rtc->rtc_dom; in rtc_to_tod() 213 tod.tod_dow = rtc->rtc_dow; in rtc_to_tod() 214 tod.tod_hour = rtc->rtc_hrs; in rtc_to_tod() 215 tod.tod_min = rtc->rtc_min; in rtc_to_tod() 216 tod.tod_sec = rtc->rtc_sec; in rtc_to_tod() 218 return (tod); in rtc_to_tod() 272 todinfo_t tod = utc_to_tod(ts.tv_sec); in todbl_set() local [all …]
|
H A D | todds1287.c | 825 todinfo_t tod; in todds_get() local 838 tod.tod_year = rtc.rtc_year + (rtc.rtc_century * 100) - 1900; in todds_get() 839 tod.tod_month = rtc.rtc_mon; in todds_get() 840 tod.tod_day = rtc.rtc_dom; in todds_get() 841 tod.tod_dow = rtc.rtc_dow; in todds_get() 842 tod.tod_hour = rtc.rtc_hrs; in todds_get() 843 tod.tod_min = rtc.rtc_min; in todds_get() 844 tod.tod_sec = rtc.rtc_sec; in todds_get() 846 ts.tv_sec = tod_to_utc(tod); in todds_get() 952 todinfo_t tod = utc_to_tod(ts.tv_sec); in todds_set() local [all …]
|
H A D | todds1337.c | 396 todinfo_t tod; in todds1337_get() local 415 tod.tod_year = rtc.rtc_year; in todds1337_get() 417 tod.tod_year += 100; in todds1337_get() 418 tod.tod_month = rtc.rtc_mon; in todds1337_get() 419 tod.tod_day = rtc.rtc_dom; in todds1337_get() 420 tod.tod_dow = rtc.rtc_dow; in todds1337_get() 421 tod.tod_hour = rtc.rtc_hrs; in todds1337_get() 422 tod.tod_min = rtc.rtc_min; in todds1337_get() 423 tod.tod_sec = rtc.rtc_sec; in todds1337_get() 428 ts.tv_sec = tod_to_utc(tod); in todds1337_get() [all …]
|
/titanic_41/usr/src/uts/i86pc/io/ |
H A D | todpc_subr.c | 131 todinfo_t tod = utc_to_tod(ts.tv_sec - ggmtl()); in todpc_set() local 144 tod.tod_year -= YRBASE; in todpc_set() 145 if (tod.tod_year >= 100) { in todpc_set() 146 tod.tod_year -= 100; in todpc_set() 150 rtc.rtc_yr = BYTE_TO_BCD(tod.tod_year); in todpc_set() 151 rtc.rtc_mon = BYTE_TO_BCD(tod.tod_month); in todpc_set() 152 rtc.rtc_dom = BYTE_TO_BCD(tod.tod_day); in todpc_set() 154 rtc.rtc_dow = (unsigned char)tod.tod_dow; in todpc_set() 155 rtc.rtc_hr = BYTE_TO_BCD(tod.tod_hour); in todpc_set() 156 rtc.rtc_min = BYTE_TO_BCD(tod.tod_min); in todpc_set() [all …]
|
/titanic_41/usr/src/uts/sun4u/snowbird/io/todds1307/ |
H A D | todds1307.c | 374 todinfo_t tod; in todds1307_get() local 393 tod.tod_year = rtc.rtc_year; in todds1307_get() 395 tod.tod_year += 100; in todds1307_get() 396 tod.tod_month = rtc.rtc_mon; in todds1307_get() 397 tod.tod_day = rtc.rtc_dom; in todds1307_get() 398 tod.tod_dow = rtc.rtc_dow; in todds1307_get() 399 tod.tod_hour = rtc.rtc_hrs; in todds1307_get() 400 tod.tod_min = rtc.rtc_min; in todds1307_get() 401 tod.tod_sec = rtc.rtc_sec; in todds1307_get() 406 ts.tv_sec = tod_to_utc(tod); in todds1307_get() [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | timers.c | 1373 todinfo_t tod; in utc_to_tod() local 1393 tod.tod_sec = utc % 60; in utc_to_tod() 1394 tod.tod_min = (utc % 3600) / 60; in utc_to_tod() 1395 tod.tod_hour = (utc % 86400) / 3600; in utc_to_tod() 1396 tod.tod_dow = (dse + 4) % 7 + 1; /* epoch was a Thursday */ in utc_to_tod() 1408 tod.tod_day = day - days_thru_month[month] + 1; in utc_to_tod() 1409 tod.tod_month = month & 15; in utc_to_tod() 1410 tod.tod_year = year; in utc_to_tod() 1412 saved_tod = tod; in utc_to_tod() 1413 return (tod); in utc_to_tod() [all …]
|
H A D | clock.c | 637 timestruc_t tod; in clock() local 785 tod = tod_get(); in clock() 786 drift = tod.tv_sec - hrestime.tv_sec; in clock() 793 hrestime = tod; in clock() 804 gethrestime(&tod); in clock() 805 tod_set(tod); in clock() 2163 tod_validate(time_t tod) in tod_validate() argument 2194 return (tod); in tod_validate() 2204 prev_tod = tod; in tod_validate() 2206 return (tod); in tod_validate() [all …]
|
H A D | fm.c | 412 timespec_t tod; in fm_banner() local 419 tod = panic_hrestime; in fm_banner() 422 gethrestime(&tod); in fm_banner() 432 fm_msgid, tod.tv_sec, tod.tv_nsec, (u_longlong_t)now); in fm_banner() 465 timespec_t tod; in fm_ereport_dump() local 471 tod = panic_hrestime; in fm_ereport_dump() 476 gethrestime(&tod); in fm_ereport_dump() 497 ed.ed_tod_base.sec = tod.tv_sec; in fm_ereport_dump() 498 ed.ed_tod_base.nsec = tod.tv_nsec; in fm_ereport_dump()
|
/titanic_41/usr/src/uts/i86xpv/io/ |
H A D | xpvtod.c | 48 todinfo_t tod; in todxen_get() local 88 tod = utc_to_tod(ts.tv_sec); in todxen_get() 89 if (tod.tod_year < 69) { in todxen_get() 104 if (tod.tod_year > 38) in todxen_get() 110 tod.tod_year += 100; in todxen_get() 111 ts.tv_sec = tod_to_utc(tod); in todxen_get()
|
/titanic_41/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_event.c | 60 uint64_t *tod; in fmd_event_nvunwrap() local 71 FMD_EVN_TOD, &tod, &n) == 0 && n >= 2) in fmd_event_nvunwrap() 72 ep->ev_time = *(const fmd_timeval_t *)tod; in fmd_event_nvunwrap() 83 fmd_timeval_t tod; in fmd_event_recreate() local 119 fmd_time_sync(&tod, &hr0, 1); in fmd_event_recreate() 120 fmd_time_tod2hrt(hr0, &tod, &ep->ev_time, &ep->ev_hrt); in fmd_event_recreate() 131 fmd_timeval_t tod; in fmd_event_create() local 154 fmd_time_sync(&tod, &hr0, 1); in fmd_event_create() 169 fmd_time_hrt2tod(hr0, &tod, hrt, &ep->ev_time); in fmd_event_create()
|
H A D | fmd_time.c | 87 struct timeval tod; in fmd_time_sync() local 90 (void) ftop->fto_gettimeofday(&tod, NULL); in fmd_time_sync() 97 todbase = tod; in fmd_time_sync() 257 hrtime_t tod, hrt, sec, rem; in fmd_simulator_tod() local 261 tod = fts->fts_tod; in fmd_simulator_tod() 266 sec = tod / NANOSEC + hrt / NANOSEC; in fmd_simulator_tod() 267 rem = tod % NANOSEC + hrt % NANOSEC; in fmd_simulator_tod()
|
H A D | fmd_protocol.c | 147 int64_t tod[2]; in fmd_protocol_list() local 153 tod[0] = tvp->tv_sec; in fmd_protocol_list() 154 tod[1] = tvp->tv_usec; in fmd_protocol_list() 163 err |= nvlist_add_int64_array(nvl, FM_SUSPECT_DIAG_TIME, tod, 2); in fmd_protocol_list() 217 int64_t tod[2]; in fmd_protocol_rsrc_asru() local 220 tod[0] = tvp->tv_sec; in fmd_protocol_rsrc_asru() 221 tod[1] = tvp->tv_usec; in fmd_protocol_rsrc_asru() 244 err |= nvlist_add_int64_array(nvl, FM_SUSPECT_DIAG_TIME, tod, 2); in fmd_protocol_rsrc_asru()
|
/titanic_41/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | srvsvc_clnt.c | 491 struct mslm_TIME_OF_DAY_INFO *tod; in srvsvc_net_remote_tod() local 526 tod = arg.bufptr; in srvsvc_net_remote_tod() 529 tv->tv_sec = tod->tod_elapsedt; in srvsvc_net_remote_tod() 530 tv->tv_usec = tod->tod_msecs; in srvsvc_net_remote_tod() 534 tm->tm_sec = tod->tod_secs; in srvsvc_net_remote_tod() 535 tm->tm_min = tod->tod_mins; in srvsvc_net_remote_tod() 536 tm->tm_hour = tod->tod_hours; in srvsvc_net_remote_tod() 537 tm->tm_mday = tod->tod_day; in srvsvc_net_remote_tod() 538 tm->tm_mon = tod->tod_month - 1; in srvsvc_net_remote_tod() 539 tm->tm_year = tod->tod_year - 1900; in srvsvc_net_remote_tod() [all …]
|
/titanic_41/usr/src/uts/common/syscall/ |
H A D | ntptime.c | 74 timestruc_t tod; in ntp_gettime() local 78 gethrestime(&tod); in ntp_gettime() 79 if (tod.tv_sec > TIME32_MAX) in ntp_gettime() 81 ntv.time.tv_sec = tod.tv_sec; in ntp_gettime() 82 ntv.time.tv_usec = tod.tv_nsec / (NANOSEC / MICROSEC); in ntp_gettime()
|
/titanic_41/usr/src/cmd/valtools/ |
H A D | cktime.c | 126 char *tod; in main() local 241 tod = (char *)malloc(len); in main() 242 if (!tod) { in main() 247 n = cktime(tod, fmt, deflt, error, help, prompt); in main() 253 (void) fputs(tod, stdout); in main()
|
/titanic_41/usr/src/cmd/krb5/kwarn/ |
H A D | kwarnd_send.c | 80 time_t tod; in warn_send() local 132 time(&tod); in warn_send() 133 cftime(time_buf, "%c", &tod); in warn_send()
|
/titanic_41/usr/src/cmd/fm/modules/common/zfs-diagnosis/ |
H A D | zfs_de.c | 236 uint64_t *tod; in zfs_mark_pool() local 259 &tod, &nelem); in zfs_mark_pool() 261 loaded.ertv_sec = tod[0]; in zfs_mark_pool() 262 loaded.ertv_nsec = tod[1]; in zfs_mark_pool() 293 uint64_t *tod; in zpool_find_load_time() local 314 &tod, &nelem) == 0 && nelem == 2) { in zpool_find_load_time() 316 lta->lt_time->ertv_sec = tod[0]; in zpool_find_load_time() 317 lta->lt_time->ertv_nsec = tod[1]; in zpool_find_load_time() 510 uint64_t *tod; in zfs_ereport_when() local 513 if (nvlist_lookup_uint64_array(nvl, FMD_EVN_TOD, &tod, &nelem) == 0 && in zfs_ereport_when() [all …]
|
/titanic_41/usr/src/lib/fm/libfmevent/common/ |
H A D | fmev_evaccess.c | 72 uint64_t *tod; in fmev_sysev2fmev() local 97 if (nvlist_lookup_uint64_array(iep->ei_nvl, "__tod", &tod, in fmev_sysev2fmev() 105 iep->ei_fmtime[FM_TIME_SEC] = tod[0]; in fmev_sysev2fmev() 106 iep->ei_fmtime[FM_TIME_NSEC] = tod[1]; in fmev_sysev2fmev()
|
/titanic_41/usr/src/uts/sun4u/snowbird/ |
H A D | Makefile.snowbird | 44 ROOT_SNOWBIRD_TOD_DIR_32 = $(ROOT_SNOWBIRD_MOD_DIR)/tod 45 ROOT_SNOWBIRD_TOD_DIR_64 = $(ROOT_SNOWBIRD_MOD_DIR)/tod/$(SUBDIR64)
|
/titanic_41/usr/src/cmd/fm/fmdump/common/ |
H A D | fmdump.c | 146 time_t tod = (time_t)rp->rec_sec; in fmdump_date() local 148 if (tod > now+60 || in fmdump_date() 149 tod < now - 6L*30L*24L*60L*60L) { /* 6 months ago */ in fmdump_date() 151 localtime(&tod)); in fmdump_date() 154 sz = strftime(buf, len, "%b %d %T", localtime(&tod)); in fmdump_date() 172 time_t tod = (time_t)rp->rec_sec; in fmdump_year() local 173 (void) strftime(buf, len, "%b %d %Y %T", localtime(&tod)); in fmdump_year() 256 struct timeval tod; in gettimeopt() local 263 if (gettimeofday(&tod, NULL) != 0) in gettimeopt() 315 if (tvp->tv_sec > tod.tv_sec) in gettimeopt() [all …]
|
/titanic_41/usr/src/lib/libadm/common/ |
H A D | cktime.c | 349 cktime(char *tod, char *fmt, char *defstr, char *error, char *help, in cktime() argument 371 (void) strcpy(tod, defstr); in cktime() 388 (void) strcpy(tod, input); in cktime()
|