Lines Matching refs:tv_nsec
89 tv.tv_nsec = 0;
127 tv.tv_nsec = 0;
148 put_user(ts.tv_nsec / 1000, &tv->tv_usec))
207 get_user(new_ts.tv_nsec, &tv->tv_usec))
210 if (new_ts.tv_nsec > USEC_PER_SEC || new_ts.tv_nsec < 0)
213 new_ts.tv_nsec *= NSEC_PER_USEC;
232 put_user(ts.tv_nsec / 1000, &tv->tv_usec))
251 get_user(new_ts.tv_nsec, &tv->tv_usec))
254 if (new_ts.tv_nsec > USEC_PER_SEC || new_ts.tv_nsec < 0)
257 new_ts.tv_nsec *= NSEC_PER_USEC;
476 tv.tv_usec = (suseconds_t)ts.tv_nsec / 1000;
492 * Note: The tv_nsec part is always in the range of 0 <= tv_nsec < NSEC_PER_SEC.
513 ts->tv_nsec = nsec;
530 ts.tv_nsec = rem;
534 * second, and tv_nsec counts the nanoseconds since
535 * then, so tv_nsec is always a positive number.
538 ts.tv_nsec = NSEC_PER_SEC - rem - 1;
605 * rounding is incorrect for sufficiently large values of tv_nsec, but
606 * well formed timespecs should have tv_nsec < NSEC_PER_SEC, so we're
620 long nsec = value->tv_nsec + TICK_NSEC - 1;
648 value->tv_nsec = rem;
852 lhs.tv_nsec + rhs.tv_nsec);
856 res.tv_nsec = 0;
885 kts.tv_nsec &= 0xFFFFFFFFUL;
888 ts->tv_nsec = kts.tv_nsec;
907 .tv_nsec = ts->tv_nsec
925 ts64->tv_nsec = ts.tv_nsec;
935 .tv_nsec = ts64->tv_nsec