diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ce2_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/ce2_gk20a.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c index 25d6462d..1ed90b14 100644 --- a/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/ce2_gk20a.c | |||
@@ -424,7 +424,7 @@ void gk20a_ce_suspend(struct gk20a *g) | |||
424 | } | 424 | } |
425 | 425 | ||
426 | /* CE app utility functions */ | 426 | /* CE app utility functions */ |
427 | u32 gk20a_ce_create_context_with_cb(struct device *dev, | 427 | u32 gk20a_ce_create_context_with_cb(struct gk20a *g, |
428 | int runlist_id, | 428 | int runlist_id, |
429 | int priority, | 429 | int priority, |
430 | int timeslice, | 430 | int timeslice, |
@@ -432,7 +432,6 @@ u32 gk20a_ce_create_context_with_cb(struct device *dev, | |||
432 | ce_event_callback user_event_callback) | 432 | ce_event_callback user_event_callback) |
433 | { | 433 | { |
434 | struct gk20a_gpu_ctx *ce_ctx; | 434 | struct gk20a_gpu_ctx *ce_ctx; |
435 | struct gk20a *g = gk20a_from_dev(dev); | ||
436 | struct gk20a_ce_app *ce_app = &g->ce_app; | 435 | struct gk20a_ce_app *ce_app = &g->ce_app; |
437 | u32 ctx_id = ~0; | 436 | u32 ctx_id = ~0; |
438 | int err = 0; | 437 | int err = 0; |
@@ -548,7 +547,7 @@ end: | |||
548 | } | 547 | } |
549 | EXPORT_SYMBOL(gk20a_ce_create_context_with_cb); | 548 | EXPORT_SYMBOL(gk20a_ce_create_context_with_cb); |
550 | 549 | ||
551 | int gk20a_ce_execute_ops(struct device *dev, | 550 | int gk20a_ce_execute_ops(struct gk20a *g, |
552 | u32 ce_ctx_id, | 551 | u32 ce_ctx_id, |
553 | u64 src_buf, | 552 | u64 src_buf, |
554 | u64 dst_buf, | 553 | u64 dst_buf, |
@@ -561,7 +560,6 @@ int gk20a_ce_execute_ops(struct device *dev, | |||
561 | struct gk20a_fence **gk20a_fence_out) | 560 | struct gk20a_fence **gk20a_fence_out) |
562 | { | 561 | { |
563 | int ret = -EPERM; | 562 | int ret = -EPERM; |
564 | struct gk20a *g = gk20a_from_dev(dev); | ||
565 | struct gk20a_ce_app *ce_app = &g->ce_app; | 563 | struct gk20a_ce_app *ce_app = &g->ce_app; |
566 | struct gk20a_gpu_ctx *ce_ctx, *ce_ctx_save; | 564 | struct gk20a_gpu_ctx *ce_ctx, *ce_ctx_save; |
567 | bool found = false; | 565 | bool found = false; |
@@ -700,10 +698,9 @@ end: | |||
700 | } | 698 | } |
701 | EXPORT_SYMBOL(gk20a_ce_execute_ops); | 699 | EXPORT_SYMBOL(gk20a_ce_execute_ops); |
702 | 700 | ||
703 | void gk20a_ce_delete_context(struct device *dev, | 701 | void gk20a_ce_delete_context(struct gk20a *g, |
704 | u32 ce_ctx_id) | 702 | u32 ce_ctx_id) |
705 | { | 703 | { |
706 | struct gk20a *g = gk20a_from_dev(dev); | ||
707 | gk20a_ce_delete_context_priv(g, ce_ctx_id); | 704 | gk20a_ce_delete_context_priv(g, ce_ctx_id); |
708 | } | 705 | } |
709 | 706 | ||