diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-03-21 15:55:35 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-06 21:14:53 -0400 |
commit | c9665079d7b12f22a847c62587724b4ee120ca6e (patch) | |
tree | 7882bd08193db4c34b3b8ad7df7013339da2fba1 /drivers/gpu/nvgpu/gm20b | |
parent | b69020bff5dfa69cad926c9374cdbe9a62509ffd (diff) |
gpu: nvgpu: rename mem_desc to nvgpu_mem
Renaming was done with the following command:
$ find -type f | \
xargs sed -i 's/struct mem_desc/struct nvgpu_mem/g'
Also rename mem_desc.[ch] to nvgpu_mem.[ch].
JIRA NVGPU-12
Change-Id: I69395758c22a56aa01e3dffbcded70a729bf559a
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1325547
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/acr_gm20b.c | 8 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/bus_gm20b.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/gr_gm20b.c | 6 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/mm_gm20b.c | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c index da3adb72..013ce43a 100644 --- a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c | |||
@@ -59,14 +59,14 @@ static void lsfm_free_nonpmu_ucode_img_res(struct gk20a *g, | |||
59 | struct flcn_ucode_img *p_img); | 59 | struct flcn_ucode_img *p_img); |
60 | static int lsf_gen_wpr_requirements(struct gk20a *g, struct ls_flcn_mgr *plsfm); | 60 | static int lsf_gen_wpr_requirements(struct gk20a *g, struct ls_flcn_mgr *plsfm); |
61 | static void lsfm_init_wpr_contents(struct gk20a *g, struct ls_flcn_mgr *plsfm, | 61 | static void lsfm_init_wpr_contents(struct gk20a *g, struct ls_flcn_mgr *plsfm, |
62 | struct mem_desc *nonwpr); | 62 | struct nvgpu_mem *nonwpr); |
63 | static void free_acr_resources(struct gk20a *g, struct ls_flcn_mgr *plsfm); | 63 | static void free_acr_resources(struct gk20a *g, struct ls_flcn_mgr *plsfm); |
64 | static int gm20b_pmu_populate_loader_cfg(struct gk20a *g, | 64 | static int gm20b_pmu_populate_loader_cfg(struct gk20a *g, |
65 | void *lsfm, u32 *p_bl_gen_desc_size); | 65 | void *lsfm, u32 *p_bl_gen_desc_size); |
66 | static int gm20b_flcn_populate_bl_dmem_desc(struct gk20a *g, | 66 | static int gm20b_flcn_populate_bl_dmem_desc(struct gk20a *g, |
67 | void *lsfm, u32 *p_bl_gen_desc_size, u32 falconid); | 67 | void *lsfm, u32 *p_bl_gen_desc_size, u32 falconid); |
68 | static int gm20b_alloc_blob_space(struct gk20a *g, | 68 | static int gm20b_alloc_blob_space(struct gk20a *g, |
69 | size_t size, struct mem_desc *mem); | 69 | size_t size, struct nvgpu_mem *mem); |
70 | static bool gm20b_is_priv_load(u32 falcon_id); | 70 | static bool gm20b_is_priv_load(u32 falcon_id); |
71 | static bool gm20b_is_lazy_bootstrap(u32 falcon_id); | 71 | static bool gm20b_is_lazy_bootstrap(u32 falcon_id); |
72 | static void gm20b_wpr_info(struct gk20a *g, struct wpr_carveout_info *inf); | 72 | static void gm20b_wpr_info(struct gk20a *g, struct wpr_carveout_info *inf); |
@@ -364,7 +364,7 @@ static bool gm20b_is_priv_load(u32 falcon_id) | |||
364 | } | 364 | } |
365 | 365 | ||
366 | static int gm20b_alloc_blob_space(struct gk20a *g, | 366 | static int gm20b_alloc_blob_space(struct gk20a *g, |
367 | size_t size, struct mem_desc *mem) | 367 | size_t size, struct nvgpu_mem *mem) |
368 | { | 368 | { |
369 | int err; | 369 | int err; |
370 | 370 | ||
@@ -707,7 +707,7 @@ static int lsfm_fill_flcn_bl_gen_desc(struct gk20a *g, | |||
707 | 707 | ||
708 | /* Initialize WPR contents */ | 708 | /* Initialize WPR contents */ |
709 | static void lsfm_init_wpr_contents(struct gk20a *g, struct ls_flcn_mgr *plsfm, | 709 | static void lsfm_init_wpr_contents(struct gk20a *g, struct ls_flcn_mgr *plsfm, |
710 | struct mem_desc *ucode) | 710 | struct nvgpu_mem *ucode) |
711 | { | 711 | { |
712 | struct lsfm_managed_ucode_img *pnode = plsfm->ucode_img_list; | 712 | struct lsfm_managed_ucode_img *pnode = plsfm->ucode_img_list; |
713 | u32 i; | 713 | u32 i; |
diff --git a/drivers/gpu/nvgpu/gm20b/bus_gm20b.c b/drivers/gpu/nvgpu/gm20b/bus_gm20b.c index ba04945b..08761ef7 100644 --- a/drivers/gpu/nvgpu/gm20b/bus_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/bus_gm20b.c | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | #include <nvgpu/hw/gm20b/hw_bus_gm20b.h> | 24 | #include <nvgpu/hw/gm20b/hw_bus_gm20b.h> |
25 | 25 | ||
26 | static int gm20b_bus_bar1_bind(struct gk20a *g, struct mem_desc *bar1_inst) | 26 | static int gm20b_bus_bar1_bind(struct gk20a *g, struct nvgpu_mem *bar1_inst) |
27 | { | 27 | { |
28 | struct nvgpu_timeout timeout; | 28 | struct nvgpu_timeout timeout; |
29 | int err = 0; | 29 | int err = 0; |
diff --git a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c index 57bff64f..ab169a60 100644 --- a/drivers/gpu/nvgpu/gm20b/gr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/gr_gm20b.c | |||
@@ -852,7 +852,7 @@ static int gr_gm20b_alloc_gr_ctx(struct gk20a *g, | |||
852 | 852 | ||
853 | static void gr_gm20b_update_ctxsw_preemption_mode(struct gk20a *g, | 853 | static void gr_gm20b_update_ctxsw_preemption_mode(struct gk20a *g, |
854 | struct channel_ctx_gk20a *ch_ctx, | 854 | struct channel_ctx_gk20a *ch_ctx, |
855 | struct mem_desc *mem) | 855 | struct nvgpu_mem *mem) |
856 | { | 856 | { |
857 | struct gr_ctx_desc *gr_ctx = ch_ctx->gr_ctx; | 857 | struct gr_ctx_desc *gr_ctx = ch_ctx->gr_ctx; |
858 | u32 cta_preempt_option = | 858 | u32 cta_preempt_option = |
@@ -1012,7 +1012,7 @@ static int gr_gm20b_update_pc_sampling(struct channel_gk20a *c, | |||
1012 | bool enable) | 1012 | bool enable) |
1013 | { | 1013 | { |
1014 | struct channel_ctx_gk20a *ch_ctx = &c->ch_ctx; | 1014 | struct channel_ctx_gk20a *ch_ctx = &c->ch_ctx; |
1015 | struct mem_desc *mem; | 1015 | struct nvgpu_mem *mem; |
1016 | u32 v; | 1016 | u32 v; |
1017 | 1017 | ||
1018 | gk20a_dbg_fn(""); | 1018 | gk20a_dbg_fn(""); |
@@ -1108,7 +1108,7 @@ static void gr_gm20b_init_cyclestats(struct gk20a *g) | |||
1108 | #endif | 1108 | #endif |
1109 | } | 1109 | } |
1110 | 1110 | ||
1111 | static void gr_gm20b_enable_cde_in_fecs(struct gk20a *g, struct mem_desc *mem) | 1111 | static void gr_gm20b_enable_cde_in_fecs(struct gk20a *g, struct nvgpu_mem *mem) |
1112 | { | 1112 | { |
1113 | u32 cde_v; | 1113 | u32 cde_v; |
1114 | 1114 | ||
diff --git a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c index 08d446e7..bf3dd240 100644 --- a/drivers/gpu/nvgpu/gm20b/mm_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/mm_gm20b.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <nvgpu/hw/gm20b/hw_ram_gm20b.h> | 21 | #include <nvgpu/hw/gm20b/hw_ram_gm20b.h> |
22 | 22 | ||
23 | static void gm20b_mm_set_big_page_size(struct gk20a *g, | 23 | static void gm20b_mm_set_big_page_size(struct gk20a *g, |
24 | struct mem_desc *mem, int size) | 24 | struct nvgpu_mem *mem, int size) |
25 | { | 25 | { |
26 | u32 val; | 26 | u32 val; |
27 | 27 | ||