Lines Matching defs:dpy
212 _EGLDisplay *dpyList, *dpy;
220 dpy = dpyList;
224 if (dpy->ResourceLists[i]) {
225 _eglLog(_EGL_DEBUG, "Display %p is destroyed with resources", dpy);
230 free(dpy);
243 _EGLDisplay *dpy;
251 dpy = _eglGlobal.DisplayList;
252 while (dpy) {
253 if (dpy->Platform == plat && dpy->PlatformDisplay == plat_dpy)
255 dpy = dpy->Next;
259 if (!dpy) {
260 dpy = calloc(1, sizeof(_EGLDisplay));
261 if (dpy) {
262 mtx_init(&dpy->Mutex, mtx_plain);
263 dpy->Platform = plat;
264 dpy->PlatformDisplay = plat_dpy;
267 dpy->Next = _eglGlobal.DisplayList;
268 _eglGlobal.DisplayList = dpy;
274 return dpy;
348 _eglCheckDisplayHandle(EGLDisplay dpy)
355 if (cur == (_EGLDisplay *) dpy)
369 _eglCheckResource(void *res, _EGLResourceType type, _EGLDisplay *dpy)
371 _EGLResource *list = dpy->ResourceLists[type];
378 assert(list->Display == dpy);
396 _eglInitResource(_EGLResource *res, EGLint size, _EGLDisplay *dpy)
399 res->Display = dpy;