Lines Matching refs:name
23 #define __MODULE_INFO(tag, name, info) \ argument
24 static const char __UNIQUE_ID(name)[] \
28 #define __MODULE_PARM_TYPE(name, _type) \ argument
29 __MODULE_INFO(parmtype, name##type, #name ":" _type)
70 const char *name; member
126 #define module_param(name, type, perm) \ argument
127 module_param_named(name, name, type, perm)
135 #define module_param_unsafe(name, type, perm) \ argument
136 module_param_named_unsafe(name, name, type, perm)
149 #define module_param_named(name, value, type, perm) \ argument
150 param_check_##type(name, &(value)); \
151 module_param_cb(name, ¶m_ops_##type, &value, perm); \
152 __MODULE_PARM_TYPE(name, #type)
161 #define module_param_named_unsafe(name, value, type, perm) \ argument
162 param_check_##type(name, &(value)); \
163 module_param_cb_unsafe(name, ¶m_ops_##type, &value, perm); \
164 __MODULE_PARM_TYPE(name, #type)
175 #define module_param_cb(name, ops, arg, perm) \ argument
176 __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
178 #define module_param_cb_unsafe(name, ops, arg, perm) \ argument
179 __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)
194 #define core_param_cb(name, ops, arg, perm) \ argument
195 __level_param_cb(name, ops, arg, perm, 1)
207 #define postcore_param_cb(name, ops, arg, perm) \ argument
208 __level_param_cb(name, ops, arg, perm, 2)
220 #define arch_param_cb(name, ops, arg, perm) \ argument
221 __level_param_cb(name, ops, arg, perm, 3)
233 #define subsys_param_cb(name, ops, arg, perm) \ argument
234 __level_param_cb(name, ops, arg, perm, 4)
246 #define fs_param_cb(name, ops, arg, perm) \ argument
247 __level_param_cb(name, ops, arg, perm, 5)
259 #define device_param_cb(name, ops, arg, perm) \ argument
260 __level_param_cb(name, ops, arg, perm, 6)
272 #define late_param_cb(name, ops, arg, perm) \ argument
273 __level_param_cb(name, ops, arg, perm, 7)
287 #define __module_param_call(prefix, name, ops, arg, perm, level, flags) \ argument
289 static const char __param_str_##name[] = prefix #name; \
290 static struct kernel_param __moduleparam_const __param_##name \
293 = { __param_str_##name, THIS_MODULE, ops, \
301 #define module_param_call(name, _set, _get, arg, perm) \ argument
302 static const struct kernel_param_ops __param_ops_##name = \
305 name, &__param_ops_##name, arg, perm, -1, 0)
332 #define core_param(name, var, type, perm) \ argument
333 param_check_##type(name, &(var)); \
334 __module_param_call("", name, ¶m_ops_##type, &var, perm, -1, 0)
343 #define core_param_unsafe(name, var, type, perm) \ argument
344 param_check_##type(name, &(var)); \
345 __module_param_call("", name, ¶m_ops_##type, &var, perm, \
360 #define module_param_string(name, string, len, perm) \ argument
361 static const struct kparam_string __param_string_##name \
363 __module_param_call(MODULE_PARAM_PREFIX, name, \
365 .str = &__param_string_##name, perm, -1, 0);\
366 __MODULE_PARM_TYPE(name, "string")
391 extern char *parse_args(const char *name,
412 #define __param_check(name, p, type) \ argument
413 static inline type __always_unused *__check_##name(void) { return(p); }
418 #define param_check_byte(name, p) __param_check(name, p, unsigned char) argument
423 #define param_check_short(name, p) __param_check(name, p, short) argument
428 #define param_check_ushort(name, p) __param_check(name, p, unsigned short) argument
433 #define param_check_int(name, p) __param_check(name, p, int) argument
440 #define param_check_uint(name, p) __param_check(name, p, unsigned int) argument
445 #define param_check_long(name, p) __param_check(name, p, long) argument
450 #define param_check_ulong(name, p) __param_check(name, p, unsigned long) argument
455 #define param_check_ullong(name, p) __param_check(name, p, unsigned long long) argument
460 #define param_check_hexint(name, p) param_check_uint(name, p) argument
466 #define param_check_charp(name, p) __param_check(name, p, char *) argument
472 #define param_check_bool(name, p) __param_check(name, p, bool) argument
483 #define param_check_invbool(name, p) __param_check(name, p, bool) argument
504 #define module_param_array(name, type, nump, perm) \ argument
505 module_param_array_named(name, name, type, nump, perm)
518 #define module_param_array_named(name, array, type, nump, perm) \ argument
519 param_check_##type(name, &(array)[0]); \
520 static const struct kparam_array __param_arr_##name \
524 __module_param_call(MODULE_PARAM_PREFIX, name, \
526 .arr = &__param_arr_##name, \
528 __MODULE_PARM_TYPE(name, "array of " #type)
552 #define module_param_hw_named(name, value, type, hwtype, perm) \ argument
553 param_check_##type(name, &(value)); \
554 __module_param_call(MODULE_PARAM_PREFIX, name, \
558 __MODULE_PARM_TYPE(name, #type)
560 #define module_param_hw(name, type, hwtype, perm) \ argument
561 module_param_hw_named(name, name, type, hwtype, perm)
577 #define module_param_hw_array(name, type, hwtype, nump, perm) \ argument
578 param_check_##type(name, &(name)[0]); \
579 static const struct kparam_array __param_arr_##name \
580 = { .max = ARRAY_SIZE(name), .num = nump, \
582 .elemsize = sizeof(name[0]), .elem = name }; \
583 __module_param_call(MODULE_PARAM_PREFIX, name, \
585 .arr = &__param_arr_##name, \
588 __MODULE_PARM_TYPE(name, "array of " #type)