Lines Matching refs:dlane_bps
557 u64 dlane_bps, dlane_bps_max, fbdiv, fbdiv_max, adj_dsi_htotal; in cdns_dsi_get_dphy_pll_cfg() local
584 dlane_bps = (u64)dpi_hz * adj_dsi_htotal; in cdns_dsi_get_dphy_pll_cfg()
587 if (do_div(dlane_bps, dsi_nlanes * dpi_htotal)) in cdns_dsi_get_dphy_pll_cfg()
591 dlane_bps *= 8; in cdns_dsi_get_dphy_pll_cfg()
593 if (dlane_bps > 2500000000UL || dlane_bps < 160000000UL) in cdns_dsi_get_dphy_pll_cfg()
595 else if (dlane_bps >= 1250000000) in cdns_dsi_get_dphy_pll_cfg()
597 else if (dlane_bps >= 630000000) in cdns_dsi_get_dphy_pll_cfg()
599 else if (dlane_bps >= 320000000) in cdns_dsi_get_dphy_pll_cfg()
601 else if (dlane_bps >= 160000000) in cdns_dsi_get_dphy_pll_cfg()
608 dlane_bps_max = dlane_bps + DIV_ROUND_DOWN_ULL(dlane_bps, 500); in cdns_dsi_get_dphy_pll_cfg()
612 fbdiv = DIV_ROUND_UP_ULL(dlane_bps * 2 * cfg->pll_opdiv * in cdns_dsi_get_dphy_pll_cfg()
676 dlane_bps = DIV_ROUND_DOWN_ULL((u64)dpi_hz * adj_dsi_htotal * 8, in cdns_dsi_get_dphy_pll_cfg()
678 cfg->lane_bps = dlane_bps; in cdns_dsi_get_dphy_pll_cfg()