Lines Matching defs:crtc
367 struct drm_mode_crtc crtc;
370 memclear(crtc);
371 crtc.crtc_id = crtcId;
373 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCRTC, &crtc))
383 r->crtc_id = crtc.crtc_id;
384 r->x = crtc.x;
385 r->y = crtc.y;
386 r->mode_valid = crtc.mode_valid;
388 memcpy(&r->mode, &crtc.mode, sizeof(struct drm_mode_modeinfo));
389 r->width = crtc.mode.hdisplay;
390 r->height = crtc.mode.vdisplay;
392 r->buffer_id = crtc.fb_id;
393 r->gamma_size = crtc.gamma_size;
401 struct drm_mode_crtc crtc;
403 memclear(crtc);
404 crtc.x = x;
405 crtc.y = y;
406 crtc.crtc_id = crtcId;
407 crtc.fb_id = bufferId;
408 crtc.set_connectors_ptr = VOID2U64(connectors);
409 crtc.count_connectors = count;
411 memcpy(&crtc.mode, mode, sizeof(struct drm_mode_modeinfo));
412 crtc.mode_valid = 1;
415 return DRM_IOCTL(fd, DRM_IOCTL_MODE_SETCRTC, &crtc);