Lines Matching refs:crtc
137 void MinuiBackendDrm::DrmDisableCrtc(int drm_fd, drmModeCrtc* crtc) { in DrmDisableCrtc() argument
138 if (crtc) { in DrmDisableCrtc()
139 drmModeSetCrtc(drm_fd, crtc->crtc_id, in DrmDisableCrtc()
148 bool MinuiBackendDrm::DrmEnableCrtc(int drm_fd, drmModeCrtc* crtc, in DrmEnableCrtc() argument
150 if (drmModeSetCrtc(drm_fd, crtc->crtc_id, surface->fb_id, 0, 0, // x,y in DrmEnableCrtc()
178 int32_t crtc; in find_crtc_for_connector() local
180 crtc = encoder->crtc_id; in find_crtc_for_connector()
182 return drmModeGetCrtc(fd, crtc); in find_crtc_for_connector()
186 crtc = -1; in find_crtc_for_connector()
193 crtc = resources->crtcs[j]; in find_crtc_for_connector()
196 if (crtc >= 0) { in find_crtc_for_connector()
198 return drmModeGetCrtc(fd, crtc); in find_crtc_for_connector()
273 drmModeCrtc* crtc = find_crtc_for_connector(fd, resources, connector); in DisableNonMainCrtcs() local
274 if (crtc->crtc_id != main_crtc->crtc_id) { in DisableNonMainCrtcs()
275 DrmDisableCrtc(fd, crtc); in DisableNonMainCrtcs()
277 drmModeFreeCrtc(crtc); in DisableNonMainCrtcs()