Lines Matching refs:name

21 #define __MODULE_INFO(tag, name, info)					  \  argument
22 static const char __UNIQUE_ID(name)[] \
27 #define __MODULE_INFO(tag, name, info) \ argument
28 struct __UNIQUE_ID(name) {}
30 #define __MODULE_PARM_TYPE(name, _type) \ argument
31 __MODULE_INFO(parmtype, name##type, #name ":" _type)
72 const char *name; member
128 #define module_param(name, type, perm) \ argument
129 module_param_named(name, name, type, perm)
134 #define module_param_unsafe(name, type, perm) \ argument
135 module_param_named_unsafe(name, name, type, perm)
148 #define module_param_named(name, value, type, perm) \ argument
149 param_check_##type(name, &(value)); \
150 module_param_cb(name, &param_ops_##type, &value, perm); \
151 __MODULE_PARM_TYPE(name, #type)
156 #define module_param_named_unsafe(name, value, type, perm) \ argument
157 param_check_##type(name, &(value)); \
158 module_param_cb_unsafe(name, &param_ops_##type, &value, perm); \
159 __MODULE_PARM_TYPE(name, #type)
169 #define module_param_cb(name, ops, arg, perm) \ argument
170 __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
172 #define module_param_cb_unsafe(name, ops, arg, perm) \ argument
173 __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, \
185 #define __level_param_cb(name, ops, arg, perm, level) \ argument
186 __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, level, 0)
188 #define core_param_cb(name, ops, arg, perm) \ argument
189 __level_param_cb(name, ops, arg, perm, 1)
191 #define postcore_param_cb(name, ops, arg, perm) \ argument
192 __level_param_cb(name, ops, arg, perm, 2)
194 #define arch_param_cb(name, ops, arg, perm) \ argument
195 __level_param_cb(name, ops, arg, perm, 3)
197 #define subsys_param_cb(name, ops, arg, perm) \ argument
198 __level_param_cb(name, ops, arg, perm, 4)
200 #define fs_param_cb(name, ops, arg, perm) \ argument
201 __level_param_cb(name, ops, arg, perm, 5)
203 #define device_param_cb(name, ops, arg, perm) \ argument
204 __level_param_cb(name, ops, arg, perm, 6)
206 #define late_param_cb(name, ops, arg, perm) \ argument
207 __level_param_cb(name, ops, arg, perm, 7)
221 #define __module_param_call(prefix, name, ops, arg, perm, level, flags) \ argument
223 static const char __param_str_##name[] = prefix #name; \
224 static struct kernel_param __moduleparam_const __param_##name \
227 = { __param_str_##name, THIS_MODULE, ops, \
231 #define module_param_call(name, _set, _get, arg, perm) \ argument
232 static const struct kernel_param_ops __param_ops_##name = \
235 name, &__param_ops_##name, arg, perm, -1, 0)
262 #define core_param(name, var, type, perm) \ argument
263 param_check_##type(name, &(var)); \
264 __module_param_call("", name, &param_ops_##type, &var, perm, -1, 0)
269 #define core_param_unsafe(name, var, type, perm) \ argument
270 param_check_##type(name, &(var)); \
271 __module_param_call("", name, &param_ops_##type, &var, perm, \
286 #define module_param_string(name, string, len, perm) \ argument
287 static const struct kparam_string __param_string_##name \
289 __module_param_call(MODULE_PARAM_PREFIX, name, \
291 .str = &__param_string_##name, perm, -1, 0);\
292 __MODULE_PARM_TYPE(name, "string")
315 extern char *parse_args(const char *name,
338 #define __param_check(name, p, type) \ argument
339 static inline type __always_unused *__check_##name(void) { return(p); }
344 #define param_check_byte(name, p) __param_check(name, p, unsigned char) argument
349 #define param_check_short(name, p) __param_check(name, p, short) argument
354 #define param_check_ushort(name, p) __param_check(name, p, unsigned short) argument
359 #define param_check_int(name, p) __param_check(name, p, int) argument
364 #define param_check_uint(name, p) __param_check(name, p, unsigned int) argument
369 #define param_check_long(name, p) __param_check(name, p, long) argument
374 #define param_check_ulong(name, p) __param_check(name, p, unsigned long) argument
379 #define param_check_ullong(name, p) __param_check(name, p, unsigned long long) argument
385 #define param_check_charp(name, p) __param_check(name, p, char *) argument
391 #define param_check_bool(name, p) __param_check(name, p, bool) argument
402 #define param_check_invbool(name, p) __param_check(name, p, bool) argument
423 #define module_param_array(name, type, nump, perm) \ argument
424 module_param_array_named(name, name, type, nump, perm)
437 #define module_param_array_named(name, array, type, nump, perm) \ argument
438 param_check_##type(name, &(array)[0]); \
439 static const struct kparam_array __param_arr_##name \
443 __module_param_call(MODULE_PARAM_PREFIX, name, \
445 .arr = &__param_arr_##name, \
447 __MODULE_PARM_TYPE(name, "array of " #type)
471 #define module_param_hw_named(name, value, type, hwtype, perm) \ argument
472 param_check_##type(name, &(value)); \
473 __module_param_call(MODULE_PARAM_PREFIX, name, \
477 __MODULE_PARM_TYPE(name, #type)
479 #define module_param_hw(name, type, hwtype, perm) \ argument
480 module_param_hw_named(name, name, type, hwtype, perm)
496 #define module_param_hw_array(name, type, hwtype, nump, perm) \ argument
497 param_check_##type(name, &(name)[0]); \
498 static const struct kparam_array __param_arr_##name \
499 = { .max = ARRAY_SIZE(name), .num = nump, \
501 .elemsize = sizeof(name[0]), .elem = name }; \
502 __module_param_call(MODULE_PARAM_PREFIX, name, \
504 .arr = &__param_arr_##name, \
507 __MODULE_PARM_TYPE(name, "array of " #type)