Lines Matching defs:exp_info
513 * @exp_info: [in] holds all the export related information provided
521 * For most cases the easiest way to create @exp_info is through the
524 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info)
527 struct dma_resv *resv = exp_info->resv;
532 if (!exp_info->resv)
538 if (WARN_ON(!exp_info->priv
539 || !exp_info->ops
540 || !exp_info->ops->map_dma_buf
541 || !exp_info->ops->unmap_dma_buf
542 || !exp_info->ops->release)) {
546 if (WARN_ON(exp_info->ops->cache_sgt_mapping &&
547 (exp_info->ops->pin || exp_info->ops->unpin)))
550 if (WARN_ON(!exp_info->ops->pin != !exp_info->ops->unpin))
553 if (!try_module_get(exp_info->owner))
562 dmabuf->priv = exp_info->priv;
563 dmabuf->ops = exp_info->ops;
564 dmabuf->size = exp_info->size;
565 dmabuf->exp_name = exp_info->exp_name;
566 dmabuf->owner = exp_info->owner;
578 file = dma_buf_getfile(dmabuf, exp_info->flags);
612 module_put(exp_info->owner);