Lines Matching refs:crtc
141 void MinuiBackendDrm::DrmDisableCrtc(int drm_fd, drmModeCrtc* crtc) { in DrmDisableCrtc() argument
142 if (crtc) { in DrmDisableCrtc()
143 drmModeSetCrtc(drm_fd, crtc->crtc_id, in DrmDisableCrtc()
152 bool MinuiBackendDrm::DrmEnableCrtc(int drm_fd, drmModeCrtc* crtc, in DrmEnableCrtc() argument
154 if (drmModeSetCrtc(drm_fd, crtc->crtc_id, surface->fb_id, 0, 0, // x,y in DrmEnableCrtc()
182 int32_t crtc; in find_crtc_for_connector() local
184 crtc = encoder->crtc_id; in find_crtc_for_connector()
186 return drmModeGetCrtc(fd, crtc); in find_crtc_for_connector()
190 crtc = -1; in find_crtc_for_connector()
197 crtc = resources->crtcs[j]; in find_crtc_for_connector()
200 if (crtc >= 0) { in find_crtc_for_connector()
202 return drmModeGetCrtc(fd, crtc); in find_crtc_for_connector()
277 drmModeCrtc* crtc = find_crtc_for_connector(fd, resources, connector); in DisableNonMainCrtcs() local
278 if (crtc->crtc_id != main_crtc->crtc_id) { in DisableNonMainCrtcs()
279 DrmDisableCrtc(fd, crtc); in DisableNonMainCrtcs()
281 drmModeFreeCrtc(crtc); in DisableNonMainCrtcs()