Lines Matching refs:crtc
357 struct drm_mode_crtc crtc; in drmModeGetCrtc() local
360 memclear(crtc); in drmModeGetCrtc()
361 crtc.crtc_id = crtcId; in drmModeGetCrtc()
363 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCRTC, &crtc)) in drmModeGetCrtc()
373 r->crtc_id = crtc.crtc_id; in drmModeGetCrtc()
374 r->x = crtc.x; in drmModeGetCrtc()
375 r->y = crtc.y; in drmModeGetCrtc()
376 r->mode_valid = crtc.mode_valid; in drmModeGetCrtc()
378 memcpy(&r->mode, &crtc.mode, sizeof(struct drm_mode_modeinfo)); in drmModeGetCrtc()
379 r->width = crtc.mode.hdisplay; in drmModeGetCrtc()
380 r->height = crtc.mode.vdisplay; in drmModeGetCrtc()
382 r->buffer_id = crtc.fb_id; in drmModeGetCrtc()
383 r->gamma_size = crtc.gamma_size; in drmModeGetCrtc()
391 struct drm_mode_crtc crtc; in drmModeSetCrtc() local
393 memclear(crtc); in drmModeSetCrtc()
394 crtc.x = x; in drmModeSetCrtc()
395 crtc.y = y; in drmModeSetCrtc()
396 crtc.crtc_id = crtcId; in drmModeSetCrtc()
397 crtc.fb_id = bufferId; in drmModeSetCrtc()
398 crtc.set_connectors_ptr = VOID2U64(connectors); in drmModeSetCrtc()
399 crtc.count_connectors = count; in drmModeSetCrtc()
401 memcpy(&crtc.mode, mode, sizeof(struct drm_mode_modeinfo)); in drmModeSetCrtc()
402 crtc.mode_valid = 1; in drmModeSetCrtc()
405 return DRM_IOCTL(fd, DRM_IOCTL_MODE_SETCRTC, &crtc); in drmModeSetCrtc()