Searched refs:now (Results 1 - 25 of 53) sorted by relevance

123

/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Dclock.c224 uint64_t now; local
230 now = mach_absolute_time();
235 if (now > clock_calend.adjstart) {
236 t32 = now - clock_calend.adjstart;
239 now -= clock_calend.adjoffset;
241 now = clock_calend.adjstart;
245 now += clock_calend.offset;
247 absolutetime_to_microtime(now, secs, microsecs);
270 uint64_t now; local
276 now
318 uint64_t now; local
535 uint64_t now, t64; local
621 uint64_t now, t64; local
711 uint64_t now = mach_absolute_time(); local
816 uint64_t now; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/
H A Drtclock.c152 uint64_t now, t64; local
155 now = mach_absolute_time();
157 *secs = t64 = now / (divisor = rtclock_sec_divisor);
158 now -= (t64 * divisor);
159 *microsecs = (now * USEC_PER_SEC) / divisor;
167 uint64_t now, t64; local
170 now = mach_absolute_time();
172 *secs = t64 = now / (divisor = rtclock_sec_divisor);
173 now -= (t64 * divisor);
174 *nanosecs = (now * NSEC_PER_SE
185 uint64_t t64, now = abstime; local
301 uint64_t now; local
[all...]
H A Dinterrupt.c85 uint64_t now; local
117 now = mach_absolute_time(); /* Find out what time it is */
119 if(now >= proc_info->pms.pmsPop) { /* Is it time for power management state change? */
121 now = mach_absolute_time(); /* Get the time again since we ran a bit */
126 if (thread->machine.qactTimer <= now) { /* It is set, has it popped? */
H A Detimer.c78 abstime = mach_absolute_time(); /* Get the time now */
151 uint64_t now; local
153 now = mach_absolute_time();
156 if (deadline < now)
157 pp->rtcPop = now + decr;
H A DAltiAssist.s82 vslw v0,v0,v1 ; Shift the rest of the way (we now have 0x00010000)
H A Dhw_lock.s216 mftb r10 ; Time stamp us now
359 mftb r11 ; Time stamp us now
420 mftb r12 ; Time stamp us now
453 mftb r12 ; Time stamp us now
507 mtmsr r9 ; Allow interruptions now
516 mtmsr r9 ; Allow interruptions now
943 bne-- mlckespin01 ; Can not get it right now...
948 bne-- mlckespin0 ; Can not get it right now...
999 bne-- mlckspin00 ; Indirect or Can not get it right now...
1004 bne-- mlckspin01 ; Can not get it right now
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Drtclock.c37 * Timer, but local apic timers are now used for
121 uint64_t now)
125 if (deadline <= now)
128 delta = deadline - now;
401 uint64_t now = rtc_nanotime_read(); local
407 : "A" (now), "r" (NSEC_PER_SEC));
419 uint64_t now = rtc_nanotime_read(); local
424 : "A" (now), "r" (NSEC_PER_SEC));
435 uint64_t now = abstime; local
438 now
119 deadline_to_decrementer( uint64_t deadline, uint64_t now) argument
516 uint64_t now; local
604 uint64_t now; local
[all...]
H A Detimer.c81 abstime = mach_absolute_time(); /* Get the time now */
162 uint64_t now; local
164 now = mach_absolute_time();
167 if (deadline < now)
168 lcpu->rtcPop = now + decr;
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/synthfs/
H A Dsynthfs_util.c73 struct timeval now; local
82 microtime(&now);
83 synthfs_update(STOV(parent_sp), &now, &now, 0); local
97 struct timeval now; local
116 microtime(&now);
117 sp->s_createtime = now;
118 sp->s_accesstime = now;
119 sp->s_modificationtime = now;
120 sp->s_changetime = now;
165 struct timeval now; local
173 synthfs_update(STOV(psp), &now, &now, 0); local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/devfs/
H A Ddevfs_vnops.c344 struct timeval now; local
350 microtime(&now);
351 dn_times(file_node, &now, &now, &now);
545 struct timeval now; local
550 microtime(&now);
551 dn_times(dnp, &now, &now, &now);
567 struct timeval now; local
729 struct timeval now; local
821 struct timeval now; local
1365 struct timeval now; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkern_clock.c197 struct timeval now; local
201 microtime(&now);
211 sec = tv->tv_sec - now.tv_sec;
213 ticks = ((tv->tv_sec - now.tv_sec) * 1000 +
214 (tv->tv_usec - now.tv_usec) / 1000)
H A Dsys_pipe.c203 * Default pipe buffer size(s), this can be kind-of large now because pipe
294 struct timeval now; local
296 microtime(&now);
299 tpipe->st_atimespec.tv_sec = now.tv_sec;
300 tpipe->st_atimespec.tv_nsec = now.tv_usec * 1000;
304 tpipe->st_mtimespec.tv_sec = now.tv_sec;
305 tpipe->st_mtimespec.tv_nsec = now.tv_usec * 1000;
309 tpipe->st_ctimespec.tv_sec = now.tv_sec;
310 tpipe->st_ctimespec.tv_nsec = now.tv_usec * 1000;
366 * for now w
1790 struct timeval now; local
[all...]
H A Dkern_time.c319 struct timeval now; local
321 microuptime(&now);
322 if (timercmp(&p->p_rtime, &now, <))
326 timevalsub(&aitv.it_value, &now);
H A Dkdebug.c267 unsigned long long now; local
272 now = mach_absolute_time() & KDBG_TIMESTAMP_MASK;
350 if (now < kdbip[cpu].kd_prev_timebase)
355 now = ++kdbip[cpu].kd_prev_timebase & KDBG_TIMESTAMP_MASK;
359 kdbip[cpu].kd_prev_timebase = now;
361 kd->timestamp = now | (((uint64_t)cpu) << KDBG_CPU_SHIFT);
H A Dkern_event.c528 uint64_t now; local
532 &now);
533 if (now >= raw + filt_timerfloor) {
537 raw -= now;
874 /* JMM - Placeholder for now */
883 /* JMM - Placeholder for now */
1180 * kn now contains the matching knote, or NULL if no match
1387 /* now what happens to it? */
1525 uint64_t now; local
1527 clock_get_uptime(&now);
[all...]
/macosx-10.5.8/xnu-1228.15.4/libkern/ppc/
H A Dstrlen.s85 cntlzw r7,r4 ; now we can count leading 0s
100 addi r6,r9,1 ; now r6==r3
103 bgt Llentry ; address is aligned now if low bits were 3
109 beq Llentry ; addr is aligned now if low bits were 2
114 bne cr1,Llentry ; not zero, continue check (now aligned)
/macosx-10.5.8/xnu-1228.15.4/tools/tests/MMTest/
H A DMMtest.c20 } now; local
26 __asm__ volatile("movl %%eax,%0" : "=m" (now.word[0]) : : "eax");
27 __asm__ volatile("movl %%edx,%0" : "=m" (now.word[1]) : : "edx");
34 __asm__ volatile("mftbu %0" : "=r" (now.word[0]));
35 __asm__ volatile("mftb %0" : "=r" (now.word[1]));
37 } while (now.word[0] != t3);
40 now.time64 = 0ULL;
42 return now.time64;
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dnfs_lock.c369 struct timeval now; local
386 microuptime(&now);
387 lp->lp_time = now.tv_sec;
410 microuptime(&now);
413 if (lplru->lp_valid && (lplru->lp_time >= (now.tv_sec - 2))) {
443 lplru->lp_time = now.tv_sec;
468 lp->lp_time = now.tv_sec;
568 struct timeval now; local
725 microuptime(&now);
726 lastmsg = now
[all...]
H A Dnfs_syscalls.c332 /* now check if there's more/other work to be done */
519 /* now give me my vnode, it gets returned to me with a reference */
529 * From now on we have to make sure not
843 struct timeval now; local
954 microuptime(&now);
955 cur_usec = (u_quad_t)now.tv_sec * 1000000 +
956 (u_quad_t)now.tv_usec;
1155 microuptime(&now);
1156 cur_usec = (u_quad_t)now.tv_sec * 1000000 +
1157 (u_quad_t)now
1307 struct timeval now; local
1371 struct timeval now; local
1405 struct timeval now; local
[all...]
H A Dnfs_socket.c399 struct timeval now; local
403 microuptime(&now);
404 lastmsg = now.tv_sec - (nmp->nm_tprintf_delay - nmp->nm_tprintf_initial_delay);
413 microuptime(&now);
414 if ((lastmsg + nmp->nm_tprintf_delay) < now.tv_sec) {
415 lastmsg = now.tv_sec;
529 struct timeval now; local
541 microuptime(&now);
542 nmp->nm_reconnect_start = now.tv_sec;
556 microuptime(&now);
1595 struct timeval now; local
1845 struct timeval now; local
2192 struct timeval now; local
[all...]
H A Dnfs_gss.c348 struct timeval now; local
357 microuptime(&now);
358 cp->gss_clnt_ctime = now.tv_sec; // time stamp
385 struct timeval now; local
413 microuptime(&now);
414 if (now.tv_sec > cp->gss_clnt_ctime + GSS_CLNT_SYS_VALID) {
928 struct timeval now; local
989 microuptime(&now);
990 cp->gss_clnt_ctime = now.tv_sec; // time stamp
1564 struct timeval now; local
[all...]
H A Dnfs_subs.c1221 struct timeval now; local
1278 printf("nfs loadattrcache vnode changed type, was %d now %d\n",
1284 microuptime(&now);
1285 np->n_attrstamp = now.tv_sec;
1340 struct timeval now; local
1353 microtime(&now);
1354 timeo = (now.tv_sec - (np)->n_mtime.tv_sec) / 10;
1867 struct timespec now; local
1927 nanotime(&now);
1937 VATTR_SET(vap, va_access_time, now);
2915 struct timeval now; local
3065 struct timeval now; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/random/YarrowCoreLib/src/
H A Dprng.c336 /* Cause the PRNG to reseed now regardless of entropy pool */
354 LONGLONG now; local
402 now = UnsignedWideToUInt64(uwide);
403 } while ( (now-start) < ticks) ;
406 } while ( (now-start) < ticks) ;
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/
H A Ddtrace_glue.c349 uint64_t now; local
357 now = mach_absolute_time();
358 wrapTC->deadline = now;
360 clock_deadline_for_periodic_event( wrapTC->when.cyt_interval, now, &(wrapTC->deadline) );
505 uint64_t now; local
520 now = mach_absolute_time();
521 wrapTC->deadline = now;
523 clock_deadline_for_periodic_event( wrapTC->when.cyt_interval, now, &(wrapTC->deadline) );
720 /* XXX called from dtrace_detach, so NOTREACHED for now. */
844 p += sizeof(void*); /* now w
[all...]
/macosx-10.5.8/AppleMacRiscPCI-3.4/
H A DAppleDART.cpp478 AbsoluteTime now, expirationTime; local
488 clock_get_uptime(&now);
489 } while (CMP_ABSOLUTETIME(&now, &expirationTime) < 0);

Completed in 135 milliseconds

123