.. | .. |
---|
1 | 1 | // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note |
---|
2 | 2 | /* |
---|
3 | 3 | * |
---|
4 | | - * (C) COPYRIGHT 2014, 2016, 2019-2021 ARM Limited. All rights reserved. |
---|
| 4 | + * (C) COPYRIGHT 2014, 2016, 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 |
---|
.. | .. |
---|
36 | 36 | * If resizing fails for any reason (e.g., could not allocate memory, invalid |
---|
37 | 37 | * buffer size) then the original buffer will be kept intact. |
---|
38 | 38 | * |
---|
39 | | - * @return 0 if the buffer was resized, failure otherwise |
---|
| 39 | + * Return: 0 if the buffer was resized, failure otherwise |
---|
40 | 40 | */ |
---|
41 | 41 | static int kbase_io_history_resize(struct kbase_io_history *h, u16 new_size) |
---|
42 | 42 | { |
---|
.. | .. |
---|
158 | 158 | return kbase_io_history_resize(h, (u16)val); |
---|
159 | 159 | } |
---|
160 | 160 | |
---|
161 | | - |
---|
162 | | -DEFINE_SIMPLE_ATTRIBUTE(regs_history_size_fops, |
---|
163 | | - regs_history_size_get, |
---|
164 | | - regs_history_size_set, |
---|
165 | | - "%llu\n"); |
---|
166 | | - |
---|
| 161 | +DEFINE_DEBUGFS_ATTRIBUTE(regs_history_size_fops, regs_history_size_get, regs_history_size_set, |
---|
| 162 | + "%llu\n"); |
---|
167 | 163 | |
---|
168 | 164 | /** |
---|
169 | 165 | * regs_history_show - show callback for the register access history file. |
---|
.. | .. |
---|
173 | 169 | * |
---|
174 | 170 | * This function is called to dump all recent accesses to the GPU registers. |
---|
175 | 171 | * |
---|
176 | | - * @return 0 if successfully prints data in debugfs entry file, failure |
---|
177 | | - * otherwise |
---|
| 172 | + * Return: 0 if successfully prints data in debugfs entry file, failure otherwise |
---|
178 | 173 | */ |
---|
179 | 174 | static int regs_history_show(struct seq_file *sfile, void *data) |
---|
180 | 175 | { |
---|
.. | .. |
---|
214 | 209 | * @in: &struct inode pointer |
---|
215 | 210 | * @file: &struct file pointer |
---|
216 | 211 | * |
---|
217 | | - * @return file descriptor |
---|
| 212 | + * Return: file descriptor |
---|
218 | 213 | */ |
---|
219 | 214 | static int regs_history_open(struct inode *in, struct file *file) |
---|
220 | 215 | { |
---|
.. | .. |
---|
231 | 226 | |
---|
232 | 227 | void kbasep_regs_history_debugfs_init(struct kbase_device *kbdev) |
---|
233 | 228 | { |
---|
234 | | - debugfs_create_bool("regs_history_enabled", S_IRUGO | S_IWUSR, |
---|
| 229 | + debugfs_create_bool("regs_history_enabled", 0644, |
---|
235 | 230 | kbdev->mali_debugfs_directory, |
---|
236 | 231 | &kbdev->io_history.enabled); |
---|
237 | | - debugfs_create_file("regs_history_size", S_IRUGO | S_IWUSR, |
---|
| 232 | + debugfs_create_file("regs_history_size", 0644, |
---|
238 | 233 | kbdev->mali_debugfs_directory, |
---|
239 | 234 | &kbdev->io_history, ®s_history_size_fops); |
---|
240 | | - debugfs_create_file("regs_history", S_IRUGO, |
---|
| 235 | + debugfs_create_file("regs_history", 0444, |
---|
241 | 236 | kbdev->mali_debugfs_directory, &kbdev->io_history, |
---|
242 | 237 | ®s_history_fops); |
---|
243 | 238 | } |
---|