Home
last modified time | relevance | path

Searched refs:osc (Results 1 – 14 of 14) sorted by relevance

/linux-4.19.296/drivers/clk/versatile/
Dclk-vexpress-osc.c29 #define to_vexpress_osc(osc) container_of(osc, struct vexpress_osc, hw) argument
34 struct vexpress_osc *osc = to_vexpress_osc(hw); in vexpress_osc_recalc_rate() local
37 regmap_read(osc->reg, 0, &rate); in vexpress_osc_recalc_rate()
45 struct vexpress_osc *osc = to_vexpress_osc(hw); in vexpress_osc_round_rate() local
47 if (osc->rate_min && rate < osc->rate_min) in vexpress_osc_round_rate()
48 rate = osc->rate_min; in vexpress_osc_round_rate()
50 if (osc->rate_max && rate > osc->rate_max) in vexpress_osc_round_rate()
51 rate = osc->rate_max; in vexpress_osc_round_rate()
59 struct vexpress_osc *osc = to_vexpress_osc(hw); in vexpress_osc_set_rate() local
61 return regmap_write(osc->reg, 0, rate); in vexpress_osc_set_rate()
[all …]
DMakefile5 obj-$(CONFIG_CLK_VEXPRESS_OSC) += clk-vexpress-osc.o
/linux-4.19.296/drivers/clk/at91/
Dsckc.c68 struct clk_slow_osc *osc = to_clk_slow_osc(hw); in clk_slow_osc_prepare() local
69 void __iomem *sckcr = osc->sckcr; in clk_slow_osc_prepare()
78 udelay(osc->startup_usec); in clk_slow_osc_prepare()
80 usleep_range(osc->startup_usec, osc->startup_usec + 1); in clk_slow_osc_prepare()
87 struct clk_slow_osc *osc = to_clk_slow_osc(hw); in clk_slow_osc_unprepare() local
88 void __iomem *sckcr = osc->sckcr; in clk_slow_osc_unprepare()
99 struct clk_slow_osc *osc = to_clk_slow_osc(hw); in clk_slow_osc_is_prepared() local
100 void __iomem *sckcr = osc->sckcr; in clk_slow_osc_is_prepared()
122 struct clk_slow_osc *osc; in at91_clk_register_slow_osc() local
130 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_slow_osc()
[all …]
Dclk-main.c76 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_prepare() local
77 struct regmap *regmap = osc->regmap; in clk_main_osc_prepare()
99 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_unprepare() local
100 struct regmap *regmap = osc->regmap; in clk_main_osc_unprepare()
116 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_is_prepared() local
117 struct regmap *regmap = osc->regmap; in clk_main_osc_is_prepared()
141 struct clk_main_osc *osc; in at91_clk_register_main_osc() local
149 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_main_osc()
150 if (!osc) in at91_clk_register_main_osc()
159 osc->hw.init = &init; in at91_clk_register_main_osc()
[all …]
/linux-4.19.296/drivers/rtc/
Drtc-rs5c372.c280 static int rs5c372_get_trim(struct i2c_client *client, int *osc, int *trim) in rs5c372_get_trim() argument
285 if (osc) in rs5c372_get_trim()
286 *osc = (tmp & RS5C372_TRIM_XSL) ? 32000 : 32768; in rs5c372_get_trim()
430 int err, osc, trim; in rs5c372_rtc_proc() local
432 err = rs5c372_get_trim(to_i2c_client(dev), &osc, &trim); in rs5c372_rtc_proc()
435 osc / 1000, osc % 1000); in rs5c372_rtc_proc()
473 int err, osc; in rs5c372_sysfs_show_osc() local
475 err = rs5c372_get_trim(to_i2c_client(dev), &osc, NULL); in rs5c372_sysfs_show_osc()
479 return sprintf(buf, "%d.%03d KHz\n", osc / 1000, osc % 1000); in rs5c372_sysfs_show_osc()
481 static DEVICE_ATTR(osc, S_IRUGO, rs5c372_sysfs_show_osc, NULL);
/linux-4.19.296/drivers/clk/tegra/
Dclk-tegra-fixed.c37 struct clk *clk, *osc; in tegra_osc_clk_init() local
55 osc = clk_register_fixed_rate(NULL, "osc", NULL, 0, *osc_freq); in tegra_osc_clk_init()
Dclk-pll.c1077 struct clk_hw *osc = clk_hw_get_parent(pll_ref); in clk_pllu_enable() local
1084 if (!osc) { in clk_pllu_enable()
1089 input_rate = clk_hw_get_rate(osc); in clk_pllu_enable()
1696 struct clk *osc = __clk_lookup("osc"); in clk_pllu_tegra114_enable() local
1702 if (!osc) { in clk_pllu_tegra114_enable()
1707 input_rate = clk_hw_get_rate(__clk_get_hw(osc)); in clk_pllu_tegra114_enable()
/linux-4.19.296/drivers/char/hw_random/
Dmxc-rnga.c107 u32 ctrl, osc; in mxc_rnga_init() local
115 osc = __raw_readl(mxc_rng->mem + RNGA_STATUS); in mxc_rnga_init()
116 if (osc & RNGA_STATUS_OSC_DEAD) { in mxc_rnga_init()
/linux-4.19.296/drivers/clk/sirf/
Dclk-atlas6.c62 rtc, osc, pll1, pll2, pll3, mem, sys, security, dsp, gps, enumerator
134 atlas6_clks[osc] = clk_register_fixed_rate(NULL, "osc", NULL, 0, in atlas6_clk_init()
Dclk-prima2.c61 rtc, osc, pll1, pll2, pll3, mem, sys, security, dsp, gps, enumerator
133 prima2_clks[osc] = clk_register_fixed_rate(NULL, "osc", NULL, 0, in prima2_clk_init()
/linux-4.19.296/drivers/media/tuners/
Dmax2165.c131 static int max2165_set_osc(struct max2165_priv *priv, u8 osc /*MHz*/) in max2165_set_osc() argument
135 v = (osc / 2); in max2165_set_osc()
/linux-4.19.296/drivers/clk/zte/
Dclk-zx296718.c127 PNAME(osc) = {
477 MUX(0, "timer_mux", osc, TOP_CLK_MUX9, 4, 1),
/linux-4.19.296/drivers/clk/imx/
Dclk-imx25.c66 dummy, osc, mpll, upll, mpll_cpu_3_4, cpu_sel, cpu, ahb, usb_div, ipg, enumerator
/linux-4.19.296/
DMAINTAINERS2221 F: drivers/clk/versatile/clk-vexpress-osc.c