/drivers/gpu/drm/omapdrm/dss/ |
D | pll.c | 212 unsigned long fint, clkdco; in dss_pll_calc_a() local 233 fint = clkin / n; in dss_pll_calc_a() 235 m_start = max(DIV_ROUND_UP(DIV_ROUND_UP(pll_min, fint), 2), in dss_pll_calc_a() 237 m_stop = min3((unsigned)(pll_max / fint / 2), in dss_pll_calc_a() 238 (unsigned)(pll_hw_max / fint / 2), in dss_pll_calc_a() 248 clkdco = 2 * m * fint; in dss_pll_calc_a() 250 if (func(n, m, fint, clkdco, data)) in dss_pll_calc_a() 269 unsigned long fint, clkdco, clkout; in dss_pll_calc_b() local 279 fint = clkin / n; in dss_pll_calc_b() 282 min_dco = roundup(hw->clkdco_min, fint); in dss_pll_calc_b() [all …]
|
D | dpi.c | 192 static bool dpi_calc_pll_cb(int n, int m, unsigned long fint, in dpi_calc_pll_cb() argument 200 ctx->pll_cinfo.fint = fint; in dpi_calc_pll_cb()
|
D | dss.h | 131 unsigned long fint; member 441 typedef bool (*dss_pll_calc_func)(int n, int m, unsigned long fint,
|
D | dsi.c | 1400 seq_printf(s, "Fint\t\t%-16lun %u\n", cinfo->fint, cinfo->n); in dsi_dump_dsi_clocks() 4336 static bool dsi_cm_calc_pll_cb(int n, int m, unsigned long fint, in dsi_cm_calc_pll_cb() argument 4344 ctx->dsi_cinfo.fint = fint; in dsi_cm_calc_pll_cb() 4637 static bool dsi_vm_calc_pll_cb(int n, int m, unsigned long fint, in dsi_vm_calc_pll_cb() argument 4645 ctx->dsi_cinfo.fint = fint; in dsi_vm_calc_pll_cb()
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | hdmi_pll.c | 42 unsigned long fint, clkdco, clkout; in hdmi_pll_compute() local 57 fint = clkin / n; in hdmi_pll_compute() 60 min_dco = roundup(hw->clkdco_min, fint); in hdmi_pll_compute() 66 m = target_clkdco / fint; in hdmi_pll_compute() 68 clkdco = fint * m; in hdmi_pll_compute() 71 if (WARN_ON(target_clkdco - clkdco > fint)) in hdmi_pll_compute() 74 mf = (u32)div_u64(262144ull * (target_clkdco - clkdco), fint); in hdmi_pll_compute() 77 clkdco += (u32)div_u64((u64)mf * fint, 262144); in hdmi_pll_compute() 82 sd = DIV_ROUND_UP(fint * m, 250000000); in hdmi_pll_compute() 86 DSSDBG("Fint %lu, clkdco %lu, clkout %lu\n", fint, clkdco, clkout); in hdmi_pll_compute() [all …]
|
D | pll.c | 153 unsigned long fint, clkdco; in dss_pll_calc() local 168 fint = clkin / n; in dss_pll_calc() 170 m_start = max(DIV_ROUND_UP(DIV_ROUND_UP(pll_min, fint), 2), in dss_pll_calc() 172 m_stop = min3((unsigned)(pll_max / fint / 2), in dss_pll_calc() 173 (unsigned)(pll_hw_max / fint / 2), in dss_pll_calc() 177 clkdco = 2 * m * fint; in dss_pll_calc() 179 if (func(n, m, fint, clkdco, data)) in dss_pll_calc() 270 u32 f = cinfo->fint < 1000000 ? 0x3 : in dss_pll_write_config_type_a() 271 cinfo->fint < 1250000 ? 0x4 : in dss_pll_write_config_type_a() 272 cinfo->fint < 1500000 ? 0x5 : in dss_pll_write_config_type_a() [all …]
|
D | dpi.c | 193 static bool dpi_calc_pll_cb(int n, int m, unsigned long fint, in dpi_calc_pll_cb() argument 201 ctx->dsi_cinfo.fint = fint; in dpi_calc_pll_cb()
|
D | dss.h | 110 unsigned long fint; member 457 typedef bool (*dss_pll_calc_func)(int n, int m, unsigned long fint,
|
D | dsi.c | 1483 seq_printf(s, "Fint\t\t%-16lun %u\n", cinfo->fint, cinfo->n); in dsi_dump_dsidev_clocks() 4437 static bool dsi_cm_calc_pll_cb(int n, int m, unsigned long fint, in dsi_cm_calc_pll_cb() argument 4444 ctx->dsi_cinfo.fint = fint; in dsi_cm_calc_pll_cb() 4735 static bool dsi_vm_calc_pll_cb(int n, int m, unsigned long fint, in dsi_vm_calc_pll_cb() argument 4742 ctx->dsi_cinfo.fint = fint; in dsi_vm_calc_pll_cb()
|
/drivers/clk/ti/ |
D | dpll3xxx.c | 95 unsigned long fint; in _omap3_dpll_compute_freqsel() local 98 fint = clk_hw_get_rate(clk->dpll_data->clk_ref) / n; in _omap3_dpll_compute_freqsel() 100 pr_debug("clock: fint is %lu\n", fint); in _omap3_dpll_compute_freqsel() 102 if (fint >= 750000 && fint <= 1000000) in _omap3_dpll_compute_freqsel() 104 else if (fint > 1000000 && fint <= 1250000) in _omap3_dpll_compute_freqsel() 106 else if (fint > 1250000 && fint <= 1500000) in _omap3_dpll_compute_freqsel() 108 else if (fint > 1500000 && fint <= 1750000) in _omap3_dpll_compute_freqsel() 110 else if (fint > 1750000 && fint <= 2100000) in _omap3_dpll_compute_freqsel() 112 else if (fint > 7500000 && fint <= 10000000) in _omap3_dpll_compute_freqsel() 114 else if (fint > 10000000 && fint <= 12500000) in _omap3_dpll_compute_freqsel() [all …]
|
D | clkt_dpll.c | 70 long fint, fint_min, fint_max; in _dpll_test_fint() local 76 fint = clk_hw_get_rate(clk_hw_get_parent(&clk->hw)) / n; in _dpll_test_fint() 91 if (fint < ti_clk_get_features()->fint_min) { in _dpll_test_fint() 96 } else if (fint > ti_clk_get_features()->fint_max) { in _dpll_test_fint() 101 } else if (fint > ti_clk_get_features()->fint_band1_max && in _dpll_test_fint() 102 fint < ti_clk_get_features()->fint_band2_min) { in _dpll_test_fint()
|
D | dpll44xx.c | 92 long fint, fout; in omap4_dpll_lpmode_recalc() local 94 fint = clk_hw_get_rate(dd->clk_ref) / (dd->last_rounded_n + 1); in omap4_dpll_lpmode_recalc() 95 fout = fint * dd->last_rounded_m; in omap4_dpll_lpmode_recalc() 97 if ((fint < OMAP4_DPLL_LP_FINT_MAX) && (fout < OMAP4_DPLL_LP_FOUT_MAX)) in omap4_dpll_lpmode_recalc()
|
/drivers/media/i2c/ |
D | ov9650.c | 563 unsigned long fint, trow; in ov965x_update_exposure_ctrl() local 574 fint = ov965x->mclk_frequency * ((clkrc >> 7) + 1) / in ov965x_update_exposure_ctrl() 577 trow = (2 * 1520 * 1000000UL) / fint; in ov965x_update_exposure_ctrl() 583 clkrc, fint, trow, max); in ov965x_update_exposure_ctrl()
|