Lines Matching defs:to_match
3416 static u8 drm_match_cea_mode_clock_tolerance(const struct drm_display_mode *to_match,
3422 if (!to_match->clock)
3425 if (to_match->picture_aspect_ratio)
3436 if (abs(to_match->clock - clock1) > clock_tolerance &&
3437 abs(to_match->clock - clock2) > clock_tolerance)
3441 if (drm_mode_match(to_match, &cea_mode, match_flags))
3451 * @to_match: display mode
3456 u8 drm_match_cea_mode(const struct drm_display_mode *to_match)
3461 if (!to_match->clock)
3464 if (to_match->picture_aspect_ratio)
3475 if (KHZ2PICOS(to_match->clock) != KHZ2PICOS(clock1) &&
3476 KHZ2PICOS(to_match->clock) != KHZ2PICOS(clock2))
3480 if (drm_mode_match(to_match, &cea_mode, match_flags))
3519 static u8 drm_match_hdmi_mode_clock_tolerance(const struct drm_display_mode *to_match,
3525 if (!to_match->clock)
3528 if (to_match->picture_aspect_ratio)
3539 if (abs(to_match->clock - clock1) > clock_tolerance &&
3540 abs(to_match->clock - clock2) > clock_tolerance)
3543 if (drm_mode_match(to_match, hdmi_mode, match_flags))
3552 * @to_match: display mode
3558 static u8 drm_match_hdmi_mode(const struct drm_display_mode *to_match)
3563 if (!to_match->clock)
3566 if (to_match->picture_aspect_ratio)
3577 if ((KHZ2PICOS(to_match->clock) == KHZ2PICOS(clock1) ||
3578 KHZ2PICOS(to_match->clock) == KHZ2PICOS(clock2)) &&
3579 drm_mode_match(to_match, hdmi_mode, match_flags))