Home
last modified time | relevance | path

Searched refs:clk (Results 1 – 25 of 36) sorted by relevance

12

/third_party/musl/src/time/
Dclock_gettime.c13 static int cgt_time32_wrap(clockid_t clk, struct timespec *ts) in cgt_time32_wrap() argument
18 int r = f(clk, ts32); in cgt_time32_wrap()
34 static int cgt_init(clockid_t clk, struct timespec *ts) in cgt_init() argument
49 return f ? f(clk, ts) : -ENOSYS; in cgt_init()
56 int __clock_gettime(clockid_t clk, struct timespec *ts) in __clock_gettime() argument
64 r = f(clk, ts); in __clock_gettime()
78 r = __syscall(SYS_clock_gettime64, clk, ts); in __clock_gettime()
82 r = __syscall(SYS_clock_gettime, clk, ts32); in __clock_gettime()
83 if (r==-ENOSYS && clk==CLOCK_REALTIME) { in __clock_gettime()
94 r = __syscall(SYS_clock_gettime, clk, ts); in __clock_gettime()
[all …]
Dclock_nanosleep.c8 int __clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem) in __clock_nanosleep() argument
10 if (clk == CLOCK_THREAD_CPUTIME_ID) return EINVAL; in __clock_nanosleep()
16 r = __syscall_cp(SYS_clock_nanosleep_time64, clk, flags, in __clock_nanosleep()
22 if (clk == CLOCK_REALTIME && !flags) in __clock_nanosleep()
25 r = __syscall_cp(SYS_clock_nanosleep, clk, flags, &ts32, &ts32); in __clock_nanosleep()
32 if (clk == CLOCK_REALTIME && !flags) in __clock_nanosleep()
34 return -__syscall_cp(SYS_clock_nanosleep, clk, flags, req, rem); in __clock_nanosleep()
Dclock_settime.c7 int clock_settime(clockid_t clk, const struct timespec *ts) in clock_settime() argument
14 r = __syscall(SYS_clock_settime64, clk, in clock_settime()
20 return syscall(SYS_clock_settime, clk, ((long[]){s, ns})); in clock_settime()
22 return syscall(SYS_clock_settime, clk, ts); in clock_settime()
Dclock_getres.c4 int clock_getres(clockid_t clk, struct timespec *ts) in clock_getres() argument
10 int r = __syscall(SYS_clock_getres, clk, ts32); in clock_getres()
20 return syscall(SYS_clock_getres, clk, ts); in clock_getres()
Dclock_getcpuclockid.c6 int clock_getcpuclockid(pid_t pid, clockid_t *clk) in clock_getcpuclockid() argument
12 *clk = id; in clock_getcpuclockid()
Dtimer_create.c60 int timer_create(clockid_t clk, struct sigevent *restrict evp, timer_t *restrict res) in timer_create() argument
85 if (syscall(SYS_timer_create, clk, ksevp, &timerid) < 0) in timer_create()
116 if (syscall(SYS_timer_create, clk, &ksev, &timerid) < 0) in timer_create()
/third_party/musl/porting/linux/user/src/time/
Dclock_gettime.c13 static int cgt_time32_wrap(clockid_t clk, struct timespec *ts) in cgt_time32_wrap() argument
18 int r = f(clk, ts32); in cgt_time32_wrap()
34 static int cgt_init(clockid_t clk, struct timespec *ts) in cgt_init() argument
50 return f ? f(clk, ts) : -ENOSYS; in cgt_init()
57 int __clock_gettime(clockid_t clk, struct timespec *ts) in __clock_gettime() argument
65 r = f(clk, ts); in __clock_gettime()
79 r = __syscall(SYS_clock_gettime64, clk, ts); in __clock_gettime()
83 r = __syscall(SYS_clock_gettime, clk, ts32); in __clock_gettime()
84 if (r==-ENOSYS && clk==CLOCK_REALTIME) { in __clock_gettime()
95 r = __syscall(SYS_clock_gettime, clk, ts); in __clock_gettime()
[all …]
Dclock_getres.c26 static int cgr_init(clockid_t clk, struct timespec *ts) in cgr_init() argument
33 return f ? f(clk, ts) : -ENOSYS; in cgr_init()
40 int clock_getres(clockid_t clk, struct timespec *ts) in clock_getres() argument
47 r = f(clk, ts); in clock_getres()
57 r = __syscall(SYS_clock_getres, clk, ts32); in clock_getres()
67 return syscall(SYS_clock_getres, clk, ts); in clock_getres()
Dtimer_create.c62 int timer_create(clockid_t clk, struct sigevent *restrict evp, timer_t *restrict res) in timer_create() argument
87 if (syscall(SYS_timer_create, clk, ksevp, &timerid) < 0) in timer_create()
118 if (syscall(SYS_timer_create, clk, &ksev, &timerid) < 0) in timer_create()
/third_party/libwebsockets/lib/drivers/spi/bitbang/
Dlws-bb-spi.c39 ctx->gpio->mode(ctx->clk, LWSGGPIO_FL_WRITE | in lws_bb_spi_init()
61 ctx->gpio->set(ctx->clk, inv); in lws_bb_spi_write()
63 ctx->gpio->set(ctx->clk, !inv); in lws_bb_spi_write()
64 ctx->gpio->set(ctx->clk, inv); in lws_bb_spi_write()
66 ctx->gpio->set(ctx->clk, !inv); in lws_bb_spi_write()
71 ctx->gpio->set(ctx->clk, 0 ^ inv); in lws_bb_spi_write()
84 ctx->gpio->set(ctx->clk, inv); in lws_bb_spi_read()
87 ctx->gpio->set(ctx->clk, !inv); in lws_bb_spi_read()
92 ctx->gpio->set(ctx->clk, 0 ^ inv); in lws_bb_spi_read()
102 ctx->gpio->set(ctx->clk, 0 ^ !!(octx->bus_mode & LWSSPIMODE_CPOL)); in lws_bb_spi_queue()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/time/
Dclock_getcpuclockid.c26 clockid_t clk; in clock_getcpuclockid_0100() local
30 int result = clock_getcpuclockid(pid, &clk); in clock_getcpuclockid_0100()
33 result = clock_gettime(clk, &ts); in clock_getcpuclockid_0100()
45 clockid_t clk; in clock_getcpuclockid_0200() local
47 int result = clock_getcpuclockid(65536, &clk); in clock_getcpuclockid_0200()
/third_party/musl/src/thread/
Dpthread_condattr_setclock.c3 int pthread_condattr_setclock(pthread_condattr_t *a, clockid_t clk) in pthread_condattr_setclock() argument
5 if (clk < 0 || clk-2U < 2) return EINVAL; in pthread_condattr_setclock()
7 a->__attr |= clk; in pthread_condattr_setclock()
D__timedwait.c33 clockid_t clk, const struct timespec *at, int priv) in __timedwait_cp() argument
42 if (__clock_gettime(clk, &to)) return EINVAL; in __timedwait_cp()
64 clockid_t clk, const struct timespec *at, int priv) in __timedwait() argument
68 r = __timedwait_cp(addr, val, clk, at, priv); in __timedwait()
Dpthread_attr_get.c59 int pthread_condattr_getclock(const pthread_condattr_t *restrict a, clockid_t *restrict clk) in pthread_condattr_getclock() argument
61 *clk = a->__attr & 0x7fffffff; in pthread_condattr_getclock()
/third_party/musl/libc-test/src/regression/
Dpthread_condattr_setclock.c16 clockid_t clk; in main() local
28 T(r,pthread_condattr_getclock(&a, &clk)); in main()
29 if (clk != CLOCK_REALTIME) in main()
30 …t_error("condattr default clock is %d, wanted CLOCK_REALTIME (%d)\n", (int)clk, (int)CLOCK_REALTIM… in main()
/third_party/musl/porting/liteos_a/user/src/thread/
D__timedwait.c44 clockid_t clk, const struct timespec *at, int priv) in __timedwait_cp() argument
53 if (__clock_gettime(clk, &to)) return EINVAL; in __timedwait_cp()
75 clockid_t clk, const struct timespec *at, int priv) in __timedwait() argument
79 r = __timedwait_cp(addr, val, clk, at, priv); in __timedwait()
Dpthread_attr_get.c60 int pthread_condattr_getclock(const pthread_condattr_t *restrict a, clockid_t *restrict clk) in pthread_condattr_getclock() argument
62 *clk = a->__attr & 0x7fffffff; in pthread_condattr_getclock()
/third_party/node/deps/uvwasi/src/
Dclocks.c35 #define UVWASI__CLOCK_GETTIME_AND_RETURN(clk, time) \ argument
38 if (0 != clock_gettime((clk), &ts)) \
87 #define UVWASI__CLOCK_GETRES_AND_RETURN(clk, time) \ argument
94 if (0 != clock_getres((clk), &ts)) \
/third_party/musl/compat/time32/
Dclock_settime32.c4 int __clock_settime32(clockid_t clk, const struct timespec32 *ts32) in __clock_settime32() argument
6 return clock_settime(clk, (&(struct timespec){ in __clock_settime32()
Dclock_getres_time32.c4 int __clock_getres_time32(clockid_t clk, struct timespec32 *ts32) in __clock_getres_time32() argument
7 int r = clock_getres(clk, &ts); in __clock_getres_time32()
Dclock_gettime32.c6 int __clock_gettime32(clockid_t clk, struct timespec32 *ts32) in __clock_gettime32() argument
9 int r = clock_gettime(clk, &ts); in __clock_gettime32()
Dclock_nanosleep_time32.c5 int __clock_nanosleep_time32(clockid_t clk, int flags, const struct timespec32 *req32, struct times… in __clock_nanosleep_time32() argument
8 int ret = clock_nanosleep(clk, flags, (&(struct timespec){ in __clock_nanosleep_time32()
/third_party/musl/porting/liteos_m/user/hook/
Dlos_usr_libc.c236 int pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clk) in pthread_condattr_setclock() argument
238 return g_usrLibc->pthread_condattr_setclock(attr, clk); in pthread_condattr_setclock()
346 int clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem) in clock_nanosleep() argument
348 return g_usrLibc->clock_nanosleep(clk, flags, req, rem); in clock_nanosleep()
/third_party/musl/porting/liteos_m/user/include/
Dusr_lib_ops.h79 int (*pthread_condattr_setclock)(pthread_condattr_t *attr, clockid_t clk);
101 …int (*clock_nanosleep)(clockid_t clk, int flags, const struct timespec *req, struct timespec *rem);
/third_party/gstreamer/gstplugins_base/ext/alsa/
Dgstalsasrc.c252 GstClock *clk; in gst_alsasrc_change_state() local
269 clk = gst_element_get_clock (element); in gst_alsasrc_change_state()
270 if (clk != NULL) { in gst_alsasrc_change_state()
271 if (G_OBJECT_TYPE (clk) == GST_TYPE_SYSTEM_CLOCK) { in gst_alsasrc_change_state()
273 g_object_get (clk, "clock-type", &clocktype, NULL); in gst_alsasrc_change_state()
284 gst_object_unref (clk); in gst_alsasrc_change_state()

12