Home
last modified time | relevance | path

Searched refs:clkid (Results 1 – 21 of 21) sorted by relevance

/linux-6.6.21/drivers/clk/meson/
Dmeson-aoclk.c43 int ret, clkid; in meson_aoclkc_probe() local
74 for (clkid = 0; clkid < data->num_clks; clkid++) in meson_aoclkc_probe()
75 data->clks[clkid]->map = regmap; in meson_aoclkc_probe()
78 for (clkid = 0; clkid < data->hw_clks.num; clkid++) { in meson_aoclkc_probe()
79 if (!data->hw_clks.hws[clkid]) in meson_aoclkc_probe()
82 ret = devm_clk_hw_register(dev, data->hw_clks.hws[clkid]); in meson_aoclkc_probe()
Da1-pll.c314 int clkid, i, err; in meson_a1_pll_probe() local
331 for (clkid = 0; clkid < a1_pll_clks.num; clkid++) { in meson_a1_pll_probe()
332 err = devm_clk_hw_register(dev, a1_pll_clks.hws[clkid]); in meson_a1_pll_probe()
336 clkid); in meson_a1_pll_probe()
Da1-peripherals.c2202 int clkid, i, err; in meson_a1_periphs_probe() local
2218 for (clkid = 0; clkid < a1_periphs_clks.num; clkid++) { in meson_a1_periphs_probe()
2219 err = devm_clk_hw_register(dev, a1_periphs_clks.hws[clkid]); in meson_a1_periphs_probe()
2223 clkid); in meson_a1_periphs_probe()
/linux-6.6.21/arch/csky/include/asm/vdso/
Dgettimeofday.h35 register clockid_t clkid asm("a0") = _clkid; in clock_gettime_fallback()
42 : "r"(clkid), "r"(ts), "r"(nr) in clock_gettime_fallback()
51 register clockid_t clkid asm("a0") = _clkid; in clock_gettime32_fallback()
58 : "r"(clkid), "r"(ts), "r"(nr) in clock_gettime32_fallback()
67 register clockid_t clkid asm("a0") = _clkid; in clock_getres_fallback()
74 : "r"(clkid), "r"(ts), "r"(nr) in clock_getres_fallback()
83 register clockid_t clkid asm("a0") = _clkid; in clock_getres32_fallback()
90 : "r"(clkid), "r"(ts), "r"(nr) in clock_getres32_fallback()
/linux-6.6.21/arch/arm/include/asm/vdso/
Dgettimeofday.h43 register clockid_t clkid asm("r0") = _clkid; in clock_gettime_fallback()
50 : "r" (clkid), "r" (ts), "r" (nr) in clock_gettime_fallback()
61 register clockid_t clkid asm("r0") = _clkid; in clock_gettime32_fallback()
68 : "r" (clkid), "r" (ts), "r" (nr) in clock_gettime32_fallback()
79 register clockid_t clkid asm("r0") = _clkid; in clock_getres_fallback()
86 : "r" (clkid), "r" (ts), "r" (nr) in clock_getres_fallback()
97 register clockid_t clkid asm("r0") = _clkid; in clock_getres32_fallback()
104 : "r" (clkid), "r" (ts), "r" (nr) in clock_getres32_fallback()
/linux-6.6.21/arch/arm64/include/asm/vdso/
Dcompat_gettimeofday.h42 register clockid_t clkid asm("r0") = _clkid; in clock_gettime_fallback()
49 : "r" (clkid), "r" (ts), "r" (nr) in clock_gettime_fallback()
59 register clockid_t clkid asm("r0") = _clkid; in clock_gettime32_fallback()
66 : "r" (clkid), "r" (ts), "r" (nr) in clock_gettime32_fallback()
76 register clockid_t clkid asm("r0") = _clkid; in clock_getres_fallback()
83 : "r" (clkid), "r" (ts), "r" (nr) in clock_getres_fallback()
93 register clockid_t clkid asm("r0") = _clkid; in clock_getres32_fallback()
100 : "r" (clkid), "r" (ts), "r" (nr) in clock_getres32_fallback()
Dgettimeofday.h39 register clockid_t clkid asm("x0") = _clkid; in clock_gettime_fallback()
46 : "r" (clkid), "r" (ts), "r" (nr) in clock_gettime_fallback()
56 register clockid_t clkid asm("x0") = _clkid; in clock_getres_fallback()
63 : "r" (clkid), "r" (ts), "r" (nr) in clock_getres_fallback()
/linux-6.6.21/arch/mips/include/asm/vdso/
Dgettimeofday.h56 register clockid_t clkid asm("a0") = _clkid; in clock_gettime_fallback()
68 : "r" (clkid), "r" (ts), "r" (nr) in clock_gettime_fallback()
82 register clockid_t clkid asm("a0") = _clkid; in clock_getres_fallback()
94 : "r" (clkid), "r" (ts), "r" (nr) in clock_getres_fallback()
110 register clockid_t clkid asm("a0") = _clkid; in clock_gettime32_fallback()
118 : "r" (clkid), "r" (ts), "r" (nr) in clock_gettime32_fallback()
132 register clockid_t clkid asm("a0") = _clkid; in clock_getres32_fallback()
140 : "r" (clkid), "r" (ts), "r" (nr) in clock_getres32_fallback()
/linux-6.6.21/arch/s390/include/asm/vdso/
Dgettimeofday.h37 long clock_gettime_fallback(clockid_t clkid, struct __kernel_timespec *ts) in clock_gettime_fallback() argument
39 return syscall2(__NR_clock_gettime, (long)clkid, (long)ts); in clock_gettime_fallback()
50 long clock_getres_fallback(clockid_t clkid, struct __kernel_timespec *ts) in clock_getres_fallback() argument
52 return syscall2(__NR_clock_getres, (long)clkid, (long)ts); in clock_getres_fallback()
/linux-6.6.21/arch/riscv/include/asm/vdso/
Dgettimeofday.h40 register clockid_t clkid asm("a0") = _clkid; in clock_gettime_fallback()
47 : "r"(clkid), "r"(ts), "r"(nr) in clock_gettime_fallback()
56 register clockid_t clkid asm("a0") = _clkid; in clock_getres_fallback()
63 : "r"(clkid), "r"(ts), "r"(nr) in clock_getres_fallback()
/linux-6.6.21/arch/loongarch/include/asm/vdso/
Dgettimeofday.h40 register clockid_t clkid asm("a0") = _clkid; in clock_gettime_fallback()
48 : "r" (nr), "r" (clkid), "r" (ts) in clock_gettime_fallback()
59 register clockid_t clkid asm("a0") = _clkid; in clock_getres_fallback()
67 : "r" (nr), "r" (clkid), "r" (ts) in clock_getres_fallback()
/linux-6.6.21/tools/testing/selftests/ptp/
Dtestptp.c171 clockid_t clkid; in main() local
295 clkid = get_clockid(fd); in main()
296 if (CLOCK_INVALID == clkid) { in main()
331 if (clock_adjtime(clkid, &tx)) { in main()
348 if (clock_adjtime(clkid, &tx) < 0) { in main()
360 if (clock_adjtime(clkid, &tx) < 0) { in main()
368 if (clock_gettime(clkid, &ts)) { in main()
378 if (clock_settime(clkid, &ts)) { in main()
386 clock_gettime(clkid, &ts); in main()
397 if (clock_settime(clkid, &ts)) { in main()
[all …]
/linux-6.6.21/kernel/time/
Dposix-cpu-timers.c194 static u64 cpu_clock_sample(const clockid_t clkid, struct task_struct *p) in cpu_clock_sample() argument
198 if (clkid == CPUCLOCK_SCHED) in cpu_clock_sample()
203 switch (clkid) { in cpu_clock_sample()
339 static u64 cpu_clock_sample_group(const clockid_t clkid, struct task_struct *p, in cpu_clock_sample_group() argument
355 return samples[clkid]; in cpu_clock_sample_group()
360 const clockid_t clkid = CPUCLOCK_WHICH(clock); in posix_cpu_clock_get() local
372 t = cpu_clock_sample(clkid, tsk); in posix_cpu_clock_get()
374 t = cpu_clock_sample_group(clkid, tsk, false); in posix_cpu_clock_get()
626 clockid_t clkid = CPUCLOCK_WHICH(timer->it_clock); in posix_cpu_timer_set() local
687 val = cpu_clock_sample(clkid, p); in posix_cpu_timer_set()
[all …]
/linux-6.6.21/drivers/ptp/
Dptp_ines.c140 u64 clkid; member
317 ts.clkid = ines_txts64(port, 4); in ines_find_txts()
437 u64 clkid; in ines_match() local
447 clkid = be64_to_cpup((__be64 *)&hdr->source_port_identity.clock_identity.id[0]); in ines_match()
456 if (ts->clkid != clkid) { in ines_match()
458 ts->clkid, clkid); in ines_match()
527 ts->clkid = ines_rxts64(port, 4); in ines_rxfifo_read()
/linux-6.6.21/drivers/firmware/arm_scmi/
Dclock.c576 int clkid, ret; in scmi_clock_protocol_init() local
599 for (clkid = 0; clkid < cinfo->num_clocks; clkid++) { in scmi_clock_protocol_init()
600 struct scmi_clock_info *clk = cinfo->clk + clkid; in scmi_clock_protocol_init()
602 ret = scmi_clock_attributes_get(ph, clkid, clk, version); in scmi_clock_protocol_init()
604 scmi_clock_describe_rates_get(ph, clkid, clk); in scmi_clock_protocol_init()
/linux-6.6.21/drivers/clk/imx/
Dclk-imx8-acm.c45 int clkid; member
369 hws[sels[i].clkid] = devm_clk_hw_register_mux_parent_data_table(dev, in imx8_acm_clk_probe()
375 if (IS_ERR(hws[sels[i].clkid])) { in imx8_acm_clk_probe()
376 ret = PTR_ERR(hws[sels[i].clkid]); in imx8_acm_clk_probe()
Dclk-imx8mp-audiomix.c146 int clkid; member
217 priv->hws[sels[i].clkid] = hw; in clk_imx8mp_audiomix_probe()
/linux-6.6.21/drivers/clk/tegra/
Dclk.c152 const struct tegra_clk_periph_regs *get_reg_bank(int clkid) in get_reg_bank() argument
154 int reg_bank = clkid / 32; in get_reg_bank()
Dclk.h851 const struct tegra_clk_periph_regs *get_reg_bank(int clkid);
/linux-6.6.21/drivers/input/
Devdev.c174 static int evdev_set_clk_type(struct evdev_client *client, unsigned int clkid) in evdev_set_clk_type() argument
179 switch (clkid) { in evdev_set_clk_type()
/linux-6.6.21/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega12_hwmgr.c987 PPCLK_e clkid, struct vega12_clock_range *clock) in vega12_get_all_clock_ranges_helper() argument
991 smum_send_msg_to_smc_with_parameter(hwmgr, PPSMC_MSG_GetMaxDpmFreq, (clkid << 16), in vega12_get_all_clock_ranges_helper()
998 smum_send_msg_to_smc_with_parameter(hwmgr, PPSMC_MSG_GetMinDpmFreq, (clkid << 16), in vega12_get_all_clock_ranges_helper()
1005 smum_send_msg_to_smc_with_parameter(hwmgr, PPSMC_MSG_GetDcModeMaxDpmFreq, (clkid << 16), in vega12_get_all_clock_ranges_helper()