Lines Matching refs:to_match
4244 static u8 drm_match_cea_mode_clock_tolerance(const struct drm_display_mode *to_match, in drm_match_cea_mode_clock_tolerance() argument
4250 if (!to_match->clock) in drm_match_cea_mode_clock_tolerance()
4253 if (to_match->picture_aspect_ratio) in drm_match_cea_mode_clock_tolerance()
4266 if (abs(to_match->clock - clock1) > clock_tolerance && in drm_match_cea_mode_clock_tolerance()
4267 abs(to_match->clock - clock2) > clock_tolerance) in drm_match_cea_mode_clock_tolerance()
4271 if (drm_mode_match(to_match, &cea_mode, match_flags)) in drm_match_cea_mode_clock_tolerance()
4286 u8 drm_match_cea_mode(const struct drm_display_mode *to_match) in drm_match_cea_mode() argument
4291 if (!to_match->clock) in drm_match_cea_mode()
4294 if (to_match->picture_aspect_ratio) in drm_match_cea_mode()
4307 if (KHZ2PICOS(to_match->clock) != KHZ2PICOS(clock1) && in drm_match_cea_mode()
4308 KHZ2PICOS(to_match->clock) != KHZ2PICOS(clock2)) in drm_match_cea_mode()
4312 if (drm_mode_match(to_match, &cea_mode, match_flags)) in drm_match_cea_mode()
4351 static u8 drm_match_hdmi_mode_clock_tolerance(const struct drm_display_mode *to_match, in drm_match_hdmi_mode_clock_tolerance() argument
4357 if (!to_match->clock) in drm_match_hdmi_mode_clock_tolerance()
4360 if (to_match->picture_aspect_ratio) in drm_match_hdmi_mode_clock_tolerance()
4371 if (abs(to_match->clock - clock1) > clock_tolerance && in drm_match_hdmi_mode_clock_tolerance()
4372 abs(to_match->clock - clock2) > clock_tolerance) in drm_match_hdmi_mode_clock_tolerance()
4375 if (drm_mode_match(to_match, hdmi_mode, match_flags)) in drm_match_hdmi_mode_clock_tolerance()
4390 static u8 drm_match_hdmi_mode(const struct drm_display_mode *to_match) in drm_match_hdmi_mode() argument
4395 if (!to_match->clock) in drm_match_hdmi_mode()
4398 if (to_match->picture_aspect_ratio) in drm_match_hdmi_mode()
4409 if ((KHZ2PICOS(to_match->clock) == KHZ2PICOS(clock1) || in drm_match_hdmi_mode()
4410 KHZ2PICOS(to_match->clock) == KHZ2PICOS(clock2)) && in drm_match_hdmi_mode()
4411 drm_mode_match(to_match, hdmi_mode, match_flags)) in drm_match_hdmi_mode()