/darwin-on-arm/xnu/libkern/libkern/ |
H A D | OSBase.h | 66 /* t1 < = > t2 */ 67 #define CMP_ABSOLUTETIME(t1, t2) \ 68 (AbsoluteTime_to_scalar(t1) > \ 70 (AbsoluteTime_to_scalar(t1) < \ 73 /* t1 += t2 */ 74 #define ADD_ABSOLUTETIME(t1, t2) \ 75 (AbsoluteTime_to_scalar(t1) += \ 78 /* t1 -= t2 */ 79 #define SUB_ABSOLUTETIME(t1, t2) \ 80 (AbsoluteTime_to_scalar(t1) [all...] |
/darwin-on-arm/xnu/osfmk/mach/ |
H A D | clock_types.h | 92 /* t1 <=> t2, also (t1 - t2) in nsec with max of +- 1 sec */ 93 #define CMP_MACH_TIMESPEC(t1, t2) \ 94 ((t1)->tv_sec > (t2)->tv_sec ? +NSEC_PER_SEC : \ 95 ((t1)->tv_sec < (t2)->tv_sec ? -NSEC_PER_SEC : \ 96 (t1)->tv_nsec - (t2)->tv_nsec)) 98 /* t1 += t2 */ 99 #define ADD_MACH_TIMESPEC(t1, t2) \ 101 if (((t1)->tv_nsec += (t2)->tv_nsec) >= NSEC_PER_SEC) { \ 102 (t1) [all...] |
/darwin-on-arm/xnu/tools/tests/libMicro/ |
H A D | mktime.c | 81 struct tm t1, t2; local 84 t1 = ts->ts_tm1; 86 (void) mktime(&t1); 89 t1 = ts->ts_tm1; 91 (void) mktime(&t1); 94 t1 = ts->ts_tm1; 96 (void) mktime(&t1); 99 t1 = ts->ts_tm1; 101 (void) mktime(&t1); 104 t1 [all...] |
/darwin-on-arm/xnu/osfmk/kern/ |
H A D | clock.h | 244 #define ADD_MACH_TIMESPEC_NSEC(t1, nsec) \ 246 (t1)->tv_nsec += (clock_res_t)(nsec); \ 248 (t1)->tv_nsec >= NSEC_PER_SEC) { \ 249 (t1)->tv_nsec -= NSEC_PER_SEC; \ 250 (t1)->tv_sec += 1; \ 253 (t1)->tv_nsec < 0) { \ 254 (t1)->tv_nsec += NSEC_PER_SEC; \ 255 (t1)->tv_sec -= 1; \
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | kern_time.c | 607 struct timeval *t1, 611 t1->tv_sec += t2->tv_sec; 612 t1->tv_usec += t2->tv_usec; 613 timevalfix(t1); 617 struct timeval *t1, 621 t1->tv_sec -= t2->tv_sec; 622 t1->tv_usec -= t2->tv_usec; 623 timevalfix(t1); 627 struct timeval *t1) 630 if (t1 606 timevaladd( struct timeval *t1, struct timeval *t2) argument 616 timevalsub( struct timeval *t1, struct timeval *t2) argument 626 timevalfix( struct timeval *t1) argument [all...] |
H A D | tty.c | 2048 #define diff(t1, t2) (((t1).tv_sec - (t2).tv_sec) * 1000000 + \ 2049 ((t1).tv_usec - (t2).tv_usec))
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | time.h | 222 void timevaladd(struct timeval *t1, struct timeval *t2); 223 void timevalsub(struct timeval *t1, struct timeval *t2); 224 void timevalfix(struct timeval *t1);
|
/darwin-on-arm/xnu/bsd/vm/ |
H A D | vm_unix.c | 413 task_t t1; local 420 t1 = port_name_to_task(t); 422 if (t1 == TASK_NULL) { 426 p = get_bsdtask_info(t1); 434 task_deallocate(t1); 548 task_t t1 = TASK_NULL; local 560 (void ) copyout((char *)&t1, task_addr, sizeof(mach_port_name_t)); 565 t1 = port_name_to_task(target_tport); 566 if (t1 == TASK_NULL) { 567 (void) copyout((char *)&t1, task_add 660 task_t t1; local [all...] |
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/ |
H A D | sched_tests.c | 67 void *t1(void *arg) { function 175 ret = pthread_create(&ctxs[i].__p, NULL, t1, &ctxs[i]);
|
/darwin-on-arm/xnu/bsd/miscfs/devfs/ |
H A D | devfs_vnops.c | 118 void dn_times_locked(devnode_t * dnp, struct timeval *t1, struct timeval *t2, struct timeval *t3, uint32_t just_changed_flags); 123 dn_times_locked(devnode_t * dnp, struct timeval *t1, struct timeval *t2, struct timeval *t3, uint32_t just_changed_flags) argument 129 dnp->dn_atime.tv_sec = t1->tv_sec; 130 dnp->dn_atime.tv_nsec = t1->tv_usec * 1000; 133 dnp->dn_atime.tv_sec = MIN(t1->tv_sec, dnp->dn_atime.tv_sec + DEVFS_LAZY_UPDATE_SECONDS); 134 dnp->dn_atime.tv_nsec = t1->tv_usec * 1000;
|
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | tcp_timer.c | 259 timer_diff(uint32_t t1, uint32_t toff1, uint32_t t2, uint32_t toff2) { argument 260 return (int32_t)((t1 + toff1) - (t2 + toff2));
|
/darwin-on-arm/xnu/bsd/nfs/ |
H A D | nfs_socket.c | 3230 int error = 0, asyncioq, t1; local 3299 t1 = req->r_rtt + 1; 3300 t1 -= (NFS_SRTT(req) >> 3); 3301 NFS_SRTT(req) += t1; 3302 if (t1 < 0) 3303 t1 = -t1; 3304 t1 -= (NFS_SDRTT(req) >> 2); 3305 NFS_SDRTT(req) += t1;
|