/external/ltp/include/ |
D | tst_safe_clocks.h | 18 clockid_t clk_id, struct timespec *res) in safe_clock_getres() argument 22 rval = clock_getres(clk_id, res); in safe_clock_getres() 30 clockid_t clk_id, struct timespec *tp) in safe_clock_gettime() argument 34 rval = clock_gettime(clk_id, tp); in safe_clock_gettime() 42 clockid_t clk_id, struct timespec *tp) in safe_clock_settime() argument 46 rval = clock_settime(clk_id, tp); in safe_clock_settime() 53 clockid_t clk_id, struct timex *txc) in safe_clock_adjtime() argument 57 rval = tst_syscall(__NR_clock_adjtime, clk_id, txc); in safe_clock_adjtime() 65 #define SAFE_CLOCK_GETRES(clk_id, res)\ argument 66 safe_clock_getres(__FILE__, __LINE__, (clk_id), (res)) [all …]
|
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); 29 int tst_clock_settime(clockid_t clk_id, struct timespec *ts);
|
/external/ltp/lib/ |
D | tst_timer.c | 18 const char *tst_clock_name(clockid_t clk_id) in tst_clock_name() argument 20 switch (clk_id) { in tst_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 tst_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 | 17 int tst_clock_getres(clockid_t clk_id, struct timespec *res) in tst_clock_getres() argument 19 return syscall(SYS_clock_getres, clk_id, res); in tst_clock_getres() 22 int tst_clock_gettime(clockid_t clk_id, struct timespec *ts) in tst_clock_gettime() argument 24 return syscall(SYS_clock_gettime, clk_id, ts); in tst_clock_gettime() 27 int tst_clock_settime(clockid_t clk_id, struct timespec *ts) in tst_clock_settime() argument 29 return syscall(SYS_clock_settime, clk_id, ts); in tst_clock_settime()
|
/external/arm-trusted-firmware/plat/ti/k3/common/drivers/ti_sci/ |
D | ti_sci.h | 115 int ti_sci_clock_get(uint32_t dev_id, uint8_t clk_id, 118 int ti_sci_clock_idle(uint32_t dev_id, uint8_t clk_id); 119 int ti_sci_clock_put(uint32_t dev_id, uint8_t clk_id); 120 int ti_sci_clock_is_auto(uint32_t dev_id, uint8_t clk_id, 122 int ti_sci_clock_is_on(uint32_t dev_id, uint8_t clk_id, 124 int ti_sci_clock_is_off(uint32_t dev_id, uint8_t clk_id, 126 int ti_sci_clock_set_parent(uint32_t dev_id, uint8_t clk_id, 128 int ti_sci_clock_get_parent(uint32_t dev_id, uint8_t clk_id, 130 int ti_sci_clock_get_num_parents(uint32_t dev_id, uint8_t clk_id, 132 int ti_sci_clock_get_match_freq(uint32_t dev_id, uint8_t clk_id, [all …]
|
D | ti_sci.c | 633 int ti_sci_clock_set_state(uint32_t dev_id, uint8_t clk_id, in ti_sci_clock_set_state() argument 652 req.clk_id = clk_id; in ti_sci_clock_set_state() 676 int ti_sci_clock_get_state(uint32_t dev_id, uint8_t clk_id, in ti_sci_clock_get_state() argument 699 req.clk_id = clk_id; in ti_sci_clock_get_state() 728 int ti_sci_clock_get(uint32_t dev_id, uint8_t clk_id, in ti_sci_clock_get() argument 738 return ti_sci_clock_set_state(dev_id, clk_id, flags, in ti_sci_clock_get() 754 int ti_sci_clock_idle(uint32_t dev_id, uint8_t clk_id) in ti_sci_clock_idle() argument 756 return ti_sci_clock_set_state(dev_id, clk_id, 0, in ti_sci_clock_idle() 772 int ti_sci_clock_put(uint32_t dev_id, uint8_t clk_id) in ti_sci_clock_put() argument 774 return ti_sci_clock_set_state(dev_id, clk_id, 0, in ti_sci_clock_put() [all …]
|
D | ti_sci_protocol.h | 242 uint8_t clk_id; member 263 uint8_t clk_id; member 301 uint8_t clk_id; member 318 uint8_t clk_id; member 349 uint8_t clk_id; member 392 uint8_t clk_id; member 448 uint8_t clk_id; member 466 uint8_t clk_id; member
|
/external/arm-trusted-firmware/plat/xilinx/versal/pm_service/ |
D | pm_api_sys.h | 49 enum pm_ret_status pm_clock_enable(uint32_t clk_id); 50 enum pm_ret_status pm_clock_disable(uint32_t clk_id); 51 enum pm_ret_status pm_clock_get_state(uint32_t clk_id, uint32_t *state); 52 enum pm_ret_status pm_clock_set_divider(uint32_t clk_id, uint32_t divider); 53 enum pm_ret_status pm_clock_get_divider(uint32_t clk_id, uint32_t *divider); 54 enum pm_ret_status pm_clock_set_parent(uint32_t clk_id, uint32_t parent); 55 enum pm_ret_status pm_clock_get_parent(uint32_t clk_id, uint32_t *parent); 56 enum pm_ret_status pm_clock_get_rate(uint32_t clk_id, uint32_t *clk_rate); 57 enum pm_ret_status pm_pll_set_param(uint32_t clk_id, uint32_t param, 59 enum pm_ret_status pm_pll_get_param(uint32_t clk_id, uint32_t param, [all …]
|
D | pm_api_sys.c | 462 enum pm_ret_status pm_clock_enable(uint32_t clk_id) in pm_clock_enable() argument 467 PM_PACK_PAYLOAD2(payload, LIBPM_MODULE_ID, PM_CLOCK_ENABLE, clk_id); in pm_clock_enable() 478 enum pm_ret_status pm_clock_disable(uint32_t clk_id) in pm_clock_disable() argument 483 PM_PACK_PAYLOAD2(payload, LIBPM_MODULE_ID, PM_CLOCK_DISABLE, clk_id); in pm_clock_disable() 495 enum pm_ret_status pm_clock_get_state(uint32_t clk_id, uint32_t *state) in pm_clock_get_state() argument 500 PM_PACK_PAYLOAD2(payload, LIBPM_MODULE_ID, PM_CLOCK_GETSTATE, clk_id); in pm_clock_get_state() 512 enum pm_ret_status pm_clock_set_divider(uint32_t clk_id, uint32_t divider) in pm_clock_set_divider() argument 517 PM_PACK_PAYLOAD3(payload, LIBPM_MODULE_ID, PM_CLOCK_SETDIVIDER, clk_id, in pm_clock_set_divider() 530 enum pm_ret_status pm_clock_get_divider(uint32_t clk_id, uint32_t *divider) in pm_clock_get_divider() argument 535 PM_PACK_PAYLOAD2(payload, LIBPM_MODULE_ID, PM_CLOCK_GETDIVIDER, clk_id); in pm_clock_get_divider() [all …]
|
/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 | 29 clockid_t clk_id; /* clock_* clock type parameter */ member 47 .clk_id = CLOCK_REALTIME, 55 .clk_id = CLOCK_REALTIME, 63 .clk_id = CLOCK_THREAD_CPUTIME_ID, 71 .clk_id = CLOCK_REALTIME, 95 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/arm-trusted-firmware/plat/nvidia/tegra/drivers/bpmp_ipc/ |
D | intf.c | 301 int tegra_bpmp_ipc_enable_clock(uint32_t clk_id) in tegra_bpmp_ipc_enable_clock() argument 307 if (clk_id != TEGRA_CLK_SE) { in tegra_bpmp_ipc_enable_clock() 312 req.cmd_and_id = make_mrq_clk_cmd(CMD_CLK_ENABLE, clk_id); in tegra_bpmp_ipc_enable_clock() 318 clk_id, ret); in tegra_bpmp_ipc_enable_clock() 324 int tegra_bpmp_ipc_disable_clock(uint32_t clk_id) in tegra_bpmp_ipc_disable_clock() argument 330 if (clk_id != TEGRA_CLK_SE) { in tegra_bpmp_ipc_disable_clock() 335 req.cmd_and_id = make_mrq_clk_cmd(CMD_CLK_DISABLE, clk_id); in tegra_bpmp_ipc_disable_clock() 341 clk_id, ret); in tegra_bpmp_ipc_disable_clock()
|
/external/ltp/testcases/kernel/syscalls/clock_getres/ |
D | clock_getres01.c | 23 clockid_t clk_id; member 54 TEST(clock_getres(tcase[i].clk_id, res)); in do_test() 57 TEST(tst_syscall(__NR_clock_getres, tcase[i].clk_id, res)); in do_test() 60 TEST(tst_syscall(__NR_clock_getres, tcase[i].clk_id, NULL)); in do_test()
|
/external/python/cpython3/Modules/ |
D | timemodule.c | 178 long clk_id; local 179 if (!PyArg_ParseTuple(args, "l:clock_gettime", &clk_id)) { 181 int clk_id; 182 if (!PyArg_ParseTuple(args, "i:clock_gettime", &clk_id)) { 187 ret = clock_gettime((clockid_t)clk_id, &tp); 204 int clk_id; local 208 if (!PyArg_ParseTuple(args, "i:clock_gettime", &clk_id)) { 212 ret = clock_gettime((clockid_t)clk_id, &ts); 233 int clk_id; local 239 if (!PyArg_ParseTuple(args, "iO:clock_settime", &clk_id, &obj)) [all …]
|
/external/rust/crates/nix/src/ |
D | time.rs | 23 pub fn from_raw(clk_id: clockid_t) -> Self { in from_raw() 24 ClockId(clk_id) in from_raw() 195 fn from(clk_id: clockid_t) -> Self { in from() 196 ClockId::from_raw(clk_id) in from() 252 let mut clk_id: MaybeUninit<libc::clockid_t> = MaybeUninit::uninit(); in clock_getcpuclockid() localVariable 253 let ret = unsafe { libc::clock_getcpuclockid(pid.into(), clk_id.as_mut_ptr()) }; in clock_getcpuclockid() 255 let res = unsafe { clk_id.assume_init() }; in clock_getcpuclockid()
|
/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/clock_gettime/ |
D | clock_gettime01.c | 31 int (*func)(clockid_t clk_id, struct timespec *tp); 66 static int sys_clock_gettime(clockid_t clk_id, struct timespec *tp) in sys_clock_gettime() argument 68 return tst_syscall(__NR_clock_gettime, clk_id, tp); in sys_clock_gettime()
|
/external/arm-trusted-firmware/plat/nvidia/tegra/include/drivers/ |
D | bpmp_ipc.h | 35 int tegra_bpmp_ipc_enable_clock(uint32_t clk_id); 41 int tegra_bpmp_ipc_disable_clock(uint32_t clk_id);
|
/external/ltp/testcases/kernel/syscalls/nanosleep/ |
D | nanosleep01.c | 17 int sample_fn(int clk_id, long long usec) in sample_fn() argument 21 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/prctl/ |
D | prctl09.c | 17 int sample_fn(int clk_id, long long usec) in sample_fn() argument 21 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/ltp/testcases/kernel/syscalls/clock_adjtime/ |
D | clock_adjtime.h | 25 static int sys_clock_adjtime(clockid_t clk_id, struct timex *txc) in sys_clock_adjtime() argument 27 return tst_syscall(__NR_clock_adjtime, clk_id, txc); in sys_clock_adjtime()
|