gpu: nvgpu: channel MISRA fix for Rule 21.2

Rename functions starting with '_' and '__'.
__gk20a_channel_kill -> nvgpu_channel_kill
_gk20a_channel_from_id -> nvgpu_channel_from_id__func
gk20a_channel_from_id -> nvgpu_channel_from_id

JIRA NVGPU-3388

Change-Id: I3b5f63bf214c5c5e49bc84ba8ef79bd49831c56e
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2114037
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Seema Khowala
2019-05-07 13:22:08 -07:00
committed by mobile promotions
parent 842c42249d
commit 26d13b3b6b
10 changed files with 31 additions and 29 deletions

View File

@@ -316,7 +316,7 @@ int nvgpu_engine_disable_activity(struct gk20a *g,
}
if (pbdma_chid != NVGPU_INVALID_CHANNEL_ID) {
ch = gk20a_channel_from_id(g, pbdma_chid);
ch = nvgpu_channel_from_id(g, pbdma_chid);
if (ch != NULL) {
err = g->ops.fifo.preempt_channel(g, ch);
gk20a_channel_put(ch);
@@ -338,7 +338,7 @@ int nvgpu_engine_disable_activity(struct gk20a *g,
}
if (engine_chid != NVGPU_INVALID_ENG_ID && engine_chid != pbdma_chid) {
ch = gk20a_channel_from_id(g, engine_chid);
ch = nvgpu_channel_from_id(g, engine_chid);
if (ch != NULL) {
err = g->ops.fifo.preempt_channel(g, ch);
gk20a_channel_put(ch);