/external/ltp/include/ |
D | tst_safe_clocks.h | 11 clockid_t clk_id, struct timespec *res) in safe_clock_getres() argument 15 rval = clock_getres(clk_id, res); in safe_clock_getres() 23 clockid_t clk_id, struct timespec *tp) in safe_clock_gettime() argument 27 rval = clock_gettime(clk_id, tp); in safe_clock_gettime() 33 #define SAFE_CLOCK_GETRES(clk_id, res)\ argument 34 safe_clock_getres(__FILE__, __LINE__, (clk_id), (res)) 36 #define SAFE_CLOCK_GETTIME(clk_id, tp)\ argument 37 safe_clock_gettime(__FILE__, __LINE__, (clk_id), (tp))
|
D | tst_clocks.h | 25 int tst_clock_getres(clockid_t clk_id, struct timespec *res); 27 int tst_clock_gettime(clockid_t clk_id, struct timespec *ts);
|
/external/ltp/lib/ |
D | tst_timer.c | 18 static const char *clock_name(clockid_t clk_id) in clock_name() argument 20 switch (clk_id) { in clock_name() 42 void tst_timer_check(clockid_t clk_id) in tst_timer_check() argument 44 if (tst_clock_gettime(clk_id, &start_time)) { in tst_timer_check() 48 clock_name(clk_id), clk_id); in tst_timer_check() 56 void tst_timer_start(clockid_t clk_id) in tst_timer_start() argument 58 clock_id = clk_id; in tst_timer_start()
|
D | tst_clocks.c | 29 int tst_clock_getres(clockid_t clk_id, struct timespec *res) in tst_clock_getres() argument 31 return syscall(SYS_clock_getres, clk_id, res); in tst_clock_getres() 34 int tst_clock_gettime(clockid_t clk_id, struct timespec *ts) in tst_clock_gettime() argument 36 return syscall(SYS_clock_gettime, clk_id, ts); in tst_clock_gettime()
|
/external/ltp/testcases/kernel/syscalls/futex/ |
D | futex_wait_bitset.h | 9 static void verify_futex_wait_bitset(long long wait_us, clock_t clk_id) in verify_futex_wait_bitset() argument 14 int flags = clk_id == CLOCK_REALTIME ? FUTEX_CLOCK_REALTIME : 0; in verify_futex_wait_bitset() 17 clk_id == CLOCK_REALTIME ? "CLOCK_REALTIME" : "CLOCK_MONOTONIC"); in verify_futex_wait_bitset() 19 clock_gettime(clk_id, &start); in verify_futex_wait_bitset() 24 clock_gettime(clk_id, &end); in verify_futex_wait_bitset()
|
D | futex_wait05.c | 29 int sample_fn(int clk_id, long long usec) in sample_fn() argument 34 tst_timer_start(clk_id); in sample_fn()
|
/external/ltp/testcases/kernel/syscalls/clock_nanosleep/ |
D | clock_nanosleep01.c | 42 clockid_t clk_id; /* clock_* clock type parameter */ member 60 .clk_id = CLOCK_REALTIME, 68 .clk_id = CLOCK_REALTIME, 76 .clk_id = CLOCK_THREAD_CPUTIME_ID, 84 .clk_id = CLOCK_REALTIME, 108 TEST(clock_nanosleep(tc->clk_id, tc->flags, &tc->rq, &rm)); in do_test()
|
D | clock_nanosleep02.c | 28 int sample_fn(int clk_id, long long usec) in sample_fn() argument 32 tst_timer_start(clk_id); in sample_fn() 33 TEST(clock_nanosleep(clk_id, 0, &t, NULL)); in sample_fn()
|
/external/u-boot/drivers/clk/rockchip/ |
D | clk_rk3399.c | 455 static ulong rk3399_i2c_get_clk(struct rk3399_cru *cru, ulong clk_id) in rk3399_i2c_get_clk() argument 459 switch (clk_id) { in rk3399_i2c_get_clk() 492 static ulong rk3399_i2c_set_clk(struct rk3399_cru *cru, ulong clk_id, uint hz) in rk3399_i2c_set_clk() argument 500 switch (clk_id) { in rk3399_i2c_set_clk() 530 return rk3399_i2c_get_clk(cru, clk_id); in rk3399_i2c_set_clk() 569 static ulong rk3399_spi_get_clk(struct rk3399_cru *cru, ulong clk_id) in rk3399_spi_get_clk() argument 574 switch (clk_id) { in rk3399_spi_get_clk() 576 spiclk = &spi_clkregs[clk_id - SCLK_SPI0]; in rk3399_spi_get_clk() 580 pr_err("%s: SPI clk-id %ld not supported\n", __func__, clk_id); in rk3399_spi_get_clk() 591 static ulong rk3399_spi_set_clk(struct rk3399_cru *cru, ulong clk_id, uint hz) in rk3399_spi_set_clk() argument [all …]
|
D | clk_rk3128.c | 38 static int rkclk_set_pll(struct rk3128_cru *cru, enum rk_clk_id clk_id, in rkclk_set_pll() argument 41 int pll_id = rk_pll_id(clk_id); in rkclk_set_pll() 239 enum rk_clk_id clk_id) in rkclk_pll_get_rate() argument 243 int pll_id = rk_pll_id(clk_id); in rkclk_pll_get_rate() 257 shift = clk_shift[clk_id]; in rkclk_pll_get_rate() 258 mask = clk_mask[clk_id]; in rkclk_pll_get_rate() 346 static ulong rk3128_peri_get_pclk(struct rk3128_cru *cru, ulong clk_id) in rk3128_peri_get_pclk() argument 350 switch (clk_id) { in rk3128_peri_get_pclk() 367 static ulong rk3128_peri_set_pclk(struct rk3128_cru *cru, ulong clk_id, uint hz) in rk3128_peri_set_pclk() argument 374 switch (clk_id) { in rk3128_peri_set_pclk() [all …]
|
D | clk_rk3368.c | 157 static ulong rk3368_mmc_get_clk(struct rk3368_cru *cru, uint clk_id) in rk3368_mmc_get_clk() argument 162 switch (clk_id) { in rk3368_mmc_get_clk() 253 ulong clk_id = clk->id; in rk3368_mmc_set_clk() local 259 switch (clk_id) { in rk3368_mmc_set_clk() 277 return rk3368_mmc_get_clk(cru, clk_id); in rk3368_mmc_set_clk() 378 static ulong rk3368_spi_get_clk(struct rk3368_cru *cru, ulong clk_id) in rk3368_spi_get_clk() argument 383 switch (clk_id) { in rk3368_spi_get_clk() 385 spiclk = &spi_clkregs[clk_id - SCLK_SPI0]; in rk3368_spi_get_clk() 389 pr_err("%s: SPI clk-id %ld not supported\n", __func__, clk_id); in rk3368_spi_get_clk() 400 static ulong rk3368_spi_set_clk(struct rk3368_cru *cru, ulong clk_id, uint hz) in rk3368_spi_set_clk() argument [all …]
|
D | clk_rv1108.c | 39 static inline int rv1108_pll_id(enum rk_clk_id clk_id) in rv1108_pll_id() argument 43 switch (clk_id) { in rv1108_pll_id() 46 id = clk_id - 1; in rv1108_pll_id() 52 printf("invalid pll id:%d\n", clk_id); in rv1108_pll_id() 61 enum rk_clk_id clk_id) in rkclk_pll_get_rate() argument 65 int pll_id = rv1108_pll_id(clk_id); in rkclk_pll_get_rate()
|
D | clk_rk3328.c | 206 static void rkclk_set_pll(struct rk3328_cru *cru, enum rk_clk_id clk_id, in rkclk_set_pll() argument 214 switch (clk_id) { in rkclk_set_pll() 329 static ulong rk3328_i2c_get_clk(struct rk3328_cru *cru, ulong clk_id) in rk3328_i2c_get_clk() argument 333 switch (clk_id) { in rk3328_i2c_get_clk() 358 static ulong rk3328_i2c_set_clk(struct rk3328_cru *cru, ulong clk_id, uint hz) in rk3328_i2c_set_clk() argument 365 switch (clk_id) { in rk3328_i2c_set_clk() 440 static ulong rk3328_mmc_get_clk(struct rk3328_cru *cru, uint clk_id) in rk3328_mmc_get_clk() argument 444 switch (clk_id) { in rk3328_mmc_get_clk() 467 ulong clk_id, ulong set_rate) in rk3328_mmc_set_clk() argument 472 switch (clk_id) { in rk3328_mmc_set_clk() [all …]
|
D | clk_rk3036.c | 44 static int rkclk_set_pll(struct rk3036_cru *cru, enum rk_clk_id clk_id, in rkclk_set_pll() argument 47 int pll_id = rk_pll_id(clk_id); in rkclk_set_pll() 170 enum rk_clk_id clk_id) in rkclk_pll_get_rate() argument 174 int pll_id = rk_pll_id(clk_id); in rkclk_pll_get_rate() 188 shift = clk_shift[clk_id]; in rkclk_pll_get_rate() 189 mask = clk_mask[clk_id]; in rkclk_pll_get_rate()
|
D | clk_rk322x.c | 41 static int rkclk_set_pll(struct rk322x_cru *cru, enum rk_clk_id clk_id, in rkclk_set_pll() argument 44 int pll_id = rk_pll_id(clk_id); in rkclk_set_pll() 171 enum rk_clk_id clk_id) in rkclk_pll_get_rate() argument 175 int pll_id = rk_pll_id(clk_id); in rkclk_pll_get_rate() 189 shift = clk_shift[clk_id]; in rkclk_pll_get_rate() 190 mask = clk_mask[clk_id]; in rkclk_pll_get_rate()
|
/external/python/cpython3/Modules/ |
D | timemodule.c | 191 int clk_id; in time_clock_gettime() local 194 if (!PyArg_ParseTuple(args, "i:clock_gettime", &clk_id)) { in time_clock_gettime() 198 ret = clock_gettime((clockid_t)clk_id, &tp); in time_clock_gettime() 215 int clk_id; in time_clock_gettime_ns() local 219 if (!PyArg_ParseTuple(args, "i:clock_gettime", &clk_id)) { in time_clock_gettime_ns() 223 ret = clock_gettime((clockid_t)clk_id, &ts); in time_clock_gettime_ns() 244 int clk_id; in time_clock_settime() local 250 if (!PyArg_ParseTuple(args, "iO:clock_settime", &clk_id, &obj)) in time_clock_settime() 259 ret = clock_settime((clockid_t)clk_id, &tp); in time_clock_settime() 275 int clk_id; in time_clock_settime_ns() local [all …]
|
/external/linux-kselftest/tools/testing/selftests/seccomp/ |
D | seccomp_benchmark.c | 19 unsigned long long timing(clockid_t clk_id, unsigned long long samples) in timing() argument 26 assert(clock_gettime(clk_id, &start) == 0); in timing() 31 assert(clock_gettime(clk_id, &finish) == 0); in timing()
|
/external/ltp/testcases/kernel/syscalls/nanosleep/ |
D | nanosleep01.c | 31 int sample_fn(int clk_id, long long usec) in sample_fn() argument 35 tst_timer_start(clk_id); in sample_fn()
|
/external/ltp/testcases/kernel/syscalls/pselect/ |
D | pselect01.c | 24 int sample_fn(int clk_id, long long usec) in sample_fn() argument 32 tst_timer_start(clk_id); in sample_fn()
|
/external/ltp/testcases/kernel/syscalls/poll/ |
D | poll02.c | 31 int sample_fn(int clk_id, long long usec) in sample_fn() argument 39 tst_timer_start(clk_id); in sample_fn()
|
/external/v8/src/base/platform/ |
D | time.cc | 56 V8_INLINE int64_t ClockNow(clockid_t clk_id) { 63 if (clk_id == CLOCK_THREAD_CPUTIME_ID) { 70 if (clock_gettime(clk_id, &ts) != 0) { 76 if (clk_id == CLOCK_THREAD_CPUTIME_ID) { 90 V8_INLINE bool IsHighResolutionTimer(clockid_t clk_id) { 95 ClockNow(clk_id) + 100 * v8::base::Time::kMicrosecondsPerMillisecond; 98 start = ClockNow(clk_id); 103 delta = ClockNow(clk_id) - start;
|
/external/ltp/testcases/kernel/syscalls/select/ |
D | select04.c | 31 static int sample_fn(int clk_id, long long usec) in sample_fn() argument 40 tst_timer_start(clk_id); in sample_fn()
|
/external/u-boot/arch/arm/include/asm/arch-rockchip/ |
D | clock.h | 36 static inline int rk_pll_id(enum rk_clk_id clk_id) in rk_pll_id() argument 38 return clk_id - 1; in rk_pll_id()
|
/external/ltp/testcases/kernel/syscalls/epoll_wait/ |
D | epoll_wait02.c | 35 int sample_fn(int clk_id, long long usec) in sample_fn() argument 39 tst_timer_start(clk_id); in sample_fn()
|
/external/ltp/testcases/kernel/syscalls/clock_getres/ |
D | clock_getres01.c | 39 clockid_t clk_id; member 60 TEST(clock_getres(tcase[i].clk_id, tcase[i].res)); in do_test()
|