summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-08-17 17:33:46 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-13 18:19:23 -0400
commit88d5f6b4154d6803ecf3b0dee7208f9f1f10a793 (patch)
tree207e9ad3de18918aa2cdfbab4d80139a0a30d565 /drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
parenta9ce91f910ca730a3abadb9e7491e3504af30d86 (diff)
gpu: nvgpu: Rename vidmem APIs
Rename the VIDMEM APIs to be prefixed by nvgpu_ to ensure consistency and that all the non-static vidmem functions are properly namespaced. JIRA NVGPU-30 JIRA NVGPU-138 Change-Id: I9986ee8f2c8f95a4b7c5e2b9607bc1e77933ccfc Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1540707 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
index c8460bd9..7180256a 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c
@@ -693,7 +693,7 @@ static int nvgpu_gpu_alloc_vidmem(struct gk20a *g,
693 return -EINVAL; 693 return -EINVAL;
694 } 694 }
695 695
696 fd = gk20a_vidmem_buf_alloc(g, args->in.size); 696 fd = nvgpu_vidmem_buf_alloc(g, args->in.size);
697 if (fd < 0) 697 if (fd < 0)
698 return fd; 698 return fd;
699 699
@@ -715,7 +715,7 @@ static int nvgpu_gpu_get_memory_state(struct gk20a *g,
715 args->reserved[2] || args->reserved[3]) 715 args->reserved[2] || args->reserved[3])
716 return -EINVAL; 716 return -EINVAL;
717 717
718 err = gk20a_vidmem_get_space(g, &args->total_free_bytes); 718 err = nvgpu_vidmem_get_space(g, &args->total_free_bytes);
719 719
720 gk20a_dbg_fn("done, err=%d, bytes=%lld", err, args->total_free_bytes); 720 gk20a_dbg_fn("done, err=%d, bytes=%lld", err, args->total_free_bytes);
721 721