Home
last modified time | relevance | path

Searched refs:clock_id (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-12-stable/lib/libthr/thread/
Dthr_condattr.c86 clockid_t * __restrict clock_id) in _pthread_condattr_getclock() argument
90 *clock_id = (*attr)->c_clockid; in _pthread_condattr_getclock()
95 _pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clock_id) in _pthread_condattr_setclock() argument
99 if (clock_id != CLOCK_REALTIME && in _pthread_condattr_setclock()
100 clock_id != CLOCK_VIRTUAL && in _pthread_condattr_setclock()
101 clock_id != CLOCK_PROF && in _pthread_condattr_setclock()
102 clock_id != CLOCK_MONOTONIC) { in _pthread_condattr_setclock()
105 (*attr)->c_clockid = clock_id; in _pthread_condattr_setclock()
Dthr_getcpuclockid.c43 _pthread_getcpuclockid(pthread_t pthread, clockid_t *clock_id) in _pthread_getcpuclockid() argument
49 if (clock_getcpuclockid2(TID(pthread), CPUCLOCK_WHICH_TID, clock_id)) in _pthread_getcpuclockid()
/freebsd-12-stable/sys/kern/
Dkern_time.c90 static int user_clock_nanosleep(struct thread *td, clockid_t clock_id,
176 clockid_t *clock_id; member
188 error = copyout(&clk_id, uap->clock_id, sizeof(clockid_t)); in sys_clock_getcpuclockid2()
225 clockid_t clock_id; member
236 error = kern_clock_gettime(td, uap->clock_id, &ats); in sys_clock_gettime()
289 get_cputime(struct thread *td, clockid_t clock_id, struct timespec *ats) in get_cputime() argument
298 if ((clock_id & CPUCLOCK_PROCESS_BIT) == 0) { in get_cputime()
299 tid = clock_id & CPUCLOCK_ID_MASK; in get_cputime()
306 pid = clock_id & CPUCLOCK_ID_MASK; in get_cputime()
317 kern_clock_gettime(struct thread *td, clockid_t clock_id, struct timespec *ats) in kern_clock_gettime() argument
[all …]
/freebsd-12-stable/sys/arm/broadcom/bcm2835/
Dbcm2835_mbox_prop.h133 uint32_t clock_id; member
136 uint32_t clock_id; member
148 uint32_t clock_id; member
152 uint32_t clock_id; member
164 uint32_t clock_id; member
167 uint32_t clock_id; member
179 uint32_t clock_id; member
182 uint32_t clock_id; member
Dbcm2835_cpufreq.c162 uint32_t clock_id) in bcm2835_cpufreq_get_clock_rate() argument
189 msg.body.req.clock_id = clock_id; in bcm2835_cpufreq_get_clock_rate()
196 clock_id); in bcm2835_cpufreq_get_clock_rate()
208 uint32_t clock_id) in bcm2835_cpufreq_get_max_clock_rate() argument
235 msg.body.req.clock_id = clock_id; in bcm2835_cpufreq_get_max_clock_rate()
242 clock_id); in bcm2835_cpufreq_get_max_clock_rate()
254 uint32_t clock_id) in bcm2835_cpufreq_get_min_clock_rate() argument
281 msg.body.req.clock_id = clock_id; in bcm2835_cpufreq_get_min_clock_rate()
288 clock_id); in bcm2835_cpufreq_get_min_clock_rate()
300 uint32_t clock_id, uint32_t rate_hz) in bcm2835_cpufreq_set_clock_rate() argument
[all …]
Dbcm2835_sdhci.c113 int clock_id; member
121 .clock_id = BCM2835_MBOX_CLOCK_ID_EMMC,
131 .clock_id = BCM2838_MBOX_CLOCK_ID_EMMC2,
244 err = bcm2835_mbox_get_clock_rate(sc->conf->clock_id, &default_freq); in bcm_sdhci_attach()
Dbcm2835_mbox.c459 bcm2835_mbox_get_clock_rate(uint32_t clock_id, uint32_t *hz) in bcm2835_mbox_get_clock_rate() argument
470 msg.body.req.clock_id = clock_id; in bcm2835_mbox_get_clock_rate()
/freebsd-12-stable/sys/compat/cloudabi/
Dcloudabi_clock.c87 cloudabi_clock_time_get(struct thread *td, cloudabi_clockid_t clock_id, in cloudabi_clock_time_get() argument
94 error = cloudabi_convert_clockid(clock_id, &clockid); in cloudabi_clock_time_get()
112 error = cloudabi_convert_clockid(uap->clock_id, &clockid); in cloudabi_sys_clock_res_get()
132 error = cloudabi_clock_time_get(td, uap->clock_id, &ts); in cloudabi_sys_clock_time_get()
Dcloudabi_futex.c429 cloudabi_lock_t *lock, cloudabi_clockid_t clock_id, in futex_lock_rdlock() argument
441 clock_id, timeout, precision, abstime); in futex_lock_rdlock()
709 cloudabi_lock_t *lock, cloudabi_clockid_t clock_id, in futex_lock_wrlock() argument
738 clock_id, timeout, precision, abstime); in futex_lock_wrlock()
790 futex_queue_convert_timestamp(struct thread *td, cloudabi_clockid_t clock_id, in futex_queue_convert_timestamp() argument
799 error = cloudabi_clock_time_get(td, clock_id, &now); in futex_queue_convert_timestamp()
812 struct futex_waiter *fw, struct thread *td, cloudabi_clockid_t clock_id, in futex_queue_sleep() argument
825 error = futex_queue_convert_timestamp(td, clock_id, timeout, in futex_queue_sleep()
980 cloudabi_scope_t lock_scope, cloudabi_clockid_t clock_id, in cloudabi_futex_condvar_wait() argument
1017 clock_id, timeout, precision, abstime); in cloudabi_futex_condvar_wait()
[all …]
/freebsd-12-stable/lib/libc/sys/
Dclock_gettime.c43 __clock_gettime(clockid_t clock_id, struct timespec *ts) in __clock_gettime() argument
48 error = __vdso_clock_gettime(clock_id, ts); in __clock_gettime()
52 error = __sys_clock_gettime(clock_id, ts); in __clock_gettime()
Dclock_nanosleep.c44 clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, in clock_nanosleep() argument
50 __libc_interposing[INTERPOS_clock_nanosleep])(clock_id, flags, in clock_nanosleep()
D__vdso_gettimeofday.c135 __vdso_clock_gettime(clockid_t clock_id, struct timespec *ts) in __vdso_clock_gettime() argument
147 switch (clock_id) { in __vdso_clock_gettime()
169 if (clock_id == CLOCK_SECOND) in __vdso_clock_gettime()
/freebsd-12-stable/lib/libc/gen/
Dclock_getcpuclockid.c38 clock_getcpuclockid(pid_t pid, clockid_t *clock_id) in clock_getcpuclockid() argument
40 if (clock_getcpuclockid2(pid, CPUCLOCK_WHICH_PID, clock_id)) in clock_getcpuclockid()
Dsem_new.c346 usem_wait(struct _usem2 *sem, clockid_t clock_id, int flags, in usem_wait() argument
361 tms.timeout._clockid = clock_id; in usem_wait()
393 _sem_clockwait_np(sem_t * __restrict sem, clockid_t clock_id, int flags, in _sem_clockwait_np() argument
426 retval = usem_wait(&sem->_kern, clock_id, flags, rqtp, rmtp); in _sem_clockwait_np()
/freebsd-12-stable/contrib/openbsm/compat/
Dclock_gettime.h39 clock_gettime(int clock_id, struct timespec *ts) in clock_gettime() argument
43 if (clock_id != CLOCK_REALTIME) { in clock_gettime()
/freebsd-12-stable/contrib/llvm-project/compiler-rt/include/sanitizer/
Dnetbsd_syscall_hooks.h1218 #define __sanitizer_syscall_pre_compat_50_clock_gettime(clock_id, tp) \ argument
1219 __sanitizer_syscall_pre_impl_compat_50_clock_gettime((long long)(clock_id), \
1221 #define __sanitizer_syscall_post_compat_50_clock_gettime(res, clock_id, tp) \ argument
1223 res, (long long)(clock_id), (long long)(tp))
1224 #define __sanitizer_syscall_pre_compat_50_clock_settime(clock_id, tp) \ argument
1225 __sanitizer_syscall_pre_impl_compat_50_clock_settime((long long)(clock_id), \
1227 #define __sanitizer_syscall_post_compat_50_clock_settime(res, clock_id, tp) \ argument
1229 res, (long long)(clock_id), (long long)(tp))
1230 #define __sanitizer_syscall_pre_compat_50_clock_getres(clock_id, tp) \ argument
1231 __sanitizer_syscall_pre_impl_compat_50_clock_getres((long long)(clock_id), \
[all …]
/freebsd-12-stable/contrib/wpa/src/utils/
Dos_unix.c80 static clockid_t clock_id = CLOCK_BOOTTIME; in os_get_reltime() local
82 static clockid_t clock_id = CLOCK_MONOTONIC; in os_get_reltime()
84 static clockid_t clock_id = CLOCK_REALTIME; in os_get_reltime()
93 res = clock_gettime(clock_id, &ts); in os_get_reltime()
99 switch (clock_id) { in os_get_reltime()
102 clock_id = CLOCK_MONOTONIC; in os_get_reltime()
107 clock_id = CLOCK_REALTIME; in os_get_reltime()
/freebsd-12-stable/sys/compat/cloudabi64/
Dcloudabi64_poll.c112 sub.clock.clock_id, &ts); in cloudabi64_kevent_copyin()
287 sub[0].condvar.lock_scope, sub[1].clock.clock_id, in cloudabi64_sys_poll()
305 sub[0].lock.lock_scope, sub[1].clock.clock_id, in cloudabi64_sys_poll()
323 sub[0].lock.lock_scope, sub[1].clock.clock_id, in cloudabi64_sys_poll()
/freebsd-12-stable/sys/compat/cloudabi32/
Dcloudabi32_poll.c112 sub.clock.clock_id, &ts); in cloudabi32_kevent_copyin()
287 sub[0].condvar.lock_scope, sub[1].clock.clock_id, in cloudabi32_sys_poll()
305 sub[0].lock.lock_scope, sub[1].clock.clock_id, in cloudabi32_sys_poll()
323 sub[0].lock.lock_scope, sub[1].clock.clock_id, in cloudabi32_sys_poll()
/freebsd-12-stable/sys/arm/ti/
Dti_hwmods.c49 int clock_id; member
132 clk = hw->clock_id; in ti_hwmods_get_clock()
/freebsd-12-stable/sys/sys/
Dsyscallsubr.h92 int kern_clock_getres(struct thread *td, clockid_t clock_id,
94 int kern_clock_gettime(struct thread *td, clockid_t clock_id,
96 int kern_clock_nanosleep(struct thread *td, clockid_t clock_id, int flags,
98 int kern_clock_settime(struct thread *td, clockid_t clock_id,
292 int kern_ktimer_create(struct thread *td, clockid_t clock_id,
Dvdso.h68 int __vdso_clock_gettime(clockid_t clock_id, struct timespec *ts);
/freebsd-12-stable/sys/contrib/cloudabi/
Dcloudabi64_types.h123 _Alignas(4) cloudabi_clockid_t clock_id;
151 _Static_assert(offsetof(cloudabi64_subscription_t, clock.clock_id) == 24, "Incorrect layout");
Dcloudabi32_types.h123 _Alignas(4) cloudabi_clockid_t clock_id;
151 _Static_assert(offsetof(cloudabi32_subscription_t, clock.clock_id) == 24, "Incorrect layout");
/freebsd-12-stable/sys/compat/linux/
Dlinux_timer.c110 error = linux_to_native_clockid(&nwhich, uap->clock_id); in linux_timer_create()

12