Lines Matching refs:dpy

127 #define XNVCTRLCheckExtension(dpy,i,val) \  argument
128 XextCheckExtension (dpy, i, nvctrl_extension_name, val)
129 #define XNVCTRLSimpleCheckExtension(dpy,i) \ argument
130 XextSimpleCheckExtension (dpy, i, nvctrl_extension_name)
154 static Bool XNVCTRLQueryVersion (Display *dpy, int *major, int *minor);
161 static void XNVCTRLCheckTargetData(Display *dpy, XExtDisplayInfo *info, in XNVCTRLCheckTargetData() argument
170 if (XNVCTRLQueryVersion(dpy, &major, &minor)) { in XNVCTRLCheckTargetData()
193 Display *dpy, in XNVCTRLQueryExtension() argument
197 XExtDisplayInfo *info = find_display (dpy); in XNVCTRLQueryExtension()
210 Display *dpy, in XNVCTRLQueryVersion() argument
214 XExtDisplayInfo *info = find_display (dpy); in XNVCTRLQueryVersion()
221 XNVCTRLCheckExtension (dpy, info, False); in XNVCTRLQueryVersion()
223 LockDisplay (dpy); in XNVCTRLQueryVersion()
227 if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) { in XNVCTRLQueryVersion()
228 UnlockDisplay (dpy); in XNVCTRLQueryVersion()
234 UnlockDisplay (dpy); in XNVCTRLQueryVersion()
241 Display *dpy, in XNVCTRLIsNvScreen() argument
244 XExtDisplayInfo *info = find_display (dpy); in XNVCTRLIsNvScreen()
252 XNVCTRLCheckExtension (dpy, info, False); in XNVCTRLIsNvScreen()
254 LockDisplay (dpy); in XNVCTRLIsNvScreen()
259 if (!_XReply (dpy, (xReply *) &rep, 0, xTrue)) { in XNVCTRLIsNvScreen()
260 UnlockDisplay (dpy); in XNVCTRLIsNvScreen()
265 UnlockDisplay (dpy); in XNVCTRLIsNvScreen()
272 Display *dpy, in XNVCTRLQueryTargetStringAttribute() argument
279 XExtDisplayInfo *info = find_display (dpy); in XNVCTRLQueryTargetStringAttribute()
290 XNVCTRLCheckExtension (dpy, info, False); in XNVCTRLQueryTargetStringAttribute()
291 XNVCTRLCheckTargetData(dpy, info, &target_type, &target_id); in XNVCTRLQueryTargetStringAttribute()
293 LockDisplay (dpy); in XNVCTRLQueryTargetStringAttribute()
301 if (!_XReply (dpy, (xReply *) &rep, 0, False)) { in XNVCTRLQueryTargetStringAttribute()
302 UnlockDisplay (dpy); in XNVCTRLQueryTargetStringAttribute()
311 _XEatData(dpy, length); in XNVCTRLQueryTargetStringAttribute()
312 UnlockDisplay (dpy); in XNVCTRLQueryTargetStringAttribute()
316 _XRead(dpy, (char *) *ptr, numbytes); in XNVCTRLQueryTargetStringAttribute()
317 if (slop) _XEatData(dpy, 4-slop); in XNVCTRLQueryTargetStringAttribute()
320 UnlockDisplay (dpy); in XNVCTRLQueryTargetStringAttribute()
326 Display *dpy, in XNVCTRLQueryStringAttribute() argument
332 return XNVCTRLQueryTargetStringAttribute(dpy, NV_CTRL_TARGET_TYPE_X_SCREEN, in XNVCTRLQueryStringAttribute()
338 Bool VA_NVCTRLQueryDirectRenderingCapable( Display *dpy, int screen, in VA_NVCTRLQueryDirectRenderingCapable() argument
347 if (!XNVCTRLQueryExtension(dpy, &event_base, &error_base)) in VA_NVCTRLQueryDirectRenderingCapable()
350 if (isCapable && XNVCTRLIsNvScreen(dpy, screen)) in VA_NVCTRLQueryDirectRenderingCapable()
356 Bool VA_NVCTRLGetClientDriverName( Display *dpy, int screen, in VA_NVCTRLGetClientDriverName() argument
370 …if (!XNVCTRLQueryStringAttribute(dpy, screen, 0, NV_CTRL_STRING_NVIDIA_DRIVER_VERSION, &nvidia_dri… in VA_NVCTRLGetClientDriverName()