Lines Matching refs:stuff
680 LEGAL_NEW_RESOURCE(stuff->wid, client); in ProcCreateWindow()
681 rc = dixLookupWindow(&pParent, stuff->parent, client, DixAddAccess); in ProcCreateWindow()
685 if (Ones(stuff->mask) != len) in ProcCreateWindow()
687 if (!stuff->width || !stuff->height) { in ProcCreateWindow()
691 pWin = CreateWindow(stuff->wid, pParent, stuff->x, in ProcCreateWindow()
692 stuff->y, stuff->width, stuff->height, in ProcCreateWindow()
693 stuff->borderWidth, stuff->class, in ProcCreateWindow()
694 stuff->mask, (XID *) &stuff[1], in ProcCreateWindow()
695 (int) stuff->depth, client, stuff->visual, &rc); in ProcCreateWindow()
700 if (!AddResource(stuff->wid, RT_WINDOW, (void *) pWin)) in ProcCreateWindow()
717 access_mode |= (stuff->valueMask & CWEventMask) ? DixReceiveAccess : 0; in ProcChangeWindowAttributes()
718 access_mode |= (stuff->valueMask & ~CWEventMask) ? DixSetAttrAccess : 0; in ProcChangeWindowAttributes()
719 rc = dixLookupWindow(&pWin, stuff->window, client, access_mode); in ProcChangeWindowAttributes()
723 if (len != Ones(stuff->valueMask)) in ProcChangeWindowAttributes()
726 stuff->valueMask, (XID *) &stuff[1], client); in ProcChangeWindowAttributes()
739 rc = dixLookupWindow(&pWin, stuff->id, client, DixGetAttrAccess); in ProcGetWindowAttributes()
757 rc = dixLookupWindow(&pWin, stuff->id, client, DixDestroyAccess); in ProcDestroyWindow()
765 FreeResource(stuff->id, RT_NONE); in ProcDestroyWindow()
779 rc = dixLookupWindow(&pWin, stuff->id, client, DixRemoveAccess); in ProcDestroySubwindows()
795 rc = dixLookupWindow(&pWin, stuff->window, client, DixManageAccess); in ProcChangeSaveSet()
800 if ((stuff->mode == SetModeInsert) || (stuff->mode == SetModeDelete)) in ProcChangeSaveSet()
801 return AlterSaveSetForClient(client, pWin, stuff->mode, FALSE, TRUE); in ProcChangeSaveSet()
802 client->errorValue = stuff->mode; in ProcChangeSaveSet()
815 rc = dixLookupWindow(&pWin, stuff->window, client, DixManageAccess); in ProcReparentWindow()
818 rc = dixLookupWindow(&pParent, stuff->parent, client, DixAddAccess); in ProcReparentWindow()
830 (short) stuff->x, (short) stuff->y, client); in ProcReparentWindow()
842 rc = dixLookupWindow(&pWin, stuff->id, client, DixShowAccess); in ProcMapWindow()
859 rc = dixLookupWindow(&pWin, stuff->id, client, DixListAccess); in ProcMapSubwindows()
876 rc = dixLookupWindow(&pWin, stuff->id, client, DixHideAccess); in ProcUnmapWindow()
893 rc = dixLookupWindow(&pWin, stuff->id, client, DixListAccess); in ProcUnmapSubwindows()
909 rc = dixLookupWindow(&pWin, stuff->window, client, in ProcConfigureWindow()
914 if (Ones((Mask) stuff->mask) != len) in ProcConfigureWindow()
916 return ConfigureWindow(pWin, (Mask) stuff->mask, (XID *) &stuff[1], client); in ProcConfigureWindow()
928 if ((stuff->direction != RaiseLowest) && (stuff->direction != LowerHighest)) { in ProcCirculateWindow()
929 client->errorValue = stuff->direction; in ProcCirculateWindow()
932 rc = dixLookupWindow(&pWin, stuff->window, client, DixManageAccess); in ProcCirculateWindow()
935 CirculateWindow(pWin, (int) stuff->direction, client); in ProcCirculateWindow()
948 rc = dixLookupDrawable(&pDraw, stuff->id, client, M_ANY, DixGetAttrAccess); in GetGeometry()
999 rc = dixLookupWindow(&pWin, stuff->id, client, DixListAccess); in ProcQueryTree()
1045 REQUEST_FIXED_SIZE(xInternAtomReq, stuff->nbytes); in ProcInternAtom()
1046 if ((stuff->onlyIfExists != xTrue) && (stuff->onlyIfExists != xFalse)) { in ProcInternAtom()
1047 client->errorValue = stuff->onlyIfExists; in ProcInternAtom()
1050 tchar = (char *) &stuff[1]; in ProcInternAtom()
1051 atom = MakeAtom(tchar, stuff->nbytes, !stuff->onlyIfExists); in ProcInternAtom()
1074 if ((str = NameForAtom(stuff->id))) { in ProcGetAtomName()
1088 client->errorValue = stuff->id; in ProcGetAtomName()
1168 rc = dixLookupWindow(&pWin, stuff->srcWid, client, DixGetAttrAccess); in ProcTranslateCoords()
1171 rc = dixLookupWindow(&pDst, stuff->dstWid, client, DixGetAttrAccess); in ProcTranslateCoords()
1191 x = pWin->drawable.x + stuff->srcX; in ProcTranslateCoords()
1192 y = pWin->drawable.y + stuff->srcY; in ProcTranslateCoords()
1237 REQUEST_FIXED_SIZE(xOpenFontReq, stuff->nbytes); in ProcOpenFont()
1238 client->errorValue = stuff->fid; in ProcOpenFont()
1239 LEGAL_NEW_RESOURCE(stuff->fid, client); in ProcOpenFont()
1240 err = OpenFont(client, stuff->fid, (Mask) 0, in ProcOpenFont()
1241 stuff->nbytes, (char *) &stuff[1]); in ProcOpenFont()
1258 rc = dixLookupResourceByType((void **) &pFont, stuff->id, RT_FONT, in ProcCloseFont()
1261 FreeResource(stuff->id, RT_NONE); in ProcCloseFont()
1265 client->errorValue = stuff->id; in ProcCloseFont()
1280 rc = dixLookupFontable(&pFont, stuff->id, client, DixGetAttrAccess); in ProcQueryFont()
1328 rc = dixLookupFontable(&pFont, stuff->fid, client, DixGetAttrAccess); in ProcQueryTextExtents()
1334 if (stuff->oddLength) { in ProcQueryTextExtents()
1339 if (!xfont2_query_text_extents(pFont, length, (unsigned char *) &stuff[1], &info)) in ProcQueryTextExtents()
1363 REQUEST_FIXED_SIZE(xListFontsReq, stuff->nbytes); in ProcListFonts()
1365 return ListFonts(client, (unsigned char *) &stuff[1], stuff->nbytes, in ProcListFonts()
1366 stuff->maxNames); in ProcListFonts()
1374 REQUEST_FIXED_SIZE(xListFontsWithInfoReq, stuff->nbytes); in ProcListFontsWithInfo()
1376 return StartListFontsWithInfo(client, stuff->nbytes, in ProcListFontsWithInfo()
1377 (unsigned char *) &stuff[1], stuff->maxNames); in ProcListFontsWithInfo()
1403 client->errorValue = stuff->pid; in ProcCreatePixmap()
1404 LEGAL_NEW_RESOURCE(stuff->pid, client); in ProcCreatePixmap()
1406 rc = dixLookupDrawable(&pDraw, stuff->drawable, client, M_ANY, in ProcCreatePixmap()
1411 if (!stuff->width || !stuff->height) { in ProcCreatePixmap()
1415 if (stuff->width > 32767 || stuff->height > 32767) { in ProcCreatePixmap()
1431 if (stuff->depth != 1) { in ProcCreatePixmap()
1434 if (pDepth->depth == stuff->depth) in ProcCreatePixmap()
1436 client->errorValue = stuff->depth; in ProcCreatePixmap()
1441 (pDraw->pScreen, stuff->width, stuff->height, stuff->depth, 0); in ProcCreatePixmap()
1444 pMap->drawable.id = stuff->pid; in ProcCreatePixmap()
1446 rc = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->pid, RT_PIXMAP, in ProcCreatePixmap()
1452 if (AddResource(stuff->pid, RT_PIXMAP, (void *) pMap)) in ProcCreatePixmap()
1467 rc = dixLookupResourceByType((void **) &pMap, stuff->id, RT_PIXMAP, in ProcFreePixmap()
1470 FreeResource(stuff->id, RT_NONE); in ProcFreePixmap()
1474 client->errorValue = stuff->id; in ProcFreePixmap()
1490 client->errorValue = stuff->gc; in ProcCreateGC()
1491 LEGAL_NEW_RESOURCE(stuff->gc, client); in ProcCreateGC()
1492 rc = dixLookupDrawable(&pDraw, stuff->drawable, client, 0, in ProcCreateGC()
1498 if (len != Ones(stuff->mask)) in ProcCreateGC()
1500 pGC = (GC *) CreateGC(pDraw, stuff->mask, (XID *) &stuff[1], &error, in ProcCreateGC()
1501 stuff->gc, client); in ProcCreateGC()
1504 if (!AddResource(stuff->gc, RT_GC, (void *) pGC)) in ProcCreateGC()
1519 result = dixLookupGC(&pGC, stuff->gc, client, DixSetAttrAccess); in ProcChangeGC()
1524 if (len != Ones(stuff->mask)) in ProcChangeGC()
1527 return ChangeGCXIDs(client, pGC, stuff->mask, (CARD32 *) &stuff[1]); in ProcChangeGC()
1540 result = dixLookupGC(&pGC, stuff->srcGC, client, DixGetAttrAccess); in ProcCopyGC()
1543 result = dixLookupGC(&dstGC, stuff->dstGC, client, DixSetAttrAccess); in ProcCopyGC()
1548 if (stuff->mask & ~GCAllBits) { in ProcCopyGC()
1549 client->errorValue = stuff->mask; in ProcCopyGC()
1552 return CopyGC(pGC, dstGC, stuff->mask); in ProcCopyGC()
1563 REQUEST_FIXED_SIZE(xSetDashesReq, stuff->nDashes); in ProcSetDashes()
1564 if (stuff->nDashes == 0) { in ProcSetDashes()
1569 result = dixLookupGC(&pGC, stuff->gc, client, DixSetAttrAccess); in ProcSetDashes()
1576 return SetDashes(pGC, stuff->dashOffset, stuff->nDashes, in ProcSetDashes()
1577 (unsigned char *) &stuff[1]); in ProcSetDashes()
1589 if ((stuff->ordering != Unsorted) && (stuff->ordering != YSorted) && in ProcSetClipRectangles()
1590 (stuff->ordering != YXSorted) && (stuff->ordering != YXBanded)) { in ProcSetClipRectangles()
1591 client->errorValue = stuff->ordering; in ProcSetClipRectangles()
1594 result = dixLookupGC(&pGC, stuff->gc, client, DixSetAttrAccess); in ProcSetClipRectangles()
1602 return SetClipRects(pGC, stuff->xOrigin, stuff->yOrigin, in ProcSetClipRectangles()
1603 nr, (xRectangle *) &stuff[1], (int) stuff->ordering); in ProcSetClipRectangles()
1615 rc = dixLookupGC(&pGC, stuff->id, client, DixDestroyAccess); in ProcFreeGC()
1619 FreeResource(stuff->id, RT_NONE); in ProcFreeGC()
1631 rc = dixLookupWindow(&pWin, stuff->window, client, DixWriteAccess); in ProcClearToBackground()
1635 client->errorValue = stuff->window; in ProcClearToBackground()
1638 if ((stuff->exposures != xTrue) && (stuff->exposures != xFalse)) { in ProcClearToBackground()
1639 client->errorValue = stuff->exposures; in ProcClearToBackground()
1642 (*pWin->drawable.pScreen->ClearToBackground) (pWin, stuff->x, stuff->y, in ProcClearToBackground()
1643 stuff->width, stuff->height, in ProcClearToBackground()
1644 (Bool) stuff->exposures); in ProcClearToBackground()
1707 VALIDATE_DRAWABLE_AND_GC(stuff->dstDrawable, pDst, DixWriteAccess); in ProcCopyArea()
1708 if (stuff->dstDrawable != stuff->srcDrawable) { in ProcCopyArea()
1709 rc = dixLookupDrawable(&pSrc, stuff->srcDrawable, client, 0, in ProcCopyArea()
1714 client->errorValue = stuff->dstDrawable; in ProcCopyArea()
1721 pRgn = (*pGC->ops->CopyArea) (pSrc, pDst, pGC, stuff->srcX, stuff->srcY, in ProcCopyArea()
1722 stuff->width, stuff->height, in ProcCopyArea()
1723 stuff->dstX, stuff->dstY); in ProcCopyArea()
1725 SendGraphicsExpose(client, pRgn, stuff->dstDrawable, X_CopyArea, 0); in ProcCopyArea()
1745 VALIDATE_DRAWABLE_AND_GC(stuff->dstDrawable, pdstDraw, DixWriteAccess); in ProcCopyPlane()
1746 if (stuff->dstDrawable != stuff->srcDrawable) { in ProcCopyPlane()
1747 rc = dixLookupDrawable(&psrcDraw, stuff->srcDrawable, client, 0, in ProcCopyPlane()
1753 client->errorValue = stuff->dstDrawable; in ProcCopyPlane()
1761 if (stuff->bitPlane == 0 || (stuff->bitPlane & (stuff->bitPlane - 1)) || in ProcCopyPlane()
1762 (stuff->bitPlane > (1L << (psrcDraw->depth - 1)))) { in ProcCopyPlane()
1763 client->errorValue = stuff->bitPlane; in ProcCopyPlane()
1768 (*pGC->ops->CopyPlane) (psrcDraw, pdstDraw, pGC, stuff->srcX, in ProcCopyPlane()
1769 stuff->srcY, stuff->width, stuff->height, in ProcCopyPlane()
1770 stuff->dstX, stuff->dstY, stuff->bitPlane); in ProcCopyPlane()
1772 SendGraphicsExpose(client, pRgn, stuff->dstDrawable, X_CopyPlane, 0); in ProcCopyPlane()
1789 if ((stuff->coordMode != CoordModeOrigin) && in ProcPolyPoint()
1790 (stuff->coordMode != CoordModePrevious)) { in ProcPolyPoint()
1791 client->errorValue = stuff->coordMode; in ProcPolyPoint()
1794 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcPolyPoint()
1797 (*pGC->ops->PolyPoint) (pDraw, pGC, stuff->coordMode, npoint, in ProcPolyPoint()
1798 (xPoint *) &stuff[1]); in ProcPolyPoint()
1812 if ((stuff->coordMode != CoordModeOrigin) && in ProcPolyLine()
1813 (stuff->coordMode != CoordModePrevious)) { in ProcPolyLine()
1814 client->errorValue = stuff->coordMode; in ProcPolyLine()
1817 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcPolyLine()
1820 (*pGC->ops->Polylines) (pDraw, pGC, stuff->coordMode, npoint, in ProcPolyLine()
1821 (DDXPointPtr) &stuff[1]); in ProcPolyLine()
1835 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcPolySegment()
1841 (*pGC->ops->PolySegment) (pDraw, pGC, nsegs, (xSegment *) &stuff[1]); in ProcPolySegment()
1855 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcPolyRectangle()
1862 nrects, (xRectangle *) &stuff[1]); in ProcPolyRectangle()
1876 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcPolyArc()
1882 (*pGC->ops->PolyArc) (pDraw, pGC, narcs, (xArc *) &stuff[1]); in ProcPolyArc()
1896 if ((stuff->shape != Complex) && (stuff->shape != Nonconvex) && in ProcFillPoly()
1897 (stuff->shape != Convex)) { in ProcFillPoly()
1898 client->errorValue = stuff->shape; in ProcFillPoly()
1901 if ((stuff->coordMode != CoordModeOrigin) && in ProcFillPoly()
1902 (stuff->coordMode != CoordModePrevious)) { in ProcFillPoly()
1903 client->errorValue = stuff->coordMode; in ProcFillPoly()
1907 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcFillPoly()
1910 (*pGC->ops->FillPolygon) (pDraw, pGC, stuff->shape, in ProcFillPoly()
1911 stuff->coordMode, things, in ProcFillPoly()
1912 (DDXPointPtr) &stuff[1]); in ProcFillPoly()
1926 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcPolyFillRectangle()
1934 (xRectangle *) &stuff[1]); in ProcPolyFillRectangle()
1948 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcPolyFillArc()
1954 (*pGC->ops->PolyFillArc) (pDraw, pGC, narcs, (xArc *) &stuff[1]); in ProcPolyFillArc()
2024 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcPutImage()
2025 if (stuff->format == XYBitmap) { in ProcPutImage()
2026 if ((stuff->depth != 1) || in ProcPutImage()
2027 (stuff->leftPad >= (unsigned int) screenInfo.bitmapScanlinePad)) in ProcPutImage()
2029 length = BitmapBytePad(stuff->width + stuff->leftPad); in ProcPutImage()
2031 else if (stuff->format == XYPixmap) { in ProcPutImage()
2032 if ((pDraw->depth != stuff->depth) || in ProcPutImage()
2033 (stuff->leftPad >= (unsigned int) screenInfo.bitmapScanlinePad)) in ProcPutImage()
2035 length = BitmapBytePad(stuff->width + stuff->leftPad); in ProcPutImage()
2036 length *= stuff->depth; in ProcPutImage()
2038 else if (stuff->format == ZPixmap) { in ProcPutImage()
2039 if ((pDraw->depth != stuff->depth) || (stuff->leftPad != 0)) in ProcPutImage()
2041 length = PixmapBytePad(stuff->width, stuff->depth); in ProcPutImage()
2044 client->errorValue = stuff->format; in ProcPutImage()
2048 tmpImage = (char *) &stuff[1]; in ProcPutImage()
2051 if (stuff->height != 0 && lengthProto >= (INT32_MAX / stuff->height)) in ProcPutImage()
2054 if ((bytes_to_int32(lengthProto * stuff->height) + in ProcPutImage()
2058 ReformatImage(tmpImage, lengthProto * stuff->height, in ProcPutImage()
2059 stuff->format == ZPixmap ? BitsPerPixel(stuff->depth) : 1, in ProcPutImage()
2062 (*pGC->ops->PutImage) (pDraw, pGC, stuff->depth, stuff->dstX, stuff->dstY, in ProcPutImage()
2063 stuff->width, stuff->height, in ProcPutImage()
2064 stuff->leftPad, stuff->format, tmpImage); in ProcPutImage()
2273 return DoGetImage(client, stuff->format, stuff->drawable, in ProcGetImage()
2274 stuff->x, stuff->y, in ProcGetImage()
2275 (int) stuff->width, (int) stuff->height, in ProcGetImage()
2276 stuff->planeMask); in ProcGetImage()
2289 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcPolyText()
2294 (unsigned char *) &stuff[1], in ProcPolyText()
2295 ((unsigned char *) stuff) + (client->req_len << 2), in ProcPolyText()
2296 stuff->x, stuff->y, stuff->reqType, stuff->drawable); in ProcPolyText()
2314 REQUEST_FIXED_SIZE(xImageTextReq, stuff->nChars); in ProcImageText8()
2315 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcImageText8()
2320 stuff->nChars, in ProcImageText8()
2321 (unsigned char *) &stuff[1], in ProcImageText8()
2322 stuff->x, stuff->y, stuff->reqType, stuff->drawable); in ProcImageText8()
2340 REQUEST_FIXED_SIZE(xImageTextReq, stuff->nChars << 1); in ProcImageText16()
2341 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcImageText16()
2346 stuff->nChars, in ProcImageText16()
2347 (unsigned char *) &stuff[1], in ProcImageText16()
2348 stuff->x, stuff->y, stuff->reqType, stuff->drawable); in ProcImageText16()
2371 if ((stuff->alloc != AllocNone) && (stuff->alloc != AllocAll)) { in ProcCreateColormap()
2372 client->errorValue = stuff->alloc; in ProcCreateColormap()
2375 mid = stuff->mid; in ProcCreateColormap()
2377 result = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess); in ProcCreateColormap()
2384 if (pVisual->vid != stuff->visual) in ProcCreateColormap()
2387 (int) stuff->alloc, client->index); in ProcCreateColormap()
2389 client->errorValue = stuff->visual; in ProcCreateColormap()
2402 rc = dixLookupResourceByType((void **) &pmap, stuff->id, RT_COLORMAP, in ProcFreeColormap()
2407 FreeResource(stuff->id, RT_NONE); in ProcFreeColormap()
2411 client->errorValue = stuff->id; in ProcFreeColormap()
2426 mid = stuff->mid; in ProcCopyColormapAndFree()
2428 rc = dixLookupResourceByType((void **) &pSrcMap, stuff->srcCmap, in ProcCopyColormapAndFree()
2433 client->errorValue = stuff->srcCmap; in ProcCopyColormapAndFree()
2446 rc = dixLookupResourceByType((void **) &pcmp, stuff->id, RT_COLORMAP, in ProcInstallColormap()
2462 client->errorValue = stuff->id; in ProcInstallColormap()
2475 rc = dixLookupResourceByType((void **) &pcmp, stuff->id, RT_COLORMAP, in ProcUninstallColormap()
2492 client->errorValue = stuff->id; in ProcUninstallColormap()
2506 rc = dixLookupWindow(&pWin, stuff->id, client, DixGetAttrAccess); in ProcListInstalledColormaps()
2543 rc = dixLookupResourceByType((void **) &pmap, stuff->cmap, RT_COLORMAP, in ProcAllocColor()
2550 .red = stuff->red, in ProcAllocColor()
2551 .green = stuff->green, in ProcAllocColor()
2552 .blue = stuff->blue, in ProcAllocColor()
2566 client->errorValue = stuff->cmap; in ProcAllocColor()
2579 REQUEST_FIXED_SIZE(xAllocNamedColorReq, stuff->nbytes); in ProcAllocNamedColor()
2580 rc = dixLookupResourceByType((void **) &pcmp, stuff->cmap, RT_COLORMAP, in ProcAllocNamedColor()
2589 (pcmp->pScreen->myNum, (char *) &stuff[1], stuff->nbytes, in ProcAllocNamedColor()
2611 client->errorValue = stuff->cmap; in ProcAllocNamedColor()
2625 rc = dixLookupResourceByType((void **) &pcmp, stuff->cmap, RT_COLORMAP, in ProcAllocColorCells()
2632 npixels = stuff->colors; in ProcAllocColorCells()
2637 if (stuff->contiguous != xTrue && stuff->contiguous != xFalse) { in ProcAllocColorCells()
2638 client->errorValue = stuff->contiguous; in ProcAllocColorCells()
2641 nmasks = stuff->planes; in ProcAllocColorCells()
2649 (Bool) stuff->contiguous, ppixels, pmasks))) { in ProcAllocColorCells()
2672 client->errorValue = stuff->cmap; in ProcAllocColorCells()
2686 rc = dixLookupResourceByType((void **) &pcmp, stuff->cmap, RT_COLORMAP, in ProcAllocColorPlanes()
2694 npixels = stuff->colors; in ProcAllocColorPlanes()
2699 if (stuff->contiguous != xTrue && stuff->contiguous != xFalse) { in ProcAllocColorPlanes()
2700 client->errorValue = stuff->contiguous; in ProcAllocColorPlanes()
2714 (int) stuff->red, (int) stuff->green, in ProcAllocColorPlanes()
2715 (int) stuff->blue, (Bool) stuff->contiguous, in ProcAllocColorPlanes()
2734 client->errorValue = stuff->cmap; in ProcAllocColorPlanes()
2748 rc = dixLookupResourceByType((void **) &pcmp, stuff->cmap, RT_COLORMAP, in ProcFreeColors()
2757 (Pixel *) &stuff[1], (Pixel) stuff->planeMask); in ProcFreeColors()
2760 client->errorValue = stuff->cmap; in ProcFreeColors()
2774 rc = dixLookupResourceByType((void **) &pcmp, stuff->cmap, RT_COLORMAP, in ProcStoreColors()
2783 return StoreColors(pcmp, count, (xColorItem *) &stuff[1], client); in ProcStoreColors()
2786 client->errorValue = stuff->cmap; in ProcStoreColors()
2799 REQUEST_FIXED_SIZE(xStoreNamedColorReq, stuff->nbytes); in ProcStoreNamedColor()
2800 rc = dixLookupResourceByType((void **) &pcmp, stuff->cmap, RT_COLORMAP, in ProcStoreNamedColor()
2805 if (OsLookupColor(pcmp->pScreen->myNum, (char *) &stuff[1], in ProcStoreNamedColor()
2806 stuff->nbytes, &def.red, &def.green, &def.blue)) { in ProcStoreNamedColor()
2807 def.flags = stuff->flags; in ProcStoreNamedColor()
2808 def.pixel = stuff->pixel; in ProcStoreNamedColor()
2814 client->errorValue = stuff->cmap; in ProcStoreNamedColor()
2828 rc = dixLookupResourceByType((void **) &pcmp, stuff->cmap, RT_COLORMAP, in ProcQueryColors()
2841 QueryColors(pcmp, count, (Pixel *) &stuff[1], prgbs, client))) { in ProcQueryColors()
2861 client->errorValue = stuff->cmap; in ProcQueryColors()
2874 REQUEST_FIXED_SIZE(xLookupColorReq, stuff->nbytes); in ProcLookupColor()
2875 rc = dixLookupResourceByType((void **) &pcmp, stuff->cmap, RT_COLORMAP, in ProcLookupColor()
2881 (pcmp->pScreen->myNum, (char *) &stuff[1], stuff->nbytes, in ProcLookupColor()
2903 client->errorValue = stuff->cmap; in ProcLookupColor()
2924 LEGAL_NEW_RESOURCE(stuff->cid, client); in ProcCreateCursor()
2926 rc = dixLookupResourceByType((void **) &src, stuff->source, RT_PIXMAP, in ProcCreateCursor()
2929 client->errorValue = stuff->source; in ProcCreateCursor()
2937 if (stuff->mask != None) { in ProcCreateCursor()
2938 rc = dixLookupResourceByType((void **) &msk, stuff->mask, RT_PIXMAP, in ProcCreateCursor()
2941 client->errorValue = stuff->mask; in ProcCreateCursor()
2956 if (stuff->x > width || stuff->y > height) in ProcCreateCursor()
2986 cm.xhot = stuff->x; in ProcCreateCursor()
2987 cm.yhot = stuff->y; in ProcCreateCursor()
2989 stuff->foreRed, stuff->foreGreen, stuff->foreBlue, in ProcCreateCursor()
2990 stuff->backRed, stuff->backGreen, stuff->backBlue, in ProcCreateCursor()
2991 &pCursor, client, stuff->cid); in ProcCreateCursor()
2995 if (!AddResource(stuff->cid, RT_CURSOR, (void *) pCursor)) { in ProcCreateCursor()
3016 LEGAL_NEW_RESOURCE(stuff->cid, client); in ProcCreateGlyphCursor()
3018 res = AllocGlyphCursor(stuff->source, stuff->sourceChar, in ProcCreateGlyphCursor()
3019 stuff->mask, stuff->maskChar, in ProcCreateGlyphCursor()
3020 stuff->foreRed, stuff->foreGreen, stuff->foreBlue, in ProcCreateGlyphCursor()
3021 stuff->backRed, stuff->backGreen, stuff->backBlue, in ProcCreateGlyphCursor()
3022 &pCursor, client, stuff->cid); in ProcCreateGlyphCursor()
3025 if (AddResource(stuff->cid, RT_CURSOR, (void *) pCursor)) in ProcCreateGlyphCursor()
3039 rc = dixLookupResourceByType((void **) &pCursor, stuff->id, RT_CURSOR, in ProcFreeCursor()
3042 FreeResource(stuff->id, RT_NONE); in ProcFreeCursor()
3046 client->errorValue = stuff->id; in ProcFreeCursor()
3062 if ((stuff->class != CursorShape) && in ProcQueryBestSize()
3063 (stuff->class != TileShape) && (stuff->class != StippleShape)) { in ProcQueryBestSize()
3064 client->errorValue = stuff->class; in ProcQueryBestSize()
3068 rc = dixLookupDrawable(&pDraw, stuff->drawable, client, M_ANY, in ProcQueryBestSize()
3072 if (stuff->class != CursorShape && pDraw->type == UNDRAWABLE_WINDOW) in ProcQueryBestSize()
3078 (*pScreen->QueryBestSize) (stuff->class, &stuff->width, in ProcQueryBestSize()
3079 &stuff->height, pScreen); in ProcQueryBestSize()
3084 .width = stuff->width, in ProcQueryBestSize()
3085 .height = stuff->height in ProcQueryBestSize()
3106 blankingOption = stuff->preferBlank; in ProcSetScreenSaver()
3113 exposureOption = stuff->allowExpose; in ProcSetScreenSaver()
3120 if (stuff->timeout < -1) { in ProcSetScreenSaver()
3121 client->errorValue = stuff->timeout; in ProcSetScreenSaver()
3124 if (stuff->interval < -1) { in ProcSetScreenSaver()
3125 client->errorValue = stuff->interval; in ProcSetScreenSaver()
3138 if (stuff->timeout >= 0) in ProcSetScreenSaver()
3139 ScreenSaverTime = stuff->timeout * MILLI_PER_SECOND; in ProcSetScreenSaver()
3142 if (stuff->interval >= 0) in ProcSetScreenSaver()
3143 ScreenSaverInterval = stuff->interval * MILLI_PER_SECOND; in ProcSetScreenSaver()
3184 REQUEST_FIXED_SIZE(xChangeHostsReq, stuff->hostLength); in ProcChangeHosts()
3186 if (stuff->mode == HostInsert) in ProcChangeHosts()
3187 return AddHost(client, (int) stuff->hostFamily, in ProcChangeHosts()
3188 stuff->hostLength, (void *) &stuff[1]); in ProcChangeHosts()
3189 if (stuff->mode == HostDelete) in ProcChangeHosts()
3190 return RemoveHost(client, (int) stuff->hostFamily, in ProcChangeHosts()
3191 stuff->hostLength, (void *) &stuff[1]); in ProcChangeHosts()
3192 client->errorValue = stuff->mode; in ProcChangeHosts()
3239 if ((stuff->mode != EnableAccess) && (stuff->mode != DisableAccess)) { in ProcChangeAccessControl()
3240 client->errorValue = stuff->mode; in ProcChangeAccessControl()
3243 return ChangeAccessControl(client, stuff->mode == EnableAccess); in ProcChangeAccessControl()
3275 if (stuff->id == AllTemporary) { in ProcKillClient()
3280 rc = dixLookupClient(&killclient, stuff->id, client, DixDestroyAccess); in ProcKillClient()
3309 ptr = (unsigned char *) &stuff[1]; in ProcSetFontPath()
3310 nfonts = stuff->nFonts; in ProcSetFontPath()
3319 return SetFontPath(client, stuff->nFonts, (unsigned char *) &stuff[1]); in ProcSetFontPath()
3361 if ((stuff->mode == AllTemporary) || in ProcChangeCloseDownMode()
3362 (stuff->mode == RetainPermanent) || (stuff->mode == RetainTemporary)) { in ProcChangeCloseDownMode()
3363 client->closeDownMode = stuff->mode; in ProcChangeCloseDownMode()
3367 client->errorValue = stuff->mode; in ProcChangeCloseDownMode()
3381 if ((stuff->mode != ScreenSaverReset) && (stuff->mode != ScreenSaverActive)) { in ProcForceScreenSaver()
3382 client->errorValue = stuff->mode; in ProcForceScreenSaver()
3385 rc = dixSaveScreens(client, SCREEN_SAVER_FORCER, (int) stuff->mode); in ProcForceScreenSaver()
3584 prefix = (xConnClientPrefix *) ((char *)stuff + sz_xReq); in ProcInitialConnection()
3593 stuff->reqType = 2; in ProcInitialConnection()
3594 stuff->length += bytes_to_int32(prefix->nbytesAuthProto) + in ProcInitialConnection()
3597 swaps(&stuff->length); in ProcInitialConnection()
3705 prefix = (xConnClientPrefix *) ((char *) stuff + sz_xReq); in ProcEstablishConnection()