Lines Matching refs:resource
43 destroy_buffer(struct wl_resource *resource) in destroy_buffer() argument
45 struct wl_drm_buffer *buffer = wl_resource_get_user_data(resource); in destroy_buffer()
53 buffer_destroy(struct wl_client *client, struct wl_resource *resource) in buffer_destroy() argument
55 wl_resource_destroy(resource); in buffer_destroy()
59 create_buffer(struct wl_client *client, struct wl_resource *resource, in create_buffer() argument
67 struct wl_drm *drm = wl_resource_get_user_data(resource); in create_buffer()
72 wl_resource_post_no_memory(resource); in create_buffer()
89 wl_resource_post_error(resource, in create_buffer()
95 buffer->resource = in create_buffer()
97 if (!buffer->resource) { in create_buffer()
98 wl_resource_post_no_memory(resource); in create_buffer()
103 wl_resource_set_implementation(buffer->resource, in create_buffer()
109 drm_create_buffer(struct wl_client *client, struct wl_resource *resource, in drm_create_buffer() argument
124 wl_resource_post_error(resource, in drm_create_buffer()
130 create_buffer(client, resource, id, in drm_create_buffer()
136 struct wl_resource *resource, in drm_create_planar_buffer() argument
153 wl_resource_post_error(resource, in drm_create_planar_buffer()
159 create_buffer(client, resource, id, name, -1, width, height, format, in drm_create_planar_buffer()
165 struct wl_resource *resource, in drm_create_prime_buffer() argument
172 create_buffer(client, resource, id, 0, fd, width, height, format, in drm_create_prime_buffer()
179 struct wl_resource *resource, uint32_t id) in drm_authenticate() argument
181 struct wl_drm *drm = wl_resource_get_user_data(resource); in drm_authenticate()
184 wl_resource_post_error(resource, in drm_authenticate()
188 wl_resource_post_event(resource, WL_DRM_AUTHENTICATED); in drm_authenticate()
202 struct wl_resource *resource; in bind_drm() local
205 resource = wl_resource_create(client, &wl_drm_interface, in bind_drm()
207 if (!resource) { in bind_drm()
212 wl_resource_set_implementation(resource, &drm_interface, data, NULL); in bind_drm()
214 wl_resource_post_event(resource, WL_DRM_DEVICE, drm->device_name); in bind_drm()
218 wl_resource_post_event(resource, WL_DRM_FORMAT, in bind_drm()
224 wl_resource_post_event(resource, WL_DRM_FORMAT, in bind_drm()
230 wl_resource_post_event(resource, WL_DRM_FORMAT, in bind_drm()
236 wl_resource_post_event(resource, WL_DRM_FORMAT, in bind_drm()
240 wl_resource_post_event(resource, WL_DRM_FORMAT, in bind_drm()
242 wl_resource_post_event(resource, WL_DRM_FORMAT, in bind_drm()
244 wl_resource_post_event(resource, WL_DRM_FORMAT, in bind_drm()
246 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV410); in bind_drm()
247 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV411); in bind_drm()
248 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV420); in bind_drm()
249 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV422); in bind_drm()
250 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV444); in bind_drm()
251 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_NV12); in bind_drm()
252 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_NV16); in bind_drm()
253 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUYV); in bind_drm()
260 wl_resource_post_event(resource, WL_DRM_CAPABILITIES, capabilities); in bind_drm()