.. | .. |
---|
1 | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
---|
2 | 2 | /* |
---|
3 | 3 | * |
---|
4 | | - * (C) COPYRIGHT 2019-2021 ARM Limited. All rights reserved. |
---|
| 4 | + * (C) COPYRIGHT 2019-2022 ARM Limited. All rights reserved. |
---|
5 | 5 | * |
---|
6 | 6 | * This program is free software and is provided to you under the terms of the |
---|
7 | 7 | * GNU General Public License version 2 as published by the Free Software |
---|
.. | .. |
---|
46 | 46 | * @phys: Array of physical addresses to be filled in by the protected |
---|
47 | 47 | * memory allocator. |
---|
48 | 48 | * @num_pages: Number of pages requested to be allocated. |
---|
| 49 | + * @is_small_page: Flag used to select the order of protected memory page. |
---|
49 | 50 | * |
---|
50 | 51 | * Return: Pointer to an array of protected memory allocations on success, |
---|
51 | 52 | * or NULL on failure. |
---|
.. | .. |
---|
54 | 55 | kbase_csf_protected_memory_alloc( |
---|
55 | 56 | struct kbase_device *const kbdev, |
---|
56 | 57 | struct tagged_addr *phys, |
---|
57 | | - size_t num_pages); |
---|
| 58 | + size_t num_pages, |
---|
| 59 | + bool is_small_page); |
---|
58 | 60 | |
---|
59 | 61 | /** |
---|
60 | 62 | * kbase_csf_protected_memory_free - Free the allocated |
---|
.. | .. |
---|
63 | 65 | * @kbdev: Device pointer. |
---|
64 | 66 | * @pma: Array of pointer to protected memory allocations. |
---|
65 | 67 | * @num_pages: Number of pages to be freed. |
---|
| 68 | + * @is_small_page: Flag used to select the order of protected memory page. |
---|
66 | 69 | */ |
---|
67 | 70 | void kbase_csf_protected_memory_free( |
---|
68 | 71 | struct kbase_device *const kbdev, |
---|
69 | 72 | struct protected_memory_allocation **pma, |
---|
70 | | - size_t num_pages); |
---|
| 73 | + size_t num_pages, |
---|
| 74 | + bool is_small_page); |
---|
71 | 75 | #endif |
---|