diff options
| author | Alex Waterman <alexw@nvidia.com> | 2013-07-17 20:27:16 -0400 |
|---|---|---|
| committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:05:52 -0400 |
| commit | 7854127315d8194f8940992ef3501ac46f15fec1 (patch) | |
| tree | 0970b25cc6257fc7eaafafb1f0fb57554517ae83 /include/linux/nvmap.h | |
| parent | 93bde802bf3a89079bf8bbc349e7500054eb12b3 (diff) | |
video: tegra: nvmap: Export dmabuf for all handles
Export a dma_buf object for all handles during allocation. Ref counting
for the underlying dma_buf follows the creation of nvmap_handle_refs.
Bug 1290869
Change-Id: I738e83ccd5063f6eb14b1baaa24868f6a19a572e
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/264089
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include/linux/nvmap.h')
| -rw-r--r-- | include/linux/nvmap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h index 224c554fa..3590e9e21 100644 --- a/include/linux/nvmap.h +++ b/include/linux/nvmap.h | |||
| @@ -87,6 +87,10 @@ struct nvmap_handle_ref *nvmap_alloc(struct nvmap_client *client, size_t size, | |||
| 87 | size_t align, unsigned int flags, | 87 | size_t align, unsigned int flags, |
| 88 | unsigned int heap_mask); | 88 | unsigned int heap_mask); |
| 89 | 89 | ||
| 90 | struct dma_buf *nvmap_get_dmabuf(struct nvmap_client *client, ulong user_id); | ||
| 91 | |||
| 92 | struct dma_buf *nvmap_get_dmabuf_from_ref(struct nvmap_handle_ref *ref); | ||
| 93 | |||
| 90 | ulong nvmap_ref_to_user_id(struct nvmap_handle_ref *ref); | 94 | ulong nvmap_ref_to_user_id(struct nvmap_handle_ref *ref); |
| 91 | 95 | ||
| 92 | phys_addr_t nvmap_get_addr_from_user_id(ulong user_id); | 96 | phys_addr_t nvmap_get_addr_from_user_id(ulong user_id); |
