Home
last modified time | relevance | path

Searched refs:clockid_t (Results 1 – 16 of 16) sorted by relevance

/linux-2.6.39/include/linux/
Dposix-timers.h34 (((clock) & (clockid_t) CPUCLOCK_PERTHREAD_MASK) != 0)
37 #define CPUCLOCK_WHICH(clock) ((clock) & (clockid_t) CPUCLOCK_CLOCK_MASK)
47 ((~(clockid_t) (pid) << 3) | (clockid_t) (clock))
51 #define FD_TO_CLOCKID(fd) ((~(clockid_t) (fd) << 3) | CLOCKFD)
58 clockid_t it_clock; /* which timer type */
87 int (*clock_getres) (const clockid_t which_clock, struct timespec *tp);
88 int (*clock_set) (const clockid_t which_clock,
90 int (*clock_get) (const clockid_t which_clock, struct timespec * tp);
91 int (*clock_adj) (const clockid_t which_clock, struct timex *tx);
93 int (*nsleep) (const clockid_t which_clock, int flags,
[all …]
Dhrtimer.h146 clockid_t index;
330 extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock,
334 extern void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t which_clock,
340 clockid_t which_clock, in hrtimer_init_on_stack()
379 extern int hrtimer_get_res(const clockid_t which_clock, struct timespec *tp);
425 const clockid_t clockid);
Dthread_info.h32 clockid_t index;
Dtypes.h34 typedef __kernel_clockid_t clockid_t; typedef
Dsyscalls.h305 asmlinkage long sys_timer_create(clockid_t which_clock,
315 asmlinkage long sys_clock_settime(clockid_t which_clock,
317 asmlinkage long sys_clock_gettime(clockid_t which_clock,
319 asmlinkage long sys_clock_adjtime(clockid_t which_clock,
321 asmlinkage long sys_clock_getres(clockid_t which_clock,
323 asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags,
Dinterrupt.h610 clockid_t which_clock, enum hrtimer_mode mode);
/linux-2.6.39/kernel/
Dposix-timers.c137 static int common_nsleep(const clockid_t, int flags, struct timespec *t,
161 static int posix_clock_realtime_get(clockid_t which_clock, struct timespec *tp) in posix_clock_realtime_get()
168 static int posix_clock_realtime_set(const clockid_t which_clock, in posix_clock_realtime_set()
174 static int posix_clock_realtime_adj(const clockid_t which_clock, in posix_clock_realtime_adj()
183 static int posix_ktime_get_ts(clockid_t which_clock, struct timespec *tp) in posix_ktime_get_ts()
192 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec *tp) in posix_get_monotonic_raw()
199 static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec *tp) in posix_get_realtime_coarse()
205 static int posix_get_monotonic_coarse(clockid_t which_clock, in posix_get_monotonic_coarse()
212 static int posix_get_coarse_res(const clockid_t which_clock, struct timespec *tp) in posix_get_coarse_res()
218 static int posix_get_boottime(const clockid_t which_clock, struct timespec *tp) in posix_get_boottime()
[all …]
Dposix-cpu-timers.c28 static int check_clock(const clockid_t which_clock) in check_clock()
52 timespec_to_sample(const clockid_t which_clock, const struct timespec *tp) in timespec_to_sample()
64 static void sample_to_timespec(const clockid_t which_clock, in sample_to_timespec()
74 static inline int cpu_time_before(const clockid_t which_clock, in cpu_time_before()
84 static inline void cpu_time_add(const clockid_t which_clock, in cpu_time_add()
94 static inline union cpu_time_count cpu_time_sub(const clockid_t which_clock, in cpu_time_sub()
180 posix_cpu_clock_getres(const clockid_t which_clock, struct timespec *tp) in posix_cpu_clock_getres()
199 posix_cpu_clock_set(const clockid_t which_clock, const struct timespec *tp) in posix_cpu_clock_set()
216 static int cpu_clock_sample(const clockid_t which_clock, struct task_struct *p, in cpu_clock_sample()
297 static int cpu_clock_sample_group(const clockid_t which_clock, in cpu_clock_sample_group()
[all …]
Dhrtimer.c90 static inline int hrtimer_clockid_to_base(clockid_t clock_id) in hrtimer_clockid_to_base()
440 static void __hrtimer_init(struct hrtimer *timer, clockid_t clock_id,
443 void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t clock_id, in hrtimer_init_on_stack()
463 debug_init(struct hrtimer *timer, clockid_t clockid, in debug_init()
1130 static void __hrtimer_init(struct hrtimer *timer, clockid_t clock_id, in __hrtimer_init()
1160 void hrtimer_init(struct hrtimer *timer, clockid_t clock_id, in hrtimer_init()
1176 int hrtimer_get_res(const clockid_t which_clock, struct timespec *tp) in hrtimer_get_res()
1550 const enum hrtimer_mode mode, const clockid_t clockid) in hrtimer_nanosleep()
Dcompat.c586 long compat_sys_timer_create(clockid_t which_clock, in compat_sys_timer_create()
644 long compat_sys_clock_settime(clockid_t which_clock, in compat_sys_clock_settime()
661 long compat_sys_clock_gettime(clockid_t which_clock, in compat_sys_clock_gettime()
678 long compat_sys_clock_adjtime(clockid_t which_clock, in compat_sys_clock_adjtime()
701 long compat_sys_clock_getres(clockid_t which_clock, in compat_sys_clock_getres()
742 long compat_sys_clock_nanosleep(clockid_t which_clock, int flags, in compat_sys_clock_nanosleep()
Dsoftirq.c576 clockid_t which_clock, enum hrtimer_mode mode) in tasklet_hrtimer_init()
/linux-2.6.39/kernel/time/
Dposix-clock.c248 static int get_clock_desc(const clockid_t id, struct posix_clock_desc *cd) in get_clock_desc()
275 static int pc_clock_adjtime(clockid_t id, struct timex *tx) in pc_clock_adjtime()
299 static int pc_clock_gettime(clockid_t id, struct timespec *ts) in pc_clock_gettime()
318 static int pc_clock_getres(clockid_t id, struct timespec *ts) in pc_clock_getres()
337 static int pc_clock_settime(clockid_t id, const struct timespec *ts) in pc_clock_settime()
363 clockid_t id = kit->it_clock; in pc_timer_create()
383 clockid_t id = kit->it_clock; in pc_timer_delete()
403 clockid_t id = kit->it_clock; in pc_timer_gettime()
418 clockid_t id = kit->it_clock; in pc_timer_settime()
/linux-2.6.39/arch/x86/vdso/
Dvclock_gettime.c114 notrace int __vdso_clock_gettime(clockid_t clock, struct timespec *ts) in __vdso_clock_gettime()
133 int clock_gettime(clockid_t, struct timespec *)
/linux-2.6.39/include/trace/events/
Dtimer.h132 TP_PROTO(struct hrtimer *hrtimer, clockid_t clockid,
139 __field( clockid_t, clockid )
/linux-2.6.39/drivers/char/
Dmmtimer.c481 static int sgi_clock_get(clockid_t clockid, struct timespec *tp) in sgi_clock_get()
492 static int sgi_clock_set(const clockid_t clockid, const struct timespec *tp) in sgi_clock_set()
768 static int sgi_clock_getres(const clockid_t which_clock, struct timespec *tp) in sgi_clock_getres()
/linux-2.6.39/arch/s390/kernel/
Dcompat_wrapper.S1267 lgfr %r2,%r2 # clockid_t (int)
1273 lgfr %r2,%r2 # clockid_t (int)
1279 lgfr %r2,%r2 # clockid_t (int)
1285 lgfr %r2,%r2 # clockid_t (int)
1899 lgfr %r2,%r2 # clockid_t (int)