Lines Matching defs:to_match
4253 static u8 drm_match_cea_mode_clock_tolerance(const struct drm_display_mode *to_match,
4259 if (!to_match->clock)
4262 if (to_match->picture_aspect_ratio)
4275 if (abs(to_match->clock - clock1) > clock_tolerance &&
4276 abs(to_match->clock - clock2) > clock_tolerance)
4280 if (drm_mode_match(to_match, &cea_mode, match_flags))
4290 * @to_match: display mode
4295 u8 drm_match_cea_mode(const struct drm_display_mode *to_match)
4300 if (!to_match->clock)
4303 if (to_match->picture_aspect_ratio)
4316 if (KHZ2PICOS(to_match->clock) != KHZ2PICOS(clock1) &&
4317 KHZ2PICOS(to_match->clock) != KHZ2PICOS(clock2))
4321 if (drm_mode_match(to_match, &cea_mode, match_flags))
4360 static u8 drm_match_hdmi_mode_clock_tolerance(const struct drm_display_mode *to_match,
4366 if (!to_match->clock)
4369 if (to_match->picture_aspect_ratio)
4380 if (abs(to_match->clock - clock1) > clock_tolerance &&
4381 abs(to_match->clock - clock2) > clock_tolerance)
4384 if (drm_mode_match(to_match, hdmi_mode, match_flags))
4393 * @to_match: display mode
4399 static u8 drm_match_hdmi_mode(const struct drm_display_mode *to_match)
4404 if (!to_match->clock)
4407 if (to_match->picture_aspect_ratio)
4418 if ((KHZ2PICOS(to_match->clock) == KHZ2PICOS(clock1) ||
4419 KHZ2PICOS(to_match->clock) == KHZ2PICOS(clock2)) &&
4420 drm_mode_match(to_match, hdmi_mode, match_flags))