gpu: nvgpu: rename tsg_gk20a and channel_gk20a structs

rename struct tsg_gk20a to struct nvgpu_tsg and rename struct
channel_gk20a to struct nvgpu_channel

Jira NVGPU-3248

Change-Id: I2a227347d249f9eea59223d82f09eae23dfc1306
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2112424
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
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-06 10:06:09 +05:30
committed by mobile promotions
parent 400c10164e
commit 17486ec1f6
156 changed files with 1063 additions and 1063 deletions

View File

@@ -92,13 +92,13 @@ u32 gk20a_syncpt_get_incr_cmd_size(bool wfi_cmd)
}
}
void gk20a_syncpt_free_buf(struct channel_gk20a *c,
void gk20a_syncpt_free_buf(struct nvgpu_channel *c,
struct nvgpu_mem *syncpt_buf)
{
}
int gk20a_syncpt_alloc_buf(struct channel_gk20a *c,
int gk20a_syncpt_alloc_buf(struct nvgpu_channel *c,
u32 syncpt_id, struct nvgpu_mem *syncpt_buf)
{
return 0;

View File

@@ -39,10 +39,10 @@ void gk20a_syncpt_add_incr_cmd(struct gk20a *g,
bool wfi_cmd, struct priv_cmd_entry *cmd,
u32 id, u64 gpu_va);
u32 gk20a_syncpt_get_incr_cmd_size(bool wfi_cmd);
void gk20a_syncpt_free_buf(struct channel_gk20a *c,
void gk20a_syncpt_free_buf(struct nvgpu_channel *c,
struct nvgpu_mem *syncpt_buf);
int gk20a_syncpt_alloc_buf(struct channel_gk20a *c,
int gk20a_syncpt_alloc_buf(struct nvgpu_channel *c,
u32 syncpt_id, struct nvgpu_mem *syncpt_buf);
#else
@@ -69,12 +69,12 @@ static inline u32 gk20a_syncpt_get_incr_cmd_size(bool wfi_cmd)
{
return 0U;
}
static inline void gk20a_syncpt_free_buf(struct channel_gk20a *c,
static inline void gk20a_syncpt_free_buf(struct nvgpu_channel *c,
struct nvgpu_mem *syncpt_buf)
{
}
static inline int gk20a_syncpt_alloc_buf(struct channel_gk20a *c,
static inline int gk20a_syncpt_alloc_buf(struct nvgpu_channel *c,
u32 syncpt_id, struct nvgpu_mem *syncpt_buf)
{
return -ENOSYS;

View File

@@ -54,7 +54,7 @@ static int set_syncpt_ro_map_gpu_va_locked(struct vm_gk20a *vm)
return 0;
}
int gv11b_syncpt_alloc_buf(struct channel_gk20a *c,
int gv11b_syncpt_alloc_buf(struct nvgpu_channel *c,
u32 syncpt_id, struct nvgpu_mem *syncpt_buf)
{
u32 nr_pages;
@@ -90,7 +90,7 @@ int gv11b_syncpt_alloc_buf(struct channel_gk20a *c,
return err;
}
void gv11b_syncpt_free_buf(struct channel_gk20a *c,
void gv11b_syncpt_free_buf(struct nvgpu_channel *c,
struct nvgpu_mem *syncpt_buf)
{
nvgpu_gmmu_unmap(c->vm, syncpt_buf, syncpt_buf->gpu_va);

View File

@@ -27,7 +27,7 @@
struct gk20a;
struct priv_cmd_entry;
struct nvgpu_mem;
struct channel_gk20a;
struct nvgpu_channel;
struct vm_gk20a;
#ifdef CONFIG_TEGRA_GK20A_NVHOST
@@ -41,10 +41,10 @@ void gv11b_syncpt_add_incr_cmd(struct gk20a *g,
bool wfi_cmd, struct priv_cmd_entry *cmd,
u32 id, u64 gpu_va);
u32 gv11b_syncpt_get_incr_cmd_size(bool wfi_cmd);
void gv11b_syncpt_free_buf(struct channel_gk20a *c,
void gv11b_syncpt_free_buf(struct nvgpu_channel *c,
struct nvgpu_mem *syncpt_buf);
int gv11b_syncpt_alloc_buf(struct channel_gk20a *c,
int gv11b_syncpt_alloc_buf(struct nvgpu_channel *c,
u32 syncpt_id, struct nvgpu_mem *syncpt_buf);
int gv11b_syncpt_get_sync_ro_map(struct vm_gk20a *vm,
@@ -74,12 +74,12 @@ static inline u32 gv11b_syncpt_get_incr_cmd_size(bool wfi_cmd)
{
return 0U;
}
static inline void gv11b_syncpt_free_buf(struct channel_gk20a *c,
static inline void gv11b_syncpt_free_buf(struct nvgpu_channel *c,
struct nvgpu_mem *syncpt_buf)
{
}
static inline int gv11b_syncpt_alloc_buf(struct channel_gk20a *c,
static inline int gv11b_syncpt_alloc_buf(struct nvgpu_channel *c,
u32 syncpt_id, struct nvgpu_mem *syncpt_buf)
{
return -EINVAL;