Lines Matching refs:crtcs
193 dev->crtcs = calloc(dev->num_crtcs, sizeof(struct sp_crtc)); in create_sp_dev()
194 if (!dev->crtcs) { in create_sp_dev()
201 dev->crtcs[i].crtc = drmModeGetCrtc(dev->fd, r->crtcs[i]); in create_sp_dev()
202 if (!dev->crtcs[i].crtc) { in create_sp_dev()
206 dev->crtcs[i].pipe = i; in create_sp_dev()
207 dev->crtcs[i].num_planes = 0; in create_sp_dev()
209 props = drmModeObjectGetProperties(dev->fd, r->crtcs[i], in create_sp_dev()
216 dev->crtcs[i].mode_pid = get_prop_id(dev, props, "MODE_ID"); in create_sp_dev()
217 dev->crtcs[i].active_pid = get_prop_id(dev, props, "ACTIVE"); in create_sp_dev()
219 if (!dev->crtcs[i].mode_pid || !dev->crtcs[i].active_pid) in create_sp_dev()
251 dev->crtcs[j].num_planes++; in create_sp_dev()
343 if (dev->crtcs) { in destroy_sp_dev()
345 if (dev->crtcs[i].crtc) in destroy_sp_dev()
346 drmModeFreeCrtc(dev->crtcs[i].crtc); in destroy_sp_dev()
348 free(dev->crtcs); in destroy_sp_dev()