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;
458 tv.tv_usec = (suseconds_t)ts.tv_nsec / 1000;
474 * Note: The tv_nsec part is always in the range of
475 * 0 <= tv_nsec < NSEC_PER_SEC
496 ts->tv_nsec = nsec;
513 ts.tv_nsec = rem;
517 * second, and tv_nsec counts the nanoseconds since
518 * then, so tv_nsec is always a positive number.
521 ts.tv_nsec = NSEC_PER_SEC - rem - 1;
577 * rounding is incorrect for sufficiently large values of tv_nsec, but
578 * well formed timespecs should have tv_nsec < NSEC_PER_SEC, so we're
591 long nsec = value->tv_nsec + TICK_NSEC - 1;
614 value->tv_nsec = rem;
771 lhs.tv_nsec + rhs.tv_nsec);
775 res.tv_nsec = 0;
795 kts.tv_nsec &= 0xFFFFFFFFUL;
798 ts->tv_nsec = kts.tv_nsec;
809 .tv_nsec = ts->tv_nsec
827 ts64->tv_nsec = ts.tv_nsec;
837 .tv_nsec = ts64->tv_nsec