Lines Matching refs:crtcs

190 static crtc_t	*crtcs = NULL;
377 crtc = &crtcs[c];
468 if (crtcs)
472 if (crtcs[c].crtc_info)
473 XRRFreeCrtcInfo (crtcs[c].crtc_info);
475 free (crtcs);
476 crtcs = NULL;
479 crtcs = calloc (num_crtcs, sizeof (crtc_t));
480 if (!crtcs) fatal ("out of memory");
484 XRRCrtcInfo *crtc_info = XRRGetCrtcInfo (dpy, res, res->crtcs[c]);
485 set_name_xid (&crtcs[c].crtc, res->crtcs[c]);
486 set_name_index (&crtcs[c].crtc, c);
487 if (!crtc_info) fatal ("could not get crtc 0x%x information", res->crtcs[c]);
488 crtcs[c].crtc_info = crtc_info;
491 crtcs[c].mode_info = NULL;
492 crtcs[c].x = 0;
493 crtcs[c].y = 0;
494 crtcs[c].rotation = RR_Rotate_0;
656 /* first disable all crtcs */
658 crtc_disable (&crtcs[c]);
661 /* now restore all crtcs */
663 crtc_revert (&crtcs[c]);
698 * Turn off any crtcs which are to be disabled or which are
703 crtc_t *crtc = &crtcs[c];
762 * Set crtcs
767 crtc_t *crtc = &crtcs[c];
870 crtc = find_crtc_by_xid (output->output_info->crtcs[c]);
871 if (!crtc) fatal ("cannot find crtc 0x%x\n", output->output_info->crtcs[c]);
1061 crtc = find_crtc_by_xid (output->output_info->crtcs[c]);
1063 fatal ("cannot find crtc 0x%x\n", output->output_info->crtcs[c]);
1094 * Pick crtcs for any changing outputs that don't have one
1103 * First try to match up newly enabled outputs with spare crtcs
1136 * to swap crtcs around and make things work
1182 crtc = find_crtc_by_xid (res->crtcs[i]);
1184 new_res->crtcs[i]);
1436 if (output_info->crtcs[j] == output_info->crtc)
1464 fprintf(stderr, "%d (%s): top mode = %s, rotation = %d, crtcs =", j,
1469 fprintf(stderr, " 0x%lx", con_outputs[j].output->output_info->crtcs[i]);
1475 fprintf(stderr, "%d (%s) : number of crtcs %d =", j,
1479 fprintf(stderr, " 0x%lx", dis_con_outputs[j].output->output_info->crtcs[i]);
1712 /* reset crtcs before allocation */
1963 fatal ("too few crtcs: %d\n", res->ncrtc);