mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
gpu: nvgpu: rename channel functions
This patch makes the following changes 1) rename public channel functions to use nvgpu_channel prefix 2) rename static channel functions to use channel prefix Jira NVGPU-3248 Change-Id: Ib556a0d6ac24dc0882bfd3b8c68b9d2854834030 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2150729 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
bab6fdd2bb
commit
48c00bbea9
@@ -256,7 +256,7 @@ static int test_channel_open(struct unit_module *m,
|
||||
}
|
||||
|
||||
err = EXPECT_BUG(
|
||||
ch = gk20a_open_new_channel(g, runlist_id,
|
||||
ch = nvgpu_channel_open_new(g, runlist_id,
|
||||
privileged, getpid(), getpid());
|
||||
);
|
||||
|
||||
@@ -409,7 +409,7 @@ static int test_channel_close(struct unit_module *m,
|
||||
unit_verbose(m, "%s branches=%s\n", __func__,
|
||||
branches_str(branches, f_channel_close));
|
||||
|
||||
ch = gk20a_open_new_channel(g, runlist_id,
|
||||
ch = nvgpu_channel_open_new(g, runlist_id,
|
||||
privileged, getpid(), getpid());
|
||||
assert(ch != NULL);
|
||||
|
||||
@@ -651,7 +651,7 @@ static int test_channel_setup_bind(struct unit_module *m,
|
||||
tsg = nvgpu_tsg_open(g, getpid());
|
||||
assert(tsg != NULL);
|
||||
|
||||
ch = gk20a_open_new_channel(g, runlist_id,
|
||||
ch = nvgpu_channel_open_new(g, runlist_id,
|
||||
privileged, getpid(), getpid());
|
||||
assert(ch != NULL);
|
||||
|
||||
@@ -775,7 +775,7 @@ static int test_channel_alloc_inst(struct unit_module *m,
|
||||
|
||||
dma_fi = nvgpu_dma_alloc_get_fault_injection();
|
||||
|
||||
ch = gk20a_open_new_channel(g, runlist_id,
|
||||
ch = nvgpu_channel_open_new(g, runlist_id,
|
||||
privileged, getpid(), getpid());
|
||||
assert(ch != NULL);
|
||||
|
||||
@@ -861,11 +861,11 @@ static int test_channel_from_inst(struct unit_module *m,
|
||||
u64 inst_ptr;
|
||||
bool privileged = false;
|
||||
|
||||
chA = gk20a_open_new_channel(g, runlist_id,
|
||||
chA = nvgpu_channel_open_new(g, runlist_id,
|
||||
privileged, getpid(), getpid());
|
||||
assert(chA != NULL);
|
||||
|
||||
chB = gk20a_open_new_channel(g, runlist_id,
|
||||
chB = nvgpu_channel_open_new(g, runlist_id,
|
||||
privileged, getpid(), getpid());
|
||||
assert(chB != NULL);
|
||||
|
||||
@@ -959,7 +959,7 @@ static int test_channel_enable_disable_tsg(struct unit_module *m,
|
||||
tsg = nvgpu_tsg_open(g, getpid());
|
||||
assert(tsg != NULL);
|
||||
|
||||
ch = gk20a_open_new_channel(g, runlist_id,
|
||||
ch = nvgpu_channel_open_new(g, runlist_id,
|
||||
privileged, getpid(), getpid());
|
||||
assert(ch != NULL);
|
||||
|
||||
|
||||
@@ -293,10 +293,10 @@ static int test_tsg_bind_channel(struct unit_module *m,
|
||||
tsg = nvgpu_tsg_open(g, getpid());
|
||||
assert(tsg != NULL);
|
||||
|
||||
chA = gk20a_open_new_channel(g, ~0U, false, getpid(), getpid());
|
||||
chA = nvgpu_channel_open_new(g, ~0U, false, getpid(), getpid());
|
||||
assert(chA != NULL);
|
||||
|
||||
chB = gk20a_open_new_channel(g, ~0U, false, getpid(), getpid());
|
||||
chB = nvgpu_channel_open_new(g, ~0U, false, getpid(), getpid());
|
||||
assert(chB != NULL);
|
||||
|
||||
err = nvgpu_tsg_bind_channel(tsg, chA);
|
||||
@@ -494,10 +494,10 @@ static int test_tsg_unbind_channel(struct unit_module *m,
|
||||
tsg = nvgpu_tsg_open(g, getpid());
|
||||
assert(tsg != NULL);
|
||||
|
||||
chA = gk20a_open_new_channel(g, ~0U, false, getpid(), getpid());
|
||||
chA = nvgpu_channel_open_new(g, ~0U, false, getpid(), getpid());
|
||||
assert(chA != NULL);
|
||||
|
||||
chB = gk20a_open_new_channel(g, ~0U, false, getpid(), getpid());
|
||||
chB = nvgpu_channel_open_new(g, ~0U, false, getpid(), getpid());
|
||||
assert(chB != NULL);
|
||||
|
||||
err = nvgpu_tsg_bind_channel(tsg, chA);
|
||||
@@ -753,7 +753,7 @@ static int test_tsg_unbind_channel_check_hw_state(struct unit_module *m,
|
||||
tsg = nvgpu_tsg_open(g, getpid());
|
||||
assert(tsg != NULL);
|
||||
|
||||
ch = gk20a_open_new_channel(g, ~0U, false, getpid(), getpid());
|
||||
ch = nvgpu_channel_open_new(g, ~0U, false, getpid(), getpid());
|
||||
assert(ch != NULL);
|
||||
|
||||
err = nvgpu_tsg_bind_channel(tsg, ch);
|
||||
@@ -839,10 +839,10 @@ static int test_tsg_unbind_channel_check_ctx_reload(struct unit_module *m,
|
||||
tsg = nvgpu_tsg_open(g, getpid());
|
||||
assert(tsg != NULL);
|
||||
|
||||
chA = gk20a_open_new_channel(g, ~0U, false, getpid(), getpid());
|
||||
chA = nvgpu_channel_open_new(g, ~0U, false, getpid(), getpid());
|
||||
assert(chA != NULL);
|
||||
|
||||
chB = gk20a_open_new_channel(g, ~0U, false, getpid(), getpid());
|
||||
chB = nvgpu_channel_open_new(g, ~0U, false, getpid(), getpid());
|
||||
assert(chB != NULL);
|
||||
|
||||
err = nvgpu_tsg_bind_channel(tsg, chA);
|
||||
@@ -944,7 +944,7 @@ static int test_tsg_enable(struct unit_module *m,
|
||||
tsgB = nvgpu_tsg_open(g, getpid());
|
||||
assert(tsgB != NULL);
|
||||
|
||||
chA = gk20a_open_new_channel(g, ~0U, false, getpid(), getpid());
|
||||
chA = nvgpu_channel_open_new(g, ~0U, false, getpid(), getpid());
|
||||
assert(chA != NULL);
|
||||
|
||||
err = nvgpu_tsg_bind_channel(tsgA, chA);
|
||||
@@ -1085,7 +1085,7 @@ static int test_tsg_abort(struct unit_module *m, struct gk20a *g, void *args)
|
||||
tsgB = nvgpu_tsg_open(g, getpid());
|
||||
assert(tsgB != NULL);
|
||||
|
||||
chA = gk20a_open_new_channel(g, ~0U, false, getpid(), getpid());
|
||||
chA = nvgpu_channel_open_new(g, ~0U, false, getpid(), getpid());
|
||||
assert(chA != NULL);
|
||||
|
||||
err = nvgpu_tsg_bind_channel(tsgA, chA);
|
||||
|
||||
Reference in New Issue
Block a user