diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-09-28 03:57:32 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-29 02:54:37 -0400 |
commit | 894e04790b26d035d5cb1b5f26e689d2eb4b7c4a (patch) | |
tree | 882065e23f54b4549751f8b7f2826d240e53c48a /drivers/gpu/nvgpu/include | |
parent | 1e125f245e95982d02746aab0fd2b9ea8db009f8 (diff) |
gpu: nvgpu: remove unused accessors
Remove these unused accessors
fb_mmu_ctrl_vm_pg_size_f()
fb_mmu_ctrl_vm_pg_size_128kb_f()
fb_mmu_ctrl_vm_pg_size_64kb_f()
ram_rl_entry_tsg_timeslice_timeout_disable_v()
Bug 2173122
Change-Id: I5b18ab502265ed4575fceb4bd5d0ab07dd3c12a8
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1850945
Reviewed-by: svc-misra-checker <svc-misra-checker@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/include')
7 files changed, 1 insertions, 69 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_fb_gm20b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_fb_gm20b.h index 531d0400..e6464c1d 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_fb_gm20b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_fb_gm20b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -64,18 +64,6 @@ static inline u32 fb_mmu_ctrl_r(void) | |||
64 | { | 64 | { |
65 | return 0x00100c80U; | 65 | return 0x00100c80U; |
66 | } | 66 | } |
67 | static inline u32 fb_mmu_ctrl_vm_pg_size_f(u32 v) | ||
68 | { | ||
69 | return (v & 0x1U) << 0U; | ||
70 | } | ||
71 | static inline u32 fb_mmu_ctrl_vm_pg_size_128kb_f(void) | ||
72 | { | ||
73 | return 0x0U; | ||
74 | } | ||
75 | static inline u32 fb_mmu_ctrl_vm_pg_size_64kb_f(void) | ||
76 | { | ||
77 | return 0x1U; | ||
78 | } | ||
79 | static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r) | 67 | static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r) |
80 | { | 68 | { |
81 | return (r >> 15U) & 0x1U; | 69 | return (r >> 15U) & 0x1U; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_fb_gp106.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_fb_gp106.h index 53288555..e2f7b9d2 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_fb_gp106.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_fb_gp106.h | |||
@@ -64,18 +64,6 @@ static inline u32 fb_mmu_ctrl_r(void) | |||
64 | { | 64 | { |
65 | return 0x00100c80U; | 65 | return 0x00100c80U; |
66 | } | 66 | } |
67 | static inline u32 fb_mmu_ctrl_vm_pg_size_f(u32 v) | ||
68 | { | ||
69 | return (v & 0x1U) << 0U; | ||
70 | } | ||
71 | static inline u32 fb_mmu_ctrl_vm_pg_size_128kb_f(void) | ||
72 | { | ||
73 | return 0x0U; | ||
74 | } | ||
75 | static inline u32 fb_mmu_ctrl_vm_pg_size_64kb_f(void) | ||
76 | { | ||
77 | return 0x1U; | ||
78 | } | ||
79 | static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r) | 67 | static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r) |
80 | { | 68 | { |
81 | return (r >> 15U) & 0x1U; | 69 | return (r >> 15U) & 0x1U; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fb_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fb_gp10b.h index 81a6f79c..5953abd9 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fb_gp10b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_fb_gp10b.h | |||
@@ -64,18 +64,6 @@ static inline u32 fb_mmu_ctrl_r(void) | |||
64 | { | 64 | { |
65 | return 0x00100c80U; | 65 | return 0x00100c80U; |
66 | } | 66 | } |
67 | static inline u32 fb_mmu_ctrl_vm_pg_size_f(u32 v) | ||
68 | { | ||
69 | return (v & 0x1U) << 0U; | ||
70 | } | ||
71 | static inline u32 fb_mmu_ctrl_vm_pg_size_128kb_f(void) | ||
72 | { | ||
73 | return 0x0U; | ||
74 | } | ||
75 | static inline u32 fb_mmu_ctrl_vm_pg_size_64kb_f(void) | ||
76 | { | ||
77 | return 0x1U; | ||
78 | } | ||
79 | static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r) | 67 | static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r) |
80 | { | 68 | { |
81 | return (r >> 15U) & 0x1U; | 69 | return (r >> 15U) & 0x1U; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_fb_gv100.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_fb_gv100.h index 1bac1a6a..0f6a742e 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_fb_gv100.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_fb_gv100.h | |||
@@ -140,18 +140,6 @@ static inline u32 fb_mmu_ctrl_r(void) | |||
140 | { | 140 | { |
141 | return 0x00100c80U; | 141 | return 0x00100c80U; |
142 | } | 142 | } |
143 | static inline u32 fb_mmu_ctrl_vm_pg_size_f(u32 v) | ||
144 | { | ||
145 | return (v & 0x1U) << 0U; | ||
146 | } | ||
147 | static inline u32 fb_mmu_ctrl_vm_pg_size_128kb_f(void) | ||
148 | { | ||
149 | return 0x0U; | ||
150 | } | ||
151 | static inline u32 fb_mmu_ctrl_vm_pg_size_64kb_f(void) | ||
152 | { | ||
153 | return 0x1U; | ||
154 | } | ||
155 | static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r) | 143 | static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r) |
156 | { | 144 | { |
157 | return (r >> 15U) & 0x1U; | 145 | return (r >> 15U) & 0x1U; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_ram_gv100.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_ram_gv100.h index 11333f43..55aa25f9 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_ram_gv100.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_ram_gv100.h | |||
@@ -756,10 +756,6 @@ static inline u32 ram_rl_entry_tsg_timeslice_timeout_128_v(void) | |||
756 | { | 756 | { |
757 | return 0x00000080U; | 757 | return 0x00000080U; |
758 | } | 758 | } |
759 | static inline u32 ram_rl_entry_tsg_timeslice_timeout_disable_v(void) | ||
760 | { | ||
761 | return 0x00000000U; | ||
762 | } | ||
763 | static inline u32 ram_rl_entry_tsg_length_f(u32 v) | 759 | static inline u32 ram_rl_entry_tsg_length_f(u32 v) |
764 | { | 760 | { |
765 | return (v & 0xffU) << 0U; | 761 | return (v & 0xffU) << 0U; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_fb_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_fb_gv11b.h index 5c4477a0..0982e3dc 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_fb_gv11b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_fb_gv11b.h | |||
@@ -64,18 +64,6 @@ static inline u32 fb_mmu_ctrl_r(void) | |||
64 | { | 64 | { |
65 | return 0x00100c80U; | 65 | return 0x00100c80U; |
66 | } | 66 | } |
67 | static inline u32 fb_mmu_ctrl_vm_pg_size_f(u32 v) | ||
68 | { | ||
69 | return (v & 0x1U) << 0U; | ||
70 | } | ||
71 | static inline u32 fb_mmu_ctrl_vm_pg_size_128kb_f(void) | ||
72 | { | ||
73 | return 0x0U; | ||
74 | } | ||
75 | static inline u32 fb_mmu_ctrl_vm_pg_size_64kb_f(void) | ||
76 | { | ||
77 | return 0x1U; | ||
78 | } | ||
79 | static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r) | 67 | static inline u32 fb_mmu_ctrl_pri_fifo_empty_v(u32 r) |
80 | { | 68 | { |
81 | return (r >> 15U) & 0x1U; | 69 | return (r >> 15U) & 0x1U; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ram_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ram_gv11b.h index f6134f46..59c6d88a 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ram_gv11b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_ram_gv11b.h | |||
@@ -756,10 +756,6 @@ static inline u32 ram_rl_entry_tsg_timeslice_timeout_128_v(void) | |||
756 | { | 756 | { |
757 | return 0x00000080U; | 757 | return 0x00000080U; |
758 | } | 758 | } |
759 | static inline u32 ram_rl_entry_tsg_timeslice_timeout_disable_v(void) | ||
760 | { | ||
761 | return 0x00000000U; | ||
762 | } | ||
763 | static inline u32 ram_rl_entry_tsg_length_f(u32 v) | 759 | static inline u32 ram_rl_entry_tsg_length_f(u32 v) |
764 | { | 760 | { |
765 | return (v & 0xffU) << 0U; | 761 | return (v & 0xffU) << 0U; |