Searched refs:t2 (Results 1 – 10 of 10) sorted by relevance
| /xnu-11215/osfmk/mach/ |
| H A D | clock_types.h | 93 #define CMP_MACH_TIMESPEC(t1, t2) \ argument 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)) 99 #define ADD_MACH_TIMESPEC(t1, t2) \ argument 101 if (((t1)->tv_nsec += (t2)->tv_nsec) >= (long) NSEC_PER_SEC) { \ 105 (t1)->tv_sec += (t2)->tv_sec; \ 109 #define SUB_MACH_TIMESPEC(t1, t2) \ argument 111 if (((t1)->tv_nsec -= (t2)->tv_nsec) < 0) { \ 115 (t1)->tv_sec -= (t2)->tv_sec; \
|
| /xnu-11215/libkern/libkern/ |
| H A D | OSBase.h | 67 #define CMP_ABSOLUTETIME(t1, t2) \ argument 69 AbsoluteTime_to_scalar(t2)? (int)+1 : \ 71 AbsoluteTime_to_scalar(t2)? (int)-1 : 0)) 74 #define ADD_ABSOLUTETIME(t1, t2) \ argument 76 AbsoluteTime_to_scalar(t2)) 79 #define SUB_ABSOLUTETIME(t1, t2) \ argument 81 AbsoluteTime_to_scalar(t2))
|
| /xnu-11215/tests/ |
| H A D | uipc_uaf.c | 103 pthread_t t1, t2; variable 105 T_ASSERT_POSIX_SUCCESS(pthread_create(&t2, NULL, send_scm_rights, NULL), "pthread_create");
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_time.c | 746 struct timeval *t2) in timevaladd() argument 748 t1->tv_sec += t2->tv_sec; in timevaladd() 749 t1->tv_usec += t2->tv_usec; in timevaladd() 755 struct timeval *t2) in timevalsub() argument 757 t1->tv_sec -= t2->tv_sec; in timevalsub() 758 t1->tv_usec -= t2->tv_usec; in timevalsub()
|
| H A D | tty.c | 2216 #define diff(t1, t2) (((t1).tv_sec - (t2).tv_sec) * 1000000 + \ in ttread() argument 2217 ((t1).tv_usec - (t2).tv_usec)) in ttread()
|
| /xnu-11215/bsd/sys/ |
| H A D | time.h | 221 void timevaladd(struct timeval *t1, struct timeval *t2); 222 void timevalsub(struct timeval *t1, struct timeval *t2);
|
| /xnu-11215/bsd/netinet/ |
| H A D | tcp_rack.c | 64 tcp_rack_sent_after(uint32_t t1, uint32_t seq1, uint32_t t2, uint32_t seq2) in tcp_rack_sent_after() argument 66 return (t1 > t2) || (t1 == t2 && SEQ_GT(seq1, seq2)); in tcp_rack_sent_after()
|
| H A D | tcp_timer.c | 537 timer_diff(uint32_t t1, uint32_t toff1, uint32_t t2, uint32_t toff2) in timer_diff() argument 539 return (int32_t)((t1 + toff1) - (t2 + toff2)); in timer_diff()
|
| H A D | tcp_var.h | 1845 extern int32_t timer_diff(uint32_t t1, uint32_t toff1, uint32_t t2, uint32_t toff2);
|
| /xnu-11215/bsd/miscfs/devfs/ |
| H A D | devfs_vnops.c | 119 void dn_times_locked(devnode_t * dnp, struct timeval *t1, struct timeval *t2, st… 124 dn_times_locked(devnode_t * dnp, struct timeval *t1, struct timeval *t2, struct timeval *t3, uint32… in dn_times_locked() argument 139 dnp->dn_mtime.tv_sec = t2->tv_sec; in dn_times_locked() 140 dnp->dn_mtime.tv_nsec = t2->tv_usec * 1000; in dn_times_locked() 143 dnp->dn_mtime.tv_sec = MIN(t2->tv_sec, dnp->dn_mtime.tv_sec + DEVFS_LAZY_UPDATE_SECONDS); in dn_times_locked() 144 dnp->dn_mtime.tv_nsec = t2->tv_usec * 1000; in dn_times_locked()
|