Lines Matching refs:crtc

70 struct crtc {  struct
71 drmModeCrtc *crtc; member
102 struct crtc *crtcs;
466 struct crtc *_crtc = &dev->resources->crtcs[i]; in dump_crtcs()
467 drmModeCrtc *crtc = _crtc->crtc; in dump_crtcs() local
468 if (!crtc) in dump_crtcs()
472 crtc->crtc_id, in dump_crtcs()
473 crtc->buffer_id, in dump_crtcs()
474 crtc->x, crtc->y, in dump_crtcs()
475 crtc->width, crtc->height); in dump_crtcs()
476 dump_mode(&crtc->mode); in dump_crtcs()
583 free_properties(res, res, crtc); in free_resources()
585 free_resource(res, res, crtc, Crtc); in free_resources()
646 get_resource(res, res, crtc, Crtc); in get_resources()
689 get_properties(res, res, crtc, CRTC); in get_resources()
693 res->crtcs[i].mode = &res->crtcs[i].crtc->mode; in get_resources()
721 drmModeCrtc *crtc = dev->resources->crtcs[i].crtc; in get_crtc_index() local
722 if (crtc && crtc->crtc_id == id) in get_crtc_index()
793 struct crtc *crtc; member
842 static struct crtc *pipe_find_crtc(struct device *dev, struct pipe_arg *pipe) in pipe_find_crtc()
912 struct crtc *crtc = &dev->resources->crtcs[i]; in pipe_find_crtc_and_mode() local
914 if (pipe->crtc_id == crtc->crtc->crtc_id) { in pipe_find_crtc_and_mode()
915 pipe->crtc = crtc; in pipe_find_crtc_and_mode()
920 pipe->crtc = pipe_find_crtc(dev, pipe); in pipe_find_crtc_and_mode()
923 if (!pipe->crtc) { in pipe_find_crtc_and_mode()
929 pipe->crtc->mode = mode; in pipe_find_crtc_and_mode()
970 find_object(dev->resources, res, crtc, CRTC); in set_property()
1026 drmModePageFlip(fd, pipe->crtc->crtc->crtc_id, new_fb_id, in page_flip_handler()
1060 struct crtc *crtc = NULL; in set_plane() local
1069 crtc = &dev->resources->crtcs[i]; in set_plane()
1075 if (!crtc) { in set_plane()
1102 crtc->crtc->crtc_id); in set_plane()
1127 crtc_x = (crtc->mode->hdisplay - crtc_w) / 2; in set_plane()
1128 crtc_y = (crtc->mode->vdisplay - crtc_h) / 2; in set_plane()
1135 if (drmModeSetPlane(dev->fd, plane_id, crtc->crtc->crtc_id, p->fb_id, in set_plane()
1143 ovr->crtc_id = crtc->crtc->crtc_id; in set_plane()
1215 printf("crtc %d\n", pipe->crtc->crtc->crtc_id); in set_mode()
1217 ret = drmModeSetCrtc(dev->fd, pipe->crtc->crtc->crtc_id, fb_id, in set_mode()
1275 pipe->crtc->crtc->crtc_id, in set_cursors()
1325 ret = drmModePageFlip(dev->fd, pipe->crtc->crtc->crtc_id, in test_page_flip()