Lines Matching defs:sg_table
746 struct sg_table *sgt;
882 * Returns sg_table containing the scatterlist to be returned; returns ERR_PTR
890 struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *attach,
893 struct sg_table *sg_table;
925 sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction);
926 if (!sg_table)
927 sg_table = ERR_PTR(-ENOMEM);
929 if (IS_ERR(sg_table) && dma_buf_is_dynamic(attach->dmabuf) &&
933 if (!IS_ERR(sg_table) && attach->dmabuf->ops->cache_sgt_mapping) {
934 attach->sgt = sg_table;
938 return sg_table;
947 * @sg_table: [in] scatterlist info of the buffer to unmap
953 struct sg_table *sg_table,
958 if (WARN_ON(!attach || !attach->dmabuf || !sg_table))
964 if (attach->sgt == sg_table)
970 attach->dmabuf->ops->unmap_dma_buf(attach, sg_table, direction);