Lines Matching refs:pScrPriv

95     RRCrtcPtr crtc = pScrPriv->numCrtcs ? pScrPriv->crtcs[0] : NULL;  in RRDeliverScreenEvent()
101 .timestamp = pScrPriv->lastSetTime.milliseconds, in RRDeliverScreenEvent()
102 .configTimestamp = pScrPriv->lastConfigTime.milliseconds, in RRDeliverScreenEvent()
139 if (pScrPriv->width == pScreen->width && in RRScreenSizeNotify()
140 pScrPriv->height == pScreen->height && in RRScreenSizeNotify()
141 pScrPriv->mmWidth == pScreen->mmWidth && in RRScreenSizeNotify()
142 pScrPriv->mmHeight == pScreen->mmHeight) in RRScreenSizeNotify()
145 pScrPriv->width = pScreen->width; in RRScreenSizeNotify()
146 pScrPriv->height = pScreen->height; in RRScreenSizeNotify()
147 pScrPriv->mmWidth = pScreen->mmWidth; in RRScreenSizeNotify()
148 pScrPriv->mmHeight = pScreen->mmHeight; in RRScreenSizeNotify()
173 if (pScrPriv->rrScreenSetSize) { in RRScreenSizeSet()
174 return (*pScrPriv->rrScreenSetSize) (pScreen, in RRScreenSizeSet()
179 if (pScrPriv->rrSetConfig) { in RRScreenSizeSet()
196 rrScrPrivPtr pScrPriv; in ProcRRGetScreenSizeRange() local
205 pScrPriv = rrGetScrPriv(pScreen); in ProcRRGetScreenSizeRange()
214 if (pScrPriv) { in ProcRRGetScreenSizeRange()
217 rep.minWidth = pScrPriv->minWidth; in ProcRRGetScreenSizeRange()
218 rep.minHeight = pScrPriv->minHeight; in ProcRRGetScreenSizeRange()
219 rep.maxWidth = pScrPriv->maxWidth; in ProcRRGetScreenSizeRange()
220 rep.maxHeight = pScrPriv->maxHeight; in ProcRRGetScreenSizeRange()
244 rrScrPrivPtr pScrPriv; in ProcRRSetScreenSize() local
253 pScrPriv = rrGetScrPriv(pScreen); in ProcRRSetScreenSize()
254 if (!pScrPriv) in ProcRRSetScreenSize()
257 if (stuff->width < pScrPriv->minWidth || pScrPriv->maxWidth < stuff->width) { in ProcRRSetScreenSize()
261 if (stuff->height < pScrPriv->minHeight || in ProcRRSetScreenSize()
262 pScrPriv->maxHeight < stuff->height) { in ProcRRSetScreenSize()
266 for (i = 0; i < pScrPriv->numCrtcs; i++) { in ProcRRSetScreenSize()
267 RRCrtcPtr crtc = pScrPriv->crtcs[i]; in ProcRRSetScreenSize()
299 #define update_totals(gpuscreen, pScrPriv) do { \ argument
300 total_crtcs += pScrPriv->numCrtcs; \
301 total_outputs += pScrPriv->numOutputs; \
328 #define update_arrays(gpuscreen, pScrPriv, primary_crtc, has_primary) do { \ argument
329 for (j = 0; j < pScrPriv->numCrtcs; j++) { \
331 primary_crtc == pScrPriv->crtcs[j]) { \
335 crtcs[crtc_count] = pScrPriv->crtcs[j]->id; \
340 for (j = 0; j < pScrPriv->numOutputs; j++) { \
341 outputs[output_count] = pScrPriv->outputs[j]->id; \
370 rrScrPrivPtr pScrPriv; in rrGetMultiScreenResources() local
389 pScrPriv = rrGetScrPriv(pScreen); in rrGetMultiScreenResources()
391 if (query && pScrPriv) in rrGetMultiScreenResources()
395 update_totals(pScreen, pScrPriv); in rrGetMultiScreenResources()
401 pScrPriv = rrGetScrPriv(iter); in rrGetMultiScreenResources()
406 update_totals(iter, pScrPriv); in rrGetMultiScreenResources()
409 pScrPriv = rrGetScrPriv(pScreen); in rrGetMultiScreenResources()
414 .timestamp = pScrPriv->lastSetTime.milliseconds, in rrGetMultiScreenResources()
415 .configTimestamp = pScrPriv->lastConfigTime.milliseconds, in rrGetMultiScreenResources()
445 pScrPriv = rrGetScrPriv(pScreen); in rrGetMultiScreenResources()
446 if (pScrPriv->primaryOutput && pScrPriv->primaryOutput->crtc) { in rrGetMultiScreenResources()
448 primary_crtc = pScrPriv->primaryOutput->crtc; in rrGetMultiScreenResources()
449 crtcs[0] = pScrPriv->primaryOutput->crtc->id; in rrGetMultiScreenResources()
454 update_arrays(pScreen, pScrPriv, primary_crtc, has_primary); in rrGetMultiScreenResources()
460 pScrPriv = rrGetScrPriv(iter); in rrGetMultiScreenResources()
462 update_arrays(iter, pScrPriv, primary_crtc, has_primary); in rrGetMultiScreenResources()
491 rrScrPrivPtr pScrPriv; in rrGetScreenResources() local
506 pScrPriv = rrGetScrPriv(pScreen); in rrGetScreenResources()
508 if (query && pScrPriv) in rrGetScreenResources()
515 if (!pScrPriv) { in rrGetScreenResources()
542 .timestamp = pScrPriv->lastSetTime.milliseconds, in rrGetScreenResources()
543 .configTimestamp = pScrPriv->lastConfigTime.milliseconds, in rrGetScreenResources()
544 .nCrtcs = pScrPriv->numCrtcs, in rrGetScreenResources()
545 .nOutputs = pScrPriv->numOutputs, in rrGetScreenResources()
554 rep.length = (pScrPriv->numCrtcs + in rrGetScreenResources()
555 pScrPriv->numOutputs + in rrGetScreenResources()
571 outputs = (RROutput *) (crtcs + pScrPriv->numCrtcs); in rrGetScreenResources()
572 modeinfos = (xRRModeInfo *) (outputs + pScrPriv->numOutputs); in rrGetScreenResources()
575 if (pScrPriv->primaryOutput && pScrPriv->primaryOutput->crtc) { in rrGetScreenResources()
577 crtcs[0] = pScrPriv->primaryOutput->crtc->id; in rrGetScreenResources()
582 for (i = 0; i < pScrPriv->numCrtcs; i++) { in rrGetScreenResources()
584 pScrPriv->primaryOutput->crtc == pScrPriv->crtcs[i]) { in rrGetScreenResources()
588 crtcs[i + has_primary] = pScrPriv->crtcs[i]->id; in rrGetScreenResources()
593 for (i = 0; i < pScrPriv->numOutputs; i++) { in rrGetScreenResources()
594 outputs[i] = pScrPriv->outputs[i]->id; in rrGetScreenResources()
762 rrScrPrivPtr pScrPriv; in ProcRRGetScreenInfo() local
773 pScrPriv = rrGetScrPriv(pScreen); in ProcRRGetScreenInfo()
775 if (pScrPriv) in ProcRRGetScreenInfo()
781 if (!pScrPriv || !output) { in ProcRRGetScreenInfo()
818 .timestamp = pScrPriv->lastSetTime.milliseconds, in ProcRRGetScreenInfo()
819 .configTimestamp = pScrPriv->lastConfigTime.milliseconds, in ProcRRGetScreenInfo()
910 rrScrPrivPtr pScrPriv; in ProcRRSetScreenConfig() local
941 pScrPriv = rrGetScrPriv(pScreen); in ProcRRSetScreenConfig()
945 if (!pScrPriv) { in ProcRRSetScreenConfig()
971 if (stuff->configTimestamp != pScrPriv->lastConfigTime.milliseconds) { in ProcRRSetScreenConfig()
1050 if (CompareTimeStamps(time, pScrPriv->lastSetTime) < 0) { in ProcRRSetScreenConfig()
1061 if (width < pScrPriv->minWidth || pScrPriv->maxWidth < width) { in ProcRRSetScreenConfig()
1066 if (height < pScrPriv->minHeight || pScrPriv->maxHeight < height) { in ProcRRSetScreenConfig()
1080 for (c = 0; c < pScrPriv->numCrtcs; c++) { in ProcRRSetScreenConfig()
1081 if (!RRCrtcSet(pScrPriv->crtcs[c], NULL, 0, 0, RR_Rotate_0, in ProcRRSetScreenConfig()
1099 pScrPriv->lastSetTime = time; in ProcRRSetScreenConfig()
1117 .newTimestamp = pScrPriv->lastSetTime.milliseconds, in ProcRRSetScreenConfig()
1118 .newConfigTimestamp = pScrPriv->lastConfigTime.milliseconds, in ProcRRSetScreenConfig()