Lines Matching refs:crtc
233 drmModeCrtc *crtc; in find_crtc_for_connector() local
265 crtc = drmModeGetCrtc (fd, res->crtcs[i]); in find_crtc_for_connector()
266 if (crtc) { in find_crtc_for_connector()
267 if (crtc_id == crtc->crtc_id) { in find_crtc_for_connector()
270 return crtc; in find_crtc_for_connector()
272 drmModeFreeCrtc (crtc); in find_crtc_for_connector()
283 drmModeCrtc *crtc; in connector_is_used() local
286 crtc = find_crtc_for_connector (fd, res, conn, NULL); in connector_is_used()
287 if (crtc) { in connector_is_used()
288 result = crtc->buffer_id != 0; in connector_is_used()
289 drmModeFreeCrtc (crtc); in connector_is_used()
717 drmModeCrtc *crtc; in gst_kms_sink_start() local
728 crtc = NULL; in gst_kms_sink_start()
754 crtc = find_crtc_for_connector (self->fd, res, conn, &self->pipe); in gst_kms_sink_start()
755 if (!crtc) in gst_kms_sink_start()
758 if (!crtc->mode_valid || self->modesetting_enabled) { in gst_kms_sink_start()
764 if (crtc->mode_valid && self->modesetting_enabled && self->restore_crtc) { in gst_kms_sink_start()
765 self->saved_crtc = (drmModeCrtc *) crtc; in gst_kms_sink_start()
778 plane = find_plane_for_crtc (self->fd, res, pres, crtc->crtc_id); in gst_kms_sink_start()
788 self->crtc_id = crtc->crtc_id; in gst_kms_sink_start()
795 self->hdisplay = crtc->mode.hdisplay; in gst_kms_sink_start()
796 self->vdisplay = crtc->mode.vdisplay; in gst_kms_sink_start()
808 self->buffer_id = crtc->buffer_id; in gst_kms_sink_start()
833 if (crtc != self->saved_crtc) in gst_kms_sink_start()
834 drmModeFreeCrtc (crtc); in gst_kms_sink_start()
935 drmModeCrtc *crtc = (drmModeCrtc *) self->saved_crtc; in gst_kms_sink_stop() local
937 err = drmModeSetCrtc (self->fd, crtc->crtc_id, crtc->buffer_id, crtc->x, in gst_kms_sink_stop()
938 crtc->y, (uint32_t *) & self->conn_id, 1, &crtc->mode); in gst_kms_sink_stop()
943 drmModeFreeCrtc (crtc); in gst_kms_sink_stop()