• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/gpu/drm/

Lines Matching defs:set

72 	/* set all modes to the unverified state */
295 * drm_crtc_set_mode - set a mode
304 * Try to set @mode on @crtc. Give @crtc and its associated connectors a chance
305 * to fixup or reject the mode prior to trying to set it.
308 * True if the mode was set successfully, or false otherwise.
387 DRM_DEBUG_KMS("[ENCODER:%d:%s] set [MODE:%d:%s]\n",
394 /* Now enable the clocks, plane, pipe, and connectors that we set up. */
420 int drm_crtc_helper_set_config(struct drm_mode_set *set)
426 bool mode_changed = false; /* if true do a full mode set */
435 if (!set)
438 if (!set->crtc)
441 if (!set->crtc->helper_private)
444 crtc_funcs = set->crtc->helper_private;
446 if (set->fb) {
448 set->crtc->base.id, set->fb->base.id,
449 (int)set->num_connectors, set->x, set->y);
452 set->crtc->base.id, (int)set->num_connectors,
453 set->x, set->y);
456 dev = set->crtc->dev;
501 if (set->crtc->fb != set->fb) {
502 /* If we have no fb then treat it as a full mode set */
503 if (set->crtc->fb == NULL) {
504 DRM_DEBUG_KMS("crtc has no fb, full mode set\n");
506 } else if (set->fb == NULL) {
512 if (set->x != set->crtc->x || set->y != set->crtc->y)
515 if (set->mode && !drm_mode_equal(set->mode, &set->crtc->mode)) {
516 DRM_DEBUG_KMS("modes are different, full mode set\n");
517 drm_mode_debug_printmodeline(&set->crtc->mode);
518 drm_mode_debug_printmodeline(set->mode);
528 for (ro = 0; ro < set->num_connectors; ro++) {
529 if (set->connectors[ro] == connector) {
544 * the appropriate crtc will be set later.
562 if (connector->encoder->crtc == set->crtc)
567 for (ro = 0; ro < set->num_connectors; ro++) {
568 if (set->connectors[ro] == connector)
569 new_crtc = set->crtc;
598 set->crtc->enabled = (set->mode != NULL);
599 if (set->mode != NULL) {
600 DRM_DEBUG_KMS("attempting to set mode from"
602 drm_mode_debug_printmodeline(set->mode);
603 old_fb = set->crtc->fb;
604 set->crtc->fb = set->fb;
605 if (!drm_crtc_helper_set_mode(set->crtc, set->mode,
606 set->x, set->y,
608 DRM_ERROR("failed to set mode on [CRTC:%d]\n",
609 set->crtc->base.id);
610 set->crtc->fb = old_fb;
617 set->crtc->x = set->x;
618 set->crtc->y = set->y;
620 old_fb = set->crtc->fb;
621 if (set->crtc->fb != set->fb)
622 set->crtc->fb = set->fb;
623 ret = crtc_funcs->mode_set_base(set->crtc,
624 set->x, set->y, old_fb);
626 set->crtc->fb = old_fb;
772 DRM_ERROR("failed to set mode on crtc %p\n", crtc);