• Home
  • Raw
  • Download

Lines Matching refs:set

670 int drm_crtc_helper_set_config(struct drm_mode_set *set)  in drm_crtc_helper_set_config()  argument
686 if (!set) in drm_crtc_helper_set_config()
689 if (!set->crtc) in drm_crtc_helper_set_config()
692 if (!set->crtc->helper_private) in drm_crtc_helper_set_config()
695 crtc_funcs = set->crtc->helper_private; in drm_crtc_helper_set_config()
698 set->crtc, set->crtc->base.id, set->fb, set->connectors, in drm_crtc_helper_set_config()
699 (int)set->num_connectors, set->x, set->y); in drm_crtc_helper_set_config()
701 dev = set->crtc->dev; in drm_crtc_helper_set_config()
704 save_enabled = set->crtc->enabled; in drm_crtc_helper_set_config()
724 if (set->crtc->fb != set->fb) { in drm_crtc_helper_set_config()
726 if (set->crtc->fb == NULL) { in drm_crtc_helper_set_config()
729 } else if ((set->fb->bits_per_pixel != in drm_crtc_helper_set_config()
730 set->crtc->fb->bits_per_pixel) || in drm_crtc_helper_set_config()
731 set->fb->depth != set->crtc->fb->depth) in drm_crtc_helper_set_config()
737 if (set->x != set->crtc->x || set->y != set->crtc->y) in drm_crtc_helper_set_config()
740 if (set->mode && !drm_mode_equal(set->mode, &set->crtc->mode)) { in drm_crtc_helper_set_config()
742 drm_mode_debug_printmodeline(&set->crtc->mode); in drm_crtc_helper_set_config()
743 drm_mode_debug_printmodeline(set->mode); in drm_crtc_helper_set_config()
754 for (ro = 0; ro < set->num_connectors; ro++) { in drm_crtc_helper_set_config()
755 if (set->connectors[ro] == connector) { in drm_crtc_helper_set_config()
785 if (connector->encoder->crtc == set->crtc) in drm_crtc_helper_set_config()
790 for (ro = 0; ro < set->num_connectors; ro++) { in drm_crtc_helper_set_config()
791 if (set->connectors[ro] == connector) in drm_crtc_helper_set_config()
792 new_crtc = set->crtc; in drm_crtc_helper_set_config()
815 old_fb = set->crtc->fb; in drm_crtc_helper_set_config()
816 set->crtc->fb = set->fb; in drm_crtc_helper_set_config()
817 set->crtc->enabled = (set->mode != NULL); in drm_crtc_helper_set_config()
818 if (set->mode != NULL) { in drm_crtc_helper_set_config()
820 drm_mode_debug_printmodeline(set->mode); in drm_crtc_helper_set_config()
821 if (!drm_crtc_helper_set_mode(set->crtc, set->mode, in drm_crtc_helper_set_config()
822 set->x, set->y, in drm_crtc_helper_set_config()
825 set->crtc); in drm_crtc_helper_set_config()
830 set->crtc->desired_x = set->x; in drm_crtc_helper_set_config()
831 set->crtc->desired_y = set->y; in drm_crtc_helper_set_config()
832 set->crtc->desired_mode = set->mode; in drm_crtc_helper_set_config()
836 old_fb = set->crtc->fb; in drm_crtc_helper_set_config()
837 if (set->crtc->fb != set->fb) in drm_crtc_helper_set_config()
838 set->crtc->fb = set->fb; in drm_crtc_helper_set_config()
839 ret = crtc_funcs->mode_set_base(set->crtc, in drm_crtc_helper_set_config()
840 set->x, set->y, old_fb); in drm_crtc_helper_set_config()
850 set->crtc->enabled = save_enabled; in drm_crtc_helper_set_config()
851 set->crtc->fb = old_fb; in drm_crtc_helper_set_config()