Lines Matching defs:to_match
3312 static u8 drm_match_cea_mode_clock_tolerance(const struct drm_display_mode *to_match,
3318 if (!to_match->clock)
3321 if (to_match->picture_aspect_ratio)
3332 if (abs(to_match->clock - clock1) > clock_tolerance &&
3333 abs(to_match->clock - clock2) > clock_tolerance)
3337 if (drm_mode_match(to_match, &cea_mode, match_flags))
3347 * @to_match: display mode
3352 u8 drm_match_cea_mode(const struct drm_display_mode *to_match)
3357 if (!to_match->clock)
3360 if (to_match->picture_aspect_ratio)
3371 if (KHZ2PICOS(to_match->clock) != KHZ2PICOS(clock1) &&
3372 KHZ2PICOS(to_match->clock) != KHZ2PICOS(clock2))
3376 if (drm_mode_match(to_match, &cea_mode, match_flags))
3415 static u8 drm_match_hdmi_mode_clock_tolerance(const struct drm_display_mode *to_match,
3421 if (!to_match->clock)
3424 if (to_match->picture_aspect_ratio)
3435 if (abs(to_match->clock - clock1) > clock_tolerance &&
3436 abs(to_match->clock - clock2) > clock_tolerance)
3439 if (drm_mode_match(to_match, hdmi_mode, match_flags))
3448 * @to_match: display mode
3454 static u8 drm_match_hdmi_mode(const struct drm_display_mode *to_match)
3459 if (!to_match->clock)
3462 if (to_match->picture_aspect_ratio)
3473 if ((KHZ2PICOS(to_match->clock) == KHZ2PICOS(clock1) ||
3474 KHZ2PICOS(to_match->clock) == KHZ2PICOS(clock2)) &&
3475 drm_mode_match(to_match, hdmi_mode, match_flags))