Lines Matching refs:cputime_t

18 typedef unsigned long long __nocast cputime_t;  typedef
33 static inline unsigned long cputime_to_jiffies(const cputime_t cputime) in cputime_to_jiffies()
38 static inline cputime_t jiffies_to_cputime(const unsigned int jif) in jiffies_to_cputime()
40 return (__force cputime_t)(jif * (CPUTIME_PER_SEC / HZ)); in jiffies_to_cputime()
58 static inline unsigned int cputime_to_usecs(const cputime_t cputime) in cputime_to_usecs()
63 static inline cputime_t usecs_to_cputime(const unsigned int m) in usecs_to_cputime()
65 return (__force cputime_t)(m * CPUTIME_PER_USEC); in usecs_to_cputime()
73 static inline unsigned int cputime_to_secs(const cputime_t cputime) in cputime_to_secs()
78 static inline cputime_t secs_to_cputime(const unsigned int s) in secs_to_cputime()
80 return (__force cputime_t)(s * CPUTIME_PER_SEC); in secs_to_cputime()
86 static inline cputime_t timespec_to_cputime(const struct timespec *value) in timespec_to_cputime()
89 return (__force cputime_t)(ret + __div(value->tv_nsec * CPUTIME_PER_USEC, NSEC_PER_USEC)); in timespec_to_cputime()
92 static inline void cputime_to_timespec(const cputime_t cputime, in cputime_to_timespec()
105 static inline cputime_t timeval_to_cputime(const struct timeval *value) in timeval_to_cputime()
108 return (__force cputime_t)(ret + value->tv_usec * CPUTIME_PER_USEC); in timeval_to_cputime()
111 static inline void cputime_to_timeval(const cputime_t cputime, in cputime_to_timeval()
122 static inline clock_t cputime_to_clock_t(cputime_t cputime) in cputime_to_clock_t()
129 static inline cputime_t clock_t_to_cputime(unsigned long x) in clock_t_to_cputime()
131 return (__force cputime_t)(x * (CPUTIME_PER_SEC / USER_HZ)); in clock_t_to_cputime()