gpu: nvgpu: rename tsg_gk20a*/gk20a_tsg* functions.

rename the functions with the prefixes tsg_gk20a*/gk20a_tsg*
to nvgpu_tsg_*

Jira NVGPU-3248

Change-Id: I9f5f601040d994cd7798fe76813cc86c8df126dc
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2120165
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Debarshi Dutta
2019-05-16 14:09:51 +05:30
committed by mobile promotions
parent 1dea88c6c7
commit 4c30bd599f
29 changed files with 75 additions and 75 deletions

View File

@@ -87,7 +87,7 @@ static int gk20a_fifo_sched_debugfs_seq_show(
return ret;
if (nvgpu_channel_get(ch)) {
tsg = tsg_gk20a_from_ch(ch);
tsg = nvgpu_tsg_from_ch(ch);
if (tsg)
seq_printf(s, "%-8d %-8d %-8d %-9d %-8d %-10d %-8d %-8d\n",

View File

@@ -85,13 +85,13 @@ static void gk20a_channel_trace_sched_param(
const char *compute_preempt_mode),
struct nvgpu_channel *ch)
{
struct nvgpu_tsg *tsg = tsg_gk20a_from_ch(ch);
struct nvgpu_tsg *tsg = nvgpu_tsg_from_ch(ch);
if (!tsg)
return;
(trace)(ch->chid, ch->tsgid, ch->pid,
tsg_gk20a_from_ch(ch)->timeslice_us,
nvgpu_tsg_from_ch(ch)->timeslice_us,
ch->ctxsw_timeout_max_ms,
nvgpu_runlist_interleave_level_name(tsg->interleave_level),
gr_gk20a_graphics_preempt_mode_name(

View File

@@ -284,7 +284,7 @@ static int nvgpu_dbg_gpu_ioctl_read_single_sm_error_state(
return -EINVAL;
}
tsg = tsg_gk20a_from_ch(ch);
tsg = nvgpu_tsg_from_ch(ch);
if (tsg == NULL) {
nvgpu_err(g, "no valid tsg from ch");
return -EINVAL;
@@ -1769,7 +1769,7 @@ static int nvgpu_profiler_reserve_acquire(struct dbg_session_gk20a *dbg_s,
nvgpu_err(g,
"per-ctxt reserve: global reservation in effect");
err = -EBUSY;
} else if ((tsg = tsg_gk20a_from_ch(my_prof_obj->ch)) != NULL) {
} else if ((tsg = nvgpu_tsg_from_ch(my_prof_obj->ch)) != NULL) {
/* TSG: check that another channel in the TSG
* doesn't already have the reservation
*/

View File

@@ -135,7 +135,7 @@ static int nvgpu_tsg_unbind_channel_fd(struct nvgpu_tsg *tsg, int ch_fd)
return -EINVAL;
}
if (tsg != tsg_gk20a_from_ch(ch)) {
if (tsg != nvgpu_tsg_from_ch(ch)) {
err = -EINVAL;
goto out;
}