Lines Matching refs:sv
169 tcp_tv_to_hptstick(const struct timeval *sv)
171 return ((sv->tv_sec * 100000) + (sv->tv_usec / HPTS_TICKS_PER_SLOT));
175 tcp_tv_to_usectick(const struct timeval *sv)
177 return ((uint32_t) ((sv->tv_sec * HPTS_USEC_IN_SEC) + sv->tv_usec));
181 tcp_tv_to_mssectick(const struct timeval *sv)
183 return ((uint32_t) ((sv->tv_sec * HPTS_MSEC_IN_SEC) + (sv->tv_usec/HPTS_USEC_IN_MSEC)));
187 tcp_tv_to_lusectick(const struct timeval *sv)
189 return ((uint64_t)((sv->tv_sec * HPTS_USEC_IN_SEC) + sv->tv_usec));
203 tcp_gethptstick(struct timeval *sv)
207 if (sv == NULL)
208 sv = &tv;
209 microuptime(sv);
210 return (tcp_tv_to_hptstick(sv));