Lines Matching defs:exp_info
597 * @exp_info: [in] holds all the export related information provided
606 * For most cases the easiest way to create @exp_info is through the
609 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info)
612 struct dma_resv *resv = exp_info->resv;
617 if (WARN_ON(!exp_info->priv || !exp_info->ops
618 || !exp_info->ops->map_dma_buf
619 || !exp_info->ops->unmap_dma_buf
620 || !exp_info->ops->release))
623 if (WARN_ON(exp_info->ops->cache_sgt_mapping &&
624 (exp_info->ops->pin || exp_info->ops->unpin)))
627 if (WARN_ON(!exp_info->ops->pin != !exp_info->ops->unpin))
630 if (!try_module_get(exp_info->owner))
633 file = dma_buf_getfile(exp_info->size, exp_info->flags);
639 if (!exp_info->resv)
650 dmabuf->priv = exp_info->priv;
651 dmabuf->ops = exp_info->ops;
652 dmabuf->size = exp_info->size;
653 dmabuf->exp_name = exp_info->exp_name;
654 dmabuf->owner = exp_info->owner;
689 module_put(exp_info->owner);