Lines Matching refs:rep
82 xXF86DRIQueryVersionReply rep = { in ProcXF86DRIQueryVersion() local
93 swaps(&rep.sequenceNumber); in ProcXF86DRIQueryVersion()
94 swapl(&rep.length); in ProcXF86DRIQueryVersion()
95 swaps(&rep.majorVersion); in ProcXF86DRIQueryVersion()
96 swaps(&rep.minorVersion); in ProcXF86DRIQueryVersion()
97 swapl(&rep.patchVersion); in ProcXF86DRIQueryVersion()
99 WriteToClient(client, sizeof(xXF86DRIQueryVersionReply), &rep); in ProcXF86DRIQueryVersion()
106 xXF86DRIQueryDirectRenderingCapableReply rep; in ProcXF86DRIQueryDirectRenderingCapable() local
124 rep = (xXF86DRIQueryDirectRenderingCapableReply) { in ProcXF86DRIQueryDirectRenderingCapable()
132 swaps(&rep.sequenceNumber); in ProcXF86DRIQueryDirectRenderingCapable()
133 swapl(&rep.length); in ProcXF86DRIQueryDirectRenderingCapable()
138 &rep); in ProcXF86DRIQueryDirectRenderingCapable()
145 xXF86DRIOpenConnectionReply rep; in ProcXF86DRIOpenConnection() local
165 rep = (xXF86DRIOpenConnectionReply) { in ProcXF86DRIOpenConnection()
181 WriteToClient(client, sizeof(xXF86DRIOpenConnectionReply), &rep); in ProcXF86DRIOpenConnection()
190 xXF86DRIAuthConnectionReply rep = { in ProcXF86DRIAuthConnection() local
206 rep.authenticated = 0; in ProcXF86DRIAuthConnection()
208 WriteToClient(client, sizeof(xXF86DRIAuthConnectionReply), &rep); in ProcXF86DRIAuthConnection()
230 xXF86DRIGetClientDriverNameReply rep = { in ProcXF86DRIGetClientDriverName() local
245 (int *) &rep.ddxDriverMajorVersion, in ProcXF86DRIGetClientDriverName()
246 (int *) &rep.ddxDriverMinorVersion, in ProcXF86DRIGetClientDriverName()
247 (int *) &rep.ddxDriverPatchVersion, in ProcXF86DRIGetClientDriverName()
251 rep.clientDriverNameLength = strlen(clientDriverName); in ProcXF86DRIGetClientDriverName()
252 rep.length = bytes_to_int32(SIZEOF(xXF86DRIGetClientDriverNameReply) - in ProcXF86DRIGetClientDriverName()
254 pad_to_int32(rep.clientDriverNameLength)); in ProcXF86DRIGetClientDriverName()
256 WriteToClient(client, sizeof(xXF86DRIGetClientDriverNameReply), &rep); in ProcXF86DRIGetClientDriverName()
257 if (rep.clientDriverNameLength) in ProcXF86DRIGetClientDriverName()
258 WriteToClient(client, rep.clientDriverNameLength, clientDriverName); in ProcXF86DRIGetClientDriverName()
265 xXF86DRICreateContextReply rep = { in ProcXF86DRICreateContext() local
283 stuff->context, (drm_context_t *) &rep.hHWContext)) { in ProcXF86DRICreateContext()
287 WriteToClient(client, sizeof(xXF86DRICreateContextReply), &rep); in ProcXF86DRICreateContext()
311 xXF86DRICreateDrawableReply rep = { in ProcXF86DRICreateDrawable() local
332 pDrawable, (drm_drawable_t *) &rep.hHWDrawable)) { in ProcXF86DRICreateDrawable()
336 WriteToClient(client, sizeof(xXF86DRICreateDrawableReply), &rep); in ProcXF86DRICreateDrawable()
370 xXF86DRIGetDrawableInfoReply rep = { in ProcXF86DRIGetDrawableInfo() local
395 (unsigned int *) &rep.drawableTableIndex, in ProcXF86DRIGetDrawableInfo()
396 (unsigned int *) &rep.drawableTableStamp, in ProcXF86DRIGetDrawableInfo()
401 (int *) &rep.numClipRects, in ProcXF86DRIGetDrawableInfo()
405 (int *) &rep.numBackClipRects, &pBackClipRects)) { in ProcXF86DRIGetDrawableInfo()
409 rep.drawableX = X; in ProcXF86DRIGetDrawableInfo()
410 rep.drawableY = Y; in ProcXF86DRIGetDrawableInfo()
411 rep.drawableWidth = W; in ProcXF86DRIGetDrawableInfo()
412 rep.drawableHeight = H; in ProcXF86DRIGetDrawableInfo()
413 rep.length = (SIZEOF(xXF86DRIGetDrawableInfoReply) - SIZEOF(xGenericReply)); in ProcXF86DRIGetDrawableInfo()
415 rep.backX = backX; in ProcXF86DRIGetDrawableInfo()
416 rep.backY = backY; in ProcXF86DRIGetDrawableInfo()
418 if (rep.numBackClipRects) in ProcXF86DRIGetDrawableInfo()
419 rep.length += sizeof(drm_clip_rect_t) * rep.numBackClipRects; in ProcXF86DRIGetDrawableInfo()
423 if (rep.numClipRects) { in ProcXF86DRIGetDrawableInfo()
425 pClippedRects = xallocarray(rep.numClipRects, sizeof(drm_clip_rect_t)); in ProcXF86DRIGetDrawableInfo()
431 for (i = 0, j = 0; i < rep.numClipRects; i++) { in ProcXF86DRIGetDrawableInfo()
443 rep.numClipRects = j; in ProcXF86DRIGetDrawableInfo()
446 rep.numClipRects = 0; in ProcXF86DRIGetDrawableInfo()
449 rep.length += sizeof(drm_clip_rect_t) * rep.numClipRects; in ProcXF86DRIGetDrawableInfo()
452 rep.length = bytes_to_int32(rep.length); in ProcXF86DRIGetDrawableInfo()
454 WriteToClient(client, sizeof(xXF86DRIGetDrawableInfoReply), &rep); in ProcXF86DRIGetDrawableInfo()
456 if (rep.numClipRects) { in ProcXF86DRIGetDrawableInfo()
458 sizeof(drm_clip_rect_t) * rep.numClipRects, in ProcXF86DRIGetDrawableInfo()
463 if (rep.numBackClipRects) { in ProcXF86DRIGetDrawableInfo()
465 sizeof(drm_clip_rect_t) * rep.numBackClipRects, in ProcXF86DRIGetDrawableInfo()
475 xXF86DRIGetDeviceInfoReply rep = { in ProcXF86DRIGetDeviceInfo() local
492 (int *) &rep.framebufferOrigin, in ProcXF86DRIGetDeviceInfo()
493 (int *) &rep.framebufferSize, in ProcXF86DRIGetDeviceInfo()
494 (int *) &rep.framebufferStride, in ProcXF86DRIGetDeviceInfo()
495 (int *) &rep.devPrivateSize, &pDevPrivate)) { in ProcXF86DRIGetDeviceInfo()
499 rep.hFrameBufferLow = (CARD32) (hFrameBuffer & 0xffffffff); in ProcXF86DRIGetDeviceInfo()
501 rep.hFrameBufferHigh = (CARD32) (hFrameBuffer >> 32); in ProcXF86DRIGetDeviceInfo()
503 rep.hFrameBufferHigh = 0; in ProcXF86DRIGetDeviceInfo()
506 if (rep.devPrivateSize) { in ProcXF86DRIGetDeviceInfo()
507 rep.length = bytes_to_int32(SIZEOF(xXF86DRIGetDeviceInfoReply) - in ProcXF86DRIGetDeviceInfo()
509 pad_to_int32(rep.devPrivateSize)); in ProcXF86DRIGetDeviceInfo()
512 WriteToClient(client, sizeof(xXF86DRIGetDeviceInfoReply), &rep); in ProcXF86DRIGetDeviceInfo()
513 if (rep.length) { in ProcXF86DRIGetDeviceInfo()
514 WriteToClient(client, rep.devPrivateSize, pDevPrivate); in ProcXF86DRIGetDeviceInfo()