Home
last modified time | relevance | path

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

/linux/drivers/clk/meson/
H A 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()
H A Da1-pll.c315 int clkid, i, err; in meson_a1_pll_probe() local
332 for (clkid = 0; clkid < a1_pll_clks.num; clkid++) { in meson_a1_pll_probe()
333 err = devm_clk_hw_register(dev, a1_pll_clks.hws[clkid]); in meson_a1_pll_probe()
337 clkid); in meson_a1_pll_probe()
H A Dc3-pll.c699 int clkid, ret, i; in c3_pll_probe() local
713 for (clkid = 0; clkid < c3_pll_clks.num; clkid++) { in c3_pll_probe()
715 if (!c3_pll_clks.hws[clkid]) in c3_pll_probe()
718 ret = devm_clk_hw_register(dev, c3_pll_clks.hws[clkid]); in c3_pll_probe()
H A Da1-peripherals.c2203 int clkid, i, err; in meson_a1_periphs_probe() local
2219 for (clkid = 0; clkid < a1_periphs_clks.num; clkid++) { in meson_a1_periphs_probe()
2220 err = devm_clk_hw_register(dev, a1_periphs_clks.hws[clkid]); in meson_a1_periphs_probe()
2224 clkid); in meson_a1_periphs_probe()
H A Dc3-peripherals.c2316 int clkid, ret, i; in c3_peripherals_probe() local
2330 for (clkid = 0; clkid < c3_periphs_clks.num; clkid++) { in c3_peripherals_probe()
2332 if (!c3_periphs_clks.hws[clkid]) in c3_peripherals_probe()
2335 ret = devm_clk_hw_register(dev, c3_periphs_clks.hws[clkid]); in c3_peripherals_probe()
/linux/arch/arm64/include/asm/vdso/
H A 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()
H A 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/drivers/clk/thead/
H A Dclk-th1520-ap.c37 int clkid; member
82 .clkid = _clkid, \
306 .clkid = CLK_CPU_PLL0,
318 .clkid = CLK_CPU_PLL1,
330 .clkid = CLK_GMAC_PLL,
350 .clkid = CLK_VIDEO_PLL,
370 .clkid = CLK_DPU0_PLL,
386 .clkid = CLK_DPU1_PLL,
402 .clkid = CLK_TEE_PLL,
420 .clkid = CLK_C910_I0,
[all …]
/linux/arch/mips/include/asm/vdso/
H A 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/arch/s390/include/asm/vdso/
H A Dgettimeofday.h34 long clock_gettime_fallback(clockid_t clkid, struct __kernel_timespec *ts) in clock_gettime_fallback() argument
36 return syscall2(__NR_clock_gettime, (long)clkid, (long)ts); in clock_gettime_fallback()
47 long clock_getres_fallback(clockid_t clkid, struct __kernel_timespec *ts) in clock_getres_fallback() argument
49 return syscall2(__NR_clock_getres, (long)clkid, (long)ts); in clock_getres_fallback()
/linux/arch/riscv/include/asm/vdso/
H A 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/tools/testing/selftests/ptp/
H A Dtestptp.c173 clockid_t clkid; in main()
317 clkid = get_clockid(fd); in main()
318 if (CLOCK_INVALID == clkid) { in main()
353 if (clock_adjtime(clkid, &tx)) { in main()
370 if (clock_adjtime(clkid, &tx) < 0) { in main()
382 if (clock_adjtime(clkid, &tx) < 0) { in main()
390 if (clock_gettime(clkid, &ts)) { in main()
400 if (clock_settime(clkid, &ts)) { in main()
408 clock_gettime(clkid, &ts); in main()
419 if (clock_settime(clkid, in main()
172 clockid_t clkid; main() local
[all...]
/linux/kernel/time/
H A 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 now = cpu_clock_sample(clkid, p); in posix_cpu_timer_set()
[all …]
/linux/drivers/clk/imx/
H A Dclk-imx8-acm.c45 int clkid; member
372 hws[sels[i].clkid] = devm_clk_hw_register_mux_parent_data_table(dev, in imx8_acm_clk_probe()
378 if (IS_ERR(hws[sels[i].clkid])) { in imx8_acm_clk_probe()
379 ret = PTR_ERR(hws[sels[i].clkid]); in imx8_acm_clk_probe()
389 if (sels[i].clkid == IMX_ADMA_ACM_AUD_CLK0_SEL) in imx8_acm_clk_probe()
392 if (sels[i].clkid == IMX_ADMA_ACM_AUD_CLK1_SEL) in imx8_acm_clk_probe()
H A Dclk-imx8mp-audiomix.c170 int clkid; member
356 clk_hw_data->hws[sels[i].clkid] = hw; in clk_imx8mp_audiomix_probe()
/linux/drivers/ptp/
H A Dptp_ines.c140 u64 clkid; member
317 ts.clkid = ines_txts64(port, 4); in ines_find_txts()
435 u64 clkid; in ines_match() local
445 clkid = be64_to_cpup((__be64 *)&hdr->source_port_identity.clock_identity.id[0]); in ines_match()
454 if (ts->clkid != clkid) { in ines_match()
456 ts->clkid, clkid); in ines_match()
525 ts->clkid = ines_rxts64(port, 4); in ines_rxfifo_read()
H A Dptp_ocp.c4686 u64 clkid; in ptp_ocp_probe() local
4739 clkid = pci_get_dsn(pdev); in ptp_ocp_probe()
4740 bp->dpll = dpll_device_get(clkid, 0, THIS_MODULE); in ptp_ocp_probe()
4752 bp->sma[i].dpll_pin = dpll_pin_get(clkid, i, THIS_MODULE, &bp->sma[i].dpll_prop); in ptp_ocp_probe()
/linux/drivers/firmware/arm_scmi/
H A Dclock.c1065 int clkid, ret; in scmi_clock_protocol_init() local
1088 for (clkid = 0; clkid < cinfo->num_clocks; clkid++) { in scmi_clock_protocol_init()
1089 struct scmi_clock_info *clk = cinfo->clk + clkid; in scmi_clock_protocol_init()
1091 ret = scmi_clock_attributes_get(ph, clkid, cinfo, version); in scmi_clock_protocol_init()
1093 scmi_clock_describe_rates_get(ph, clkid, clk); in scmi_clock_protocol_init()
/linux/drivers/clk/tegra/
H A 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()
H A Dclk.h851 const struct tegra_clk_periph_regs *get_reg_bank(int clkid);
/linux/Documentation/driver-api/
H A Ddpll.rst519 clkid = pci_get_dsn(pdev);
520 bp->dpll = dpll_device_get(clkid, 0, THIS_MODULE);
532 bp->sma[i].dpll_pin = dpll_pin_get(clkid, i, THIS_MODULE, &bp->sma[i].dpll_prop);
/linux/drivers/input/
H A 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/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A Dvega12_hwmgr.c997 PPCLK_e clkid, struct vega12_clock_range *clock) in vega12_get_all_clock_ranges_helper() argument
1001 smum_send_msg_to_smc_with_parameter(hwmgr, PPSMC_MSG_GetMaxDpmFreq, (clkid << 16), in vega12_get_all_clock_ranges_helper()
1008 smum_send_msg_to_smc_with_parameter(hwmgr, PPSMC_MSG_GetMinDpmFreq, (clkid << 16), in vega12_get_all_clock_ranges_helper()
1015 smum_send_msg_to_smc_with_parameter(hwmgr, PPSMC_MSG_GetDcModeMaxDpmFreq, (clkid << 16), in vega12_get_all_clock_ranges_helper()