Lines Matching refs:rep
223 xDRI2QueryVersionReply rep; in DRI2QueryVersion() local
235 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in DRI2QueryVersion()
240 *major = rep.majorVersion; in DRI2QueryVersion()
241 *minor = rep.minorVersion; in DRI2QueryVersion()
245 switch (rep.minorVersion) { in DRI2QueryVersion()
270 xDRI2ConnectReply rep; in DRI2Connect() local
294 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in DRI2Connect()
300 if (rep.driverNameLength == 0 && rep.deviceNameLength == 0) { in DRI2Connect()
306 *driverName = Xmalloc(rep.driverNameLength + 1); in DRI2Connect()
309 ((rep.driverNameLength + 3) & ~3) + in DRI2Connect()
310 ((rep.deviceNameLength + 3) & ~3)); in DRI2Connect()
315 _XReadPad(dpy, *driverName, rep.driverNameLength); in DRI2Connect()
316 (*driverName)[rep.driverNameLength] = '\0'; in DRI2Connect()
318 *deviceName = Xmalloc(rep.deviceNameLength + 1); in DRI2Connect()
321 _XEatData(dpy, ((rep.deviceNameLength + 3) & ~3)); in DRI2Connect()
326 _XReadPad(dpy, *deviceName, rep.deviceNameLength); in DRI2Connect()
327 (*deviceName)[rep.deviceNameLength] = '\0'; in DRI2Connect()
340 xDRI2AuthenticateReply rep; in DRI2Authenticate() local
351 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in DRI2Authenticate()
360 return rep.authenticated; in DRI2Authenticate()
405 xDRI2GetBuffersReply rep; in DRI2GetBuffers() local
424 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in DRI2GetBuffers()
430 *width = rep.width; in DRI2GetBuffers()
431 *height = rep.height; in DRI2GetBuffers()
432 *outCount = rep.count; in DRI2GetBuffers()
434 buffers = Xmalloc(rep.count * sizeof buffers[0]); in DRI2GetBuffers()
436 _XEatData(dpy, rep.count * sizeof repBuffer); in DRI2GetBuffers()
442 for (i = 0; i < rep.count; i++) { in DRI2GetBuffers()
464 xDRI2GetBuffersReply rep; in DRI2GetBuffersWithFormat() local
483 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in DRI2GetBuffersWithFormat()
489 *width = rep.width; in DRI2GetBuffersWithFormat()
490 *height = rep.height; in DRI2GetBuffersWithFormat()
491 *outCount = rep.count; in DRI2GetBuffersWithFormat()
493 buffers = Xmalloc(rep.count * sizeof buffers[0]); in DRI2GetBuffersWithFormat()
495 _XEatData(dpy, rep.count * sizeof repBuffer); in DRI2GetBuffersWithFormat()
501 for (i = 0; i < rep.count; i++) { in DRI2GetBuffersWithFormat()
523 xDRI2CopyRegionReply rep; in DRI2CopyRegion() local
536 _XReply(dpy, (xReply *) & rep, 0, xFalse); in DRI2CopyRegion()
566 xDRI2SwapBuffersReply rep; in DRI2SwapBuffers() local
577 _XReply(dpy, (xReply *)&rep, 0, xFalse); in DRI2SwapBuffers()
579 *count = vals_to_card64(rep.swap_lo, rep.swap_hi); in DRI2SwapBuffers()
592 xDRI2MSCReply rep; in DRI2GetMSC() local
602 if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) { in DRI2GetMSC()
608 *ust = vals_to_card64(rep.ust_lo, rep.ust_hi); in DRI2GetMSC()
609 *msc = vals_to_card64(rep.msc_lo, rep.msc_hi); in DRI2GetMSC()
610 *sbc = vals_to_card64(rep.sbc_lo, rep.sbc_hi); in DRI2GetMSC()
637 xDRI2MSCReply rep; in DRI2WaitMSC() local
648 if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) { in DRI2WaitMSC()
654 *ust = ((CARD64)rep.ust_hi << 32) | (CARD64)rep.ust_lo; in DRI2WaitMSC()
655 *msc = ((CARD64)rep.msc_hi << 32) | (CARD64)rep.msc_lo; in DRI2WaitMSC()
656 *sbc = ((CARD64)rep.sbc_hi << 32) | (CARD64)rep.sbc_lo; in DRI2WaitMSC()
678 xDRI2MSCReply rep; in DRI2WaitSBC() local
689 if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) { in DRI2WaitSBC()
695 *ust = ((CARD64)rep.ust_hi << 32) | rep.ust_lo; in DRI2WaitSBC()
696 *msc = ((CARD64)rep.msc_hi << 32) | rep.msc_lo; in DRI2WaitSBC()
697 *sbc = ((CARD64)rep.sbc_hi << 32) | rep.sbc_lo; in DRI2WaitSBC()