Lines Matching defs:mode2
824 * @mode2: second mode
829 * Check to see if @mode1 and @mode2 are equivalent.
834 bool drm_mode_equal(const struct drm_display_mode *mode1, const struct drm_display_mode *mode2)
838 if (mode1->clock && mode2->clock) {
839 if (KHZ2PICOS(mode1->clock) != KHZ2PICOS(mode2->clock))
841 } else if (mode1->clock != mode2->clock)
844 return drm_mode_equal_no_clocks(mode1, mode2);
850 * @mode2: second mode
855 * Check to see if @mode1 and @mode2 are equivalent, but
861 bool drm_mode_equal_no_clocks(const struct drm_display_mode *mode1, const struct drm_display_mode *mode2)
863 if (mode1->hdisplay == mode2->hdisplay &&
864 mode1->hsync_start == mode2->hsync_start &&
865 mode1->hsync_end == mode2->hsync_end &&
866 mode1->htotal == mode2->htotal &&
867 mode1->hskew == mode2->hskew &&
868 mode1->vdisplay == mode2->vdisplay &&
869 mode1->vsync_start == mode2->vsync_start &&
870 mode1->vsync_end == mode2->vsync_end &&
871 mode1->vtotal == mode2->vtotal &&
872 mode1->vscan == mode2->vscan &&
873 mode1->flags == mode2->flags)