diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-06-07 17:08:11 -0400 |
---|---|---|
committer | Tejal Kudav <tkudav@nvidia.com> | 2018-06-14 09:44:08 -0400 |
commit | 5f74aa99e068fd5a84798d4909b1ee04c8821731 (patch) | |
tree | fdd43c975a61232460df7d2952003c9993ce3d0c /drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |
parent | 0e4768f1e653cb3a134e0b226f655c08a40d63e4 (diff) |
gpu: nvgpu: export APIs to allocate/destroy context buffers
Export below APIs in gr_gk20a.h header
gk20a_gr_alloc_ctx_buffer()
gk20a_gr_destroy_ctx_buffer()
Jira NVGPUT-27
Change-Id: Ia181a3f464ffbc9abe12963dd709cebee9e7dbc9
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1743364
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 5d9e3218..37ac8748 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -2505,7 +2505,7 @@ int gr_gk20a_init_ctx_state(struct gk20a *g) | |||
2505 | return 0; | 2505 | return 0; |
2506 | } | 2506 | } |
2507 | 2507 | ||
2508 | static void gk20a_gr_destroy_ctx_buffer(struct gk20a *g, | 2508 | void gk20a_gr_destroy_ctx_buffer(struct gk20a *g, |
2509 | struct gr_ctx_buffer_desc *desc) | 2509 | struct gr_ctx_buffer_desc *desc) |
2510 | { | 2510 | { |
2511 | if (!desc) | 2511 | if (!desc) |
@@ -2514,7 +2514,7 @@ static void gk20a_gr_destroy_ctx_buffer(struct gk20a *g, | |||
2514 | desc->destroy = NULL; | 2514 | desc->destroy = NULL; |
2515 | } | 2515 | } |
2516 | 2516 | ||
2517 | static int gk20a_gr_alloc_ctx_buffer(struct gk20a *g, | 2517 | int gk20a_gr_alloc_ctx_buffer(struct gk20a *g, |
2518 | struct gr_ctx_buffer_desc *desc, | 2518 | struct gr_ctx_buffer_desc *desc, |
2519 | size_t size) | 2519 | size_t size) |
2520 | { | 2520 | { |