Home
last modified time | relevance | path

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

12

/openbmc/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.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()
H A 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()
/openbmc/u-boot/arch/arm/mach-tegra/
H A Dclock.c76 assert(clock_id_is_pll(clkid)); in get_pll()
81 return &clkrst->crc_pll[clkid]; in get_pll()
96 assert(clkid != CLOCK_ID_USB); in clock_ll_read_pll()
99 if (!clock_id_is_pll(clkid) || clkid == CLOCK_ID_USB) in clock_ll_read_pll()
122 pll = get_pll(clkid); in clock_start_pll()
268 if (!clock_id_is_pll(clkid)) in clock_set_pllout()
490 clock_set_enable(clkid, 1); in clock_enable()
495 clock_set_enable(clkid, 0); in clock_disable()
540 if (clkid == CLOCK_ID_OSC) in clock_get_rate()
546 pll = get_pll(clkid); in clock_get_rate()
[all …]
/openbmc/linux/arch/csky/include/asm/vdso/
H A 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()
/openbmc/linux/arch/arm/include/asm/vdso/
H A 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()
/openbmc/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()
/openbmc/u-boot/drivers/clk/renesas/
H A Drenesas-cpg-mssr.c72 const unsigned long clkid = clk->id & 0xffff; in renesas_clk_get_mod() local
77 (info->mod_clk_base + MOD_CLK_PACK(clkid))) in renesas_clk_get_mod()
90 const unsigned long clkid = clk->id & 0xffff; in renesas_clk_get_core() local
94 if (info->core_clk[i].id != clkid) in renesas_clk_get_core()
135 const unsigned long clkid = clk->id & 0xffff; in renesas_clk_endisable() local
136 const unsigned int reg = clkid / 100; in renesas_clk_endisable()
137 const unsigned int bit = clkid % 100; in renesas_clk_endisable()
144 clkid, reg, bit, enable ? "ON" : "OFF"); in renesas_clk_endisable()
/openbmc/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()
/openbmc/u-boot/arch/arm/include/asm/arch-tegra/
H A Dclock.h73 int clock_set_pllout(enum clock_id clkid, enum pll_out_id pllout,
88 int clock_ll_read_pll(enum clock_id clkid, u32 *divm, u32 *divn,
96 void clock_enable(enum periph_id clkid);
103 void clock_disable(enum periph_id clkid);
111 void clock_set_enable(enum periph_id clkid, int enable);
245 unsigned clock_get_rate(enum clock_id clkid);
297 struct clk_pll_simple *clock_get_simple_pll(enum clock_id clkid);
371 int clock_set_rate(enum clock_id clkid, u32 n, u32 m, u32 p, u32 cpcon);
/openbmc/linux/arch/s390/include/asm/vdso/
H A 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()
/openbmc/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()
/openbmc/linux/arch/loongarch/include/asm/vdso/
H A 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()
/openbmc/linux/tools/testing/selftests/ptp/
H A 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 …]
/openbmc/linux/kernel/time/
H A Dposix-cpu-timers.c198 if (clkid == CPUCLOCK_SCHED) in cpu_clock_sample()
203 switch (clkid) { in cpu_clock_sample()
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()
687 val = cpu_clock_sample(clkid, p); in posix_cpu_timer_set()
689 val = cpu_clock_sample_group(clkid, p, true); in posix_cpu_timer_set()
812 now = cpu_clock_sample(clkid, p); in posix_cpu_timer_get()
1069 now = cpu_clock_sample(clkid, p); in posix_cpu_timer_rearm()
[all …]
/openbmc/linux/drivers/ptp/
H A 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()
/openbmc/linux/drivers/firmware/arm_scmi/
H A 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()
/openbmc/linux/drivers/clk/imx/
H A 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()
H A Dclk-imx8mp-audiomix.c160 int clkid; member
231 priv->hws[sels[i].clkid] = hw; in clk_imx8mp_audiomix_probe()
/openbmc/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);
/openbmc/u-boot/arch/arm/mach-tegra/tegra124/
H A Dclock.c1149 struct clk_pll_simple *clock_get_simple_pll(enum clock_id clkid) in clock_get_simple_pll() argument
1154 if (clkid == CLOCK_ID_DP) in clock_get_simple_pll()
/openbmc/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()
/openbmc/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()

12