Lines Matching refs:member

104 	struct drm_prime_member *member;  in drm_prime_add_buf_handle()  local
107 member = kmalloc(sizeof(*member), GFP_KERNEL); in drm_prime_add_buf_handle()
108 if (!member) in drm_prime_add_buf_handle()
112 member->dma_buf = dma_buf; in drm_prime_add_buf_handle()
113 member->handle = handle; in drm_prime_add_buf_handle()
127 rb_link_node(&member->dmabuf_rb, rb, p); in drm_prime_add_buf_handle()
128 rb_insert_color(&member->dmabuf_rb, &prime_fpriv->dmabufs); in drm_prime_add_buf_handle()
142 rb_link_node(&member->handle_rb, rb, p); in drm_prime_add_buf_handle()
143 rb_insert_color(&member->handle_rb, &prime_fpriv->handles); in drm_prime_add_buf_handle()
155 struct drm_prime_member *member; in drm_prime_lookup_buf_by_handle() local
157 member = rb_entry(rb, struct drm_prime_member, handle_rb); in drm_prime_lookup_buf_by_handle()
158 if (member->handle == handle) in drm_prime_lookup_buf_by_handle()
159 return member->dma_buf; in drm_prime_lookup_buf_by_handle()
160 else if (member->handle < handle) in drm_prime_lookup_buf_by_handle()
177 struct drm_prime_member *member; in drm_prime_lookup_buf_handle() local
179 member = rb_entry(rb, struct drm_prime_member, dmabuf_rb); in drm_prime_lookup_buf_handle()
180 if (member->dma_buf == dma_buf) { in drm_prime_lookup_buf_handle()
181 *handle = member->handle; in drm_prime_lookup_buf_handle()
183 } else if (member->dma_buf < dma_buf) { in drm_prime_lookup_buf_handle()
200 struct drm_prime_member *member; in drm_prime_remove_buf_handle_locked() local
202 member = rb_entry(rb, struct drm_prime_member, dmabuf_rb); in drm_prime_remove_buf_handle_locked()
203 if (member->dma_buf == dma_buf) { in drm_prime_remove_buf_handle_locked()
204 rb_erase(&member->handle_rb, &prime_fpriv->handles); in drm_prime_remove_buf_handle_locked()
205 rb_erase(&member->dmabuf_rb, &prime_fpriv->dmabufs); in drm_prime_remove_buf_handle_locked()
208 kfree(member); in drm_prime_remove_buf_handle_locked()
210 } else if (member->dma_buf < dma_buf) { in drm_prime_remove_buf_handle_locked()