summaryrefslogtreecommitdiff
path: root/mali_kbase/csf/mali_kbase_csf_heap_context_alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'mali_kbase/csf/mali_kbase_csf_heap_context_alloc.h')
-rw-r--r--mali_kbase/csf/mali_kbase_csf_heap_context_alloc.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/mali_kbase/csf/mali_kbase_csf_heap_context_alloc.h b/mali_kbase/csf/mali_kbase_csf_heap_context_alloc.h
index 9aab7ab..27f58b8 100644
--- a/mali_kbase/csf/mali_kbase_csf_heap_context_alloc.h
+++ b/mali_kbase/csf/mali_kbase_csf_heap_context_alloc.h
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
*
- * (C) COPYRIGHT 2019-2021 ARM Limited. All rights reserved.
+ * (C) COPYRIGHT 2019-2023 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
@@ -30,19 +30,19 @@
* @ctx_alloc: Pointer to the heap context allocator to initialize.
* @kctx: Pointer to the kbase context.
*
+ * This function must be called only when a kbase context is instantiated.
+ *
* Return: 0 if successful or a negative error code on failure.
*/
-int kbase_csf_heap_context_allocator_init(
- struct kbase_csf_heap_context_allocator *const ctx_alloc,
- struct kbase_context *const kctx);
+int kbase_csf_heap_context_allocator_init(struct kbase_csf_heap_context_allocator *const ctx_alloc,
+ struct kbase_context *const kctx);
/**
* kbase_csf_heap_context_allocator_term - Terminate an allocator for heap
* contexts
* @ctx_alloc: Pointer to the heap context allocator to terminate.
*/
-void kbase_csf_heap_context_allocator_term(
- struct kbase_csf_heap_context_allocator *const ctx_alloc);
+void kbase_csf_heap_context_allocator_term(struct kbase_csf_heap_context_allocator *const ctx_alloc);
/**
* kbase_csf_heap_context_allocator_alloc - Allocate a heap context structure
@@ -54,8 +54,7 @@ void kbase_csf_heap_context_allocator_term(
*
* Return: GPU virtual address of the allocated heap context or 0 on failure.
*/
-u64 kbase_csf_heap_context_allocator_alloc(
- struct kbase_csf_heap_context_allocator *const ctx_alloc);
+u64 kbase_csf_heap_context_allocator_alloc(struct kbase_csf_heap_context_allocator *const ctx_alloc);
/**
* kbase_csf_heap_context_allocator_free - Free a heap context structure
@@ -68,8 +67,7 @@ u64 kbase_csf_heap_context_allocator_alloc(
* contexts for possible reuse by a future call to
* @kbase_csf_heap_context_allocator_alloc.
*/
-void kbase_csf_heap_context_allocator_free(
- struct kbase_csf_heap_context_allocator *const ctx_alloc,
- u64 const heap_gpu_va);
+void kbase_csf_heap_context_allocator_free(struct kbase_csf_heap_context_allocator *const ctx_alloc,
+ u64 const heap_gpu_va);
#endif /* _KBASE_CSF_HEAP_CONTEXT_ALLOC_H_ */