diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2013-07-23 15:05:08 +0300 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:34:05 -0700 |
commit | 2556727a1c381f21d0a8fefb38a66bf2e7e5339c (patch) | |
tree | 89707a54d196a3301cdc76ad779f46e7be3564ef /drivers | |
parent | 7d9116db67cc3e3019f7734dd1f634c4c0ff49c0 (diff) |
video: tegra: nvmap: Remove 32-bit param query
Remove nvmap_handle_get_param_u32() now that it's not used anymore.
Bug 1174439
Change-Id: Ie91545ad6e9533ad1fe798514d282419f94d8a98
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/253304
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/tegra/nvmap/nvmap_handle.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap_handle.c b/drivers/video/tegra/nvmap/nvmap_handle.c index 7d2673f74c5f..a22cbd6d39cf 100644 --- a/drivers/video/tegra/nvmap/nvmap_handle.c +++ b/drivers/video/tegra/nvmap/nvmap_handle.c @@ -1299,54 +1299,3 @@ int nvmap_get_handle_param(struct nvmap_client *client, nvmap_handle_put(h); return err; } - -int nvmap_get_handle_param(struct nvmap_client *client, - struct nvmap_handle_ref *ref, u32 param, u64 *result) -{ - int err = 0; - struct nvmap_handle *h = nvmap_handle_get(ref->handle); - - switch (param) { - case NVMAP_HANDLE_PARAM_SIZE: - *result = h->orig_size; - break; - case NVMAP_HANDLE_PARAM_ALIGNMENT: - *result = h->align; - break; - case NVMAP_HANDLE_PARAM_BASE: - if (!h->alloc || !atomic_add_return(0, &h->pin)) - *result = -EINVAL; - else if (!h->heap_pgalloc) { - mutex_lock(&h->lock); - *result = h->carveout->base; - mutex_unlock(&h->lock); - } else if (h->pgalloc.contig) - *result = page_to_phys(h->pgalloc.pages[0]); - else if (h->pgalloc.area) - *result = h->pgalloc.area->iovm_start; - else - *result = -EINVAL; - break; - case NVMAP_HANDLE_PARAM_HEAP: - if (!h->alloc) - *result = 0; - else if (!h->heap_pgalloc) { - mutex_lock(&h->lock); - *result = nvmap_carveout_usage(client, h->carveout); - mutex_unlock(&h->lock); - } else - *result = NVMAP_HEAP_IOVMM; - break; - case NVMAP_HANDLE_PARAM_KIND: - *result = h->kind; - break; - case NVMAP_HANDLE_PARAM_COMPR: - /* ignored, to be removed */ - break; - default: - err = -EINVAL; - break; - } - nvmap_handle_put(h); - return err; -} |