Lines Matching refs:scrp

68     ScrnInfoPtr scrp = xf86ScreenToScrn(pScreen);  in xf86RandRGetInfo()  local
76 for (mode = scrp->modes; mode != NULL; mode = mode->next) { in xf86RandRGetInfo()
79 if (mode == scrp->modes) in xf86RandRGetInfo()
88 if (scrp->DriverFunc) { in xf86RandRGetInfo()
89 (*scrp->DriverFunc) (scrp, RR_GET_MODE_MM, &RRModeMM); in xf86RandRGetInfo()
98 if (mode == scrp->currentMode && in xf86RandRGetInfo()
99 mode->HDisplay == scrp->virtualX && in xf86RandRGetInfo()
100 mode->VDisplay == scrp->virtualY) in xf86RandRGetInfo()
102 if (mode->next == scrp->modes) in xf86RandRGetInfo()
105 if (scrp->currentMode->HDisplay != randrp->virtualX || in xf86RandRGetInfo()
106 scrp->currentMode->VDisplay != randrp->virtualY) { in xf86RandRGetInfo()
107 mode = scrp->modes; in xf86RandRGetInfo()
115 if (scrp->DriverFunc) { in xf86RandRGetInfo()
116 (*scrp->DriverFunc) (scrp, RR_GET_MODE_MM, &RRModeMM); in xf86RandRGetInfo()
125 if (scrp->virtualX == randrp->virtualX && in xf86RandRGetInfo()
126 scrp->virtualY == randrp->virtualY) { in xf86RandRGetInfo()
132 if (scrp->DriverFunc) { in xf86RandRGetInfo()
136 if (!(*scrp->DriverFunc) (scrp, RR_GET_INFO, &RRRotation)) in xf86RandRGetInfo()
149 ScrnInfoPtr scrp = xf86ScreenToScrn(pScreen); in xf86RandRSetMode() local
155 int oldVirtualX = scrp->virtualX; in xf86RandRSetMode()
156 int oldVirtualY = scrp->virtualY; in xf86RandRSetMode()
160 if (pRoot && scrp->vtSema) in xf86RandRSetMode()
161 (*scrp->EnableDisableFBAccess) (scrp, FALSE); in xf86RandRSetMode()
163 scrp->virtualX = randrp->virtualX; in xf86RandRSetMode()
164 scrp->virtualY = randrp->virtualY; in xf86RandRSetMode()
167 scrp->virtualX = mode->HDisplay; in xf86RandRSetMode()
168 scrp->virtualY = mode->VDisplay; in xf86RandRSetMode()
175 if (scrp->DriverFunc) { in xf86RandRSetMode()
179 RRModeMM.virtX = scrp->virtualX; in xf86RandRSetMode()
180 RRModeMM.virtY = scrp->virtualY; in xf86RandRSetMode()
184 (*scrp->DriverFunc) (scrp, RR_GET_MODE_MM, &RRModeMM); in xf86RandRSetMode()
191 pScreen->width = scrp->virtualY; in xf86RandRSetMode()
192 pScreen->height = scrp->virtualX; in xf86RandRSetMode()
197 pScreen->width = scrp->virtualX; in xf86RandRSetMode()
198 pScreen->height = scrp->virtualY; in xf86RandRSetMode()
207 scrp->virtualX = oldVirtualX; in xf86RandRSetMode()
208 scrp->virtualY = oldVirtualY; in xf86RandRSetMode()
216 if (scrp->vtSema) { in xf86RandRSetMode()
223 (*scrp->EnableDisableFBAccess) (scrp, TRUE); in xf86RandRSetMode()
232 ScrnInfoPtr scrp = xf86ScreenToScrn(pScreen); in xf86RandRSetConfig() local
248 for (mode = scrp->modes;; mode = mode->next) { in xf86RandRSetConfig()
253 if (mode->next == scrp->modes) { in xf86RandRSetConfig()
256 mode = scrp->modes; in xf86RandRSetConfig()
267 if (scrp->DriverFunc) { in xf86RandRSetConfig()
278 if (!(*scrp->DriverFunc) (scrp, RR_SET_CONFIG, &RRRotation)) in xf86RandRSetConfig()
291 if (scrp->DriverFunc) { in xf86RandRSetConfig()
296 xf86RandRModeRefresh(scrp->currentMode); in xf86RandRSetConfig()
297 RRRotation.RRConfig.width = scrp->virtualX; in xf86RandRSetConfig()
298 RRRotation.RRConfig.height = scrp->virtualY; in xf86RandRSetConfig()
299 (*scrp->DriverFunc) (scrp, RR_SET_CONFIG, &RRRotation); in xf86RandRSetConfig()
343 ScrnInfoPtr scrp = xf86ScreenToScrn(pScreen); in xf86RandRCloseScreen() local
346 scrp->virtualX = pScreen->width = randrp->virtualX; in xf86RandRCloseScreen()
347 scrp->virtualY = pScreen->height = randrp->virtualY; in xf86RandRCloseScreen()
348 scrp->currentMode = scrp->modes; in xf86RandRCloseScreen()
407 ScrnInfoPtr scrp = xf86ScreenToScrn(pScreen); in xf86RandRInit() local
432 randrp->virtualX = scrp->virtualX; in xf86RandRInit()
433 randrp->virtualY = scrp->virtualY; in xf86RandRInit()