/third_party/musl/src/time/ |
D | clock_gettime.c | 13 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 …]
|
D | clock_nanosleep.c | 8 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()
|
D | clock_settime.c | 7 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()
|
D | clock_getres.c | 4 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()
|
D | clock_getcpuclockid.c | 6 int clock_getcpuclockid(pid_t pid, clockid_t *clk) in clock_getcpuclockid() argument 12 *clk = id; in clock_getcpuclockid()
|
D | timer_create.c | 60 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/ |
D | clock_gettime.c | 13 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 …]
|
D | clock_getres.c | 26 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()
|
D | timer_create.c | 62 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/ |
D | lws-bb-spi.c | 39 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/ |
D | clock_getcpuclockid.c | 26 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/ |
D | pthread_condattr_setclock.c | 3 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.c | 33 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()
|
D | pthread_attr_get.c | 59 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/ |
D | pthread_condattr_setclock.c | 16 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.c | 44 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()
|
D | pthread_attr_get.c | 60 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/ |
D | clocks.c | 35 #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/ |
D | clock_settime32.c | 4 int __clock_settime32(clockid_t clk, const struct timespec32 *ts32) in __clock_settime32() argument 6 return clock_settime(clk, (&(struct timespec){ in __clock_settime32()
|
D | clock_getres_time32.c | 4 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()
|
D | clock_gettime32.c | 6 int __clock_gettime32(clockid_t clk, struct timespec32 *ts32) in __clock_gettime32() argument 9 int r = clock_gettime(clk, &ts); in __clock_gettime32()
|
D | clock_nanosleep_time32.c | 5 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/ |
D | los_usr_libc.c | 236 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/ |
D | usr_lib_ops.h | 79 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/ |
D | gstalsasrc.c | 252 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()
|