Lines Matching defs:intel_crtc
104 struct intel_crtc {
158 crtc_id(struct intel_crtc *crtc)
307 struct intel_crtc *intel_crtc = crtc->driver_private;
308 struct intel_mode *mode = intel_crtc->mode;
343 if (!intel_crtc->scanout_fb_id) {
361 if (intel_crtc->rotate_fb_id) {
362 fb_id = intel_crtc->rotate_fb_id;
365 } else if (intel_crtc->scanout_fb_id && intel_crtc->scanout_pixmap->drawable.width >= crtc->mode.HDisplay && intel_crtc->scanout_pixmap->drawable.height >= crtc->mode.VDisplay) {
366 fb_id = intel_crtc->scanout_fb_id;
370 ret = drmModeSetCrtc(mode->fd, crtc_id(intel_crtc),
372 &intel_crtc->kmode);
415 struct intel_crtc *intel_crtc = crtc->driver_private;
416 struct intel_mode *intel_mode = intel_crtc->mode;
449 mode_to_kmode(crtc->scrn, &intel_crtc->kmode, mode);
469 struct intel_crtc *intel_crtc = crtc->driver_private;
470 struct intel_mode *mode = intel_crtc->mode;
472 drmModeMoveCursor(mode->fd, crtc_id(intel_crtc), x, y);
478 struct intel_crtc *intel_crtc = crtc->driver_private;
481 ret = dri_bo_subdata(intel_crtc->cursor, 0, 64*64*4, image);
506 struct intel_crtc *intel_crtc = crtc->driver_private;
507 struct intel_mode *mode = intel_crtc->mode;
509 drmModeSetCursor(mode->fd, crtc_id(intel_crtc), 0, 64, 64);
515 struct intel_crtc *intel_crtc = crtc->driver_private;
516 struct intel_mode *mode = intel_crtc->mode;
518 drmModeSetCursor(mode->fd, crtc_id(intel_crtc),
519 intel_crtc->cursor->handle, 64, 64);
526 struct intel_crtc *intel_crtc = crtc->driver_private;
527 struct intel_mode *mode = intel_crtc->mode;
532 intel_crtc->rotate_bo = intel_allocate_framebuffer(scrn,
538 if (!intel_crtc->rotate_bo) {
546 intel_crtc->rotate_bo->handle,
547 &intel_crtc->rotate_fb_id);
550 drm_intel_bo_unreference(intel_crtc->rotate_bo);
554 intel_crtc->rotate_pitch = rotate_pitch;
555 return intel_crtc->rotate_bo;
583 struct intel_crtc *intel_crtc = crtc->driver_private;
594 if (intel_crtc->rotate_bo == NULL) {
604 intel_crtc->rotate_pitch,
613 intel_set_pixmap_bo(rotate_pixmap, intel_crtc->rotate_bo);
625 struct intel_crtc *intel_crtc = crtc->driver_private;
626 struct intel_mode *mode = intel_crtc->mode;
636 drmModeRmFB(mode->fd, intel_crtc->rotate_fb_id);
637 intel_crtc->rotate_fb_id = 0;
639 dri_bo_unreference(intel_crtc->rotate_bo);
640 intel_crtc->rotate_bo = NULL;
650 struct intel_crtc *intel_crtc = crtc->driver_private;
651 struct intel_mode *mode = intel_crtc->mode;
653 drmModeCrtcSetGamma(mode->fd, crtc_id(intel_crtc),
660 struct intel_crtc *intel_crtc = crtc->driver_private;
662 if (intel_crtc->cursor) {
663 drmModeSetCursor(intel_crtc->mode->fd, crtc_id(intel_crtc), 0, 64, 64);
664 drm_intel_bo_unreference(intel_crtc->cursor);
665 intel_crtc->cursor = NULL;
668 list_del(&intel_crtc->link);
669 free(intel_crtc);
678 struct intel_crtc *intel_crtc = crtc->driver_private;
683 if (ppix == intel_crtc->scanout_pixmap)
687 intel_crtc->scanout_pixmap = NULL;
688 if (intel_crtc->scanout_fb_id) {
689 drmModeRmFB(intel->drmSubFD, intel_crtc->scanout_fb_id);
690 intel_crtc->scanout_fb_id = 0;
704 intel_crtc->scanout_pixmap = ppix;
708 bo->handle, &intel_crtc->scanout_fb_id) == 0;
739 struct intel_crtc *intel_crtc;
741 intel_crtc = calloc(sizeof(struct intel_crtc), 1);
742 if (intel_crtc == NULL)
747 free(intel_crtc);
751 intel_crtc->mode_crtc = drmModeGetCrtc(mode->fd,
753 if (intel_crtc->mode_crtc == NULL) {
754 free(intel_crtc);
758 intel_crtc->mode = mode;
759 crtc->driver_private = intel_crtc;
761 intel_crtc->pipe = drm_intel_get_pipe_from_crtc_id(intel->bufmgr,
762 crtc_id(intel_crtc));
764 intel_crtc->cursor = drm_intel_bo_alloc(intel->bufmgr, "ARGB cursor",
767 intel_crtc->crtc = crtc;
768 list_add(&intel_crtc->link, &mode->crtcs);
1613 struct intel_crtc *intel_crtc = xf86_config->crtc[0]->driver_private;
1614 struct intel_mode *mode = intel_crtc->mode;
1714 struct intel_crtc *crtc = config->crtc[0]->driver_private;
1963 struct intel_crtc *intel_crtc = crtc->driver_private;
1965 if ((int32_t) (sequence - intel_crtc->msc_prev) < -0x40000000)
1966 intel_crtc->msc_high += 0x100000000L;
1967 intel_crtc->msc_prev = sequence;
1968 return intel_crtc->msc_high + sequence;
2325 struct intel_crtc,
2353 struct intel_crtc *intel_crtc = crtc->driver_private;
2354 return intel_crtc->pipe;
2359 struct intel_crtc *intel_crtc = crtc->driver_private;
2382 drm_crtc = drmModeGetCrtc(intel_crtc->mode->fd, crtc_id(intel_crtc));
2387 (intel_crtc->mode->fb_id == drm_crtc->buffer_id ||
2388 intel_crtc->mode->old_fb_id == drm_crtc->buffer_id));
2476 struct intel_crtc *intel_crtc;
2484 intel_crtc = xf86_config->crtc[i]->driver_private;
2485 if (intel_crtc->mode_crtc->buffer_id)
2486 fbcon_id = intel_crtc->mode_crtc->buffer_id;