Lines Matching refs:dp_opts
111 struct phy_configure_opts_dp dp_opts; member
256 static int qcom_edp_set_voltages(struct qcom_edp *edp, const struct phy_configure_opts_dp *dp_opts) in qcom_edp_set_voltages() argument
272 for (i = 0; i < dp_opts->lanes; i++) { in qcom_edp_set_voltages()
273 v_level = max(v_level, dp_opts->voltage[i]); in qcom_edp_set_voltages()
274 p_level = max(p_level, dp_opts->pre[i]); in qcom_edp_set_voltages()
277 if (dp_opts->link_rate <= 2700) { in qcom_edp_set_voltages()
303 const struct phy_configure_opts_dp *dp_opts = &opts->dp; in qcom_edp_phy_configure() local
307 memcpy(&edp->dp_opts, dp_opts, sizeof(*dp_opts)); in qcom_edp_phy_configure()
309 if (dp_opts->set_voltages) in qcom_edp_phy_configure()
310 ret = qcom_edp_set_voltages(edp, dp_opts); in qcom_edp_phy_configure()
327 const struct phy_configure_opts_dp *dp_opts = &edp->dp_opts; in qcom_edp_set_vco_div() local
330 switch (dp_opts->link_rate) { in qcom_edp_set_vco_div()
395 const struct phy_configure_opts_dp *dp_opts = &edp->dp_opts; in qcom_edp_com_configure_ssc_v4() local
399 switch (dp_opts->link_rate) { in qcom_edp_com_configure_ssc_v4()
429 const struct phy_configure_opts_dp *dp_opts = &edp->dp_opts; in qcom_edp_com_configure_pll_v4() local
437 switch (dp_opts->link_rate) { in qcom_edp_com_configure_pll_v4()
570 const struct phy_configure_opts_dp *dp_opts = &edp->dp_opts; in qcom_edp_com_configure_ssc_v6() local
574 switch (dp_opts->link_rate) { in qcom_edp_com_configure_ssc_v6()
604 const struct phy_configure_opts_dp *dp_opts = &edp->dp_opts; in qcom_edp_com_configure_pll_v6() local
614 switch (dp_opts->link_rate) { in qcom_edp_com_configure_pll_v6()
736 if (edp->dp_opts.ssc) { in qcom_edp_phy_power_on()
796 if (edp->dp_opts.lanes == 1) { in qcom_edp_phy_power_on()
802 } else if (edp->dp_opts.lanes == 2) { in qcom_edp_phy_power_on()
832 clk_set_rate(edp->dp_link_hw.clk, edp->dp_opts.link_rate * 100000); in qcom_edp_phy_power_on()
946 const struct phy_configure_opts_dp *dp_opts = &edp->dp_opts; in qcom_edp_dp_pixel_clk_recalc_rate() local
948 switch (dp_opts->link_rate) { in qcom_edp_dp_pixel_clk_recalc_rate()
986 const struct phy_configure_opts_dp *dp_opts = &edp->dp_opts; in qcom_edp_dp_link_clk_recalc_rate() local
988 switch (dp_opts->link_rate) { in qcom_edp_dp_link_clk_recalc_rate()
993 return dp_opts->link_rate * 100000; in qcom_edp_dp_link_clk_recalc_rate()