Lines Matching refs:sv
38 tcp_tv_to_hpts_slot(const struct timeval *sv) in tcp_tv_to_hpts_slot() argument
40 return ((sv->tv_sec * 100000) + (sv->tv_usec / HPTS_USECS_PER_SLOT)); in tcp_tv_to_hpts_slot()
44 tcp_tv_to_usec(const struct timeval *sv) in tcp_tv_to_usec() argument
46 return ((uint32_t) ((sv->tv_sec * HPTS_USEC_IN_SEC) + sv->tv_usec)); in tcp_tv_to_usec()
50 tcp_tv_to_msec(const struct timeval *sv) in tcp_tv_to_msec() argument
52 return ((uint32_t) ((sv->tv_sec * HPTS_MSEC_IN_SEC) + (sv->tv_usec/HPTS_USEC_IN_MSEC))); in tcp_tv_to_msec()
56 tcp_tv_to_lusec(const struct timeval *sv) in tcp_tv_to_lusec() argument
58 return ((uint64_t)((sv->tv_sec * HPTS_USEC_IN_SEC) + sv->tv_usec)); in tcp_tv_to_lusec()
151 tcp_gethptstick(struct timeval *sv) in tcp_gethptstick() argument
155 if (sv == NULL) in tcp_gethptstick()
156 sv = &tv; in tcp_gethptstick()
157 microuptime(sv); in tcp_gethptstick()
158 return (tcp_tv_to_hpts_slot(sv)); in tcp_gethptstick()