Searched refs:t1 (Results 1 - 12 of 12) sorted by relevance
/xnu-2422.115.4/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...] |
/xnu-2422.115.4/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 ? (long) +NSEC_PER_SEC : \ 95 ((t1)->tv_sec < (t2)->tv_sec ? (long) -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) >= (long) NSEC_PER_SEC) { \ 102 (t1) [all...] |
/xnu-2422.115.4/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...] |
/xnu-2422.115.4/osfmk/kern/ |
H A D | clock.h | 249 #define ADD_MACH_TIMESPEC_NSEC(t1, nsec) \ 251 (t1)->tv_nsec += (clock_res_t)(nsec); \ 253 (t1)->tv_nsec >= NSEC_PER_SEC) { \ 254 (t1)->tv_nsec -= NSEC_PER_SEC; \ 255 (t1)->tv_sec += 1; \ 258 (t1)->tv_nsec < 0) { \ 259 (t1)->tv_nsec += NSEC_PER_SEC; \ 260 (t1)->tv_sec -= 1; \
|
/xnu-2422.115.4/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))
|
/xnu-2422.115.4/bsd/sys/ |
H A D | time.h | 204 void timevaladd(struct timeval *t1, struct timeval *t2); 205 void timevalsub(struct timeval *t1, struct timeval *t2); 206 void timevalfix(struct timeval *t1);
|
/xnu-2422.115.4/bsd/vm/ |
H A D | vm_unix.c | 433 task_t t1; local 440 t1 = port_name_to_task(t); 442 if (t1 == TASK_NULL) { 446 p = get_bsdtask_info(t1); 454 task_deallocate(t1); 568 task_t t1 = TASK_NULL; local 580 (void ) copyout((char *)&t1, task_addr, sizeof(mach_port_name_t)); 585 t1 = port_name_to_task(target_tport); 586 if (t1 == TASK_NULL) { 587 (void) copyout((char *)&t1, task_add 680 task_t t1; local [all...] |
/xnu-2422.115.4/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]);
|
/xnu-2422.115.4/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;
|
/xnu-2422.115.4/bsd/netinet/ |
H A D | tcp_timer.c | 278 timer_diff(uint32_t t1, uint32_t toff1, uint32_t t2, uint32_t toff2) { argument 279 return (int32_t)((t1 + toff1) - (t2 + toff2));
|
/xnu-2422.115.4/bsd/nfs/ |
H A D | nfs_socket.c | 3362 int error = 0, asyncioq, t1; local 3431 t1 = req->r_rtt + 1; 3432 t1 -= (NFS_SRTT(req) >> 3); 3433 NFS_SRTT(req) += t1; 3434 if (t1 < 0) 3435 t1 = -t1; 3436 t1 -= (NFS_SDRTT(req) >> 2); 3437 NFS_SDRTT(req) += t1;
|
Completed in 176 milliseconds