| .. | .. |
|---|
| 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 |
|---|
| .. | .. |
|---|
| 43 | 43 | } |
|---|
| 44 | 44 | } |
|---|
| 45 | 45 | |
|---|
| 46 | | -int kbase_mem_pool_group_init( |
|---|
| 47 | | - struct kbase_mem_pool_group *const mem_pools, |
|---|
| 48 | | - struct kbase_device *const kbdev, |
|---|
| 49 | | - const struct kbase_mem_pool_group_config *const configs, |
|---|
| 50 | | - struct kbase_mem_pool_group *next_pools) |
|---|
| 46 | +int kbase_mem_pool_group_init(struct kbase_mem_pool_group *const mem_pools, |
|---|
| 47 | + struct kbase_device *const kbdev, |
|---|
| 48 | + const struct kbase_mem_pool_group_config *const configs, |
|---|
| 49 | + struct kbase_mem_pool_group *next_pools) |
|---|
| 51 | 50 | { |
|---|
| 52 | 51 | int gid, err = 0; |
|---|
| 53 | 52 | |
|---|
| 54 | 53 | for (gid = 0; gid < MEMORY_GROUP_MANAGER_NR_GROUPS; ++gid) { |
|---|
| 55 | | - err = kbase_mem_pool_init(&mem_pools->small[gid], |
|---|
| 56 | | - &configs->small[gid], |
|---|
| 57 | | - KBASE_MEM_POOL_4KB_PAGE_TABLE_ORDER, |
|---|
| 58 | | - gid, |
|---|
| 59 | | - kbdev, |
|---|
| 60 | | - next_pools ? &next_pools->small[gid] : NULL); |
|---|
| 54 | + err = kbase_mem_pool_init(&mem_pools->small[gid], &configs->small[gid], |
|---|
| 55 | + KBASE_MEM_POOL_4KB_PAGE_TABLE_ORDER, gid, kbdev, |
|---|
| 56 | + next_pools ? &next_pools->small[gid] : NULL); |
|---|
| 61 | 57 | |
|---|
| 62 | 58 | if (!err) { |
|---|
| 63 | | - err = kbase_mem_pool_init(&mem_pools->large[gid], |
|---|
| 64 | | - &configs->large[gid], |
|---|
| 65 | | - KBASE_MEM_POOL_2MB_PAGE_TABLE_ORDER, |
|---|
| 66 | | - gid, |
|---|
| 67 | | - kbdev, |
|---|
| 68 | | - next_pools ? &next_pools->large[gid] : NULL); |
|---|
| 59 | + err = kbase_mem_pool_init(&mem_pools->large[gid], &configs->large[gid], |
|---|
| 60 | + KBASE_MEM_POOL_2MB_PAGE_TABLE_ORDER, gid, kbdev, |
|---|
| 61 | + next_pools ? &next_pools->large[gid] : NULL); |
|---|
| 69 | 62 | if (err) |
|---|
| 70 | 63 | kbase_mem_pool_term(&mem_pools->small[gid]); |
|---|
| 71 | 64 | } |
|---|