Lines Matching refs:to_match

2938 static u8 drm_match_cea_mode_clock_tolerance(const struct drm_display_mode *to_match,  in drm_match_cea_mode_clock_tolerance()  argument
2944 if (!to_match->clock) in drm_match_cea_mode_clock_tolerance()
2947 if (to_match->picture_aspect_ratio) in drm_match_cea_mode_clock_tolerance()
2958 if (abs(to_match->clock - clock1) > clock_tolerance && in drm_match_cea_mode_clock_tolerance()
2959 abs(to_match->clock - clock2) > clock_tolerance) in drm_match_cea_mode_clock_tolerance()
2963 if (drm_mode_match(to_match, &cea_mode, match_flags)) in drm_match_cea_mode_clock_tolerance()
2978 u8 drm_match_cea_mode(const struct drm_display_mode *to_match) in drm_match_cea_mode() argument
2983 if (!to_match->clock) in drm_match_cea_mode()
2986 if (to_match->picture_aspect_ratio) in drm_match_cea_mode()
2997 if (KHZ2PICOS(to_match->clock) != KHZ2PICOS(clock1) && in drm_match_cea_mode()
2998 KHZ2PICOS(to_match->clock) != KHZ2PICOS(clock2)) in drm_match_cea_mode()
3002 if (drm_mode_match(to_match, &cea_mode, match_flags)) in drm_match_cea_mode()
3046 static u8 drm_match_hdmi_mode_clock_tolerance(const struct drm_display_mode *to_match, in drm_match_hdmi_mode_clock_tolerance() argument
3052 if (!to_match->clock) in drm_match_hdmi_mode_clock_tolerance()
3063 if (abs(to_match->clock - clock1) > clock_tolerance && in drm_match_hdmi_mode_clock_tolerance()
3064 abs(to_match->clock - clock2) > clock_tolerance) in drm_match_hdmi_mode_clock_tolerance()
3067 if (drm_mode_match(to_match, hdmi_mode, match_flags)) in drm_match_hdmi_mode_clock_tolerance()
3082 static u8 drm_match_hdmi_mode(const struct drm_display_mode *to_match) in drm_match_hdmi_mode() argument
3087 if (!to_match->clock) in drm_match_hdmi_mode()
3098 if ((KHZ2PICOS(to_match->clock) == KHZ2PICOS(clock1) || in drm_match_hdmi_mode()
3099 KHZ2PICOS(to_match->clock) == KHZ2PICOS(clock2)) && in drm_match_hdmi_mode()
3100 drm_mode_match(to_match, hdmi_mode, match_flags)) in drm_match_hdmi_mode()