Home
last modified time | relevance | path

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

12

/linux-6.12.1/tools/testing/selftests/timers/
Dset-timer-lat.c53 int clock_id; variable
102 clock_gettime(clock_id, &ts); in sigalarm()
118 clockstring(clock_id), in describe_timer()
123 int setup_timer(int clock_id, int flags, int interval, timer_t *tm1) in setup_timer() argument
139 err = timer_create(clock_id, &se, tm1); in setup_timer()
141 if ((clock_id == CLOCK_REALTIME_ALARM) || in setup_timer()
142 (clock_id == CLOCK_BOOTTIME_ALARM)) { in setup_timer()
144 clockstring(clock_id), in setup_timer()
149 printf("%s - timer_create() failed\n", clockstring(clock_id)); in setup_timer()
153 clock_gettime(clock_id, &start_time); in setup_timer()
[all …]
/linux-6.12.1/drivers/interconnect/qcom/
Dicc-rpm-clocks.c12 .clock_id = 1,
18 .clock_id = 2,
24 .clock_id = 0,
30 .clock_id = 1,
36 .clock_id = 0,
42 .clock_id = 1,
48 .clock_id = 2,
54 .clock_id = 0,
60 .clock_id = 1,
66 .clock_id = 0,
[all …]
/linux-6.12.1/sound/soc/qcom/qdsp6/
Dq6prm.c43 struct audio_hw_clk_cfg clock_id; member
49 struct audio_hw_clk_rel_cfg clock_id; member
137 req->clock_id.clock_id = clk_id; in q6prm_request_lpass_clock()
138 req->clock_id.clock_freq = freq; in q6prm_request_lpass_clock()
139 req->clock_id.clock_attri = clk_attr; in q6prm_request_lpass_clock()
140 req->clock_id.clock_root = clk_root; in q6prm_request_lpass_clock()
174 rel->clock_id.clock_id = clk_id; in q6prm_release_lpass_clock()
/linux-6.12.1/arch/mips/vdso/
Dvgettimeofday.c37 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres() argument
40 return __cvdso_clock_getres_time32(clock_id, res); in __vdso_clock_getres()
73 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres() argument
76 return __cvdso_clock_getres(clock_id, res); in __vdso_clock_getres()
/linux-6.12.1/tools/testing/selftests/vDSO/
Dvdso_test_clock_getres.c68 static inline int vdso_test_clock(unsigned int clock_id) in vdso_test_clock() argument
72 printf("clock_id: %s", vdso_clock_name[clock_id]); in vdso_test_clock()
73 clock_getres(clock_id, &x); in vdso_test_clock()
74 syscall_clock_getres(clock_id, &y); in vdso_test_clock()
Dvdso_test_abi.c169 static inline void vdso_test_clock(clockid_t clock_id) in vdso_test_clock() argument
171 ksft_print_msg("clock_id: %s\n", vdso_clock_name[clock_id]); in vdso_test_clock()
173 vdso_test_clock_gettime(clock_id); in vdso_test_clock()
175 vdso_test_clock_getres(clock_id); in vdso_test_clock()
/linux-6.12.1/arch/powerpc/kernel/vdso/
Dvgettimeofday.c15 int __c_kernel_clock_getres(clockid_t clock_id, struct __kernel_timespec *res, in __c_kernel_clock_getres() argument
18 return __cvdso_clock_getres_data(vd, clock_id, res); in __c_kernel_clock_getres()
33 int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res, in __c_kernel_clock_getres() argument
36 return __cvdso_clock_getres_time32_data(vd, clock_id, res); in __c_kernel_clock_getres()
/linux-6.12.1/arch/arm64/kernel/vdso/
Dvgettimeofday.c11 int __kernel_clock_getres(clockid_t clock_id, struct __kernel_timespec *res);
25 int __kernel_clock_getres(clockid_t clock_id, in __kernel_clock_getres() argument
28 return __cvdso_clock_getres(clock_id, res); in __kernel_clock_getres()
/linux-6.12.1/include/linux/firmware/
Dxlnx-zynqmp.h542 int zynqmp_pm_clock_enable(u32 clock_id);
543 int zynqmp_pm_clock_disable(u32 clock_id);
544 int zynqmp_pm_clock_getstate(u32 clock_id, u32 *state);
545 int zynqmp_pm_clock_setdivider(u32 clock_id, u32 divider);
546 int zynqmp_pm_clock_getdivider(u32 clock_id, u32 *divider);
547 int zynqmp_pm_clock_setparent(u32 clock_id, u32 parent_id);
548 int zynqmp_pm_clock_getparent(u32 clock_id, u32 *parent_id);
631 static inline int zynqmp_pm_clock_enable(u32 clock_id) in zynqmp_pm_clock_enable() argument
636 static inline int zynqmp_pm_clock_disable(u32 clock_id) in zynqmp_pm_clock_disable() argument
641 static inline int zynqmp_pm_clock_getstate(u32 clock_id, u32 *state) in zynqmp_pm_clock_getstate() argument
[all …]
/linux-6.12.1/drivers/dpll/
Ddpll_core.c243 dpll_device_alloc(const u64 clock_id, u32 device_idx, struct module *module) in dpll_device_alloc() argument
254 dpll->clock_id = clock_id; in dpll_device_alloc()
282 dpll_device_get(u64 clock_id, u32 device_idx, struct module *module) in dpll_device_get() argument
289 if (dpll->clock_id == clock_id && in dpll_device_get()
298 ret = dpll_device_alloc(clock_id, device_idx, module); in dpll_device_get()
483 dpll_pin_alloc(u64 clock_id, u32 pin_idx, struct module *module, in dpll_pin_alloc() argument
493 pin->clock_id = clock_id; in dpll_pin_alloc()
556 dpll_pin_get(u64 clock_id, u32 pin_idx, struct module *module, in dpll_pin_get() argument
564 if (pos->clock_id == clock_id && in dpll_pin_get()
573 ret = dpll_pin_alloc(clock_id, pin_idx, module, prop); in dpll_pin_get()
[all …]
Ddpll_netlink.c499 if (nla_put_64bit(msg, DPLL_A_PIN_CLOCK_ID, sizeof(pin->clock_id), in dpll_cmd_pin_get_one()
500 &pin->clock_id, DPLL_A_PIN_PAD)) in dpll_cmd_pin_get_one()
553 if (nla_put_64bit(msg, DPLL_A_CLOCK_ID, sizeof(dpll->clock_id), in dpll_device_get_one()
554 &dpll->clock_id, DPLL_A_PAD)) in dpll_device_get_one()
1179 dpll_pin_find(u64 clock_id, struct nlattr *mod_name_attr, in dpll_pin_find() argument
1192 cid_match = clock_id ? pin->clock_id == clock_id : true; in dpll_pin_find()
1227 u64 clock_id = 0; in dpll_pin_find_from_nlattr() local
1234 if (clock_id) in dpll_pin_find_from_nlattr()
1236 clock_id = nla_get_u64(attr); in dpll_pin_find_from_nlattr()
1267 if (!(clock_id || mod_name_attr || board_label_attr || in dpll_pin_find_from_nlattr()
[all …]
Ddpll_core.h31 u64 clock_id; member
55 u64 clock_id; member
/linux-6.12.1/kernel/time/
Dhrtimer.c431 static void __hrtimer_init(struct hrtimer *timer, clockid_t clock_id,
434 void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t clock_id, in hrtimer_init_on_stack() argument
438 __hrtimer_init(timer, clock_id, mode); in hrtimer_init_on_stack()
443 clockid_t clock_id, enum hrtimer_mode mode);
446 clockid_t clock_id, enum hrtimer_mode mode) in hrtimer_init_sleeper_on_stack() argument
449 __hrtimer_init_sleeper(sl, clock_id, mode); in hrtimer_init_sleeper_on_stack()
1535 static inline int hrtimer_clockid_to_base(clockid_t clock_id) in hrtimer_clockid_to_base() argument
1537 if (likely(clock_id < MAX_CLOCKS)) { in hrtimer_clockid_to_base()
1538 int base = hrtimer_clock_to_base_table[clock_id]; in hrtimer_clockid_to_base()
1543 WARN(1, "Invalid clockid %d. Using MONOTONIC\n", clock_id); in hrtimer_clockid_to_base()
[all …]
Ditimer.c47 static void get_cpu_itimer(struct task_struct *tsk, unsigned int clock_id, in get_cpu_itimer() argument
51 struct cpu_itimer *it = &tsk->signal->it[clock_id]; in get_cpu_itimer()
61 t = samples[clock_id]; in get_cpu_itimer()
168 static void set_cpu_itimer(struct task_struct *tsk, unsigned int clock_id, in set_cpu_itimer() argument
173 struct cpu_itimer *it = &tsk->signal->it[clock_id]; in set_cpu_itimer()
185 set_process_cpu_timer(tsk, clock_id, &nval, &oval); in set_cpu_itimer()
189 trace_itimer_state(clock_id == CPUCLOCK_VIRT ? in set_cpu_itimer()
/linux-6.12.1/tools/testing/selftests/bpf/
Dxdp_hw_metadata.c163 static __u64 gettime(clockid_t clock_id) in gettime() argument
169 res = clock_gettime(clock_id, &t); in gettime()
200 static void verify_xdp_metadata(void *data, clockid_t clock_id) in verify_xdp_metadata() argument
213 __u64 ref_tstamp = gettime(clock_id); in verify_xdp_metadata()
282 static bool complete_tx(struct xsk *xsk, clockid_t clock_id) in complete_tx() argument
299 __u64 ref_tstamp = gettime(clock_id); in complete_tx()
324 static void ping_pong(struct xsk *xsk, void *rx_packet, clockid_t clock_id) in ping_pong() argument
405 static int verify_metadata(struct xsk *rx_xsk, int rxq, int server_fd, clockid_t clock_id) in verify_metadata() argument
468 clock_id); in verify_metadata()
474 clock_id); in verify_metadata()
[all …]
/linux-6.12.1/arch/loongarch/vdso/
Dvgettimeofday.c20 int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res) in __vdso_clock_getres() argument
22 return __cvdso_clock_getres(clock_id, res); in __vdso_clock_getres()
/linux-6.12.1/arch/riscv/kernel/vdso/
Dvgettimeofday.c23 int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res) in __vdso_clock_getres() argument
25 return __cvdso_clock_getres(clock_id, res); in __vdso_clock_getres()
/linux-6.12.1/arch/csky/kernel/vdso/
Dvgettimeofday.c26 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres() argument
29 return __cvdso_clock_getres_time32(clock_id, res); in __vdso_clock_getres()
/linux-6.12.1/arch/arm/vdso/
Dvgettimeofday.c31 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres() argument
34 return __cvdso_clock_getres_time32(clock_id, res); in __vdso_clock_getres()
/linux-6.12.1/include/linux/
Dhrtimer.h231 extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, clockid_t clock_id,
238 clockid_t clock_id,
251 clockid_t clock_id, in hrtimer_init_sleeper_on_stack() argument
254 hrtimer_init_sleeper(sl, clock_id, mode); in hrtimer_init_sleeper_on_stack()
369 clockid_t clock_id);
/linux-6.12.1/arch/arm64/kernel/vdso32/
Dvgettimeofday.c29 int __vdso_clock_getres(clockid_t clock_id, in __vdso_clock_getres() argument
32 return __cvdso_clock_getres_time32(clock_id, res); in __vdso_clock_getres()
/linux-6.12.1/drivers/clk/zynqmp/
Dclkc.c226 static int zynqmp_pm_clock_get_name(u32 clock_id, in zynqmp_pm_clock_get_name() argument
234 qdata.arg1 = clock_id; in zynqmp_pm_clock_get_name()
262 static int zynqmp_pm_clock_get_topology(u32 clock_id, u32 index, in zynqmp_pm_clock_get_topology() argument
270 qdata.arg1 = clock_id; in zynqmp_pm_clock_get_topology()
359 static int zynqmp_pm_clock_get_parents(u32 clock_id, u32 index, in zynqmp_pm_clock_get_parents() argument
367 qdata.arg1 = clock_id; in zynqmp_pm_clock_get_parents()
385 static int zynqmp_pm_clock_get_attributes(u32 clock_id, in zynqmp_pm_clock_get_attributes() argument
393 qdata.arg1 = clock_id; in zynqmp_pm_clock_get_attributes()
/linux-6.12.1/drivers/firmware/xilinx/
Dzynqmp.c578 int zynqmp_pm_clock_enable(u32 clock_id) in zynqmp_pm_clock_enable() argument
580 return zynqmp_pm_invoke_fn(PM_CLOCK_ENABLE, NULL, 1, clock_id); in zynqmp_pm_clock_enable()
593 int zynqmp_pm_clock_disable(u32 clock_id) in zynqmp_pm_clock_disable() argument
595 return zynqmp_pm_invoke_fn(PM_CLOCK_DISABLE, NULL, 1, clock_id); in zynqmp_pm_clock_disable()
609 int zynqmp_pm_clock_getstate(u32 clock_id, u32 *state) in zynqmp_pm_clock_getstate() argument
614 ret = zynqmp_pm_invoke_fn(PM_CLOCK_GETSTATE, ret_payload, 1, clock_id); in zynqmp_pm_clock_getstate()
631 int zynqmp_pm_clock_setdivider(u32 clock_id, u32 divider) in zynqmp_pm_clock_setdivider() argument
633 return zynqmp_pm_invoke_fn(PM_CLOCK_SETDIVIDER, NULL, 2, clock_id, divider); in zynqmp_pm_clock_setdivider()
647 int zynqmp_pm_clock_getdivider(u32 clock_id, u32 *divider) in zynqmp_pm_clock_getdivider() argument
652 ret = zynqmp_pm_invoke_fn(PM_CLOCK_GETDIVIDER, ret_payload, 1, clock_id); in zynqmp_pm_clock_getdivider()
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Ddpll.c25 static int mlx5_dpll_clock_id_get(struct mlx5_core_dev *mdev, u64 *clock_id) in mlx5_dpll_clock_id_get() argument
35 *clock_id = MLX5_GET64(msecq_reg, out, local_clock_identity); in mlx5_dpll_clock_id_get()
341 u64 clock_id; in mlx5_dpll_probe() local
349 err = mlx5_dpll_clock_id_get(mdev, &clock_id); in mlx5_dpll_probe()
360 mdpll->dpll = dpll_device_get(clock_id, 0, THIS_MODULE); in mlx5_dpll_probe()
372 mdpll->dpll_pin = dpll_pin_get(clock_id, mlx5_get_dev_index(mdev), in mlx5_dpll_probe()
/linux-6.12.1/sound/usb/
Dclock.c273 int ret, i, cur, err, pins, clock_id; in __uac_clock_find_source() local
305 clock_id = GET_VAL(selector, proto, bClockID); in __uac_clock_find_source()
328 __func__, clock_id); in __uac_clock_find_source()
332 ret = uac_clock_selector_get_val(chip, clock_id, fmt->iface); in __uac_clock_find_source()
344 __func__, clock_id, ret); in __uac_clock_find_source()
367 __func__, clock_id, err); in __uac_clock_find_source()

12