.. | .. |
---|
1 | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
---|
2 | 2 | /* |
---|
3 | 3 | * |
---|
4 | | - * (C) COPYRIGHT 2014, 2016, 2020-2021 ARM Limited. All rights reserved. |
---|
| 4 | + * (C) COPYRIGHT 2014, 2016, 2020-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 |
---|
.. | .. |
---|
20 | 20 | */ |
---|
21 | 21 | |
---|
22 | 22 | /** |
---|
23 | | - * Header file for register access history support via debugfs |
---|
| 23 | + * DOC: Header file for register access history support via debugfs |
---|
24 | 24 | * |
---|
25 | 25 | * This interface is made available via /sys/kernel/debug/mali#/regs_history*. |
---|
26 | 26 | * |
---|
.. | .. |
---|
44 | 44 | * @h: The register history to initialize |
---|
45 | 45 | * @n: The number of register accesses that the buffer could hold |
---|
46 | 46 | * |
---|
47 | | - * @return 0 if successfully initialized, failure otherwise |
---|
| 47 | + * Return: 0 if successfully initialized, failure otherwise |
---|
48 | 48 | */ |
---|
49 | 49 | int kbase_io_history_init(struct kbase_io_history *h, u16 n); |
---|
50 | 50 | |
---|
.. | .. |
---|
69 | 69 | */ |
---|
70 | 70 | void kbasep_regs_history_debugfs_init(struct kbase_device *kbdev); |
---|
71 | 71 | |
---|
72 | | -#else /* defined(CONFIG_DEBUG_FS) && !IS_ENABLED(CONFIG_MALI_BIFROST_NO_MALI) */ |
---|
73 | | -static inline int kbase_io_history_init(struct kbase_io_history *h, u16 n) |
---|
74 | | -{ |
---|
75 | | - return 0; |
---|
76 | | -} |
---|
| 72 | +#else /* !defined(CONFIG_DEBUG_FS) || IS_ENABLED(CONFIG_MALI_BIFROST_NO_MALI) */ |
---|
77 | 73 | |
---|
78 | | -static inline void kbase_io_history_term(struct kbase_io_history *h) |
---|
79 | | -{ |
---|
80 | | -} |
---|
| 74 | +#define kbase_io_history_init(...) (0) |
---|
81 | 75 | |
---|
82 | | -static inline void kbase_io_history_dump(struct kbase_device *kbdev) |
---|
83 | | -{ |
---|
84 | | -} |
---|
| 76 | +#define kbase_io_history_term CSTD_NOP |
---|
85 | 77 | |
---|
86 | | -static inline void kbasep_regs_history_debugfs_init(struct kbase_device *kbdev) |
---|
87 | | -{ |
---|
88 | | -} |
---|
| 78 | +#define kbase_io_history_dump CSTD_NOP |
---|
| 79 | + |
---|
| 80 | +#define kbasep_regs_history_debugfs_init CSTD_NOP |
---|
89 | 81 | |
---|
90 | 82 | #endif /* defined(CONFIG_DEBUG_FS) && !IS_ENABLED(CONFIG_MALI_BIFROST_NO_MALI) */ |
---|
91 | 83 | |
---|