Lines Matching refs:stuff

248     if (stuff->screen >= screenInfo.numScreens)  in ProcVidModeGetModeLine()
250 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeGetModeLine()
271 stuff->screen, (unsigned long) rep.dotclock); in ProcVidModeGetModeLine()
341 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeGetAllModeLines()
343 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeGetAllModeLines()
429 #define MODEMATCH(mode,stuff) \ argument
430 (VidModeGetModeValue(mode, VIDMODE_H_DISPLAY) == stuff->hdisplay \
431 && VidModeGetModeValue(mode, VIDMODE_H_SYNCSTART) == stuff->hsyncstart \
432 && VidModeGetModeValue(mode, VIDMODE_H_SYNCEND) == stuff->hsyncend \
433 && VidModeGetModeValue(mode, VIDMODE_H_TOTAL) == stuff->htotal \
434 && VidModeGetModeValue(mode, VIDMODE_V_DISPLAY) == stuff->vdisplay \
435 && VidModeGetModeValue(mode, VIDMODE_V_SYNCSTART) == stuff->vsyncstart \
436 && VidModeGetModeValue(mode, VIDMODE_V_SYNCEND) == stuff->vsyncend \
437 && VidModeGetModeValue(mode, VIDMODE_V_TOTAL) == stuff->vtotal \
438 && VidModeGetModeValue(mode, VIDMODE_FLAGS) == stuff->flags )
473 stuff = &newstuff; in ProcVidModeAddModeLine()
474 stuff->length = oldstuff->length; in ProcVidModeAddModeLine()
475 stuff->screen = oldstuff->screen; in ProcVidModeAddModeLine()
476 stuff->dotclock = oldstuff->dotclock; in ProcVidModeAddModeLine()
477 stuff->hdisplay = oldstuff->hdisplay; in ProcVidModeAddModeLine()
478 stuff->hsyncstart = oldstuff->hsyncstart; in ProcVidModeAddModeLine()
479 stuff->hsyncend = oldstuff->hsyncend; in ProcVidModeAddModeLine()
480 stuff->htotal = oldstuff->htotal; in ProcVidModeAddModeLine()
481 stuff->hskew = 0; in ProcVidModeAddModeLine()
482 stuff->vdisplay = oldstuff->vdisplay; in ProcVidModeAddModeLine()
483 stuff->vsyncstart = oldstuff->vsyncstart; in ProcVidModeAddModeLine()
484 stuff->vsyncend = oldstuff->vsyncend; in ProcVidModeAddModeLine()
485 stuff->vtotal = oldstuff->vtotal; in ProcVidModeAddModeLine()
486 stuff->flags = oldstuff->flags; in ProcVidModeAddModeLine()
487 stuff->privsize = oldstuff->privsize; in ProcVidModeAddModeLine()
488 stuff->after_dotclock = oldstuff->after_dotclock; in ProcVidModeAddModeLine()
489 stuff->after_hdisplay = oldstuff->after_hdisplay; in ProcVidModeAddModeLine()
490 stuff->after_hsyncstart = oldstuff->after_hsyncstart; in ProcVidModeAddModeLine()
491 stuff->after_hsyncend = oldstuff->after_hsyncend; in ProcVidModeAddModeLine()
492 stuff->after_htotal = oldstuff->after_htotal; in ProcVidModeAddModeLine()
493 stuff->after_hskew = 0; in ProcVidModeAddModeLine()
494 stuff->after_vdisplay = oldstuff->after_vdisplay; in ProcVidModeAddModeLine()
495 stuff->after_vsyncstart = oldstuff->after_vsyncstart; in ProcVidModeAddModeLine()
496 stuff->after_vsyncend = oldstuff->after_vsyncend; in ProcVidModeAddModeLine()
497 stuff->after_vtotal = oldstuff->after_vtotal; in ProcVidModeAddModeLine()
498 stuff->after_flags = oldstuff->after_flags; in ProcVidModeAddModeLine()
501 (int) stuff->screen, (unsigned long) stuff->dotclock); in ProcVidModeAddModeLine()
503 stuff->hdisplay, stuff->hsyncstart, in ProcVidModeAddModeLine()
504 stuff->hsyncend, stuff->htotal); in ProcVidModeAddModeLine()
506 stuff->vdisplay, stuff->vsyncstart, stuff->vsyncend, in ProcVidModeAddModeLine()
507 stuff->vtotal, (unsigned long) stuff->flags); in ProcVidModeAddModeLine()
509 (int) stuff->screen, (unsigned long) stuff->after_dotclock); in ProcVidModeAddModeLine()
511 stuff->after_hdisplay, stuff->after_hsyncstart, in ProcVidModeAddModeLine()
512 stuff->after_hsyncend, stuff->after_htotal); in ProcVidModeAddModeLine()
514 stuff->after_vdisplay, stuff->after_vsyncstart, in ProcVidModeAddModeLine()
515 stuff->after_vsyncend, stuff->after_vtotal, in ProcVidModeAddModeLine()
516 (unsigned long) stuff->after_flags); in ProcVidModeAddModeLine()
518 if (len != stuff->privsize) in ProcVidModeAddModeLine()
521 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeAddModeLine()
523 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeAddModeLine()
525 if (stuff->hsyncstart < stuff->hdisplay || in ProcVidModeAddModeLine()
526 stuff->hsyncend < stuff->hsyncstart || in ProcVidModeAddModeLine()
527 stuff->htotal < stuff->hsyncend || in ProcVidModeAddModeLine()
528 stuff->vsyncstart < stuff->vdisplay || in ProcVidModeAddModeLine()
529 stuff->vsyncend < stuff->vsyncstart || stuff->vtotal < stuff->vsyncend) in ProcVidModeAddModeLine()
532 if (stuff->after_hsyncstart < stuff->after_hdisplay || in ProcVidModeAddModeLine()
533 stuff->after_hsyncend < stuff->after_hsyncstart || in ProcVidModeAddModeLine()
534 stuff->after_htotal < stuff->after_hsyncend || in ProcVidModeAddModeLine()
535 stuff->after_vsyncstart < stuff->after_vdisplay || in ProcVidModeAddModeLine()
536 stuff->after_vsyncend < stuff->after_vsyncstart || in ProcVidModeAddModeLine()
537 stuff->after_vtotal < stuff->after_vsyncend) in ProcVidModeAddModeLine()
544 if (stuff->after_htotal != 0 || stuff->after_vtotal != 0) { in ProcVidModeAddModeLine()
549 if ((pVidMode->GetDotClock(pScreen, stuff->dotclock) in ProcVidModeAddModeLine()
550 == dotClock) && MODEMATCH(mode, stuff)) { in ProcVidModeAddModeLine()
564 VidModeSetModeValue(mode, VIDMODE_CLOCK, stuff->dotclock); in ProcVidModeAddModeLine()
565 VidModeSetModeValue(mode, VIDMODE_H_DISPLAY, stuff->hdisplay); in ProcVidModeAddModeLine()
566 VidModeSetModeValue(mode, VIDMODE_H_SYNCSTART, stuff->hsyncstart); in ProcVidModeAddModeLine()
567 VidModeSetModeValue(mode, VIDMODE_H_SYNCEND, stuff->hsyncend); in ProcVidModeAddModeLine()
568 VidModeSetModeValue(mode, VIDMODE_H_TOTAL, stuff->htotal); in ProcVidModeAddModeLine()
569 VidModeSetModeValue(mode, VIDMODE_H_SKEW, stuff->hskew); in ProcVidModeAddModeLine()
570 VidModeSetModeValue(mode, VIDMODE_V_DISPLAY, stuff->vdisplay); in ProcVidModeAddModeLine()
571 VidModeSetModeValue(mode, VIDMODE_V_SYNCSTART, stuff->vsyncstart); in ProcVidModeAddModeLine()
572 VidModeSetModeValue(mode, VIDMODE_V_SYNCEND, stuff->vsyncend); in ProcVidModeAddModeLine()
573 VidModeSetModeValue(mode, VIDMODE_V_TOTAL, stuff->vtotal); in ProcVidModeAddModeLine()
574 VidModeSetModeValue(mode, VIDMODE_FLAGS, stuff->flags); in ProcVidModeAddModeLine()
576 if (stuff->privsize) in ProcVidModeAddModeLine()
643 stuff = &newstuff; in ProcVidModeDeleteModeLine()
644 stuff->length = oldstuff->length; in ProcVidModeDeleteModeLine()
645 stuff->screen = oldstuff->screen; in ProcVidModeDeleteModeLine()
646 stuff->dotclock = oldstuff->dotclock; in ProcVidModeDeleteModeLine()
647 stuff->hdisplay = oldstuff->hdisplay; in ProcVidModeDeleteModeLine()
648 stuff->hsyncstart = oldstuff->hsyncstart; in ProcVidModeDeleteModeLine()
649 stuff->hsyncend = oldstuff->hsyncend; in ProcVidModeDeleteModeLine()
650 stuff->htotal = oldstuff->htotal; in ProcVidModeDeleteModeLine()
651 stuff->hskew = 0; in ProcVidModeDeleteModeLine()
652 stuff->vdisplay = oldstuff->vdisplay; in ProcVidModeDeleteModeLine()
653 stuff->vsyncstart = oldstuff->vsyncstart; in ProcVidModeDeleteModeLine()
654 stuff->vsyncend = oldstuff->vsyncend; in ProcVidModeDeleteModeLine()
655 stuff->vtotal = oldstuff->vtotal; in ProcVidModeDeleteModeLine()
656 stuff->flags = oldstuff->flags; in ProcVidModeDeleteModeLine()
657 stuff->privsize = oldstuff->privsize; in ProcVidModeDeleteModeLine()
660 (int) stuff->screen, (unsigned long) stuff->dotclock); in ProcVidModeDeleteModeLine()
662 stuff->hdisplay, stuff->hsyncstart, in ProcVidModeDeleteModeLine()
663 stuff->hsyncend, stuff->htotal); in ProcVidModeDeleteModeLine()
665 stuff->vdisplay, stuff->vsyncstart, stuff->vsyncend, stuff->vtotal, in ProcVidModeDeleteModeLine()
666 (unsigned long) stuff->flags); in ProcVidModeDeleteModeLine()
668 if (len != stuff->privsize) { in ProcVidModeDeleteModeLine()
673 (unsigned long) stuff->privsize, len, stuff->length); in ProcVidModeDeleteModeLine()
677 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeDeleteModeLine()
679 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeDeleteModeLine()
702 if ((pVidMode->GetDotClock(pScreen, stuff->dotclock) == dotClock) && in ProcVidModeDeleteModeLine()
703 MODEMATCH(mode, stuff)) in ProcVidModeDeleteModeLine()
724 if ((pVidMode->GetDotClock(pScreen, stuff->dotclock) == dotClock) && in ProcVidModeDeleteModeLine()
725 MODEMATCH(mode, stuff)) { in ProcVidModeDeleteModeLine()
767 stuff = &newstuff; in ProcVidModeModModeLine()
768 stuff->length = oldstuff->length; in ProcVidModeModModeLine()
769 stuff->screen = oldstuff->screen; in ProcVidModeModModeLine()
770 stuff->hdisplay = oldstuff->hdisplay; in ProcVidModeModModeLine()
771 stuff->hsyncstart = oldstuff->hsyncstart; in ProcVidModeModModeLine()
772 stuff->hsyncend = oldstuff->hsyncend; in ProcVidModeModModeLine()
773 stuff->htotal = oldstuff->htotal; in ProcVidModeModModeLine()
774 stuff->hskew = 0; in ProcVidModeModModeLine()
775 stuff->vdisplay = oldstuff->vdisplay; in ProcVidModeModModeLine()
776 stuff->vsyncstart = oldstuff->vsyncstart; in ProcVidModeModModeLine()
777 stuff->vsyncend = oldstuff->vsyncend; in ProcVidModeModModeLine()
778 stuff->vtotal = oldstuff->vtotal; in ProcVidModeModModeLine()
779 stuff->flags = oldstuff->flags; in ProcVidModeModModeLine()
780 stuff->privsize = oldstuff->privsize; in ProcVidModeModModeLine()
783 (int) stuff->screen, stuff->hdisplay, stuff->hsyncstart, in ProcVidModeModModeLine()
784 stuff->hsyncend, stuff->htotal); in ProcVidModeModModeLine()
786 stuff->vdisplay, stuff->vsyncstart, stuff->vsyncend, in ProcVidModeModModeLine()
787 stuff->vtotal, (unsigned long) stuff->flags); in ProcVidModeModModeLine()
789 if (len != stuff->privsize) in ProcVidModeModModeLine()
792 if (stuff->hsyncstart < stuff->hdisplay || in ProcVidModeModModeLine()
793 stuff->hsyncend < stuff->hsyncstart || in ProcVidModeModModeLine()
794 stuff->htotal < stuff->hsyncend || in ProcVidModeModModeLine()
795 stuff->vsyncstart < stuff->vdisplay || in ProcVidModeModModeLine()
796 stuff->vsyncend < stuff->vsyncstart || stuff->vtotal < stuff->vsyncend) in ProcVidModeModModeLine()
799 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeModModeLine()
801 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeModModeLine()
813 VidModeSetModeValue(modetmp, VIDMODE_H_DISPLAY, stuff->hdisplay); in ProcVidModeModModeLine()
814 VidModeSetModeValue(modetmp, VIDMODE_H_SYNCSTART, stuff->hsyncstart); in ProcVidModeModModeLine()
815 VidModeSetModeValue(modetmp, VIDMODE_H_SYNCEND, stuff->hsyncend); in ProcVidModeModModeLine()
816 VidModeSetModeValue(modetmp, VIDMODE_H_TOTAL, stuff->htotal); in ProcVidModeModModeLine()
817 VidModeSetModeValue(modetmp, VIDMODE_H_SKEW, stuff->hskew); in ProcVidModeModModeLine()
818 VidModeSetModeValue(modetmp, VIDMODE_V_DISPLAY, stuff->vdisplay); in ProcVidModeModModeLine()
819 VidModeSetModeValue(modetmp, VIDMODE_V_SYNCSTART, stuff->vsyncstart); in ProcVidModeModModeLine()
820 VidModeSetModeValue(modetmp, VIDMODE_V_SYNCEND, stuff->vsyncend); in ProcVidModeModModeLine()
821 VidModeSetModeValue(modetmp, VIDMODE_V_TOTAL, stuff->vtotal); in ProcVidModeModModeLine()
822 VidModeSetModeValue(modetmp, VIDMODE_FLAGS, stuff->flags); in ProcVidModeModModeLine()
824 if (stuff->privsize) in ProcVidModeModModeLine()
851 VidModeSetModeValue(mode, VIDMODE_H_DISPLAY, stuff->hdisplay); in ProcVidModeModModeLine()
852 VidModeSetModeValue(mode, VIDMODE_H_SYNCSTART, stuff->hsyncstart); in ProcVidModeModModeLine()
853 VidModeSetModeValue(mode, VIDMODE_H_SYNCEND, stuff->hsyncend); in ProcVidModeModModeLine()
854 VidModeSetModeValue(mode, VIDMODE_H_TOTAL, stuff->htotal); in ProcVidModeModModeLine()
855 VidModeSetModeValue(mode, VIDMODE_H_SKEW, stuff->hskew); in ProcVidModeModModeLine()
856 VidModeSetModeValue(mode, VIDMODE_V_DISPLAY, stuff->vdisplay); in ProcVidModeModModeLine()
857 VidModeSetModeValue(mode, VIDMODE_V_SYNCSTART, stuff->vsyncstart); in ProcVidModeModModeLine()
858 VidModeSetModeValue(mode, VIDMODE_V_SYNCEND, stuff->vsyncend); in ProcVidModeModModeLine()
859 VidModeSetModeValue(mode, VIDMODE_V_TOTAL, stuff->vtotal); in ProcVidModeModModeLine()
860 VidModeSetModeValue(mode, VIDMODE_FLAGS, stuff->flags); in ProcVidModeModModeLine()
901 stuff = &newstuff; in ProcVidModeValidateModeLine()
902 stuff->length = oldstuff->length; in ProcVidModeValidateModeLine()
903 stuff->screen = oldstuff->screen; in ProcVidModeValidateModeLine()
904 stuff->dotclock = oldstuff->dotclock; in ProcVidModeValidateModeLine()
905 stuff->hdisplay = oldstuff->hdisplay; in ProcVidModeValidateModeLine()
906 stuff->hsyncstart = oldstuff->hsyncstart; in ProcVidModeValidateModeLine()
907 stuff->hsyncend = oldstuff->hsyncend; in ProcVidModeValidateModeLine()
908 stuff->htotal = oldstuff->htotal; in ProcVidModeValidateModeLine()
909 stuff->hskew = 0; in ProcVidModeValidateModeLine()
910 stuff->vdisplay = oldstuff->vdisplay; in ProcVidModeValidateModeLine()
911 stuff->vsyncstart = oldstuff->vsyncstart; in ProcVidModeValidateModeLine()
912 stuff->vsyncend = oldstuff->vsyncend; in ProcVidModeValidateModeLine()
913 stuff->vtotal = oldstuff->vtotal; in ProcVidModeValidateModeLine()
914 stuff->flags = oldstuff->flags; in ProcVidModeValidateModeLine()
915 stuff->privsize = oldstuff->privsize; in ProcVidModeValidateModeLine()
919 (int) stuff->screen, (unsigned long) stuff->dotclock); in ProcVidModeValidateModeLine()
921 stuff->hdisplay, stuff->hsyncstart, in ProcVidModeValidateModeLine()
922 stuff->hsyncend, stuff->htotal); in ProcVidModeValidateModeLine()
924 stuff->vdisplay, stuff->vsyncstart, stuff->vsyncend, stuff->vtotal, in ProcVidModeValidateModeLine()
925 (unsigned long) stuff->flags); in ProcVidModeValidateModeLine()
927 if (len != stuff->privsize) in ProcVidModeValidateModeLine()
930 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeValidateModeLine()
932 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeValidateModeLine()
936 if (stuff->hsyncstart < stuff->hdisplay || in ProcVidModeValidateModeLine()
937 stuff->hsyncend < stuff->hsyncstart || in ProcVidModeValidateModeLine()
938 stuff->htotal < stuff->hsyncend || in ProcVidModeValidateModeLine()
939 stuff->vsyncstart < stuff->vdisplay || in ProcVidModeValidateModeLine()
940 stuff->vsyncend < stuff->vsyncstart || in ProcVidModeValidateModeLine()
941 stuff->vtotal < stuff->vsyncend) { in ProcVidModeValidateModeLine()
956 VidModeSetModeValue(modetmp, VIDMODE_H_DISPLAY, stuff->hdisplay); in ProcVidModeValidateModeLine()
957 VidModeSetModeValue(modetmp, VIDMODE_H_SYNCSTART, stuff->hsyncstart); in ProcVidModeValidateModeLine()
958 VidModeSetModeValue(modetmp, VIDMODE_H_SYNCEND, stuff->hsyncend); in ProcVidModeValidateModeLine()
959 VidModeSetModeValue(modetmp, VIDMODE_H_TOTAL, stuff->htotal); in ProcVidModeValidateModeLine()
960 VidModeSetModeValue(modetmp, VIDMODE_H_SKEW, stuff->hskew); in ProcVidModeValidateModeLine()
961 VidModeSetModeValue(modetmp, VIDMODE_V_DISPLAY, stuff->vdisplay); in ProcVidModeValidateModeLine()
962 VidModeSetModeValue(modetmp, VIDMODE_V_SYNCSTART, stuff->vsyncstart); in ProcVidModeValidateModeLine()
963 VidModeSetModeValue(modetmp, VIDMODE_V_SYNCEND, stuff->vsyncend); in ProcVidModeValidateModeLine()
964 VidModeSetModeValue(modetmp, VIDMODE_V_TOTAL, stuff->vtotal); in ProcVidModeValidateModeLine()
965 VidModeSetModeValue(modetmp, VIDMODE_FLAGS, stuff->flags); in ProcVidModeValidateModeLine()
966 if (stuff->privsize) in ProcVidModeValidateModeLine()
1009 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeSwitchMode()
1011 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeSwitchMode()
1017 pVidMode->ZoomViewport(pScreen, (short) stuff->zoom); in ProcVidModeSwitchMode()
1054 stuff = &newstuff; in ProcVidModeSwitchToMode()
1055 stuff->length = oldstuff->length; in ProcVidModeSwitchToMode()
1056 stuff->screen = oldstuff->screen; in ProcVidModeSwitchToMode()
1057 stuff->dotclock = oldstuff->dotclock; in ProcVidModeSwitchToMode()
1058 stuff->hdisplay = oldstuff->hdisplay; in ProcVidModeSwitchToMode()
1059 stuff->hsyncstart = oldstuff->hsyncstart; in ProcVidModeSwitchToMode()
1060 stuff->hsyncend = oldstuff->hsyncend; in ProcVidModeSwitchToMode()
1061 stuff->htotal = oldstuff->htotal; in ProcVidModeSwitchToMode()
1062 stuff->hskew = 0; in ProcVidModeSwitchToMode()
1063 stuff->vdisplay = oldstuff->vdisplay; in ProcVidModeSwitchToMode()
1064 stuff->vsyncstart = oldstuff->vsyncstart; in ProcVidModeSwitchToMode()
1065 stuff->vsyncend = oldstuff->vsyncend; in ProcVidModeSwitchToMode()
1066 stuff->vtotal = oldstuff->vtotal; in ProcVidModeSwitchToMode()
1067 stuff->flags = oldstuff->flags; in ProcVidModeSwitchToMode()
1068 stuff->privsize = oldstuff->privsize; in ProcVidModeSwitchToMode()
1072 (int) stuff->screen, (unsigned long) stuff->dotclock); in ProcVidModeSwitchToMode()
1074 stuff->hdisplay, stuff->hsyncstart, in ProcVidModeSwitchToMode()
1075 stuff->hsyncend, stuff->htotal); in ProcVidModeSwitchToMode()
1077 stuff->vdisplay, stuff->vsyncstart, stuff->vsyncend, stuff->vtotal, in ProcVidModeSwitchToMode()
1078 (unsigned long) stuff->flags); in ProcVidModeSwitchToMode()
1080 if (len != stuff->privsize) in ProcVidModeSwitchToMode()
1083 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeSwitchToMode()
1085 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeSwitchToMode()
1094 if ((pVidMode->GetDotClock(pScreen, stuff->dotclock) == dotClock) in ProcVidModeSwitchToMode()
1095 && MODEMATCH(mode, stuff)) in ProcVidModeSwitchToMode()
1116 if ((pVidMode->GetDotClock(pScreen, stuff->dotclock) == dotClock) && in ProcVidModeSwitchToMode()
1117 MODEMATCH(mode, stuff)) { in ProcVidModeSwitchToMode()
1141 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeLockModeSwitch()
1143 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeLockModeSwitch()
1149 if (!pVidMode->LockZoom(pScreen, (short) stuff->lock)) in ProcVidModeLockModeSwitch()
1172 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeGetMonitor()
1174 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeGetMonitor()
1265 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeGetViewPort()
1267 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeGetViewPort()
1304 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeSetViewPort()
1306 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeSetViewPort()
1312 if (!pVidMode->SetViewPort(pScreen, stuff->x, stuff->y)) in ProcVidModeSetViewPort()
1335 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeGetDotClocks()
1337 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeGetDotClocks()
1402 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeSetGamma()
1404 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeSetGamma()
1410 if (!pVidMode->SetGamma(pScreen, ((float) stuff->red) / 10000., in ProcVidModeSetGamma()
1411 ((float) stuff->green) / 10000., in ProcVidModeSetGamma()
1412 ((float) stuff->blue) / 10000.)) in ProcVidModeSetGamma()
1431 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeGetGamma()
1433 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeGetGamma()
1472 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeSetGammaRamp()
1474 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeSetGammaRamp()
1480 if (stuff->size != pVidMode->GetGammaRampSize(pScreen)) in ProcVidModeSetGammaRamp()
1483 length = (stuff->size + 1) & ~1; in ProcVidModeSetGammaRamp()
1487 r = (CARD16 *) &stuff[1]; in ProcVidModeSetGammaRamp()
1491 if (!pVidMode->SetGammaRamp(pScreen, stuff->size, r, g, b)) in ProcVidModeSetGammaRamp()
1511 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeGetGammaRamp()
1513 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeGetGammaRamp()
1519 if (stuff->size != pVidMode->GetGammaRampSize(pScreen)) in ProcVidModeGetGammaRamp()
1522 length = (stuff->size + 1) & ~1; in ProcVidModeGetGammaRamp()
1524 if (stuff->size) { in ProcVidModeGetGammaRamp()
1529 if (!pVidMode->GetGammaRamp(pScreen, stuff->size, in ProcVidModeGetGammaRamp()
1539 .size = stuff->size in ProcVidModeGetGammaRamp()
1549 if (stuff->size) { in ProcVidModeGetGammaRamp()
1569 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeGetGammaRampSize()
1571 pScreen = screenInfo.screens[stuff->screen]; in ProcVidModeGetGammaRampSize()
1607 if (stuff->screen >= screenInfo.numScreens) in ProcVidModeGetPermissions()
1640 pPriv->major = stuff->major; in ProcVidModeSetClientVersion()
1642 pPriv->minor = stuff->minor; in ProcVidModeSetClientVersion()
1651 switch (stuff->data) { in ProcVidModeDispatch()
1678 switch (stuff->data) { in ProcVidModeDispatch()
1710 swaps(&stuff->length); in SProcVidModeQueryVersion()
1718 swaps(&stuff->length); in SProcVidModeGetModeLine()
1720 swaps(&stuff->screen); in SProcVidModeGetModeLine()
1728 swaps(&stuff->length); in SProcVidModeGetAllModeLines()
1730 swaps(&stuff->screen); in SProcVidModeGetAllModeLines()
1760 swaps(&stuff->length); in SProcVidModeAddModeLine()
1762 swapl(&stuff->screen); in SProcVidModeAddModeLine()
1763 swaps(&stuff->hdisplay); in SProcVidModeAddModeLine()
1764 swaps(&stuff->hsyncstart); in SProcVidModeAddModeLine()
1765 swaps(&stuff->hsyncend); in SProcVidModeAddModeLine()
1766 swaps(&stuff->htotal); in SProcVidModeAddModeLine()
1767 swaps(&stuff->hskew); in SProcVidModeAddModeLine()
1768 swaps(&stuff->vdisplay); in SProcVidModeAddModeLine()
1769 swaps(&stuff->vsyncstart); in SProcVidModeAddModeLine()
1770 swaps(&stuff->vsyncend); in SProcVidModeAddModeLine()
1771 swaps(&stuff->vtotal); in SProcVidModeAddModeLine()
1772 swapl(&stuff->flags); in SProcVidModeAddModeLine()
1773 swapl(&stuff->privsize); in SProcVidModeAddModeLine()
1774 SwapRestL(stuff); in SProcVidModeAddModeLine()
1805 swaps(&stuff->length); in SProcVidModeDeleteModeLine()
1807 swapl(&stuff->screen); in SProcVidModeDeleteModeLine()
1808 swaps(&stuff->hdisplay); in SProcVidModeDeleteModeLine()
1809 swaps(&stuff->hsyncstart); in SProcVidModeDeleteModeLine()
1810 swaps(&stuff->hsyncend); in SProcVidModeDeleteModeLine()
1811 swaps(&stuff->htotal); in SProcVidModeDeleteModeLine()
1812 swaps(&stuff->hskew); in SProcVidModeDeleteModeLine()
1813 swaps(&stuff->vdisplay); in SProcVidModeDeleteModeLine()
1814 swaps(&stuff->vsyncstart); in SProcVidModeDeleteModeLine()
1815 swaps(&stuff->vsyncend); in SProcVidModeDeleteModeLine()
1816 swaps(&stuff->vtotal); in SProcVidModeDeleteModeLine()
1817 swapl(&stuff->flags); in SProcVidModeDeleteModeLine()
1818 swapl(&stuff->privsize); in SProcVidModeDeleteModeLine()
1819 SwapRestL(stuff); in SProcVidModeDeleteModeLine()
1850 swaps(&stuff->length); in SProcVidModeModModeLine()
1852 swapl(&stuff->screen); in SProcVidModeModModeLine()
1853 swaps(&stuff->hdisplay); in SProcVidModeModModeLine()
1854 swaps(&stuff->hsyncstart); in SProcVidModeModModeLine()
1855 swaps(&stuff->hsyncend); in SProcVidModeModModeLine()
1856 swaps(&stuff->htotal); in SProcVidModeModModeLine()
1857 swaps(&stuff->hskew); in SProcVidModeModModeLine()
1858 swaps(&stuff->vdisplay); in SProcVidModeModModeLine()
1859 swaps(&stuff->vsyncstart); in SProcVidModeModModeLine()
1860 swaps(&stuff->vsyncend); in SProcVidModeModModeLine()
1861 swaps(&stuff->vtotal); in SProcVidModeModModeLine()
1862 swapl(&stuff->flags); in SProcVidModeModModeLine()
1863 swapl(&stuff->privsize); in SProcVidModeModModeLine()
1864 SwapRestL(stuff); in SProcVidModeModModeLine()
1895 swaps(&stuff->length); in SProcVidModeValidateModeLine()
1897 swapl(&stuff->screen); in SProcVidModeValidateModeLine()
1898 swaps(&stuff->hdisplay); in SProcVidModeValidateModeLine()
1899 swaps(&stuff->hsyncstart); in SProcVidModeValidateModeLine()
1900 swaps(&stuff->hsyncend); in SProcVidModeValidateModeLine()
1901 swaps(&stuff->htotal); in SProcVidModeValidateModeLine()
1902 swaps(&stuff->hskew); in SProcVidModeValidateModeLine()
1903 swaps(&stuff->vdisplay); in SProcVidModeValidateModeLine()
1904 swaps(&stuff->vsyncstart); in SProcVidModeValidateModeLine()
1905 swaps(&stuff->vsyncend); in SProcVidModeValidateModeLine()
1906 swaps(&stuff->vtotal); in SProcVidModeValidateModeLine()
1907 swapl(&stuff->flags); in SProcVidModeValidateModeLine()
1908 swapl(&stuff->privsize); in SProcVidModeValidateModeLine()
1909 SwapRestL(stuff); in SProcVidModeValidateModeLine()
1918 swaps(&stuff->length); in SProcVidModeSwitchMode()
1920 swaps(&stuff->screen); in SProcVidModeSwitchMode()
1921 swaps(&stuff->zoom); in SProcVidModeSwitchMode()
1929 swaps(&stuff->length); in SProcVidModeSwitchToMode()
1931 swapl(&stuff->screen); in SProcVidModeSwitchToMode()
1939 swaps(&stuff->length); in SProcVidModeLockModeSwitch()
1941 swaps(&stuff->screen); in SProcVidModeLockModeSwitch()
1942 swaps(&stuff->lock); in SProcVidModeLockModeSwitch()
1950 swaps(&stuff->length); in SProcVidModeGetMonitor()
1952 swaps(&stuff->screen); in SProcVidModeGetMonitor()
1960 swaps(&stuff->length); in SProcVidModeGetViewPort()
1962 swaps(&stuff->screen); in SProcVidModeGetViewPort()
1970 swaps(&stuff->length); in SProcVidModeSetViewPort()
1972 swaps(&stuff->screen); in SProcVidModeSetViewPort()
1973 swapl(&stuff->x); in SProcVidModeSetViewPort()
1974 swapl(&stuff->y); in SProcVidModeSetViewPort()
1982 swaps(&stuff->length); in SProcVidModeGetDotClocks()
1984 swaps(&stuff->screen); in SProcVidModeGetDotClocks()
1992 swaps(&stuff->length); in SProcVidModeSetClientVersion()
1994 swaps(&stuff->major); in SProcVidModeSetClientVersion()
1995 swaps(&stuff->minor); in SProcVidModeSetClientVersion()
2003 swaps(&stuff->length); in SProcVidModeSetGamma()
2005 swaps(&stuff->screen); in SProcVidModeSetGamma()
2006 swapl(&stuff->red); in SProcVidModeSetGamma()
2007 swapl(&stuff->green); in SProcVidModeSetGamma()
2008 swapl(&stuff->blue); in SProcVidModeSetGamma()
2016 swaps(&stuff->length); in SProcVidModeGetGamma()
2018 swaps(&stuff->screen); in SProcVidModeGetGamma()
2028 swaps(&stuff->length); in SProcVidModeSetGammaRamp()
2030 swaps(&stuff->size); in SProcVidModeSetGammaRamp()
2031 swaps(&stuff->screen); in SProcVidModeSetGammaRamp()
2032 length = ((stuff->size + 1) & ~1) * 6; in SProcVidModeSetGammaRamp()
2034 SwapRestS(stuff); in SProcVidModeSetGammaRamp()
2042 swaps(&stuff->length); in SProcVidModeGetGammaRamp()
2044 swaps(&stuff->size); in SProcVidModeGetGammaRamp()
2045 swaps(&stuff->screen); in SProcVidModeGetGammaRamp()
2053 swaps(&stuff->length); in SProcVidModeGetGammaRampSize()
2055 swaps(&stuff->screen); in SProcVidModeGetGammaRampSize()
2063 swaps(&stuff->length); in SProcVidModeGetPermissions()
2065 swaps(&stuff->screen); in SProcVidModeGetPermissions()
2073 switch (stuff->data) { in SProcVidModeDispatch()
2100 switch (stuff->data) { in SProcVidModeDispatch()