Searched refs:tm (Results 1 - 25 of 102) sorted by relevance

12345

/vbox/src/VBox/Devices/PC/ipxe/src/core/
H A Dtime.c106 * @v tm Broken-down time
109 time_t mktime ( struct tm *tm ) {
115 tm->tm_yday = ( ( tm->tm_mday - 1 ) +
116 days_to_month_start[ tm->tm_mon ] );
117 if ( ( tm->tm_mon >= 2 ) && is_leap_year ( tm->tm_year ) )
118 tm->tm_yday++;
121 tm
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/arch/i386/interface/pcbios/
H A Drtc_time.c75 struct tm tm; local
90 tm.tm_sec = read_component ( RTC_SEC );
91 tm.tm_min = read_component ( RTC_MIN );
98 tm.tm_hour = hour;
99 tm.tm_mday = read_component ( RTC_MDAY );
100 tm.tm_mon = ( read_component ( RTC_MON ) - 1 );
101 tm.tm_year = ( read_component ( RTC_YEAR ) +
106 "(%s,%d-hour)\n", ( tm.tm_year + 1900 ), ( tm
[all...]
/vbox/src/VBox/VMM/VMMAll/
H A DTMAllCpu.cpp23 #include <VBox/vmm/tm.h>
48 u64 = ASMMultU64ByU32DivByU32(u64, pVM->tm.s.cTSCTicksPerSecond, TMCLOCK_FREQ_VIRTUAL);
74 if (!pVCpu->tm.s.fTSCTicking)
76 pVCpu->tm.s.fTSCTicking = true;
80 if (pVM->tm.s.enmTSCMode == TMTSCMODE_REAL_TSC_OFFSET)
81 pVCpu->tm.s.offTSCRawSrc = SUPReadTsc() - pVCpu->tm.s.u64TSC;
83 pVCpu->tm.s.offTSCRawSrc = tmCpuTickGetRawVirtual(pVM, false /* don't check for pending timers */)
84 - pVCpu->tm.s.u64TSC;
101 if (!pVCpu->tm
[all...]
H A DTMAllVirtual.cpp23 #include <VBox/vmm/tm.h>
51 PVM pVM = RT_FROM_MEMBER(pData, VM, CTX_SUFF(tm.s.VirtualGetRawData));
72 PVM pVM = RT_FROM_MEMBER(pData, VM, CTX_SUFF(tm.s.VirtualGetRawData));
133 ASMAtomicWritePtr((void * volatile *)&CTX_SUFF(pVM->tm.s.pfnVirtualGetRaw), (void *)(uintptr_t)pfnWorker);
143 PVM pVM = RT_FROM_MEMBER(pData, VM, CTX_SUFF(tm.s.VirtualGetRawData));
157 uint64_t u64 = CTXALLSUFF(pVM->tm.s.pfnVirtualGetRaw)(&CTXALLSUFF(pVM->tm.s.VirtualGetRawData));
159 uint32_t cPrevSteps = pVM->tm.s.CTX_SUFF(VirtualGetRawData).c1nsSteps;
160 uint64_t u64 = pVM->tm.s.CTX_SUFF(pfnVirtualGetRaw)(&pVM->tm
[all...]
H A DTMAll.cpp23 #include <VBox/vmm/tm.h>
97 || PDMCritSectIsOwner(&pVM->tm.s.VirtualSyncLock) \
125 pVCpu->tm.s.u64NsTsStartExecuting = RTTimeNanoTS();
127 if (pVM->tm.s.fTSCTiedToExecution)
146 if (pVM->tm.s.fTSCTiedToExecution)
151 uint64_t const cNsTotalNew = u64NsTs - pVCpu->tm.s.u64NsTsStartTotal;
152 uint64_t const cNsExecutingDelta = u64NsTs - pVCpu->tm.s.u64NsTsStartExecuting;
153 uint64_t const cNsExecutingNew = pVCpu->tm.s.cNsExecuting + cNsExecutingDelta;
154 uint64_t const cNsOtherNew = cNsTotalNew - cNsExecutingNew - pVCpu->tm.s.cNsHalted;
157 STAM_REL_PROFILE_ADD_PERIOD(&pVCpu->tm
[all...]
H A DTMAllReal.cpp23 #include <VBox/vmm/tm.h>
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/Time/
H A Dtimegm.c53 * timezone state file to figure out strange unnormalized struct tm values,
54 * as might result from someone doing date math on the tm struct then passing
57 * It just does as well as it can at normalizing the tm input, then does a
61 * setting of tm_isdst when comparing tm values, causing the search to be
82 time2(struct tm * const tmp, void (* const funcp)(const time_t*, long, struct tm*),
92 struct tm * const tmp
100 Convert a tm structure to a GMT based time_t.
102 time_t timegm( struct tm * tmp )
H A Dstrptime.c85 strptime(const char *buf, const char *fmt, struct tm *tm) argument
172 new_fmt, tm);
181 bp = find_string(bp, &tm->tm_wday, _ctloc(day),
189 bp = find_string(bp, &tm->tm_mon, _ctloc(mon),
200 i += tm->tm_year % 100;
202 tm->tm_year = i;
208 bp = conv_num(bp, &tm->tm_mday, 1, 31);
216 bp = conv_num(bp, &tm->tm_hour, 0, 23);
224 bp = conv_num(bp, &tm
[all...]
H A DTimeEfi.c2 Transformations between the EFI_TIME structure and struct tm or time_t.
22 /** Convert an EFI_TIME structure into a C Standard tm structure.
25 @param[out] BT Pointer to the tm structure to receive the converted time.
30 OUT struct tm *BT
62 /** Convert a C Standard tm structure into an EFI_TIME structure.
64 @param[in] BT Pointer to the tm structure to convert.
69 IN struct tm *BT,
99 struct tm *IT;
H A DTime.c82 localsub(const time_t * const timep, const long offset, struct tm * const tmp);
95 struct tm * const tmp
231 tmcomp(const struct tm * const atmp, const struct tm * const btmp)
246 struct tm * const tmp,
247 void (* const funcp)(const time_t*, long, struct tm*),
260 struct tm yourtm, mytm;
402 time2(struct tm * const tmp, void (* const funcp)(const time_t*, long, struct tm*), argument
418 struct tm * cons
245 time2sub( struct tm * const tmp, void (* const funcp)(const time_t*, long, struct tm*), const long offset, int * const okayp, const int do_norm_secs ) argument
[all...]
/vbox/src/VBox/Additions/WINNT/Graphics/Wine/include/msvcrt/
H A Dtime.h56 struct tm { struct
99 unsigned __cdecl _getsystime(struct tm*);
100 unsigned __cdecl _setsystime(struct tm*,unsigned);
105 char* __cdecl asctime(const struct tm*);
111 struct tm* __cdecl _gmtime32(const __time32_t*);
112 struct tm* __cdecl _gmtime64(const __time64_t*);
113 struct tm* __cdecl _localtime32(const __time32_t*);
114 struct tm* __cdecl _localtime64(const __time64_t*);
115 __time32_t __cdecl _mktime32(struct tm*);
116 __time64_t __cdecl _mktime64(struct tm*);
126 mktime(struct tm *tm) argument
[all...]
/vbox/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/module/
H A DtmIPCModule.cpp66 tmTransactionManager *tmIPCModule::tm; member in class:tmIPCModule
73 if (!tm)
79 if (tm) {
80 delete tm;
81 tm = nsnull;
91 if (!tm && (InitInternal() < 0))
106 tm->HandleTransaction(trans);
132 tm = new tmTransactionManager();
133 if (tm)
134 return tm
[all...]
H A DtmIPCModule.h95 * tm should be null coming into this method. This does NOT delete tm
103 static tmTransactionManager *tm; member in class:tmIPCModule
/vbox/src/VBox/Devices/PC/ipxe/src/include/
H A Dtime.h13 struct tm { struct
49 extern time_t mktime ( struct tm *tm );
/vbox/src/VBox/VMM/VMMR3/
H A DTM.cpp123 #include <VBox/vmm/tm.h>
200 AssertCompileMemberAlignment(VM, tm.s, 32);
201 AssertCompile(sizeof(pVM->tm.s) <= sizeof(pVM->tm.padding));
209 int rc = MMHyperAlloc(pVM, sizeof(pVM->tm.s.paTimerQueuesR3[0]) * TMCLOCK_MAX, 0, MM_TAG_TM, &pv);
211 pVM->tm.s.paTimerQueuesR3 = (PTMTIMERQUEUE)pv;
212 pVM->tm.s.paTimerQueuesR0 = MMHyperR3ToR0(pVM, pv);
213 pVM->tm.s.paTimerQueuesRC = MMHyperR3ToRC(pVM, pv);
215 pVM->tm.s.offVM = RT_OFFSETOF(VM, tm
[all...]
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/Include/
H A Dtime.h15 arithmetic types capable of representing times; and struct tm which holds
19 implementation-defined. The tm structure shall contain at least the following
47 struct tm Holds the components of a calendar time; or broken-down time.
55 time_t mktime (struct tm *timeptr);
59 char * asctime (const struct tm *timeptr);
61 struct tm * gmtime (const time_t *timer);
62 time_t timegm (struct tm*);
63 struct tm * localtime (const time_t *timer);
66 const struct tm * __restrict timeptr);
67 char * strptime (const char *, const char * format, struct tm*);
141 struct tm { struct
[all...]
/vbox/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/
H A Dtime.h56 struct tm { struct
99 unsigned __cdecl _getsystime(struct tm*);
100 unsigned __cdecl _setsystime(struct tm*,unsigned);
107 char* __cdecl asctime(const struct tm*);
113 struct tm* __cdecl _gmtime32(const __time32_t*);
114 struct tm* __cdecl _gmtime64(const __time64_t*);
115 struct tm* __cdecl _localtime32(const __time32_t*);
116 errno_t __cdecl _localtime32_s(struct tm*, const __time64_t*);
117 struct tm* __cdecl _localtime64(const __time64_t*);
118 errno_t __cdecl _localtime64_s(struct tm*, cons
130 mktime(struct tm *tm) argument
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/md/
H A Dsunos4.h59 struct tm;
137 extern time_t mktime(struct tm *);
138 extern size_t strftime(char *, size_t, const char *, const struct tm *);
142 extern time_t timegm(struct tm *);
143 extern struct tm *localtime(const time_t *);
144 extern struct tm *gmtime(const time_t *);
/vbox/src/VBox/Devices/EFI/Firmware/StdLibPrivateInternalFiles/Include/
H A Dextern.h66 void Efi2Tm( EFI_TIME *ET, struct tm *BT);
/vbox/src/VBox/Devices/PC/ipxe/src/tests/
H A Dtime_test.c36 struct tm tm; member in struct:mktime_test
70 .tm = { \
90 time_t time = mktime ( &(test)->tm ); \
92 ok ( (test)->tm.tm_wday == (test)->wday ); \
93 ok ( (test)->tm.tm_yday == (test)->yday ); \
/vbox/src/VBox/Devices/EFI/Firmware/CryptoPkg/Library/BaseCryptLib/SysCall/
H A DTimerWrapper.c106 // Convert a time value from type time_t to struct tm.
108 struct tm * gmtime (const time_t *timer)
110 struct tm *GmTime;
122 GmTime = malloc (sizeof (struct tm));
127 ZeroMem ((VOID *) GmTime, (UINTN) sizeof (struct tm));
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/
H A Dncr.c208 struct tm *localtime_r (const time_t *clock, struct tm *result)
210 struct tm *tmPtr;
226 * that case, we also return a NULL pointer and the struct tm
248 struct tm *gmtime_r (const time_t *clock, struct tm *result)
250 struct tm *tmPtr;
313 char *asctime_r (const struct tm *tm, char *buf, int buflen) argument
327 cbuf = asctime (tm);
[all...]
/vbox/src/VBox/Devices/PC/
H A DDevRTC.cpp283 struct my_tm *tm = &pThis->current_tm; local
285 tm->tm_sec = from_bcd(pThis, pThis->cmos_data[RTC_SECONDS]);
286 tm->tm_min = from_bcd(pThis, pThis->cmos_data[RTC_MINUTES]);
287 tm->tm_hour = from_bcd(pThis, pThis->cmos_data[RTC_HOURS] & 0x7f);
290 tm->tm_hour %= 12;
292 tm->tm_hour += 12;
294 tm->tm_wday = from_bcd(pThis, pThis->cmos_data[RTC_DAY_OF_WEEK]);
295 tm->tm_mday = from_bcd(pThis, pThis->cmos_data[RTC_DAY_OF_MONTH]);
296 tm->tm_mon = from_bcd(pThis, pThis->cmos_data[RTC_MONTH]) - 1;
297 tm
587 rtc_next_second(struct my_tm *tm) argument
664 const struct my_tm *tm = &pThis->current_tm; local
978 rtc_set_date(PRTCSTATE pThis, const struct my_tm *tm) argument
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/misc/
H A Dprtime.c220 * Cf. struct tm *gmtime(const time_t *tp) and
221 * struct tm *localtime(const time_t *tp)
244 * Cf. time_t mktime(struct tm *tp)
554 * to struct tm. The macro definition above would not be able to
569 extern struct tm *Maclocaltime(const time_t * t);
574 static struct tm *MT_safe_localtime(const time_t *clock, struct tm *result)
576 struct tm *tmPtr;
591 * that case, we also return a NULL pointer and the struct tm
599 * With negative values of clock, emx returns the struct tm fo
966 PRExplodedTime tm; local
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/pr/include/
H A Dprwin16.h107 size_t (PR_CALLBACK *strftime)(char *s, size_t len, const char *fmt, const struct tm *p);
124 const struct tm *p );
144 NSPR_API(size_t) PR_MD_strftime(char *, size_t, const char *, const struct tm *);

Completed in 928 milliseconds

12345