Lines Matching refs:name
20 #define __MODULE_INFO(tag, name, info) \ argument
21 static const char __UNIQUE_ID(name)[] \
26 #define __MODULE_INFO(tag, name, info) \ argument
27 struct __UNIQUE_ID(name) {}
29 #define __MODULE_PARM_TYPE(name, _type) \ argument
30 __MODULE_INFO(parmtype, name##type, #name ":" _type)
69 const char *name; member
125 #define module_param(name, type, perm) \ argument
126 module_param_named(name, name, type, perm)
131 #define module_param_unsafe(name, type, perm) \ argument
132 module_param_named_unsafe(name, name, type, perm)
145 #define module_param_named(name, value, type, perm) \ argument
146 param_check_##type(name, &(value)); \
147 module_param_cb(name, ¶m_ops_##type, &value, perm); \
148 __MODULE_PARM_TYPE(name, #type)
153 #define module_param_named_unsafe(name, value, type, perm) \ argument
154 param_check_##type(name, &(value)); \
155 module_param_cb_unsafe(name, ¶m_ops_##type, &value, perm); \
156 __MODULE_PARM_TYPE(name, #type)
166 #define module_param_cb(name, ops, arg, perm) \ argument
167 __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
169 #define module_param_cb_unsafe(name, ops, arg, perm) \ argument
170 __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, \
182 #define __level_param_cb(name, ops, arg, perm, level) \ argument
183 __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, level, 0)
185 #define core_param_cb(name, ops, arg, perm) \ argument
186 __level_param_cb(name, ops, arg, perm, 1)
188 #define postcore_param_cb(name, ops, arg, perm) \ argument
189 __level_param_cb(name, ops, arg, perm, 2)
191 #define arch_param_cb(name, ops, arg, perm) \ argument
192 __level_param_cb(name, ops, arg, perm, 3)
194 #define subsys_param_cb(name, ops, arg, perm) \ argument
195 __level_param_cb(name, ops, arg, perm, 4)
197 #define fs_param_cb(name, ops, arg, perm) \ argument
198 __level_param_cb(name, ops, arg, perm, 5)
200 #define device_param_cb(name, ops, arg, perm) \ argument
201 __level_param_cb(name, ops, arg, perm, 6)
203 #define late_param_cb(name, ops, arg, perm) \ argument
204 __level_param_cb(name, ops, arg, perm, 7)
218 #define __module_param_call(prefix, name, ops, arg, perm, level, flags) \ argument
220 static const char __param_str_##name[] = prefix #name; \
221 static struct kernel_param __moduleparam_const __param_##name \
224 = { __param_str_##name, THIS_MODULE, ops, \
228 #define module_param_call(name, set, get, arg, perm) \ argument
229 static const struct kernel_param_ops __param_ops_##name = \
232 name, &__param_ops_##name, arg, \
267 #define core_param(name, var, type, perm) \ argument
268 param_check_##type(name, &(var)); \
269 __module_param_call("", name, ¶m_ops_##type, &var, perm, -1, 0)
274 #define core_param_unsafe(name, var, type, perm) \ argument
275 param_check_##type(name, &(var)); \
276 __module_param_call("", name, ¶m_ops_##type, &var, perm, \
291 #define module_param_string(name, string, len, perm) \ argument
292 static const struct kparam_string __param_string_##name \
294 __module_param_call(MODULE_PARAM_PREFIX, name, \
296 .str = &__param_string_##name, perm, -1, 0);\
297 __MODULE_PARM_TYPE(name, "string")
320 extern char *parse_args(const char *name,
343 #define __param_check(name, p, type) \ argument
344 static inline type __always_unused *__check_##name(void) { return(p); }
349 #define param_check_byte(name, p) __param_check(name, p, unsigned char) argument
354 #define param_check_short(name, p) __param_check(name, p, short) argument
359 #define param_check_ushort(name, p) __param_check(name, p, unsigned short) argument
364 #define param_check_int(name, p) __param_check(name, p, int) argument
369 #define param_check_uint(name, p) __param_check(name, p, unsigned int) argument
374 #define param_check_long(name, p) __param_check(name, p, long) argument
379 #define param_check_ulong(name, p) __param_check(name, p, unsigned long) argument
384 #define param_check_ullong(name, p) __param_check(name, p, unsigned long long) argument
390 #define param_check_charp(name, p) __param_check(name, p, char *) argument
396 #define param_check_bool(name, p) __param_check(name, p, bool) argument
407 #define param_check_invbool(name, p) __param_check(name, p, bool) argument
428 #define module_param_array(name, type, nump, perm) \ argument
429 module_param_array_named(name, name, type, nump, perm)
442 #define module_param_array_named(name, array, type, nump, perm) \ argument
443 param_check_##type(name, &(array)[0]); \
444 static const struct kparam_array __param_arr_##name \
448 __module_param_call(MODULE_PARAM_PREFIX, name, \
450 .arr = &__param_arr_##name, \
452 __MODULE_PARM_TYPE(name, "array of " #type)