/kernel/linux/linux-6.6/drivers/iio/filter/ |
H A D | admv8818.c | 87 struct clk *clkin; member 246 st->cf_hz = clk_get_rate(st->clkin); in admv8818_rfin_band_select() 444 if (!st->clkin) { in admv8818_set_mode() 464 ret = clk_prepare_enable(st->clkin); in admv8818_set_mode() 468 ret = clk_notifier_register(st->clkin, &st->nb); in admv8818_set_mode() 470 clk_disable_unprepare(st->clkin); in admv8818_set_mode() 479 clk_disable_unprepare(st->clkin); in admv8818_set_mode() 481 ret = clk_notifier_unregister(st->clkin, &st->nb); in admv8818_set_mode() 560 clk_notifier_unregister(st->clkin, &st->nb); in admv8818_clk_notifier_unreg() 568 clk_disable_unprepare(st->clkin); in admv8818_clk_disable() [all...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | hdmi_pll.c | 46 unsigned long clkin; in hdmi_pll_compute() local 49 clkin = clk_get_rate(pll->pll.clkin); in hdmi_pll_compute() 51 DSSDBG("clkin %lu, target tmds %lu\n", clkin, target_tmds); in hdmi_pll_compute() 56 n = DIV_ROUND_UP(clkin, hw->fint_max); in hdmi_pll_compute() 57 fint = clkin / n; in hdmi_pll_compute() 192 pll->clkin = clk; in dsi_init_pll_data()
|
H A D | pll.c | 72 r = clk_prepare_enable(pll->clkin); in dss_pll_enable() 92 clk_disable_unprepare(pll->clkin); in dss_pll_enable() 103 clk_disable_unprepare(pll->clkin); in dss_pll_disable() 146 bool dss_pll_calc(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc() argument 162 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc() 163 n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); in dss_pll_calc() 168 fint = clkin / n; in dss_pll_calc()
|
/kernel/linux/linux-6.6/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | hdmi_pll.c | 46 unsigned long clkin; in hdmi_pll_compute() local 49 clkin = clk_get_rate(pll->pll.clkin); in hdmi_pll_compute() 51 DSSDBG("clkin %lu, target tmds %lu\n", clkin, target_tmds); in hdmi_pll_compute() 56 n = DIV_ROUND_UP(clkin, hw->fint_max); in hdmi_pll_compute() 57 fint = clkin / n; in hdmi_pll_compute() 186 pll->clkin = clk; in dsi_init_pll_data()
|
H A D | pll.c | 72 r = clk_prepare_enable(pll->clkin); in dss_pll_enable() 92 clk_disable_unprepare(pll->clkin); in dss_pll_enable() 103 clk_disable_unprepare(pll->clkin); in dss_pll_disable() 146 bool dss_pll_calc(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc() argument 162 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc() 163 n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); in dss_pll_calc() 168 fint = clkin / n; in dss_pll_calc()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/dss/ |
H A D | pll.c | 127 r = clk_prepare_enable(pll->clkin); in dss_pll_enable() 147 clk_disable_unprepare(pll->clkin); in dss_pll_enable() 158 clk_disable_unprepare(pll->clkin); in dss_pll_disable() 202 * clkdco = clkin / n * m * 2 205 bool dss_pll_calc_a(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_a() argument 221 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc_a() 222 n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); in dss_pll_calc_a() 233 fint = clkin / n; in dss_pll_calc_a() 263 * clkdco = clkin / n * m + clkin / 266 dss_pll_calc_b(const struct dss_pll *pll, unsigned long clkin, unsigned long target_clkout, struct dss_pll_clock_info *cinfo) dss_pll_calc_b() argument [all...] |
H A D | dpi.c | 222 unsigned long clkin; in dpi_pll_clk_calc() local 228 clkin = clk_get_rate(dpi->pll->clkin); in dpi_pll_clk_calc() 239 return dss_pll_calc_a(ctx->dpi->pll, clkin, in dpi_pll_clk_calc() 243 dss_pll_calc_b(dpi->pll, clkin, pck, &ctx->pll_cinfo); in dpi_pll_clk_calc()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/omapdrm/dss/ |
H A D | pll.c | 127 r = clk_prepare_enable(pll->clkin); in dss_pll_enable() 147 clk_disable_unprepare(pll->clkin); in dss_pll_enable() 158 clk_disable_unprepare(pll->clkin); in dss_pll_disable() 202 * clkdco = clkin / n * m * 2 205 bool dss_pll_calc_a(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_a() argument 221 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc_a() 222 n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); in dss_pll_calc_a() 236 fint = clkin / n; in dss_pll_calc_a() 269 * clkdco = clkin / n * m + clkin / 272 dss_pll_calc_b(const struct dss_pll *pll, unsigned long clkin, unsigned long target_clkout, struct dss_pll_clock_info *cinfo) dss_pll_calc_b() argument [all...] |
H A D | dpi.c | 222 unsigned long clkin; in dpi_pll_clk_calc() local 228 clkin = clk_get_rate(dpi->pll->clkin); in dpi_pll_clk_calc() 239 return dss_pll_calc_a(ctx->dpi->pll, clkin, in dpi_pll_clk_calc() 243 dss_pll_calc_b(dpi->pll, clkin, pck, &ctx->pll_cinfo); in dpi_pll_clk_calc()
|
/kernel/linux/linux-6.6/drivers/iio/frequency/ |
H A D | adf4350.c | 39 unsigned long clkin; member 128 st->fpfd = (st->clkin * (pdata->ref_doubler_en ? 2 : 1)) / in adf4350_tune_r_cnt() 285 st->clkin = readin; in adf4350_write() 334 st->clkin = clk_get_rate(st->clk); in adf4350_read() 336 val = st->clkin; in adf4350_read() 501 if (!pdata->clkin) { in adf4350_probe() 502 clk = devm_clk_get_enabled(&spi->dev, "clkin"); in adf4350_probe() 533 st->clkin = clk_get_rate(clk); in adf4350_probe() 535 st->clkin = pdata->clkin; in adf4350_probe() [all...] |
H A D | admv1014.c | 121 struct clk *clkin; member 223 u64 rate = clk_get_rate(st->clkin); in admv1014_update_quad_filters() 625 ret = clk_prepare_enable(st->clkin); in admv1014_init() 629 ret = devm_add_action_or_reset(&spi->dev, admv1014_clk_disable, st->clkin); in admv1014_init() 634 ret = devm_clk_notifier_register(&spi->dev, st->clkin, &st->nb); in admv1014_init() 754 st->clkin = devm_clk_get(&spi->dev, "lo_in"); in admv1014_properties_parse() 755 if (IS_ERR(st->clkin)) in admv1014_properties_parse() 756 return dev_err_probe(&spi->dev, PTR_ERR(st->clkin), in admv1014_properties_parse()
|
H A D | admv1013.c | 95 struct clk *clkin; member 329 u64 rate = clk_get_rate(st->clkin); in admv1013_update_quad_filters() 611 st->clkin = devm_clk_get_enabled(&spi->dev, "lo_in"); in admv1013_probe() 612 if (IS_ERR(st->clkin)) in admv1013_probe() 613 return dev_err_probe(&spi->dev, PTR_ERR(st->clkin), in admv1013_probe() 617 ret = devm_clk_notifier_register(&spi->dev, st->clkin, &st->nb); in admv1013_probe()
|
H A D | adf4371.c | 160 struct clk *clkin; member 575 st->clkin = devm_clk_get_enabled(&spi->dev, "clkin"); in adf4371_probe() 576 if (IS_ERR(st->clkin)) in adf4371_probe() 577 return PTR_ERR(st->clkin); in adf4371_probe() 579 st->clkin_freq = clk_get_rate(st->clkin); in adf4371_probe()
|
H A D | adf4377.c | 406 struct clk *clkin; member 517 clkin_freq = clk_get_rate(st->clkin); in adf4377_get_freq() 725 st->clkin_freq = clk_get_rate(st->clkin); in adf4377_init() 876 st->clkin = devm_clk_get_enabled(&spi->dev, "ref_in"); in adf4377_properties_parse() 877 if (IS_ERR(st->clkin)) in adf4377_properties_parse() 878 return dev_err_probe(&spi->dev, PTR_ERR(st->clkin), in adf4377_properties_parse() 959 ret = devm_clk_notifier_register(&spi->dev, st->clkin, &st->nb); in adf4377_probe()
|
H A D | adrf6780.c | 76 struct clk *clkin; member 471 st->clkin = devm_clk_get_enabled(&spi->dev, "lo_in"); in adrf6780_probe() 472 if (IS_ERR(st->clkin)) in adrf6780_probe() 473 return dev_err_probe(&spi->dev, PTR_ERR(st->clkin), in adrf6780_probe()
|
/kernel/linux/linux-5.10/drivers/iio/frequency/ |
H A D | adf4350.c | 39 unsigned long clkin; member 128 st->fpfd = (st->clkin * (pdata->ref_doubler_en ? 2 : 1)) / in adf4350_tune_r_cnt() 285 st->clkin = readin; in adf4350_write() 334 st->clkin = clk_get_rate(st->clk); in adf4350_read() 336 val = st->clkin; in adf4350_read() 512 if (!pdata->clkin) { in adf4350_probe() 513 clk = devm_clk_get(&spi->dev, "clkin"); in adf4350_probe() 554 st->clkin = clk_get_rate(clk); in adf4350_probe() 556 st->clkin = pdata->clkin; in adf4350_probe() [all...] |
H A D | adf4371.c | 160 struct clk *clkin; member 547 clk_disable_unprepare(st->clkin); in adf4371_clk_disable() 582 st->clkin = devm_clk_get(&spi->dev, "clkin"); in adf4371_probe() 583 if (IS_ERR(st->clkin)) in adf4371_probe() 584 return PTR_ERR(st->clkin); in adf4371_probe() 586 ret = clk_prepare_enable(st->clkin); in adf4371_probe() 594 st->clkin_freq = clk_get_rate(st->clkin); in adf4371_probe()
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
H A D | i2c-s3c2410.c | 802 static int s3c24xx_i2c_calcdivisor(unsigned long clkin, unsigned int wanted, in s3c24xx_i2c_calcdivisor() argument 805 unsigned int calc_divs = clkin / wanted; in s3c24xx_i2c_calcdivisor() 824 return clkin / (calc_divs * calc_div1); in s3c24xx_i2c_calcdivisor() 835 unsigned long clkin = clk_get_rate(i2c->clk); in s3c24xx_i2c_clockrate() local 841 i2c->clkrate = clkin; in s3c24xx_i2c_clockrate() 842 clkin /= 1000; /* clkin now in KHz */ in s3c24xx_i2c_clockrate() 850 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate() 877 sda_delay = clkin * pdata->sda_delay; in s3c24xx_i2c_clockrate()
|
/kernel/linux/linux-6.6/drivers/i2c/busses/ |
H A D | i2c-s3c2410.c | 795 static int s3c24xx_i2c_calcdivisor(unsigned long clkin, unsigned int wanted, in s3c24xx_i2c_calcdivisor() argument 798 unsigned int calc_divs = clkin / wanted; in s3c24xx_i2c_calcdivisor() 817 return clkin / (calc_divs * calc_div1); in s3c24xx_i2c_calcdivisor() 828 unsigned long clkin = clk_get_rate(i2c->clk); in s3c24xx_i2c_clockrate() local 834 i2c->clkrate = clkin; in s3c24xx_i2c_clockrate() 835 clkin /= 1000; /* clkin now in KHz */ in s3c24xx_i2c_clockrate() 843 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate() 870 sda_delay = clkin * pdata->sda_delay; in s3c24xx_i2c_clockrate()
|
/kernel/linux/linux-5.10/drivers/clk/ |
H A D | clk-aspeed.c | 55 [ASPEED_CLK_GATE_REFCLK] = { 6, -1, "refclk-gate", "clkin", CLK_IS_CRITICAL }, 145 return clk_hw_register_fixed_factor(NULL, name, "clkin", 0, in aspeed_ast2400_calc_pll() 157 /* F = clkin * [(M+1) / (N+1)] / (P + 1) */ in aspeed_ast2500_calc_pll() 166 return clk_hw_register_fixed_factor(NULL, name, "clkin", 0, in aspeed_ast2500_calc_pll() 509 hw = clk_hw_register_fixed_rate(NULL, "fixed-24m", "clkin", in aspeed_clk_probe() 586 u32 val, div, clkin, hpll; in aspeed_ast2400_cc() local 600 clkin = 25000000; in aspeed_ast2400_cc() 603 clkin = 48000000; in aspeed_ast2400_cc() 606 clkin = 24000000; in aspeed_ast2400_cc() 609 hw = clk_hw_register_fixed_rate(NULL, "clkin", NUL in aspeed_ast2400_cc() [all...] |
H A D | clk-cdce706.c | 82 struct cdce706_hw_data clkin[1]; member 310 struct clk *gp_clk = cdce->clkin_clk[cdce->clkin[0].parent]; in cdce706_divider_round_rate() 501 cdce->clkin[0].parent = !!(clock & CDCE706_CLKIN_CLOCK_MASK); in cdce706_register_clkin() 504 ret = cdce706_register_hw(cdce, cdce->clkin, in cdce706_register_clkin() 505 ARRAY_SIZE(cdce->clkin), in cdce706_register_clkin()
|
/kernel/linux/linux-6.6/drivers/clk/ |
H A D | clk-aspeed.c | 55 [ASPEED_CLK_GATE_REFCLK] = { 6, -1, "refclk-gate", "clkin", CLK_IS_CRITICAL }, 145 return clk_hw_register_fixed_factor(NULL, name, "clkin", 0, in aspeed_ast2400_calc_pll() 157 /* F = clkin * [(M+1) / (N+1)] / (P + 1) */ in aspeed_ast2500_calc_pll() 166 return clk_hw_register_fixed_factor(NULL, name, "clkin", 0, in aspeed_ast2500_calc_pll() 509 hw = clk_hw_register_fixed_rate(NULL, "fixed-24m", "clkin", in aspeed_clk_probe() 586 u32 val, div, clkin, hpll; in aspeed_ast2400_cc() local 600 clkin = 25000000; in aspeed_ast2400_cc() 603 clkin = 48000000; in aspeed_ast2400_cc() 606 clkin = 24000000; in aspeed_ast2400_cc() 609 hw = clk_hw_register_fixed_rate(NULL, "clkin", NUL in aspeed_ast2400_cc() [all...] |
H A D | clk-cdce706.c | 82 struct cdce706_hw_data clkin[1]; member 312 struct clk *gp_clk = cdce->clkin_clk[cdce->clkin[0].parent]; in cdce706_divider_determine_rate() 505 cdce->clkin[0].parent = !!(clock & CDCE706_CLKIN_CLOCK_MASK); in cdce706_register_clkin() 508 ret = cdce706_register_hw(cdce, cdce->clkin, in cdce706_register_clkin() 509 ARRAY_SIZE(cdce->clkin), in cdce706_register_clkin()
|
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | ds90ub913.c | 70 struct clk *clkin; member 615 __clk_get_name(priv->clkin), 0, 1, 2); in ub913_register_clkout() 640 ref = clk_get_rate(priv->clkin) / 2; in ub913_i2c_master_init() 824 priv->clkin = devm_clk_get(dev, "clkin"); in ub913_probe() 825 if (IS_ERR(priv->clkin)) in ub913_probe() 826 return dev_err_probe(dev, PTR_ERR(priv->clkin), in ub913_probe()
|
/kernel/linux/linux-5.10/include/linux/iio/frequency/ |
H A D | adf4350.h | 95 * @clkin: REFin frequency in Hz. 110 unsigned long clkin; member
|