Lines Matching refs:rep
120 xXF86DRIQueryVersionReply rep; in XF86DRIQueryVersion() local
130 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in XF86DRIQueryVersion()
136 *majorVersion = rep.majorVersion; in XF86DRIQueryVersion()
137 *minorVersion = rep.minorVersion; in XF86DRIQueryVersion()
138 *patchVersion = rep.patchVersion; in XF86DRIQueryVersion()
150 xXF86DRIQueryDirectRenderingCapableReply rep; in XF86DRIQueryDirectRenderingCapable() local
161 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in XF86DRIQueryDirectRenderingCapable()
167 *isCapable = rep.isCapable; in XF86DRIQueryDirectRenderingCapable()
179 xXF86DRIOpenConnectionReply rep; in XF86DRIOpenConnection() local
190 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in XF86DRIOpenConnection()
197 *hSAREA = rep.hSAREALow; in XF86DRIOpenConnection()
200 *hSAREA |= ((drm_handle_t) rep.hSAREAHigh) << shift; in XF86DRIOpenConnection()
203 if (rep.length) { in XF86DRIOpenConnection()
204 if (!(*busIdString = (char *) Xcalloc(rep.busIdStringLength + 1, 1))) { in XF86DRIOpenConnection()
205 _XEatData(dpy, ((rep.busIdStringLength + 3) & ~3)); in XF86DRIOpenConnection()
211 _XReadPad(dpy, *busIdString, rep.busIdStringLength); in XF86DRIOpenConnection()
227 xXF86DRIAuthConnectionReply rep; in XF86DRIAuthConnection() local
238 rep.authenticated = 0; in XF86DRIAuthConnection()
239 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse) || !rep.authenticated) { in XF86DRIAuthConnection()
280 xXF86DRIGetClientDriverNameReply rep; in XF86DRIGetClientDriverName() local
291 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in XF86DRIGetClientDriverName()
298 *ddxDriverMajorVersion = rep.ddxDriverMajorVersion; in XF86DRIGetClientDriverName()
299 *ddxDriverMinorVersion = rep.ddxDriverMinorVersion; in XF86DRIGetClientDriverName()
300 *ddxDriverPatchVersion = rep.ddxDriverPatchVersion; in XF86DRIGetClientDriverName()
302 if (rep.length) { in XF86DRIGetClientDriverName()
305 (char *) Xcalloc(rep.clientDriverNameLength + 1, 1))) { in XF86DRIGetClientDriverName()
306 _XEatData(dpy, ((rep.clientDriverNameLength + 3) & ~3)); in XF86DRIGetClientDriverName()
312 _XReadPad(dpy, *clientDriverName, rep.clientDriverNameLength); in XF86DRIGetClientDriverName()
328 xXF86DRICreateContextReply rep; in XF86DRICreateContextWithConfig() local
342 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in XF86DRICreateContextWithConfig()
348 *hHWContext = rep.hHWContext; in XF86DRICreateContextWithConfig()
389 xXF86DRICreateDrawableReply rep; in XF86DRICreateDrawable() local
401 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in XF86DRICreateDrawable()
407 *hHWDrawable = rep.hHWDrawable; in XF86DRICreateDrawable()
470 xXF86DRIGetDrawableInfoReply rep; in XF86DRIGetDrawableInfo() local
484 if (!_XReply(dpy, (xReply *) & rep, 1, xFalse)) { in XF86DRIGetDrawableInfo()
490 *index = rep.drawableTableIndex; in XF86DRIGetDrawableInfo()
491 *stamp = rep.drawableTableStamp; in XF86DRIGetDrawableInfo()
492 *X = (int) rep.drawableX; in XF86DRIGetDrawableInfo()
493 *Y = (int) rep.drawableY; in XF86DRIGetDrawableInfo()
494 *W = (int) rep.drawableWidth; in XF86DRIGetDrawableInfo()
495 *H = (int) rep.drawableHeight; in XF86DRIGetDrawableInfo()
496 *numClipRects = rep.numClipRects; in XF86DRIGetDrawableInfo()
499 *backX = rep.backX; in XF86DRIGetDrawableInfo()
500 *backY = rep.backY; in XF86DRIGetDrawableInfo()
501 *numBackClipRects = rep.numBackClipRects; in XF86DRIGetDrawableInfo()
509 if (rep.length != ((((SIZEOF(xXF86DRIGetDrawableInfoReply) - in XF86DRIGetDrawableInfo()
513 _XEatData(dpy, rep.length); in XF86DRIGetDrawableInfo()
555 xXF86DRIGetDeviceInfoReply rep; in XF86DRIGetDeviceInfo() local
566 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in XF86DRIGetDeviceInfo()
573 *hFrameBuffer = rep.hFrameBufferLow; in XF86DRIGetDeviceInfo()
576 *hFrameBuffer |= ((drm_handle_t) rep.hFrameBufferHigh) << shift; in XF86DRIGetDeviceInfo()
579 *fbOrigin = rep.framebufferOrigin; in XF86DRIGetDeviceInfo()
580 *fbSize = rep.framebufferSize; in XF86DRIGetDeviceInfo()
581 *fbStride = rep.framebufferStride; in XF86DRIGetDeviceInfo()
582 *devPrivateSize = rep.devPrivateSize; in XF86DRIGetDeviceInfo()
584 if (rep.length) { in XF86DRIGetDeviceInfo()
585 if (!(*pDevPrivate = (void *) Xcalloc(rep.devPrivateSize, 1))) { in XF86DRIGetDeviceInfo()
586 _XEatData(dpy, ((rep.devPrivateSize + 3) & ~3)); in XF86DRIGetDeviceInfo()
592 _XRead(dpy, (char *) *pDevPrivate, rep.devPrivateSize); in XF86DRIGetDeviceInfo()