Lines Matching refs:lp_t
192 u32 lp_t, numerator, denominator; in mixel_dphy_config_from_opts() local
247 lp_t = tmp; in mixel_dphy_config_from_opts()
249 dphy_opts->lp_clk_rate, lp_t); in mixel_dphy_config_from_opts()
252 if (2 * dphy_opts->hs_prepare > 5 * lp_t) { in mixel_dphy_config_from_opts()
255 dphy_opts->hs_prepare, lp_t); in mixel_dphy_config_from_opts()
259 if (dphy_opts->hs_prepare < lp_t) { in mixel_dphy_config_from_opts()
262 tmp = 2 * (dphy_opts->hs_prepare - lp_t); in mixel_dphy_config_from_opts()
263 do_div(tmp, lp_t); in mixel_dphy_config_from_opts()
269 if (2 * dphy_opts->clk_prepare > 3 * lp_t) { in mixel_dphy_config_from_opts()
272 dphy_opts->clk_prepare, lp_t); in mixel_dphy_config_from_opts()
276 cfg->mc_prg_hs_prepare = dphy_opts->clk_prepare > lp_t ? 1 : 0; in mixel_dphy_config_from_opts()