Lines Matching refs:to_match

3405 static u8 drm_match_cea_mode_clock_tolerance(const struct drm_display_mode *to_match,  in drm_match_cea_mode_clock_tolerance()  argument
3411 if (!to_match->clock) in drm_match_cea_mode_clock_tolerance()
3414 if (to_match->picture_aspect_ratio) in drm_match_cea_mode_clock_tolerance()
3425 if (abs(to_match->clock - clock1) > clock_tolerance && in drm_match_cea_mode_clock_tolerance()
3426 abs(to_match->clock - clock2) > clock_tolerance) in drm_match_cea_mode_clock_tolerance()
3430 if (drm_mode_match(to_match, &cea_mode, match_flags)) in drm_match_cea_mode_clock_tolerance()
3445 u8 drm_match_cea_mode(const struct drm_display_mode *to_match) in drm_match_cea_mode() argument
3450 if (!to_match->clock) in drm_match_cea_mode()
3453 if (to_match->picture_aspect_ratio) in drm_match_cea_mode()
3464 if (KHZ2PICOS(to_match->clock) != KHZ2PICOS(clock1) && in drm_match_cea_mode()
3465 KHZ2PICOS(to_match->clock) != KHZ2PICOS(clock2)) in drm_match_cea_mode()
3469 if (drm_mode_match(to_match, &cea_mode, match_flags)) in drm_match_cea_mode()
3508 static u8 drm_match_hdmi_mode_clock_tolerance(const struct drm_display_mode *to_match, in drm_match_hdmi_mode_clock_tolerance() argument
3514 if (!to_match->clock) in drm_match_hdmi_mode_clock_tolerance()
3517 if (to_match->picture_aspect_ratio) in drm_match_hdmi_mode_clock_tolerance()
3528 if (abs(to_match->clock - clock1) > clock_tolerance && in drm_match_hdmi_mode_clock_tolerance()
3529 abs(to_match->clock - clock2) > clock_tolerance) in drm_match_hdmi_mode_clock_tolerance()
3532 if (drm_mode_match(to_match, hdmi_mode, match_flags)) in drm_match_hdmi_mode_clock_tolerance()
3547 static u8 drm_match_hdmi_mode(const struct drm_display_mode *to_match) in drm_match_hdmi_mode() argument
3552 if (!to_match->clock) in drm_match_hdmi_mode()
3555 if (to_match->picture_aspect_ratio) in drm_match_hdmi_mode()
3566 if ((KHZ2PICOS(to_match->clock) == KHZ2PICOS(clock1) || in drm_match_hdmi_mode()
3567 KHZ2PICOS(to_match->clock) == KHZ2PICOS(clock2)) && in drm_match_hdmi_mode()
3568 drm_mode_match(to_match, hdmi_mode, match_flags)) in drm_match_hdmi_mode()