Lines Matching refs:mode_res

690 drmmode_crtc_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_res, int num)
704 mode_res->crtcs[num]);
1286 drmmode_output_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_res, int num, Bool dynamic, int crtcshift)
1300 mode_res->connectors[num]);
1321 drmmode_output->output_id = mode_res->connectors[num];
1371 drmmode_output->output_id = mode_res->connectors[num];
1500 drmModeResPtr mode_res;
1513 mode_res = drmModeGetResources(drmmode->fd);
1514 if (!mode_res)
1517 xf86CrtcSetSizeRange(pScrn, 320, 200, mode_res->max_width,
1518 mode_res->max_height);
1520 if (!mode_res->count_connectors ||
1521 !mode_res->count_crtcs) {
1528 for (i = 0; i < mode_res->count_connectors; i++)
1529 crtcs_needed += drmmode_output_init(pScrn, drmmode, mode_res, i, FALSE, crtcshift);
1534 for (i = 0; i < mode_res->count_crtcs; i++) {
1537 crtcs_needed -= drmmode_crtc_init(pScrn, drmmode, mode_res, i);
1547 drmModeFreeResources(mode_res);
1615 drmModeResPtr mode_res;
1673 mode_res = drmModeGetResources(drmmode->fd);
1674 if (!mode_res)
1677 if (mode_res->count_crtcs != config->num_crtc) {
1678 ErrorF("number of CRTCs changed - failed to handle, %d vs %d\n", mode_res->count_crtcs, config->num_crtc);
1690 for (j = 0; j < mode_res->count_connectors; j++) {
1691 if (mode_res->connectors[j] == drmmode_output->output_id) {
1707 for (i = 0; i < mode_res->count_connectors; i++) {
1715 if (mode_res->connectors[i] == drmmode_output->output_id) {
1724 drmmode_output_init(scrn, drmmode, mode_res, i, TRUE, 0);
1733 drmModeFreeResources(mode_res);