Lines Matching full: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
122 wl_resource_post_error(resource, in drm_create_buffer()
128 create_buffer(client, resource, id, in drm_create_buffer()
134 struct wl_resource *resource, in drm_create_planar_buffer() argument
151 wl_resource_post_error(resource, in drm_create_planar_buffer()
157 create_buffer(client, resource, id, name, -1, width, height, format, in drm_create_planar_buffer()
163 struct wl_resource *resource, in drm_create_prime_buffer() argument
170 create_buffer(client, resource, id, 0, fd, width, height, format, in drm_create_prime_buffer()
177 struct wl_resource *resource, uint32_t id) in drm_authenticate() argument
179 struct wl_drm *drm = wl_resource_get_user_data(resource); in drm_authenticate()
182 wl_resource_post_error(resource, in drm_authenticate()
186 wl_resource_post_event(resource, WL_DRM_AUTHENTICATED); in drm_authenticate()
200 struct wl_resource *resource; in bind_drm() local
203 resource = wl_resource_create(client, &wl_drm_interface, in bind_drm()
205 if (!resource) { in bind_drm()
210 wl_resource_set_implementation(resource, &drm_interface, data, NULL); in bind_drm()
212 wl_resource_post_event(resource, WL_DRM_DEVICE, drm->device_name); in bind_drm()
213 wl_resource_post_event(resource, WL_DRM_FORMAT, in bind_drm()
215 wl_resource_post_event(resource, WL_DRM_FORMAT, in bind_drm()
217 wl_resource_post_event(resource, WL_DRM_FORMAT, in bind_drm()
219 wl_resource_post_event(resource, WL_DRM_FORMAT, in bind_drm()
221 wl_resource_post_event(resource, WL_DRM_FORMAT, in bind_drm()
223 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV410); in bind_drm()
224 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV411); in bind_drm()
225 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV420); in bind_drm()
226 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV422); in bind_drm()
227 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUV444); in bind_drm()
228 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_NV12); in bind_drm()
229 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_NV16); in bind_drm()
230 wl_resource_post_event(resource, WL_DRM_FORMAT, WL_DRM_FORMAT_YUYV); in bind_drm()
237 wl_resource_post_event(resource, WL_DRM_CAPABILITIES, capabilities); in bind_drm()