osc 120 drivers/bluetooth/btmtkuart.c struct clk *osc; osc 916 drivers/bluetooth/btmtkuart.c bdev->osc = devm_clk_get_optional(&serdev->dev, "osc"); osc 917 drivers/bluetooth/btmtkuart.c if (IS_ERR(bdev->osc)) { osc 918 drivers/bluetooth/btmtkuart.c err = PTR_ERR(bdev->osc); osc 1016 drivers/bluetooth/btmtkuart.c err = clk_prepare_enable(bdev->osc); osc 1032 drivers/bluetooth/btmtkuart.c clk_disable_unprepare(bdev->osc); osc 1086 drivers/bluetooth/btmtkuart.c clk_disable_unprepare(bdev->osc); osc 102 drivers/char/hw_random/mxc-rnga.c u32 ctrl, osc; osc 110 drivers/char/hw_random/mxc-rnga.c osc = __raw_readl(mxc_rng->mem + RNGA_STATUS); osc 111 drivers/char/hw_random/mxc-rnga.c if (osc & RNGA_STATUS_OSC_DEAD) { osc 70 drivers/clk/at91/clk-main.c struct clk_main_osc *osc = to_clk_main_osc(hw); osc 71 drivers/clk/at91/clk-main.c struct regmap *regmap = osc->regmap; osc 93 drivers/clk/at91/clk-main.c struct clk_main_osc *osc = to_clk_main_osc(hw); osc 94 drivers/clk/at91/clk-main.c struct regmap *regmap = osc->regmap; osc 110 drivers/clk/at91/clk-main.c struct clk_main_osc *osc = to_clk_main_osc(hw); osc 111 drivers/clk/at91/clk-main.c struct regmap *regmap = osc->regmap; osc 135 drivers/clk/at91/clk-main.c struct clk_main_osc *osc; osc 143 drivers/clk/at91/clk-main.c osc = kzalloc(sizeof(*osc), GFP_KERNEL); osc 144 drivers/clk/at91/clk-main.c if (!osc) osc 153 drivers/clk/at91/clk-main.c osc->hw.init = &init; osc 154 drivers/clk/at91/clk-main.c osc->regmap = regmap; osc 162 drivers/clk/at91/clk-main.c hw = &osc->hw; osc 163 drivers/clk/at91/clk-main.c ret = clk_hw_register(NULL, &osc->hw); osc 165 drivers/clk/at91/clk-main.c kfree(osc); osc 183 drivers/clk/at91/clk-main.c struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); osc 184 drivers/clk/at91/clk-main.c struct regmap *regmap = osc->regmap; osc 202 drivers/clk/at91/clk-main.c struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); osc 203 drivers/clk/at91/clk-main.c struct regmap *regmap = osc->regmap; osc 217 drivers/clk/at91/clk-main.c struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); osc 218 drivers/clk/at91/clk-main.c struct regmap *regmap = osc->regmap; osc 230 drivers/clk/at91/clk-main.c struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); osc 232 drivers/clk/at91/clk-main.c return osc->frequency; osc 238 drivers/clk/at91/clk-main.c struct clk_main_rc_osc *osc = to_clk_main_rc_osc(hw); osc 240 drivers/clk/at91/clk-main.c return osc->accuracy; osc 256 drivers/clk/at91/clk-main.c struct clk_main_rc_osc *osc; osc 264 drivers/clk/at91/clk-main.c osc = kzalloc(sizeof(*osc), GFP_KERNEL); osc 265 drivers/clk/at91/clk-main.c if (!osc) osc 274 drivers/clk/at91/clk-main.c osc->hw.init = &init; osc 275 drivers/clk/at91/clk-main.c osc->regmap = regmap; osc 276 drivers/clk/at91/clk-main.c osc->frequency = frequency; osc 277 drivers/clk/at91/clk-main.c osc->accuracy = accuracy; osc 279 drivers/clk/at91/clk-main.c hw = &osc->hw; osc 282 drivers/clk/at91/clk-main.c kfree(osc); osc 70 drivers/clk/at91/sckc.c struct clk_slow_osc *osc = to_clk_slow_osc(hw); osc 71 drivers/clk/at91/sckc.c void __iomem *sckcr = osc->sckcr; osc 74 drivers/clk/at91/sckc.c if (tmp & (osc->bits->cr_osc32byp | osc->bits->cr_osc32en)) osc 77 drivers/clk/at91/sckc.c writel(tmp | osc->bits->cr_osc32en, sckcr); osc 80 drivers/clk/at91/sckc.c udelay(osc->startup_usec); osc 82 drivers/clk/at91/sckc.c usleep_range(osc->startup_usec, osc->startup_usec + 1); osc 89 drivers/clk/at91/sckc.c struct clk_slow_osc *osc = to_clk_slow_osc(hw); osc 90 drivers/clk/at91/sckc.c void __iomem *sckcr = osc->sckcr; osc 93 drivers/clk/at91/sckc.c if (tmp & osc->bits->cr_osc32byp) osc 96 drivers/clk/at91/sckc.c writel(tmp & ~osc->bits->cr_osc32en, sckcr); osc 101 drivers/clk/at91/sckc.c struct clk_slow_osc *osc = to_clk_slow_osc(hw); osc 102 drivers/clk/at91/sckc.c void __iomem *sckcr = osc->sckcr; osc 105 drivers/clk/at91/sckc.c if (tmp & osc->bits->cr_osc32byp) osc 108 drivers/clk/at91/sckc.c return !!(tmp & osc->bits->cr_osc32en); osc 125 drivers/clk/at91/sckc.c struct clk_slow_osc *osc; osc 133 drivers/clk/at91/sckc.c osc = kzalloc(sizeof(*osc), GFP_KERNEL); osc 134 drivers/clk/at91/sckc.c if (!osc) osc 143 drivers/clk/at91/sckc.c osc->hw.init = &init; osc 144 drivers/clk/at91/sckc.c osc->sckcr = sckcr; osc 145 drivers/clk/at91/sckc.c osc->startup_usec = startup; osc 146 drivers/clk/at91/sckc.c osc->bits = bits; osc 149 drivers/clk/at91/sckc.c writel((readl(sckcr) & ~osc->bits->cr_osc32en) | osc 150 drivers/clk/at91/sckc.c osc->bits->cr_osc32byp, sckcr); osc 152 drivers/clk/at91/sckc.c hw = &osc->hw; osc 153 drivers/clk/at91/sckc.c ret = clk_hw_register(NULL, &osc->hw); osc 155 drivers/clk/at91/sckc.c kfree(osc); osc 164 drivers/clk/at91/sckc.c struct clk_slow_osc *osc = to_clk_slow_osc(hw); osc 167 drivers/clk/at91/sckc.c kfree(osc); osc 173 drivers/clk/at91/sckc.c struct clk_slow_rc_osc *osc = to_clk_slow_rc_osc(hw); osc 175 drivers/clk/at91/sckc.c return osc->frequency; osc 181 drivers/clk/at91/sckc.c struct clk_slow_rc_osc *osc = to_clk_slow_rc_osc(hw); osc 183 drivers/clk/at91/sckc.c return osc->accuracy; osc 188 drivers/clk/at91/sckc.c struct clk_slow_rc_osc *osc = to_clk_slow_rc_osc(hw); osc 189 drivers/clk/at91/sckc.c void __iomem *sckcr = osc->sckcr; osc 191 drivers/clk/at91/sckc.c writel(readl(sckcr) | osc->bits->cr_rcen, sckcr); osc 194 drivers/clk/at91/sckc.c udelay(osc->startup_usec); osc 196 drivers/clk/at91/sckc.c usleep_range(osc->startup_usec, osc->startup_usec + 1); osc 203 drivers/clk/at91/sckc.c struct clk_slow_rc_osc *osc = to_clk_slow_rc_osc(hw); osc 204 drivers/clk/at91/sckc.c void __iomem *sckcr = osc->sckcr; osc 206 drivers/clk/at91/sckc.c writel(readl(sckcr) & ~osc->bits->cr_rcen, sckcr); osc 211 drivers/clk/at91/sckc.c struct clk_slow_rc_osc *osc = to_clk_slow_rc_osc(hw); osc 213 drivers/clk/at91/sckc.c return !!(readl(osc->sckcr) & osc->bits->cr_rcen); osc 232 drivers/clk/at91/sckc.c struct clk_slow_rc_osc *osc; osc 240 drivers/clk/at91/sckc.c osc = kzalloc(sizeof(*osc), GFP_KERNEL); osc 241 drivers/clk/at91/sckc.c if (!osc) osc 250 drivers/clk/at91/sckc.c osc->hw.init = &init; osc 251 drivers/clk/at91/sckc.c osc->sckcr = sckcr; osc 252 drivers/clk/at91/sckc.c osc->bits = bits; osc 253 drivers/clk/at91/sckc.c osc->frequency = frequency; osc 254 drivers/clk/at91/sckc.c osc->accuracy = accuracy; osc 255 drivers/clk/at91/sckc.c osc->startup_usec = startup; osc 257 drivers/clk/at91/sckc.c hw = &osc->hw; osc 258 drivers/clk/at91/sckc.c ret = clk_hw_register(NULL, &osc->hw); osc 260 drivers/clk/at91/sckc.c kfree(osc); osc 269 drivers/clk/at91/sckc.c struct clk_slow_rc_osc *osc = to_clk_slow_rc_osc(hw); osc 272 drivers/clk/at91/sckc.c kfree(osc); osc 531 drivers/clk/at91/sckc.c struct clk_sama5d4_slow_osc *osc = to_clk_sama5d4_slow_osc(hw); osc 533 drivers/clk/at91/sckc.c if (osc->prepared) osc 540 drivers/clk/at91/sckc.c if ((readl(osc->sckcr) & osc->bits->cr_oscsel)) { osc 541 drivers/clk/at91/sckc.c osc->prepared = true; osc 546 drivers/clk/at91/sckc.c udelay(osc->startup_usec); osc 548 drivers/clk/at91/sckc.c usleep_range(osc->startup_usec, osc->startup_usec + 1); osc 549 drivers/clk/at91/sckc.c osc->prepared = true; osc 556 drivers/clk/at91/sckc.c struct clk_sama5d4_slow_osc *osc = to_clk_sama5d4_slow_osc(hw); osc 558 drivers/clk/at91/sckc.c return osc->prepared; osc 574 drivers/clk/at91/sckc.c struct clk_sama5d4_slow_osc *osc; osc 592 drivers/clk/at91/sckc.c osc = kzalloc(sizeof(*osc), GFP_KERNEL); osc 593 drivers/clk/at91/sckc.c if (!osc) osc 602 drivers/clk/at91/sckc.c osc->hw.init = &init; osc 603 drivers/clk/at91/sckc.c osc->sckcr = regbase; osc 604 drivers/clk/at91/sckc.c osc->startup_usec = 1200000; osc 605 drivers/clk/at91/sckc.c osc->bits = &at91sama5d4_bits; osc 607 drivers/clk/at91/sckc.c ret = clk_hw_register(NULL, &osc->hw); osc 626 drivers/clk/at91/sckc.c clk_hw_unregister(&osc->hw); osc 628 drivers/clk/at91/sckc.c kfree(osc); osc 133 drivers/clk/sirf/clk-atlas6.c atlas6_clks[osc] = clk_register_fixed_rate(NULL, "osc", NULL, 0, osc 132 drivers/clk/sirf/clk-prima2.c prima2_clks[osc] = clk_register_fixed_rate(NULL, "osc", NULL, 0, osc 1075 drivers/clk/tegra/clk-pll.c struct clk_hw *osc = clk_hw_get_parent(pll_ref); osc 1082 drivers/clk/tegra/clk-pll.c if (!osc) { osc 1087 drivers/clk/tegra/clk-pll.c input_rate = clk_hw_get_rate(osc); osc 1701 drivers/clk/tegra/clk-pll.c struct clk *osc = __clk_lookup("osc"); osc 1707 drivers/clk/tegra/clk-pll.c if (!osc) { osc 1715 drivers/clk/tegra/clk-pll.c input_rate = clk_hw_get_rate(__clk_get_hw(osc)); osc 26 drivers/clk/tegra/clk-tegra-fixed.c struct clk *clk, *osc; osc 44 drivers/clk/tegra/clk-tegra-fixed.c osc = clk_register_fixed_rate(NULL, "osc", NULL, 0, *osc_freq); osc 22 drivers/clk/versatile/clk-vexpress-osc.c #define to_vexpress_osc(osc) container_of(osc, struct vexpress_osc, hw) osc 27 drivers/clk/versatile/clk-vexpress-osc.c struct vexpress_osc *osc = to_vexpress_osc(hw); osc 30 drivers/clk/versatile/clk-vexpress-osc.c regmap_read(osc->reg, 0, &rate); osc 38 drivers/clk/versatile/clk-vexpress-osc.c struct vexpress_osc *osc = to_vexpress_osc(hw); osc 40 drivers/clk/versatile/clk-vexpress-osc.c if (osc->rate_min && rate < osc->rate_min) osc 41 drivers/clk/versatile/clk-vexpress-osc.c rate = osc->rate_min; osc 43 drivers/clk/versatile/clk-vexpress-osc.c if (osc->rate_max && rate > osc->rate_max) osc 44 drivers/clk/versatile/clk-vexpress-osc.c rate = osc->rate_max; osc 52 drivers/clk/versatile/clk-vexpress-osc.c struct vexpress_osc *osc = to_vexpress_osc(hw); osc 54 drivers/clk/versatile/clk-vexpress-osc.c return regmap_write(osc->reg, 0, rate); osc 67 drivers/clk/versatile/clk-vexpress-osc.c struct vexpress_osc *osc; osc 71 drivers/clk/versatile/clk-vexpress-osc.c osc = devm_kzalloc(&pdev->dev, sizeof(*osc), GFP_KERNEL); osc 72 drivers/clk/versatile/clk-vexpress-osc.c if (!osc) osc 75 drivers/clk/versatile/clk-vexpress-osc.c osc->reg = devm_regmap_init_vexpress_config(&pdev->dev); osc 76 drivers/clk/versatile/clk-vexpress-osc.c if (IS_ERR(osc->reg)) osc 77 drivers/clk/versatile/clk-vexpress-osc.c return PTR_ERR(osc->reg); osc 81 drivers/clk/versatile/clk-vexpress-osc.c osc->rate_min = range[0]; osc 82 drivers/clk/versatile/clk-vexpress-osc.c osc->rate_max = range[1]; osc 93 drivers/clk/versatile/clk-vexpress-osc.c osc->hw.init = &init; osc 95 drivers/clk/versatile/clk-vexpress-osc.c clk = clk_register(NULL, &osc->hw); osc 100 drivers/clk/versatile/clk-vexpress-osc.c clk_hw_set_rate_range(&osc->hw, osc->rate_min, osc->rate_max); osc 124 drivers/clk/zte/clk-zx296718.c PNAME(osc) = { osc 474 drivers/clk/zte/clk-zx296718.c MUX(0, "timer_mux", osc, TOP_CLK_MUX9, 4, 1), osc 121 drivers/media/tuners/max2165.c static int max2165_set_osc(struct max2165_priv *priv, u8 osc /*MHz*/) osc 125 drivers/media/tuners/max2165.c v = (osc / 2); osc 994 drivers/mfd/twl-core.c struct clk *osc; osc 998 drivers/mfd/twl-core.c osc = clk_get(dev, "fck"); osc 999 drivers/mfd/twl-core.c if (IS_ERR(osc)) { osc 1005 drivers/mfd/twl-core.c rate = clk_get_rate(osc); osc 1006 drivers/mfd/twl-core.c clk_put(osc); osc 1924 drivers/pinctrl/tegra/pinctrl-tegra20.c FUNCTION(osc), osc 322 drivers/rtc/rtc-rs5c372.c static int rs5c372_get_trim(struct i2c_client *client, int *osc, int *trim) osc 327 drivers/rtc/rtc-rs5c372.c if (osc) osc 328 drivers/rtc/rtc-rs5c372.c *osc = (tmp & RS5C372_TRIM_XSL) ? 32000 : 32768; osc 472 drivers/rtc/rtc-rs5c372.c int err, osc, trim; osc 474 drivers/rtc/rtc-rs5c372.c err = rs5c372_get_trim(to_i2c_client(dev), &osc, &trim); osc 477 drivers/rtc/rtc-rs5c372.c osc / 1000, osc % 1000); osc 515 drivers/rtc/rtc-rs5c372.c int err, osc; osc 517 drivers/rtc/rtc-rs5c372.c err = rs5c372_get_trim(to_i2c_client(dev), &osc, NULL); osc 521 drivers/rtc/rtc-rs5c372.c return sprintf(buf, "%d.%03d KHz\n", osc / 1000, osc % 1000); osc 523 drivers/rtc/rtc-rs5c372.c static DEVICE_ATTR(osc, S_IRUGO, rs5c372_sysfs_show_osc, NULL); osc 3922 drivers/tty/synclink_gt.c unsigned int osc = info->base_clock; osc 3931 drivers/tty/synclink_gt.c div = osc/rate; osc 3932 drivers/tty/synclink_gt.c if (!(osc % rate) && div)