Lines Matching full:mode2
1471 const struct drm_display_mode *mode2) in drm_mode_match_timings() argument
1473 return mode1->hdisplay == mode2->hdisplay && in drm_mode_match_timings()
1474 mode1->hsync_start == mode2->hsync_start && in drm_mode_match_timings()
1475 mode1->hsync_end == mode2->hsync_end && in drm_mode_match_timings()
1476 mode1->htotal == mode2->htotal && in drm_mode_match_timings()
1477 mode1->hskew == mode2->hskew && in drm_mode_match_timings()
1478 mode1->vdisplay == mode2->vdisplay && in drm_mode_match_timings()
1479 mode1->vsync_start == mode2->vsync_start && in drm_mode_match_timings()
1480 mode1->vsync_end == mode2->vsync_end && in drm_mode_match_timings()
1481 mode1->vtotal == mode2->vtotal && in drm_mode_match_timings()
1482 mode1->vscan == mode2->vscan; in drm_mode_match_timings()
1486 const struct drm_display_mode *mode2) in drm_mode_match_clock() argument
1492 if (mode1->clock && mode2->clock) in drm_mode_match_clock()
1493 return KHZ2PICOS(mode1->clock) == KHZ2PICOS(mode2->clock); in drm_mode_match_clock()
1495 return mode1->clock == mode2->clock; in drm_mode_match_clock()
1499 const struct drm_display_mode *mode2) in drm_mode_match_flags() argument
1502 (mode2->flags & ~DRM_MODE_FLAG_3D_MASK); in drm_mode_match_flags()
1506 const struct drm_display_mode *mode2) in drm_mode_match_3d_flags() argument
1509 (mode2->flags & DRM_MODE_FLAG_3D_MASK); in drm_mode_match_3d_flags()
1513 const struct drm_display_mode *mode2) in drm_mode_match_aspect_ratio() argument
1515 return mode1->picture_aspect_ratio == mode2->picture_aspect_ratio; in drm_mode_match_aspect_ratio()
1521 * @mode2: second mode
1524 * Check to see if @mode1 and @mode2 are equivalent.
1530 const struct drm_display_mode *mode2, in drm_mode_match() argument
1533 if (!mode1 && !mode2) in drm_mode_match()
1536 if (!mode1 || !mode2) in drm_mode_match()
1540 !drm_mode_match_timings(mode1, mode2)) in drm_mode_match()
1544 !drm_mode_match_clock(mode1, mode2)) in drm_mode_match()
1548 !drm_mode_match_flags(mode1, mode2)) in drm_mode_match()
1552 !drm_mode_match_3d_flags(mode1, mode2)) in drm_mode_match()
1556 !drm_mode_match_aspect_ratio(mode1, mode2)) in drm_mode_match()
1566 * @mode2: second mode
1568 * Check to see if @mode1 and @mode2 are equivalent.
1574 const struct drm_display_mode *mode2) in drm_mode_equal() argument
1576 return drm_mode_match(mode1, mode2, in drm_mode_equal()
1588 * @mode2: second mode
1590 * Check to see if @mode1 and @mode2 are equivalent, but
1597 const struct drm_display_mode *mode2) in drm_mode_equal_no_clocks() argument
1599 return drm_mode_match(mode1, mode2, in drm_mode_equal_no_clocks()
1609 * @mode2: second mode
1611 * Check to see if @mode1 and @mode2 are equivalent, but
1618 const struct drm_display_mode *mode2) in drm_mode_equal_no_clocks_no_stereo() argument
1620 return drm_mode_match(mode1, mode2, in drm_mode_equal_no_clocks_no_stereo()