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>
This commit is contained in:
Alex Waterman
2017-08-17 14:33:46 -07:00
committed by mobile promotions
parent a9ce91f910
commit 88d5f6b415
11 changed files with 73 additions and 72 deletions

View File

@@ -693,7 +693,7 @@ static int nvgpu_gpu_alloc_vidmem(struct gk20a *g,
return -EINVAL;
}
fd = gk20a_vidmem_buf_alloc(g, args->in.size);
fd = nvgpu_vidmem_buf_alloc(g, args->in.size);
if (fd < 0)
return fd;
@@ -715,7 +715,7 @@ static int nvgpu_gpu_get_memory_state(struct gk20a *g,
args->reserved[2] || args->reserved[3])
return -EINVAL;
err = gk20a_vidmem_get_space(g, &args->total_free_bytes);
err = nvgpu_vidmem_get_space(g, &args->total_free_bytes);
gk20a_dbg_fn("done, err=%d, bytes=%lld", err, args->total_free_bytes);