dphy_opts         155 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	       struct phy_configure_opts_mipi_dphy *dphy_opts,
dphy_opts         165 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	if (dphy_opts->hs_clk_rate > DATA_RATE_MAX_SPEED ||
dphy_opts         166 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	    dphy_opts->hs_clk_rate < DATA_RATE_MIN_SPEED)
dphy_opts         169 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	numerator = dphy_opts->hs_clk_rate;
dphy_opts         175 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 			dphy_opts->hs_clk_rate, ref_clk);
dphy_opts         201 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 			dphy_opts->hs_clk_rate, ref_clk,
dphy_opts         207 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 		dphy_opts->hs_clk_rate, ref_clk, numerator, denominator);
dphy_opts         211 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	do_div(tmp, dphy_opts->lp_clk_rate); /* ps */
dphy_opts         217 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 		dphy_opts->lp_clk_rate, lp_t);
dphy_opts         220 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	if (2 * dphy_opts->hs_prepare > 5 * lp_t) {
dphy_opts         223 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 			dphy_opts->hs_prepare, lp_t);
dphy_opts         227 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	if (dphy_opts->hs_prepare < lp_t) {
dphy_opts         230 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 		tmp = 2 * (dphy_opts->hs_prepare - lp_t);
dphy_opts         237 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	if (2 * dphy_opts->clk_prepare > 3 * lp_t) {
dphy_opts         240 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 			dphy_opts->clk_prepare, lp_t);
dphy_opts         244 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	cfg->mc_prg_hs_prepare = dphy_opts->clk_prepare > lp_t ? 1 : 0;
dphy_opts         247 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	n = (144 * (dphy_opts->hs_clk_rate / 1000000) - 47500) / 10000;
dphy_opts         251 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	n = (34 * (dphy_opts->hs_clk_rate / 1000000) - 2500) / 1000;
dphy_opts         255 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	n = (103 * (dphy_opts->hs_clk_rate / 1000000) + 10000) / 10000;
dphy_opts         264 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	if (dphy_opts->hs_clk_rate < MBPS(80))
dphy_opts         266 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	else if (dphy_opts->hs_clk_rate < MBPS(90))
dphy_opts         268 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	else if (dphy_opts->hs_clk_rate < MBPS(125))
dphy_opts         270 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	else if (dphy_opts->hs_clk_rate < MBPS(150))
dphy_opts         272 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	else if (dphy_opts->hs_clk_rate < MBPS(225))
dphy_opts         274 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c 	else if (dphy_opts->hs_clk_rate < MBPS(500))