Searched refs:exp_info (Results 1 - 13 of 13) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/omapdrm/
H A Domap_gem_dmabuf.c171 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); omap_gem_prime_export()
173 exp_info.ops = &omap_dmabuf_ops; omap_gem_prime_export()
174 exp_info.size = obj->size; omap_gem_prime_export()
175 exp_info.flags = flags; omap_gem_prime_export()
176 exp_info.priv = obj; omap_gem_prime_export()
178 return dma_buf_export(&exp_info); omap_gem_prime_export()
/linux-4.4.14/drivers/gpu/drm/udl/
H A Dudl_dmabuf.c205 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); udl_gem_prime_export()
207 exp_info.ops = &udl_dmabuf_ops; udl_gem_prime_export()
208 exp_info.size = obj->size; udl_gem_prime_export()
209 exp_info.flags = flags; udl_gem_prime_export()
210 exp_info.priv = obj; udl_gem_prime_export()
212 return dma_buf_export(&exp_info); udl_gem_prime_export()
/linux-4.4.14/drivers/gpu/drm/i915/
H A Di915_gem_dmabuf.c233 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); i915_gem_prime_export()
235 exp_info.ops = &i915_dmabuf_ops; i915_gem_prime_export()
236 exp_info.size = gem_obj->size; i915_gem_prime_export()
237 exp_info.flags = flags; i915_gem_prime_export()
238 exp_info.priv = gem_obj; i915_gem_prime_export()
247 return dma_buf_export(&exp_info); i915_gem_prime_export()
/linux-4.4.14/drivers/dma-buf/
H A Ddma-buf.c275 * @exp_info: [in] holds all the export related information provided
284 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) dma_buf_export() argument
287 struct reservation_object *resv = exp_info->resv; dma_buf_export()
291 if (!exp_info->resv) dma_buf_export()
297 if (WARN_ON(!exp_info->priv dma_buf_export()
298 || !exp_info->ops dma_buf_export()
299 || !exp_info->ops->map_dma_buf dma_buf_export()
300 || !exp_info->ops->unmap_dma_buf dma_buf_export()
301 || !exp_info->ops->release dma_buf_export()
302 || !exp_info->ops->kmap_atomic dma_buf_export()
303 || !exp_info->ops->kmap dma_buf_export()
304 || !exp_info->ops->mmap)) { dma_buf_export()
308 if (!try_module_get(exp_info->owner)) dma_buf_export()
313 module_put(exp_info->owner); dma_buf_export()
317 dmabuf->priv = exp_info->priv; dma_buf_export()
318 dmabuf->ops = exp_info->ops; dma_buf_export()
319 dmabuf->size = exp_info->size; dma_buf_export()
320 dmabuf->exp_name = exp_info->exp_name; dma_buf_export()
321 dmabuf->owner = exp_info->owner; dma_buf_export()
333 exp_info->flags); dma_buf_export()
/linux-4.4.14/drivers/media/v4l2-core/
H A Dvideobuf2-vmalloc.c353 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); vb2_vmalloc_get_dmabuf()
355 exp_info.ops = &vb2_vmalloc_dmabuf_ops; vb2_vmalloc_get_dmabuf()
356 exp_info.size = buf->size; vb2_vmalloc_get_dmabuf()
357 exp_info.flags = flags; vb2_vmalloc_get_dmabuf()
358 exp_info.priv = buf; vb2_vmalloc_get_dmabuf()
363 dbuf = dma_buf_export(&exp_info); vb2_vmalloc_get_dmabuf()
H A Dvideobuf2-dma-sg.c530 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); vb2_dma_sg_get_dmabuf()
532 exp_info.ops = &vb2_dma_sg_dmabuf_ops; vb2_dma_sg_get_dmabuf()
533 exp_info.size = buf->size; vb2_dma_sg_get_dmabuf()
534 exp_info.flags = flags; vb2_dma_sg_get_dmabuf()
535 exp_info.priv = buf; vb2_dma_sg_get_dmabuf()
540 dbuf = dma_buf_export(&exp_info); vb2_dma_sg_get_dmabuf()
H A Dvideobuf2-dma-contig.c386 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); vb2_dc_get_dmabuf()
388 exp_info.ops = &vb2_dc_dmabuf_ops; vb2_dc_get_dmabuf()
389 exp_info.size = buf->size; vb2_dc_get_dmabuf()
390 exp_info.flags = flags; vb2_dc_get_dmabuf()
391 exp_info.priv = buf; vb2_dc_get_dmabuf()
399 dbuf = dma_buf_export(&exp_info); vb2_dc_get_dmabuf()
/linux-4.4.14/drivers/gpu/drm/tegra/
H A Dgem.c621 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); tegra_gem_prime_export()
623 exp_info.ops = &tegra_gem_prime_dmabuf_ops; tegra_gem_prime_export()
624 exp_info.size = gem->size; tegra_gem_prime_export()
625 exp_info.flags = flags; tegra_gem_prime_export()
626 exp_info.priv = gem; tegra_gem_prime_export()
628 return dma_buf_export(&exp_info); tegra_gem_prime_export()
/linux-4.4.14/drivers/gpu/drm/armada/
H A Darmada_gem.c542 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); armada_gem_prime_export()
544 exp_info.ops = &armada_gem_prime_dmabuf_ops; armada_gem_prime_export()
545 exp_info.size = obj->size; armada_gem_prime_export()
546 exp_info.flags = O_RDWR; armada_gem_prime_export()
547 exp_info.priv = obj; armada_gem_prime_export()
549 return dma_buf_export(&exp_info); armada_gem_prime_export()
/linux-4.4.14/drivers/gpu/drm/
H A Ddrm_prime.c344 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); drm_gem_prime_export()
346 exp_info.ops = &drm_gem_prime_dmabuf_ops; drm_gem_prime_export()
347 exp_info.size = obj->size; drm_gem_prime_export()
348 exp_info.flags = flags; drm_gem_prime_export()
349 exp_info.priv = obj; drm_gem_prime_export()
352 exp_info.resv = dev->driver->gem_prime_res_obj(obj); drm_gem_prime_export()
354 return dma_buf_export(&exp_info); drm_gem_prime_export()
/linux-4.4.14/drivers/gpu/drm/ttm/
H A Dttm_object.c686 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); ttm_prime_handle_to_fd()
688 exp_info.ops = &tdev->ops; ttm_prime_handle_to_fd()
689 exp_info.size = prime->size; ttm_prime_handle_to_fd()
690 exp_info.flags = flags; ttm_prime_handle_to_fd()
691 exp_info.priv = prime; ttm_prime_handle_to_fd()
703 dma_buf = dma_buf_export(&exp_info); ttm_prime_handle_to_fd()
/linux-4.4.14/drivers/staging/android/ion/
H A Dion.c1108 DEFINE_DMA_BUF_EXPORT_INFO(exp_info); ion_share_dma_buf()
1124 exp_info.ops = &dma_buf_ops; ion_share_dma_buf()
1125 exp_info.size = buffer->size; ion_share_dma_buf()
1126 exp_info.flags = O_RDWR; ion_share_dma_buf()
1127 exp_info.priv = buffer; ion_share_dma_buf()
1129 dmabuf = dma_buf_export(&exp_info); ion_share_dma_buf()
/linux-4.4.14/include/linux/
H A Ddma-buf.h217 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info);

Completed in 206 milliseconds