diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 4 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 5 |
2 files changed, 7 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 | { |
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index d25c845c..01c7f43d 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |||
@@ -843,4 +843,9 @@ int gr_gk20a_create_priv_addr_table(struct gk20a *g, | |||
843 | void gr_gk20a_split_fbpa_broadcast_addr(struct gk20a *g, u32 addr, | 843 | void gr_gk20a_split_fbpa_broadcast_addr(struct gk20a *g, u32 addr, |
844 | u32 num_fbpas, | 844 | u32 num_fbpas, |
845 | u32 *priv_addr_table, u32 *t); | 845 | u32 *priv_addr_table, u32 *t); |
846 | |||
847 | void gk20a_gr_destroy_ctx_buffer(struct gk20a *g, | ||
848 | struct gr_ctx_buffer_desc *desc); | ||
849 | int gk20a_gr_alloc_ctx_buffer(struct gk20a *g, | ||
850 | struct gr_ctx_buffer_desc *desc, size_t size); | ||
846 | #endif /*__GR_GK20A_H__*/ | 851 | #endif /*__GR_GK20A_H__*/ |