Lines Matching refs:tsc
60 #define TSC_CONVERT_AND_ADD(tsc, hrt, scale) do { \ argument
61 uint32_t *_l = (uint32_t *)&(tsc); \
75 hrtime_t tsc, hrt, tsc_last; in __cp_gethrtime() local
97 tsc = __cp_tsc_read(cp); in __cp_gethrtime()
103 if (tsc == 0) { in __cp_gethrtime()
108 if (tsc >= tsc_last) { in __cp_gethrtime()
109 tsc -= tsc_last; in __cp_gethrtime()
110 } else if (tsc >= tsc_last - (2 * cp->cp_tsc_max_delta)) { in __cp_gethrtime()
111 tsc = 0; in __cp_gethrtime()
112 } else if (tsc > cp->cp_tsc_resume_cap) { in __cp_gethrtime()
113 tsc = cp->cp_tsc_resume_cap; in __cp_gethrtime()
115 TSC_CONVERT_AND_ADD(tsc, hrt, cp->cp_nsec_scale); in __cp_gethrtime()