Lines Matching +full:c +full:- +full:define +full:- +full:name
1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright (C) 2023 Intel Corporation
4 * Copyright (C) 2012-2014 Intel Corporation
5 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH
7 #define MVM_DEBUGFS_READ_FILE_OPS(name) \ argument
8 static const struct file_operations iwl_dbgfs_##name##_ops = { \
9 .read = iwl_dbgfs_##name##_read, \
14 #define MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \ argument
15 static ssize_t _iwl_dbgfs_##name##_write(struct file *file, \
19 argtype *arg = file->private_data; \
21 size_t buf_size = min(count, sizeof(buf) - 1); \
24 return -EFAULT; \
26 return iwl_dbgfs_##name##_write(arg, buf, buf_size, ppos); \
29 #define _MVM_DEBUGFS_READ_WRITE_FILE_OPS(name, buflen, argtype) \ argument
30 MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \
31 static const struct file_operations iwl_dbgfs_##name##_ops = { \
32 .write = _iwl_dbgfs_##name##_write, \
33 .read = iwl_dbgfs_##name##_read, \
38 #define _MVM_DEBUGFS_WRITE_FILE_OPS(name, buflen, argtype) \ argument
39 MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \
40 static const struct file_operations iwl_dbgfs_##name##_ops = { \
41 .write = _iwl_dbgfs_##name##_write, \