Lines Matching refs:limit
46 static bool mrst_lvds_find_best_pll(const struct gma_limit_t *limit,
50 static bool mrst_sdvo_find_best_pll(const struct gma_limit_t *limit,
93 const struct gma_limit_t *limit = NULL; in mrst_limit() local
101 limit = &mrst_limits[MRST_LIMIT_LVDS_100L]; in mrst_limit()
104 limit = &mrst_limits[MRST_LIMIT_LVDS_83]; in mrst_limit()
107 limit = &mrst_limits[MRST_LIMIT_LVDS_100]; in mrst_limit()
111 limit = &mrst_limits[MRST_LIMIT_SDVO]; in mrst_limit()
113 limit = NULL; in mrst_limit()
117 return limit; in mrst_limit()
133 static bool mrst_sdvo_find_best_pll(const struct gma_limit_t *limit, in mrst_sdvo_find_best_pll() argument
143 for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) { in mrst_sdvo_find_best_pll()
144 for (clock.n = limit->n.min; clock.n <= limit->n.max; in mrst_sdvo_find_best_pll()
146 for (clock.p1 = limit->p1.min; in mrst_sdvo_find_best_pll()
147 clock.p1 <= limit->p1.max; clock.p1++) { in mrst_sdvo_find_best_pll()
149 clock.p = clock.p1 * limit->p2.p2_slow; in mrst_sdvo_find_best_pll()
153 if (target_vco > limit->vco.max) in mrst_sdvo_find_best_pll()
156 if (target_vco < limit->vco.min) in mrst_sdvo_find_best_pll()
190 static bool mrst_lvds_find_best_pll(const struct gma_limit_t *limit, in mrst_lvds_find_best_pll() argument
199 for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) { in mrst_lvds_find_best_pll()
200 for (clock.p1 = limit->p1.min; clock.p1 <= limit->p1.max; in mrst_lvds_find_best_pll()
377 const struct gma_limit_t *limit; in oaktrail_crtc_mode_set() local
510 limit = mrst_limit(crtc, refclk); in oaktrail_crtc_mode_set()
511 ok = limit->find_pll(limit, crtc, adjusted_mode->clock, in oaktrail_crtc_mode_set()
670 .limit = mrst_limit,