Lines Matching refs:drm
52 struct wl_drm *drm = buffer->drm; in destroy_buffer() local
54 drm->callbacks->release_buffer(drm->user_data, buffer); in destroy_buffer()
76 struct wl_drm *drm = resource->data; in create_buffer() local
85 buffer->drm = drm; in create_buffer()
96 drm->callbacks->reference_buffer(drm->user_data, name, buffer); in create_buffer()
170 struct wl_drm *drm = resource->data; in drm_authenticate() local
172 if (drm->callbacks->authenticate(drm->user_data, id) < 0) in drm_authenticate()
189 struct wl_drm *drm = data; in bind_drm() local
194 wl_resource_post_event(resource, WL_DRM_DEVICE, drm->device_name); in bind_drm()
213 struct wl_drm *drm; in wayland_drm_init() local
215 drm = malloc(sizeof *drm); in wayland_drm_init()
217 drm->display = display; in wayland_drm_init()
218 drm->device_name = strdup(device_name); in wayland_drm_init()
219 drm->callbacks = callbacks; in wayland_drm_init()
220 drm->user_data = user_data; in wayland_drm_init()
222 wl_display_add_global(display, &wl_drm_interface, drm, bind_drm); in wayland_drm_init()
224 return drm; in wayland_drm_init()
228 wayland_drm_uninit(struct wl_drm *drm) in wayland_drm_uninit() argument
230 free(drm->device_name); in wayland_drm_uninit()
234 free(drm); in wayland_drm_uninit()