/drivers/clk/at91/ |
D | sckc.c | 70 struct clk_slow_osc *osc = to_clk_slow_osc(hw); in clk_slow_osc_prepare() local 71 void __iomem *sckcr = osc->sckcr; in clk_slow_osc_prepare() 74 if (tmp & (osc->bits->cr_osc32byp | osc->bits->cr_osc32en)) in clk_slow_osc_prepare() 77 writel(tmp | osc->bits->cr_osc32en, sckcr); in clk_slow_osc_prepare() 80 udelay(osc->startup_usec); in clk_slow_osc_prepare() 82 usleep_range(osc->startup_usec, osc->startup_usec + 1); in clk_slow_osc_prepare() 89 struct clk_slow_osc *osc = to_clk_slow_osc(hw); in clk_slow_osc_unprepare() local 90 void __iomem *sckcr = osc->sckcr; in clk_slow_osc_unprepare() 93 if (tmp & osc->bits->cr_osc32byp) in clk_slow_osc_unprepare() 96 writel(tmp & ~osc->bits->cr_osc32en, sckcr); in clk_slow_osc_unprepare() [all …]
|
D | clk-main.c | 73 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_prepare() local 74 struct regmap *regmap = osc->regmap; in clk_main_osc_prepare() 96 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_unprepare() local 97 struct regmap *regmap = osc->regmap; in clk_main_osc_unprepare() 113 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_is_prepared() local 114 struct regmap *regmap = osc->regmap; in clk_main_osc_is_prepared() 128 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_save_context() local 130 osc->pms.status = clk_main_osc_is_prepared(hw); in clk_main_osc_save_context() 137 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_restore_context() local 139 if (osc->pms.status) in clk_main_osc_restore_context() [all …]
|
/drivers/clk/versatile/ |
D | clk-vexpress-osc.c | 23 #define to_vexpress_osc(osc) container_of(osc, struct vexpress_osc, hw) argument 28 struct vexpress_osc *osc = to_vexpress_osc(hw); in vexpress_osc_recalc_rate() local 31 regmap_read(osc->reg, 0, &rate); in vexpress_osc_recalc_rate() 39 struct vexpress_osc *osc = to_vexpress_osc(hw); in vexpress_osc_round_rate() local 41 if (osc->rate_min && rate < osc->rate_min) in vexpress_osc_round_rate() 42 rate = osc->rate_min; in vexpress_osc_round_rate() 44 if (osc->rate_max && rate > osc->rate_max) in vexpress_osc_round_rate() 45 rate = osc->rate_max; in vexpress_osc_round_rate() 53 struct vexpress_osc *osc = to_vexpress_osc(hw); in vexpress_osc_set_rate() local 55 return regmap_write(osc->reg, 0, rate); in vexpress_osc_set_rate() [all …]
|
D | Makefile | 6 obj-$(CONFIG_CLK_VEXPRESS_OSC) += clk-vexpress-osc.o
|
/drivers/clocksource/ |
D | timer-tegra186.c | 90 struct clocksource osc; member 333 osc); in tegra186_timer_osc_read() 340 tegra->osc.name = "osc"; in tegra186_timer_osc_init() 341 tegra->osc.rating = 300; in tegra186_timer_osc_init() 342 tegra->osc.read = tegra186_timer_osc_read; in tegra186_timer_osc_init() 343 tegra->osc.mask = CLOCKSOURCE_MASK(32); in tegra186_timer_osc_init() 344 tegra->osc.flags = CLOCK_SOURCE_IS_CONTINUOUS; in tegra186_timer_osc_init() 346 return clocksource_register_hz(&tegra->osc, 38400000); in tegra186_timer_osc_init() 443 clocksource_unregister(&tegra->osc); in tegra186_timer_probe() 454 clocksource_unregister(&tegra->osc); in tegra186_timer_remove()
|
/drivers/rtc/ |
D | rtc-rs5c372.c | 324 static int rs5c372_get_trim(struct i2c_client *client, int *osc, int *trim) in rs5c372_get_trim() argument 329 if (osc) { in rs5c372_get_trim() 331 *osc = (tmp & RS5C372_TRIM_XSL) ? 32000 : 32768; in rs5c372_get_trim() 333 *osc = 32768; in rs5c372_get_trim() 478 int err, osc, trim; in rs5c372_rtc_proc() local 480 err = rs5c372_get_trim(to_i2c_client(dev), &osc, &trim); in rs5c372_rtc_proc() 483 osc / 1000, osc % 1000); in rs5c372_rtc_proc() 694 int err, osc; in rs5c372_sysfs_show_osc() local 696 err = rs5c372_get_trim(to_i2c_client(dev), &osc, NULL); in rs5c372_sysfs_show_osc() 700 return sprintf(buf, "%d.%03d KHz\n", osc / 1000, osc % 1000); in rs5c372_sysfs_show_osc() [all …]
|
/drivers/net/can/spi/mcp251xfd/ |
D | mcp251xfd-core.c | 125 mcp251xfd_get_osc_str(const u32 osc, const u32 osc_reference) in mcp251xfd_get_osc_str() argument 127 switch (~osc & osc_reference & in mcp251xfd_get_osc_str() 232 u32 con = 0, con_reqop, osc = 0; in __mcp251xfd_chip_set_mode() local 267 regmap_read(priv->map_reg, MCP251XFD_REG_OSC, &osc); in __mcp251xfd_chip_set_mode() 272 con, osc); in __mcp251xfd_chip_set_mode() 282 con, osc); in __mcp251xfd_chip_set_mode() 305 u32 osc; in mcp251xfd_chip_wait_for_osc_ready() local 308 err = regmap_read_poll_timeout(priv->map_reg, MCP251XFD_REG_OSC, osc, in mcp251xfd_chip_wait_for_osc_ready() 309 !mcp251xfd_reg_invalid(osc) && in mcp251xfd_chip_wait_for_osc_ready() 310 (osc & osc_mask) == osc_reference, in mcp251xfd_chip_wait_for_osc_ready() [all …]
|
/drivers/clk/tegra/ |
D | clk-tegra-fixed.c | 30 struct clk *clk, *osc; in tegra_osc_clk_init() local 53 osc = clk_register_fixed_rate(NULL, "osc", NULL, 0, *osc_freq); in tegra_osc_clk_init() 54 *dt_clk = osc; in tegra_osc_clk_init()
|
D | clk-pll.c | 1120 struct clk_hw *osc = clk_hw_get_parent(pll_ref); in clk_pllu_enable() local 1127 if (!osc) { in clk_pllu_enable() 1132 input_rate = clk_hw_get_rate(osc); in clk_pllu_enable() 1744 struct clk *osc = __clk_lookup("osc"); in clk_pllu_tegra114_enable() local 1750 if (!osc) { in clk_pllu_tegra114_enable() 1755 input_rate = clk_hw_get_rate(__clk_get_hw(osc)); in clk_pllu_tegra114_enable()
|
/drivers/char/hw_random/ |
D | mxc-rnga.c | 102 u32 ctrl, osc; in mxc_rnga_init() local 110 osc = __raw_readl(mxc_rng->mem + RNGA_STATUS); in mxc_rnga_init() 111 if (osc & RNGA_STATUS_OSC_DEAD) { in mxc_rnga_init()
|
/drivers/mfd/ |
D | twl-core.c | 628 struct clk *osc; in clocks_init() local 632 osc = clk_get(dev, "fck"); in clocks_init() 633 if (IS_ERR(osc)) { in clocks_init() 639 rate = clk_get_rate(osc); in clocks_init() 640 clk_put(osc); in clocks_init()
|
/drivers/bluetooth/ |
D | btmtkuart.c | 59 struct clk *osc; member 776 bdev->osc = devm_clk_get_optional(&serdev->dev, "osc"); in btmtkuart_parse_dt() 777 if (IS_ERR(bdev->osc)) { in btmtkuart_parse_dt() 778 err = PTR_ERR(bdev->osc); in btmtkuart_parse_dt() 877 err = clk_prepare_enable(bdev->osc); in btmtkuart_probe() 935 clk_disable_unprepare(bdev->osc); in btmtkuart_probe() 949 clk_disable_unprepare(bdev->osc); in btmtkuart_remove()
|
/drivers/media/tuners/ |
D | max2165.c | 121 static int max2165_set_osc(struct max2165_priv *priv, u8 osc /*MHz*/) in max2165_set_osc() argument 125 v = (osc / 2); in max2165_set_osc()
|
/drivers/clk/imx/ |
D | clk-imx25.c | 54 dummy, osc, mpll, upll, mpll_cpu_3_4, cpu_sel, cpu, ahb, usb_div, ipg, enumerator
|
/drivers/soc/tegra/ |
D | pmc.c | 3254 u32 value, osc, pmu, off; in tegra20_pmc_init() local 3283 osc = DIV_ROUND_UP(pmc->core_osc_time * 8192, 1000000); in tegra20_pmc_init() 3286 tegra_pmc_writel(pmc, ((osc << 8) & 0xff00) | (pmu & 0xff), in tegra20_pmc_init()
|
/drivers/tty/ |
D | synclink_gt.c | 3830 unsigned int osc = info->base_clock; in set_rate() local 3839 div = osc/rate; in set_rate() 3840 if (!(osc % rate) && div) in set_rate()
|
/drivers/pinctrl/tegra/ |
D | pinctrl-tegra20.c | 1921 FUNCTION(osc),
|