clkin 561 drivers/clk/clk-aspeed.c u32 val, div, clkin, hpll; clkin 575 drivers/clk/clk-aspeed.c clkin = 25000000; clkin 578 drivers/clk/clk-aspeed.c clkin = 48000000; clkin 581 drivers/clk/clk-aspeed.c clkin = 24000000; clkin 584 drivers/clk/clk-aspeed.c hw = clk_hw_register_fixed_rate(NULL, "clkin", NULL, 0, clkin); clkin 585 drivers/clk/clk-aspeed.c pr_debug("clkin @%u MHz\n", clkin / 1000000); clkin 82 drivers/clk/clk-cdce706.c struct cdce706_hw_data clkin[1]; clkin 310 drivers/clk/clk-cdce706.c struct clk *gp_clk = cdce->clkin_clk[cdce->clkin[0].parent]; clkin 501 drivers/clk/clk-cdce706.c cdce->clkin[0].parent = !!(clock & CDCE706_CLKIN_CLOCK_MASK); clkin 504 drivers/clk/clk-cdce706.c ret = cdce706_register_hw(cdce, cdce->clkin, clkin 505 drivers/clk/clk-cdce706.c ARRAY_SIZE(cdce->clkin), clkin 59 drivers/clk/clk-si5351.c struct clk_hw clkin; clkin 246 drivers/clk/clk-si5351.c container_of(hw, struct si5351_driver_data, clkin); clkin 255 drivers/clk/clk-si5351.c container_of(hw, struct si5351_driver_data, clkin); clkin 269 drivers/clk/clk-si5351.c container_of(hw, struct si5351_driver_data, clkin); clkin 1495 drivers/clk/clk-si5351.c drvdata->clkin.init = &init; clkin 1496 drivers/clk/clk-si5351.c ret = devm_clk_hw_register(&client->dev, &drvdata->clkin); clkin 220 drivers/gpu/drm/omapdrm/dss/dpi.c unsigned long clkin; clkin 226 drivers/gpu/drm/omapdrm/dss/dpi.c clkin = clk_get_rate(dpi->pll->clkin); clkin 237 drivers/gpu/drm/omapdrm/dss/dpi.c return dss_pll_calc_a(ctx->dpi->pll, clkin, clkin 241 drivers/gpu/drm/omapdrm/dss/dpi.c dss_pll_calc_b(dpi->pll, clkin, pck, &ctx->pll_cinfo); clkin 1398 drivers/gpu/drm/omapdrm/dss/dsi.c seq_printf(s, "dsi pll clkin\t%lu\n", clk_get_rate(pll->clkin)); clkin 4351 drivers/gpu/drm/omapdrm/dss/dsi.c unsigned long clkin; clkin 4356 drivers/gpu/drm/omapdrm/dss/dsi.c clkin = clk_get_rate(dsi->pll.clkin); clkin 4381 drivers/gpu/drm/omapdrm/dss/dsi.c return dss_pll_calc_a(ctx->pll, clkin, clkin 4653 drivers/gpu/drm/omapdrm/dss/dsi.c unsigned long clkin; clkin 4660 drivers/gpu/drm/omapdrm/dss/dsi.c clkin = clk_get_rate(dsi->pll.clkin); clkin 4685 drivers/gpu/drm/omapdrm/dss/dsi.c return dss_pll_calc_a(ctx->pll, clkin, clkin 5029 drivers/gpu/drm/omapdrm/dss/dsi.c pll->clkin = clk; clkin 182 drivers/gpu/drm/omapdrm/dss/dss.h struct clk *clkin; clkin 460 drivers/gpu/drm/omapdrm/dss/dss.h bool dss_pll_calc_a(const struct dss_pll *pll, unsigned long clkin, clkin 464 drivers/gpu/drm/omapdrm/dss/dss.h bool dss_pll_calc_b(const struct dss_pll *pll, unsigned long clkin, clkin 171 drivers/gpu/drm/omapdrm/dss/hdmi4.c dss_pll_calc_b(&hdmi->pll.pll, clk_get_rate(hdmi->pll.pll.clkin), clkin 165 drivers/gpu/drm/omapdrm/dss/hdmi5.c dss_pll_calc_b(&hdmi->pll.pll, clk_get_rate(hdmi->pll.pll.clkin), clkin 145 drivers/gpu/drm/omapdrm/dss/hdmi_pll.c pll->clkin = clk; clkin 127 drivers/gpu/drm/omapdrm/dss/pll.c r = clk_prepare_enable(pll->clkin); clkin 147 drivers/gpu/drm/omapdrm/dss/pll.c clk_disable_unprepare(pll->clkin); clkin 158 drivers/gpu/drm/omapdrm/dss/pll.c clk_disable_unprepare(pll->clkin); clkin 205 drivers/gpu/drm/omapdrm/dss/pll.c bool dss_pll_calc_a(const struct dss_pll *pll, unsigned long clkin, clkin 221 drivers/gpu/drm/omapdrm/dss/pll.c n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); clkin 222 drivers/gpu/drm/omapdrm/dss/pll.c n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); clkin 233 drivers/gpu/drm/omapdrm/dss/pll.c fint = clkin / n; clkin 266 drivers/gpu/drm/omapdrm/dss/pll.c bool dss_pll_calc_b(const struct dss_pll *pll, unsigned long clkin, clkin 275 drivers/gpu/drm/omapdrm/dss/pll.c DSSDBG("clkin %lu, target clkout %lu\n", clkin, target_clkout); clkin 278 drivers/gpu/drm/omapdrm/dss/pll.c n = DIV_ROUND_UP(clkin, hw->fint_max); clkin 279 drivers/gpu/drm/omapdrm/dss/pll.c fint = clkin / n; clkin 181 drivers/gpu/drm/omapdrm/dss/video-pll.c pll->clkin = clk; clkin 281 drivers/hwmon/w83795.c static unsigned int pwm_freq_from_reg(u8 reg, u16 clkin) clkin 286 drivers/hwmon/w83795.c base_clock = clkin * 1000 / ((clkin == 48000) ? 384 : 256); clkin 292 drivers/hwmon/w83795.c static u8 pwm_freq_to_reg(unsigned long val, u16 clkin) clkin 306 drivers/hwmon/w83795.c base_clock = clkin * 1000 / ((clkin == 48000) ? 384 : 256); clkin 363 drivers/hwmon/w83795.c u16 clkin; /* CLKIN frequency in kHz */ clkin 843 drivers/hwmon/w83795.c val = pwm_freq_from_reg(data->pwm[index][nr], data->clkin); clkin 874 drivers/hwmon/w83795.c val = pwm_freq_to_reg(val, data->clkin); clkin 1859 drivers/hwmon/w83795.c static const u16 clkin[4] = { /* in kHz */ clkin 1875 drivers/hwmon/w83795.c data->clkin = clkin[(config >> 3) & 0x3]; clkin 1876 drivers/hwmon/w83795.c dev_dbg(&client->dev, "clkin = %u kHz\n", data->clkin); clkin 282 drivers/i2c/busses/i2c-exynos5.c unsigned int clkin = clk_get_rate(i2c->clk); clkin 304 drivers/i2c/busses/i2c-exynos5.c temp = clkin / op_clk - 8 - t_ftl_cycle; clkin 798 drivers/i2c/busses/i2c-s3c2410.c static int s3c24xx_i2c_calcdivisor(unsigned long clkin, unsigned int wanted, clkin 801 drivers/i2c/busses/i2c-s3c2410.c unsigned int calc_divs = clkin / wanted; clkin 820 drivers/i2c/busses/i2c-s3c2410.c return clkin / (calc_divs * calc_div1); clkin 831 drivers/i2c/busses/i2c-s3c2410.c unsigned long clkin = clk_get_rate(i2c->clk); clkin 837 drivers/i2c/busses/i2c-s3c2410.c i2c->clkrate = clkin; clkin 838 drivers/i2c/busses/i2c-s3c2410.c clkin /= 1000; /* clkin now in KHz */ clkin 846 drivers/i2c/busses/i2c-s3c2410.c freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); clkin 873 drivers/i2c/busses/i2c-s3c2410.c sda_delay = clkin * pdata->sda_delay; clkin 271 drivers/iio/adc/meson_saradc.c struct clk *clkin; clkin 665 drivers/iio/adc/meson_saradc.c clk_parents[0] = __clk_get_name(priv->clkin); clkin 895 drivers/iio/adc/meson_saradc.c ret = clk_set_parent(priv->adc_sel_clk, priv->clkin); clkin 1236 drivers/iio/adc/meson_saradc.c priv->clkin = devm_clk_get(&pdev->dev, "clkin"); clkin 1237 drivers/iio/adc/meson_saradc.c if (IS_ERR(priv->clkin)) { clkin 1239 drivers/iio/adc/meson_saradc.c return PTR_ERR(priv->clkin); clkin 39 drivers/iio/frequency/adf4350.c unsigned long clkin; clkin 122 drivers/iio/frequency/adf4350.c st->fpfd = (st->clkin * (pdata->ref_doubler_en ? 2 : 1)) / clkin 279 drivers/iio/frequency/adf4350.c st->clkin = readin; clkin 328 drivers/iio/frequency/adf4350.c st->clkin = clk_get_rate(st->clk); clkin 330 drivers/iio/frequency/adf4350.c val = st->clkin; clkin 513 drivers/iio/frequency/adf4350.c if (!pdata->clkin) { clkin 554 drivers/iio/frequency/adf4350.c st->clkin = clk_get_rate(clk); clkin 556 drivers/iio/frequency/adf4350.c st->clkin = pdata->clkin; clkin 160 drivers/iio/frequency/adf4371.c struct clk *clkin; clkin 547 drivers/iio/frequency/adf4371.c clk_disable_unprepare(st->clkin); clkin 583 drivers/iio/frequency/adf4371.c st->clkin = devm_clk_get(&spi->dev, "clkin"); clkin 584 drivers/iio/frequency/adf4371.c if (IS_ERR(st->clkin)) clkin 585 drivers/iio/frequency/adf4371.c return PTR_ERR(st->clkin); clkin 587 drivers/iio/frequency/adf4371.c ret = clk_prepare_enable(st->clkin); clkin 595 drivers/iio/frequency/adf4371.c st->clkin_freq = clk_get_rate(st->clkin); clkin 222 drivers/video/fbdev/omap2/omapfb/dss/dpi.c unsigned long clkin; clkin 233 drivers/video/fbdev/omap2/omapfb/dss/dpi.c clkin = clk_get_rate(ctx->pll->clkin); clkin 235 drivers/video/fbdev/omap2/omapfb/dss/dpi.c return dss_pll_calc(ctx->pll, clkin, clkin 1478 drivers/video/fbdev/omap2/omapfb/dss/dsi.c seq_printf(s, "dsi pll clkin\t%lu\n", clk_get_rate(pll->clkin)); clkin 4453 drivers/video/fbdev/omap2/omapfb/dss/dsi.c unsigned long clkin; clkin 4458 drivers/video/fbdev/omap2/omapfb/dss/dsi.c clkin = clk_get_rate(dsi->pll.clkin); clkin 4483 drivers/video/fbdev/omap2/omapfb/dss/dsi.c return dss_pll_calc(ctx->pll, clkin, clkin 4752 drivers/video/fbdev/omap2/omapfb/dss/dsi.c unsigned long clkin; clkin 4759 drivers/video/fbdev/omap2/omapfb/dss/dsi.c clkin = clk_get_rate(dsi->pll.clkin); clkin 4784 drivers/video/fbdev/omap2/omapfb/dss/dsi.c return dss_pll_calc(ctx->pll, clkin, clkin 5222 drivers/video/fbdev/omap2/omapfb/dss/dsi.c pll->clkin = clk; clkin 163 drivers/video/fbdev/omap2/omapfb/dss/dss.h struct clk *clkin; clkin 493 drivers/video/fbdev/omap2/omapfb/dss/dss.h bool dss_pll_calc(const struct dss_pll *pll, unsigned long clkin, clkin 46 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c unsigned long clkin; clkin 49 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c clkin = clk_get_rate(pll->pll.clkin); clkin 51 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c DSSDBG("clkin %lu, target tmds %lu\n", clkin, target_tmds); clkin 56 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c n = DIV_ROUND_UP(clkin, hw->fint_max); clkin 57 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c fint = clkin / n; clkin 192 drivers/video/fbdev/omap2/omapfb/dss/hdmi_pll.c pll->clkin = clk; clkin 72 drivers/video/fbdev/omap2/omapfb/dss/pll.c r = clk_prepare_enable(pll->clkin); clkin 92 drivers/video/fbdev/omap2/omapfb/dss/pll.c clk_disable_unprepare(pll->clkin); clkin 103 drivers/video/fbdev/omap2/omapfb/dss/pll.c clk_disable_unprepare(pll->clkin); clkin 146 drivers/video/fbdev/omap2/omapfb/dss/pll.c bool dss_pll_calc(const struct dss_pll *pll, unsigned long clkin, clkin 162 drivers/video/fbdev/omap2/omapfb/dss/pll.c n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); clkin 163 drivers/video/fbdev/omap2/omapfb/dss/pll.c n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); clkin 168 drivers/video/fbdev/omap2/omapfb/dss/pll.c fint = clkin / n; clkin 189 drivers/video/fbdev/omap2/omapfb/dss/video-pll.c pll->clkin = clk; clkin 113 include/linux/iio/frequency/adf4350.h unsigned long clkin;