summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/cde.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/cde.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/cde.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/cde.c b/drivers/gpu/nvgpu/common/linux/cde.c
index aefef882..dcccafb4 100644
--- a/drivers/gpu/nvgpu/common/linux/cde.c
+++ b/drivers/gpu/nvgpu/common/linux/cde.c
@@ -558,7 +558,7 @@ static int gk20a_init_cde_command(struct gk20a_cde_ctx *cde_ctx,
558{ 558{
559 struct nvgpu_os_linux *l = cde_ctx->l; 559 struct nvgpu_os_linux *l = cde_ctx->l;
560 struct gk20a *g = &l->g; 560 struct gk20a *g = &l->g;
561 struct nvgpu_gpfifo **gpfifo, *gpfifo_elem; 561 struct nvgpu_gpfifo_entry **gpfifo, *gpfifo_elem;
562 u32 *num_entries; 562 u32 *num_entries;
563 unsigned int i; 563 unsigned int i;
564 564
@@ -577,7 +577,7 @@ static int gk20a_init_cde_command(struct gk20a_cde_ctx *cde_ctx,
577 577
578 /* allocate gpfifo entries to be pushed */ 578 /* allocate gpfifo entries to be pushed */
579 *gpfifo = nvgpu_kzalloc(g, 579 *gpfifo = nvgpu_kzalloc(g,
580 sizeof(struct nvgpu_gpfifo) * num_elems); 580 sizeof(struct nvgpu_gpfifo_entry) * num_elems);
581 if (!*gpfifo) { 581 if (!*gpfifo) {
582 nvgpu_warn(g, "cde: could not allocate memory for gpfifo entries"); 582 nvgpu_warn(g, "cde: could not allocate memory for gpfifo entries");
583 return -ENOMEM; 583 return -ENOMEM;
@@ -624,11 +624,11 @@ static int gk20a_cde_pack_cmdbufs(struct gk20a_cde_ctx *cde_ctx)
624 struct nvgpu_os_linux *l = cde_ctx->l; 624 struct nvgpu_os_linux *l = cde_ctx->l;
625 struct gk20a *g = &l->g; 625 struct gk20a *g = &l->g;
626 unsigned long init_bytes = cde_ctx->init_cmd_num_entries * 626 unsigned long init_bytes = cde_ctx->init_cmd_num_entries *
627 sizeof(struct nvgpu_gpfifo); 627 sizeof(struct nvgpu_gpfifo_entry);
628 unsigned long conv_bytes = cde_ctx->convert_cmd_num_entries * 628 unsigned long conv_bytes = cde_ctx->convert_cmd_num_entries *
629 sizeof(struct nvgpu_gpfifo); 629 sizeof(struct nvgpu_gpfifo_entry);
630 unsigned long total_bytes = init_bytes + conv_bytes; 630 unsigned long total_bytes = init_bytes + conv_bytes;
631 struct nvgpu_gpfifo *combined_cmd; 631 struct nvgpu_gpfifo_entry *combined_cmd;
632 632
633 /* allocate buffer that has space for both */ 633 /* allocate buffer that has space for both */
634 combined_cmd = nvgpu_kzalloc(g, total_bytes); 634 combined_cmd = nvgpu_kzalloc(g, total_bytes);
@@ -753,7 +753,7 @@ static int gk20a_cde_execute_buffer(struct gk20a_cde_ctx *cde_ctx,
753{ 753{
754 struct nvgpu_os_linux *l = cde_ctx->l; 754 struct nvgpu_os_linux *l = cde_ctx->l;
755 struct gk20a *g = &l->g; 755 struct gk20a *g = &l->g;
756 struct nvgpu_gpfifo *gpfifo = NULL; 756 struct nvgpu_gpfifo_entry *gpfifo = NULL;
757 int num_entries = 0; 757 int num_entries = 0;
758 758
759 /* check command type */ 759 /* check command type */