Lines Matching full:crtc
13 static int set_crtc_mode(struct sp_dev *dev, struct sp_crtc *crtc,
36 ret = drmModePropertySetAdd(pset, crtc->crtc->crtc_id,
37 crtc->mode_pid, create_blob.blob_id) ||
38 drmModePropertySetAdd(pset, crtc->crtc->crtc_id,
39 crtc->active_pid, 1) ||
41 conn->crtc_id_pid, crtc->crtc->crtc_id);
58 memcpy(&crtc->crtc->mode, mode, sizeof(struct drm_mode_modeinfo));
59 crtc->crtc->mode_valid = 1;
119 printf("could not find crtc for the encoder\n");
133 struct sp_plane *get_sp_plane(struct sp_dev *dev, struct sp_crtc *crtc)
143 if (!(p->plane->possible_crtcs & (1 << crtc->pipe)))
169 struct sp_crtc *crtc, int x, int y)
177 if ((w + x) > crtc->crtc->mode.hdisplay)
178 w = crtc->crtc->mode.hdisplay - x;
179 if ((h + y) > crtc->crtc->mode.vdisplay)
180 h = crtc->crtc->mode.vdisplay - y;
183 crtc->crtc->crtc_id, plane->bo->fb_id, 0, x, y, w, h,
186 printf("failed to set plane to crtc ret=%d\n", ret);
193 drmModePropertySetPtr pset, struct sp_crtc *crtc, int x, int y)
201 if ((w + x) > crtc->crtc->mode.hdisplay)
202 w = crtc->crtc->mode.hdisplay - x;
203 if ((h + y) > crtc->crtc->mode.vdisplay)
204 h = crtc->crtc->mode.vdisplay - y;
207 plane->crtc_pid, crtc->crtc->crtc_id)