Home
last modified time | relevance | path

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

1234

/linux-6.6.21/arch/x86/entry/vdso/
Dvclock_gettime.c38 extern int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
39 extern int __vdso_clock_getres(clockid_t clock, struct __kernel_timespec *res);
41 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) in __vdso_clock_gettime()
46 int clock_gettime(clockid_t, struct __kernel_timespec *)
49 int __vdso_clock_getres(clockid_t clock, in __vdso_clock_getres()
54 int clock_getres(clockid_t, struct __kernel_timespec *)
59 extern int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts);
60 extern int __vdso_clock_getres(clockid_t clock, struct old_timespec32 *res);
62 int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts) in __vdso_clock_gettime()
67 int clock_gettime(clockid_t, struct old_timespec32 *)
[all …]
/linux-6.6.21/arch/powerpc/include/asm/vdso/
Dgettimeofday.h46 int clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
52 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
62 int clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
68 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
74 int clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_gettime32_fallback()
80 int clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_getres32_fallback()
142 int __c_kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts,
144 int __c_kernel_clock_getres(clockid_t clock_id, struct __kernel_timespec *res,
147 int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
149 int __c_kernel_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts,
[all …]
/linux-6.6.21/arch/csky/include/asm/vdso/
Dgettimeofday.h33 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
35 register clockid_t clkid asm("a0") = _clkid; in clock_gettime_fallback()
49 long clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_gettime32_fallback()
51 register clockid_t clkid asm("a0") = _clkid; in clock_gettime32_fallback()
65 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
67 register clockid_t clkid asm("a0") = _clkid; in clock_getres_fallback()
81 int clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_getres32_fallback()
83 register clockid_t clkid asm("a0") = _clkid; in clock_getres32_fallback()
/linux-6.6.21/arch/arm/include/asm/vdso/
Dgettimeofday.h39 clockid_t _clkid, in clock_gettime_fallback()
43 register clockid_t clkid asm("r0") = _clkid; in clock_gettime_fallback()
57 clockid_t _clkid, in clock_gettime32_fallback()
61 register clockid_t clkid asm("r0") = _clkid; in clock_gettime32_fallback()
75 clockid_t _clkid, in clock_getres_fallback()
79 register clockid_t clkid asm("r0") = _clkid; in clock_getres_fallback()
93 clockid_t _clkid, in clock_getres32_fallback()
97 register clockid_t clkid asm("r0") = _clkid; in clock_getres32_fallback()
/linux-6.6.21/arch/arm64/include/asm/vdso/
Dcompat_gettimeofday.h39 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
42 register clockid_t clkid asm("r0") = _clkid; in clock_gettime_fallback()
56 long clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_gettime32_fallback()
59 register clockid_t clkid asm("r0") = _clkid; in clock_gettime32_fallback()
73 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
76 register clockid_t clkid asm("r0") = _clkid; in clock_getres_fallback()
90 int clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_getres32_fallback()
93 register clockid_t clkid asm("r0") = _clkid; in clock_getres32_fallback()
Dgettimeofday.h36 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
39 register clockid_t clkid asm("x0") = _clkid; in clock_gettime_fallback()
53 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
56 register clockid_t clkid asm("x0") = _clkid; in clock_getres_fallback()
/linux-6.6.21/arch/csky/kernel/vdso/
Dvgettimeofday.c7 int __vdso_clock_gettime(clockid_t clock,
9 int __vdso_clock_gettime(clockid_t clock, in __vdso_clock_gettime()
15 int __vdso_clock_gettime64(clockid_t clock,
17 int __vdso_clock_gettime64(clockid_t clock, in __vdso_clock_gettime64()
33 int __vdso_clock_getres(clockid_t clock_id,
35 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres()
/linux-6.6.21/arch/mips/include/asm/vdso/
Dgettimeofday.h52 clockid_t _clkid, in clock_gettime_fallback()
56 register clockid_t clkid asm("a0") = _clkid; in clock_gettime_fallback()
78 clockid_t _clkid, in clock_getres_fallback()
82 register clockid_t clkid asm("a0") = _clkid; in clock_getres_fallback()
106 clockid_t _clkid, in clock_gettime32_fallback()
110 register clockid_t clkid asm("a0") = _clkid; in clock_gettime32_fallback()
128 clockid_t _clkid, in clock_getres32_fallback()
132 register clockid_t clkid asm("a0") = _clkid; in clock_getres32_fallback()
/linux-6.6.21/include/linux/
Dposix-timers.h27 (((clock) & (clockid_t) CPUCLOCK_PERTHREAD_MASK) != 0)
30 #define CPUCLOCK_WHICH(clock) ((clock) & (clockid_t) CPUCLOCK_CLOCK_MASK)
39 static inline clockid_t make_process_cpuclock(const unsigned int pid, in make_process_cpuclock()
40 const clockid_t clock) in make_process_cpuclock()
44 static inline clockid_t make_thread_cpuclock(const unsigned int tid, in make_thread_cpuclock()
45 const clockid_t clock) in make_thread_cpuclock()
50 static inline clockid_t fd_to_clockid(const int fd) in fd_to_clockid()
55 static inline int clockid_to_fd(const clockid_t clk) in clockid_to_fd()
228 clockid_t it_clock;
Dhrtimer.h162 clockid_t clockid;
374 extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock,
376 extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, clockid_t clock_id,
380 extern void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t which_clock,
383 clockid_t clock_id,
389 clockid_t which_clock, in hrtimer_init_on_stack()
396 clockid_t clock_id, in hrtimer_init_sleeper_on_stack()
515 const clockid_t clockid);
522 clockid_t clock_id);
/linux-6.6.21/kernel/time/
Dposix-stubs.c26 SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
39 static int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp) in do_clock_gettime()
60 SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
75 SYSCALL_DEFINE2(clock_getres, const clockid_t, which_clock, struct __kernel_timespec __user *, tp) in SYSCALL_DEFINE2() argument
94 SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, in SYSCALL_DEFINE4() argument
129 SYSCALL_DEFINE2(clock_settime32, const clockid_t, which_clock, in SYSCALL_DEFINE2() argument
142 SYSCALL_DEFINE2(clock_gettime32, clockid_t, which_clock, in SYSCALL_DEFINE2() argument
157 SYSCALL_DEFINE2(clock_getres_time32, clockid_t, which_clock, in SYSCALL_DEFINE2() argument
177 SYSCALL_DEFINE4(clock_nanosleep_time32, clockid_t, which_clock, int, flags, in SYSCALL_DEFINE4() argument
Dposix-timers.h5 int (*clock_getres)(const clockid_t which_clock,
7 int (*clock_set)(const clockid_t which_clock,
10 int (*clock_get_timespec)(const clockid_t which_clock,
13 ktime_t (*clock_get_ktime)(const clockid_t which_clock);
14 int (*clock_adj)(const clockid_t which_clock, struct __kernel_timex *tx);
16 int (*nsleep)(const clockid_t which_clock, int flags,
Dposix-timers.c53 static const struct k_clock *clockid_to_kclock(const clockid_t id);
131 static int posix_get_realtime_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_timespec()
137 static ktime_t posix_get_realtime_ktime(clockid_t which_clock) in posix_get_realtime_ktime()
142 static int posix_clock_realtime_set(const clockid_t which_clock, in posix_clock_realtime_set()
148 static int posix_clock_realtime_adj(const clockid_t which_clock, in posix_clock_realtime_adj()
154 static int posix_get_monotonic_timespec(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_timespec()
161 static ktime_t posix_get_monotonic_ktime(clockid_t which_clock) in posix_get_monotonic_ktime()
166 static int posix_get_monotonic_raw(clockid_t which_clock, struct timespec64 *tp) in posix_get_monotonic_raw()
173 static int posix_get_realtime_coarse(clockid_t which_clock, struct timespec64 *tp) in posix_get_realtime_coarse()
179 static int posix_get_monotonic_coarse(clockid_t which_clock, in posix_get_monotonic_coarse()
[all …]
/linux-6.6.21/lib/vdso/
Dgettimeofday.c49 static __always_inline int do_hres_timens(const struct vdso_data *vdns, clockid_t clk, in do_hres_timens()
103 static __always_inline int do_hres_timens(const struct vdso_data *vdns, clockid_t clk, in do_hres_timens()
110 static __always_inline int do_hres(const struct vdso_data *vd, clockid_t clk, in do_hres()
165 static __always_inline int do_coarse_timens(const struct vdso_data *vdns, clockid_t clk, in do_coarse_timens()
194 static __always_inline int do_coarse_timens(const struct vdso_data *vdns, clockid_t clk, in do_coarse_timens()
201 static __always_inline int do_coarse(const struct vdso_data *vd, clockid_t clk, in do_coarse()
228 __cvdso_clock_gettime_common(const struct vdso_data *vd, clockid_t clock, in __cvdso_clock_gettime_common()
255 __cvdso_clock_gettime_data(const struct vdso_data *vd, clockid_t clock, in __cvdso_clock_gettime_data()
266 __cvdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) in __cvdso_clock_gettime()
273 __cvdso_clock_gettime32_data(const struct vdso_data *vd, clockid_t clock, in __cvdso_clock_gettime32_data()
[all …]
/linux-6.6.21/arch/mips/vdso/
Dvgettimeofday.c14 int __vdso_clock_gettime(clockid_t clock, in __vdso_clock_gettime()
36 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres()
42 int __vdso_clock_gettime64(clockid_t clock, in __vdso_clock_gettime64()
50 int __vdso_clock_gettime(clockid_t clock, in __vdso_clock_gettime()
72 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres()
/linux-6.6.21/arch/powerpc/kernel/vdso/
Dvgettimeofday.c9 int __c_kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts, in __c_kernel_clock_gettime()
15 int __c_kernel_clock_getres(clockid_t clock_id, struct __kernel_timespec *res, in __c_kernel_clock_getres()
21 int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts, in __c_kernel_clock_gettime()
27 int __c_kernel_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts, in __c_kernel_clock_gettime64()
33 int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res, in __c_kernel_clock_getres()
/linux-6.6.21/arch/x86/include/asm/vdso/
Dgettimeofday.h71 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
95 long clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
109 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
126 long clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_gettime32_fallback()
161 clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
178 long clock_getres32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) in clock_getres32_fallback()
340 int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts);
/linux-6.6.21/arch/arm64/kernel/vdso/
Dvgettimeofday.c9 int __kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
11 int __kernel_clock_getres(clockid_t clock_id, struct __kernel_timespec *res);
13 int __kernel_clock_gettime(clockid_t clock, in __kernel_clock_gettime()
25 int __kernel_clock_getres(clockid_t clock_id, in __kernel_clock_getres()
/linux-6.6.21/arch/loongarch/vdso/
Dvgettimeofday.c10 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
11 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) in __vdso_clock_gettime()
24 int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res);
25 int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res) in __vdso_clock_getres()
/linux-6.6.21/arch/riscv/kernel/vdso/
Dvgettimeofday.c13 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
14 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) in __vdso_clock_gettime()
27 int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res);
28 int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res) in __vdso_clock_getres()
/linux-6.6.21/arch/riscv/include/asm/vdso/
Dgettimeofday.h38 long clock_gettime_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_gettime_fallback()
40 register clockid_t clkid asm("a0") = _clkid; in clock_gettime_fallback()
54 int clock_getres_fallback(clockid_t _clkid, struct __kernel_timespec *_ts) in clock_getres_fallback()
56 register clockid_t clkid asm("a0") = _clkid; in clock_getres_fallback()
/linux-6.6.21/arch/loongarch/include/asm/vdso/
Dgettimeofday.h37 clockid_t _clkid, in clock_gettime_fallback()
40 register clockid_t clkid asm("a0") = _clkid; in clock_gettime_fallback()
56 clockid_t _clkid, in clock_getres_fallback()
59 register clockid_t clkid asm("a0") = _clkid; in clock_getres_fallback()
/linux-6.6.21/arch/arm64/kernel/vdso32/
Dvgettimeofday.c9 int __vdso_clock_gettime(clockid_t clock, in __vdso_clock_gettime()
15 int __vdso_clock_gettime64(clockid_t clock, in __vdso_clock_gettime64()
27 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres()
/linux-6.6.21/arch/arm/vdso/
Dvgettimeofday.c12 int __vdso_clock_gettime(clockid_t clock, in __vdso_clock_gettime()
18 int __vdso_clock_gettime64(clockid_t clock, in __vdso_clock_gettime64()
30 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres()
/linux-6.6.21/arch/arm/include/asm/
Dvdso.h27 int __vdso_clock_gettime(clockid_t clock, struct old_timespec32 *ts);
28 int __vdso_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts);
30 int __vdso_clock_getres(clockid_t clock_id, struct old_timespec32 *res);

1234