• Home
  • Raw
  • Download

Lines Matching refs:dpy

54 #define uniDRICheckExtension(dpy,i,val) \  argument
55 XextCheckExtension (dpy, i, xf86dri_extension_name, val)
63 static int close_display(Display * dpy, XExtCodes * extCodes);
95 Bool uniDRIQueryExtension(dpy, event_basep, error_basep)
96 Display *dpy;
99 XExtDisplayInfo *info = find_display(dpy);
114 uniDRIQueryVersion(dpy, majorVersion, minorVersion, patchVersion) in uniDRIQueryVersion() argument
115 Display *dpy; in uniDRIQueryVersion()
120 XExtDisplayInfo *info = find_display(dpy);
125 uniDRICheckExtension(dpy, info, False);
127 LockDisplay(dpy);
131 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
132 UnlockDisplay(dpy);
140 UnlockDisplay(dpy);
147 uniDRIQueryDirectRenderingCapable(dpy, screen, isCapable) in uniDRIQueryDirectRenderingCapable() argument
148 Display *dpy; in uniDRIQueryDirectRenderingCapable()
152 XExtDisplayInfo *info = find_display(dpy);
157 uniDRICheckExtension(dpy, info, False);
159 LockDisplay(dpy);
164 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
165 UnlockDisplay(dpy);
171 UnlockDisplay(dpy);
178 uniDRIOpenConnection(dpy, screen, hSAREA, busIdString) in uniDRIOpenConnection() argument
179 Display *dpy; in uniDRIOpenConnection()
184 XExtDisplayInfo *info = find_display(dpy);
189 uniDRICheckExtension(dpy, info, False);
191 LockDisplay(dpy);
196 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
197 UnlockDisplay(dpy);
211 _XEatData(dpy, ((rep.busIdStringLength + 3) & ~3));
212 UnlockDisplay(dpy);
217 _XReadPad(dpy, *busIdString, rep.busIdStringLength);
221 UnlockDisplay(dpy);
228 uniDRIAuthConnection(dpy, screen, magic) in uniDRIAuthConnection() argument
229 Display *dpy; in uniDRIAuthConnection()
233 XExtDisplayInfo *info = find_display(dpy);
238 uniDRICheckExtension(dpy, info, False);
240 LockDisplay(dpy);
247 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse) || !rep.authenticated) {
248 UnlockDisplay(dpy);
253 UnlockDisplay(dpy);
260 uniDRICloseConnection(dpy, screen) in uniDRICloseConnection() argument
261 Display *dpy; in uniDRICloseConnection()
264 XExtDisplayInfo *info = find_display(dpy);
269 uniDRICheckExtension(dpy, info, False);
271 LockDisplay(dpy);
276 UnlockDisplay(dpy);
283 uniDRIGetClientDriverName(dpy, screen, ddxDriverMajorVersion, in uniDRIGetClientDriverName() argument
285 Display *dpy; in uniDRIGetClientDriverName()
292 XExtDisplayInfo *info = find_display(dpy);
297 uniDRICheckExtension(dpy, info, False);
299 LockDisplay(dpy);
304 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
305 UnlockDisplay(dpy);
318 _XEatData(dpy, ((rep.clientDriverNameLength + 3) & ~3));
319 UnlockDisplay(dpy);
324 _XReadPad(dpy, *clientDriverName, rep.clientDriverNameLength);
328 UnlockDisplay(dpy);
335 uniDRICreateContextWithConfig(dpy, screen, configID, context, hHWContext) in uniDRICreateContextWithConfig() argument
336 Display *dpy; in uniDRICreateContextWithConfig()
342 XExtDisplayInfo *info = find_display(dpy);
347 uniDRICheckExtension(dpy, info, False);
349 LockDisplay(dpy);
355 *context = XAllocID(dpy);
357 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
358 UnlockDisplay(dpy);
364 UnlockDisplay(dpy);
371 uniDRICreateContext(dpy, screen, visual, context, hHWContext) in uniDRICreateContext() argument
372 Display *dpy; in uniDRICreateContext()
378 return uniDRICreateContextWithConfig(dpy, screen, visual->visualid,
385 Display *const dpy = (Display *) ndpy; in uniDRIDestroyContext() local
386 XExtDisplayInfo *info = find_display(dpy); in uniDRIDestroyContext()
390 uniDRICheckExtension(dpy, info, False); in uniDRIDestroyContext()
392 LockDisplay(dpy); in uniDRIDestroyContext()
398 UnlockDisplay(dpy); in uniDRIDestroyContext()
408 Display *const dpy = (Display *) ndpy; in uniDRICreateDrawable() local
409 XExtDisplayInfo *info = find_display(dpy); in uniDRICreateDrawable()
414 uniDRICheckExtension(dpy, info, False); in uniDRICreateDrawable()
416 LockDisplay(dpy); in uniDRICreateDrawable()
422 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { in uniDRICreateDrawable()
423 UnlockDisplay(dpy); in uniDRICreateDrawable()
429 UnlockDisplay(dpy); in uniDRICreateDrawable()
438 Display *const dpy = (Display *) ndpy; in uniDRIDestroyDrawable() local
439 XExtDisplayInfo *info = find_display(dpy); in uniDRIDestroyDrawable()
443 uniDRICheckExtension(dpy, info, False); in uniDRIDestroyDrawable()
445 LockDisplay(dpy); in uniDRIDestroyDrawable()
451 UnlockDisplay(dpy); in uniDRIDestroyDrawable()
458 uniDRIGetDrawableInfo(Display * dpy, int screen, Drawable drawable, in uniDRIGetDrawableInfo() argument
465 XExtDisplayInfo *info = find_display(dpy); in uniDRIGetDrawableInfo()
471 uniDRICheckExtension(dpy, info, False); in uniDRIGetDrawableInfo()
473 LockDisplay(dpy); in uniDRIGetDrawableInfo()
480 if (!_XReply(dpy, (xReply *) & rep, 1, xFalse)) { in uniDRIGetDrawableInfo()
481 UnlockDisplay(dpy); in uniDRIGetDrawableInfo()
509 _XEatData(dpy, rep.length); in uniDRIGetDrawableInfo()
510 UnlockDisplay(dpy); in uniDRIGetDrawableInfo()
522 _XRead(dpy, (char *)*pClipRects, len); in uniDRIGetDrawableInfo()
532 _XRead(dpy, (char *)*pBackClipRects, len); in uniDRIGetDrawableInfo()
537 UnlockDisplay(dpy); in uniDRIGetDrawableInfo()
544 uniDRIGetDeviceInfo(dpy, screen, hFrameBuffer, in uniDRIGetDeviceInfo() argument
546 Display *dpy; in uniDRIGetDeviceInfo()
555 XExtDisplayInfo *info = find_display(dpy);
560 uniDRICheckExtension(dpy, info, False);
562 LockDisplay(dpy);
567 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
568 UnlockDisplay(dpy);
588 _XEatData(dpy, ((rep.devPrivateSize + 3) & ~3));
589 UnlockDisplay(dpy);
594 _XRead(dpy, (char *)*pDevPrivate, rep.devPrivateSize);
599 UnlockDisplay(dpy);