diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/cde_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/cde_gp10b.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/cde_gp10b.c b/drivers/gpu/nvgpu/gp10b/cde_gp10b.c index 1af5b01c..685ddbc4 100644 --- a/drivers/gpu/nvgpu/gp10b/cde_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/cde_gp10b.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GP10B CDE | 2 | * GP10B CDE |
3 | * | 3 | * |
4 | * Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -30,7 +30,7 @@ enum gp10b_programs { | |||
30 | GP10B_PROG_PASSTHROUGH = 8, | 30 | GP10B_PROG_PASSTHROUGH = 8, |
31 | }; | 31 | }; |
32 | 32 | ||
33 | static void gp10b_cde_get_program_numbers(struct gk20a *g, | 33 | void gp10b_cde_get_program_numbers(struct gk20a *g, |
34 | u32 block_height_log2, | 34 | u32 block_height_log2, |
35 | int *hprog_out, int *vprog_out) | 35 | int *hprog_out, int *vprog_out) |
36 | { | 36 | { |
@@ -60,7 +60,7 @@ static void gp10b_cde_get_program_numbers(struct gk20a *g, | |||
60 | *vprog_out = vprog; | 60 | *vprog_out = vprog; |
61 | } | 61 | } |
62 | 62 | ||
63 | static bool gp10b_need_scatter_buffer(struct gk20a *g) | 63 | bool gp10b_need_scatter_buffer(struct gk20a *g) |
64 | { | 64 | { |
65 | return g->mm.bypass_smmu; | 65 | return g->mm.bypass_smmu; |
66 | } | 66 | } |
@@ -74,7 +74,7 @@ static u8 parity(u32 a) | |||
74 | return (0x6996u >> a) & 1u; | 74 | return (0x6996u >> a) & 1u; |
75 | } | 75 | } |
76 | 76 | ||
77 | static int gp10b_populate_scatter_buffer(struct gk20a *g, | 77 | int gp10b_populate_scatter_buffer(struct gk20a *g, |
78 | struct sg_table *sgt, | 78 | struct sg_table *sgt, |
79 | size_t surface_size, | 79 | size_t surface_size, |
80 | void *scatter_buffer_ptr, | 80 | void *scatter_buffer_ptr, |
@@ -140,10 +140,3 @@ static int gp10b_populate_scatter_buffer(struct gk20a *g, | |||
140 | 140 | ||
141 | return 0; | 141 | return 0; |
142 | } | 142 | } |
143 | |||
144 | void gp10b_init_cde_ops(struct gpu_ops *gops) | ||
145 | { | ||
146 | gops->cde.get_program_numbers = gp10b_cde_get_program_numbers; | ||
147 | gops->cde.need_scatter_buffer = gp10b_need_scatter_buffer; | ||
148 | gops->cde.populate_scatter_buffer = gp10b_populate_scatter_buffer; | ||
149 | } | ||