diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-03-15 19:42:12 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-06 21:14:48 -0400 |
commit | b69020bff5dfa69cad926c9374cdbe9a62509ffd (patch) | |
tree | 222f6b6bc23561a38004a257cbac401e431ff3be /drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |
parent | fa4ecf5730a75269e85cc41c2ad2ee61307e72a9 (diff) |
gpu: nvgpu: Rename gk20a_mem_* functions
Rename the functions used for mem_desc access to nvgpu_mem_*.
JIRA NVGPU-12
Change-Id: Ibfdc1112d43f0a125e4487c250e3f977ffd2cd75
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1323325
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c index 4fa71797..b4e3bad1 100644 --- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |||
@@ -636,11 +636,11 @@ static int gk20a_fecs_trace_bind_channel(struct gk20a *g, | |||
636 | pa = gk20a_mm_inst_block_addr(g, &trace->trace_buf); | 636 | pa = gk20a_mm_inst_block_addr(g, &trace->trace_buf); |
637 | if (!pa) | 637 | if (!pa) |
638 | return -ENOMEM; | 638 | return -ENOMEM; |
639 | aperture = gk20a_aperture_mask(g, &trace->trace_buf, | 639 | aperture = nvgpu_aperture_mask(g, &trace->trace_buf, |
640 | ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_noncoherent_f(), | 640 | ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_sys_mem_noncoherent_f(), |
641 | ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_vid_mem_f()); | 641 | ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_target_vid_mem_f()); |
642 | 642 | ||
643 | if (gk20a_mem_begin(g, mem)) | 643 | if (nvgpu_mem_begin(g, mem)) |
644 | return -ENOMEM; | 644 | return -ENOMEM; |
645 | 645 | ||
646 | lo = u64_lo32(pa); | 646 | lo = u64_lo32(pa); |
@@ -649,19 +649,19 @@ static int gk20a_fecs_trace_bind_channel(struct gk20a *g, | |||
649 | gk20a_dbg(gpu_dbg_ctxsw, "addr_hi=%x addr_lo=%x count=%d", hi, | 649 | gk20a_dbg(gpu_dbg_ctxsw, "addr_hi=%x addr_lo=%x count=%d", hi, |
650 | lo, GK20A_FECS_TRACE_NUM_RECORDS); | 650 | lo, GK20A_FECS_TRACE_NUM_RECORDS); |
651 | 651 | ||
652 | gk20a_mem_wr(g, mem, | 652 | nvgpu_mem_wr(g, mem, |
653 | ctxsw_prog_main_image_context_timestamp_buffer_ptr_o(), | 653 | ctxsw_prog_main_image_context_timestamp_buffer_ptr_o(), |
654 | lo); | 654 | lo); |
655 | gk20a_mem_wr(g, mem, | 655 | nvgpu_mem_wr(g, mem, |
656 | ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_o(), | 656 | ctxsw_prog_main_image_context_timestamp_buffer_ptr_hi_o(), |
657 | ctxsw_prog_main_image_context_timestamp_buffer_ptr_v_f(hi) | | 657 | ctxsw_prog_main_image_context_timestamp_buffer_ptr_v_f(hi) | |
658 | aperture); | 658 | aperture); |
659 | gk20a_mem_wr(g, mem, | 659 | nvgpu_mem_wr(g, mem, |
660 | ctxsw_prog_main_image_context_timestamp_buffer_control_o(), | 660 | ctxsw_prog_main_image_context_timestamp_buffer_control_o(), |
661 | ctxsw_prog_main_image_context_timestamp_buffer_control_num_records_f( | 661 | ctxsw_prog_main_image_context_timestamp_buffer_control_num_records_f( |
662 | GK20A_FECS_TRACE_NUM_RECORDS)); | 662 | GK20A_FECS_TRACE_NUM_RECORDS)); |
663 | 663 | ||
664 | gk20a_mem_end(g, mem); | 664 | nvgpu_mem_end(g, mem); |
665 | 665 | ||
666 | /* pid (process identifier) in user space, corresponds to tgid (thread | 666 | /* pid (process identifier) in user space, corresponds to tgid (thread |
667 | * group id) in kernel space. | 667 | * group id) in kernel space. |