/drivers/video/fbdev/omap2/omapfb/dss/ |
D | hdmi_pll.c | 48 unsigned long clkin; in hdmi_pll_compute() local 51 clkin = clk_get_rate(pll->pll.clkin); in hdmi_pll_compute() 53 DSSDBG("clkin %lu, target tmds %lu\n", clkin, target_tmds); in hdmi_pll_compute() 58 n = DIV_ROUND_UP(clkin, hw->fint_max); in hdmi_pll_compute() 59 fint = clkin / n; in hdmi_pll_compute() 194 pll->clkin = clk; in dsi_init_pll_data()
|
D | pll.c | 83 r = clk_prepare_enable(pll->clkin); in dss_pll_enable() 103 clk_disable_unprepare(pll->clkin); in dss_pll_enable() 114 clk_disable_unprepare(pll->clkin); in dss_pll_disable() 157 bool dss_pll_calc(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc() argument 173 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc() 174 n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); in dss_pll_calc() 179 fint = clkin / n; in dss_pll_calc()
|
D | dpi.c | 233 unsigned long clkin; in dpi_dsi_clk_calc() local 244 clkin = clk_get_rate(ctx->pll->clkin); in dpi_dsi_clk_calc() 246 return dss_pll_calc(ctx->pll, clkin, in dpi_dsi_clk_calc()
|
D | video-pll.c | 195 pll->clkin = clk; in dss_video_pll_init()
|
D | dss.h | 174 struct clk *clkin; member 508 bool dss_pll_calc(const struct dss_pll *pll, unsigned long clkin,
|
D | dsi.c | 1489 seq_printf(s, "dsi pll clkin\t%lu\n", clk_get_rate(pll->clkin)); in dsi_dump_dsidev_clocks() 4464 unsigned long clkin; in dsi_cm_calc() local 4469 clkin = clk_get_rate(dsi->pll.clkin); in dsi_cm_calc() 4494 return dss_pll_calc(ctx->pll, clkin, in dsi_cm_calc() 4763 unsigned long clkin; in dsi_vm_calc() local 4770 clkin = clk_get_rate(dsi->pll.clkin); in dsi_vm_calc() 4795 return dss_pll_calc(ctx->pll, clkin, in dsi_vm_calc() 5233 pll->clkin = clk; in dsi_init_pll_data()
|
/drivers/gpu/drm/omapdrm/dss/ |
D | pll.c | 135 r = clk_prepare_enable(pll->clkin); in dss_pll_enable() 155 clk_disable_unprepare(pll->clkin); in dss_pll_enable() 166 clk_disable_unprepare(pll->clkin); in dss_pll_disable() 213 bool dss_pll_calc_a(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_a() argument 229 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc_a() 230 n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); in dss_pll_calc_a() 235 fint = clkin / n; in dss_pll_calc_a() 262 bool dss_pll_calc_b(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_b() argument 271 DSSDBG("clkin %lu, target clkout %lu\n", clkin, target_clkout); in dss_pll_calc_b() 274 n = DIV_ROUND_UP(clkin, hw->fint_max); in dss_pll_calc_b() [all …]
|
D | dss.h | 186 struct clk *clkin; member 441 bool dss_pll_calc_a(const struct dss_pll *pll, unsigned long clkin, 445 bool dss_pll_calc_b(const struct dss_pll *pll, unsigned long clkin,
|
D | dpi.c | 218 unsigned long clkin; in dpi_pll_clk_calc() local 224 clkin = clk_get_rate(dpi->pll->clkin); in dpi_pll_clk_calc() 235 return dss_pll_calc_a(ctx->pll, clkin, in dpi_pll_clk_calc() 239 dss_pll_calc_b(dpi->pll, clkin, pck, &ctx->pll_cinfo); in dpi_pll_clk_calc()
|
D | hdmi_pll.c | 146 pll->clkin = clk; in dsi_init_pll_data()
|
D | video-pll.c | 200 pll->clkin = clk; in dss_video_pll_init()
|
D | dsi.c | 1489 seq_printf(s, "dsi pll clkin\t%lu\n", clk_get_rate(pll->clkin)); in dsi_dump_dsidev_clocks() 4463 unsigned long clkin; in dsi_cm_calc() local 4468 clkin = clk_get_rate(dsi->pll.clkin); in dsi_cm_calc() 4493 return dss_pll_calc_a(ctx->pll, clkin, in dsi_cm_calc() 4762 unsigned long clkin; in dsi_vm_calc() local 4769 clkin = clk_get_rate(dsi->pll.clkin); in dsi_vm_calc() 4794 return dss_pll_calc_a(ctx->pll, clkin, in dsi_vm_calc() 5235 pll->clkin = clk; in dsi_init_pll_data()
|
D | hdmi5.c | 195 dss_pll_calc_b(&hdmi.pll.pll, clk_get_rate(hdmi.pll.pll.clkin), in hdmi_power_on_full()
|
D | hdmi4.c | 183 dss_pll_calc_b(&hdmi.pll.pll, clk_get_rate(hdmi.pll.pll.clkin), in hdmi_power_on_full()
|
/drivers/iio/frequency/ |
D | adf4350.c | 40 unsigned long clkin; member 123 st->fpfd = (st->clkin * (pdata->ref_doubler_en ? 2 : 1)) / in adf4350_tune_r_cnt() 280 st->clkin = readin; in adf4350_write() 329 st->clkin = clk_get_rate(st->clk); in adf4350_read() 331 val = st->clkin; in adf4350_read() 515 if (!pdata->clkin) { in adf4350_probe() 556 st->clkin = clk_get_rate(clk); in adf4350_probe() 558 st->clkin = pdata->clkin; in adf4350_probe()
|
/drivers/i2c/busses/ |
D | i2c-s3c2410.c | 812 static int s3c24xx_i2c_calcdivisor(unsigned long clkin, unsigned int wanted, in s3c24xx_i2c_calcdivisor() argument 815 unsigned int calc_divs = clkin / wanted; in s3c24xx_i2c_calcdivisor() 834 return clkin / (calc_divs * calc_div1); in s3c24xx_i2c_calcdivisor() 845 unsigned long clkin = clk_get_rate(i2c->clk); in s3c24xx_i2c_clockrate() local 851 i2c->clkrate = clkin; in s3c24xx_i2c_clockrate() 852 clkin /= 1000; /* clkin now in KHz */ in s3c24xx_i2c_clockrate() 860 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate() 887 sda_delay = clkin * pdata->sda_delay; in s3c24xx_i2c_clockrate()
|
D | i2c-exynos5.c | 274 unsigned int clkin = clk_get_rate(i2c->clk); in exynos5_i2c_set_timing() local 292 utemp0 = (clkin / op_clk) - 8; in exynos5_i2c_set_timing()
|
/drivers/clk/ |
D | clk-cdce706.c | 85 struct cdce706_hw_data clkin[1]; member 313 struct clk *gp_clk = cdce->clkin_clk[cdce->clkin[0].parent]; in cdce706_divider_round_rate() 504 cdce->clkin[0].parent = !!(clock & CDCE706_CLKIN_CLOCK_MASK); in cdce706_register_clkin() 507 ret = cdce706_register_hw(cdce, cdce->clkin, in cdce706_register_clkin() 508 ARRAY_SIZE(cdce->clkin), in cdce706_register_clkin()
|
D | clk-si5351.c | 63 struct clk_hw clkin; member 250 container_of(hw, struct si5351_driver_data, clkin); in si5351_clkin_prepare() 259 container_of(hw, struct si5351_driver_data, clkin); in si5351_clkin_unprepare() 273 container_of(hw, struct si5351_driver_data, clkin); in si5351_clkin_recalc_rate() 1476 drvdata->clkin.init = &init; in si5351_i2c_probe() 1477 ret = devm_clk_hw_register(&client->dev, &drvdata->clkin); in si5351_i2c_probe()
|
/drivers/hwmon/ |
D | w83795.c | 294 static unsigned int pwm_freq_from_reg(u8 reg, u16 clkin) in pwm_freq_from_reg() argument 299 base_clock = clkin * 1000 / ((clkin == 48000) ? 384 : 256); in pwm_freq_from_reg() 305 static u8 pwm_freq_to_reg(unsigned long val, u16 clkin) in pwm_freq_to_reg() argument 319 base_clock = clkin * 1000 / ((clkin == 48000) ? 384 : 256); in pwm_freq_to_reg() 376 u16 clkin; /* CLKIN frequency in kHz */ member 856 val = pwm_freq_from_reg(data->pwm[index][nr], data->clkin); in show_pwm() 887 val = pwm_freq_to_reg(val, data->clkin); in store_pwm() 1872 static const u16 clkin[4] = { /* in kHz */ in w83795_init_client() local 1888 data->clkin = clkin[(config >> 3) & 0x3]; in w83795_init_client() 1889 dev_dbg(&client->dev, "clkin = %u kHz\n", data->clkin); in w83795_init_client()
|
/drivers/usb/musb/ |
D | blackfin.c | 399 ((480/musb->config->clkin) << 1)); in bfin_musb_reg_init()
|