Lines Matching refs:val
50 char *val, in parse_one() argument
53 int (*handle_unknown)(char *param, char *val)) in parse_one()
62 return params[i].set(val, ¶ms[i]); in parse_one()
68 return handle_unknown(param, val); in parse_one()
77 static char *next_arg(char *args, char **param, char **val) in next_arg() argument
102 *val = NULL; in next_arg()
105 *val = args + equals + 1; in next_arg()
108 if (**val == '"') { in next_arg()
109 (*val)++; in next_arg()
134 int (*unknown)(char *param, char *val)) in parse_args() argument
136 char *param, *val; in parse_args() local
148 args = next_arg(args, ¶m, &val); in parse_args()
150 ret = parse_one(param, val, params, num, unknown); in parse_args()
163 name, val ?: "", param); in parse_args()
170 name, val ?: "", param); in parse_args()
181 int param_set_##name(const char *val, struct kernel_param *kp) \
186 if (!val) return -EINVAL; \
187 ret = strtolfn(val, 0, &l); \
206 int param_set_charp(const char *val, struct kernel_param *kp) in param_set_charp() argument
208 if (!val) { in param_set_charp()
214 if (strlen(val) > 1024) { in param_set_charp()
220 *(char **)kp->arg = (char *)val; in param_set_charp()
229 int param_set_bool(const char *val, struct kernel_param *kp) in param_set_bool() argument
232 if (!val) val = "1"; in param_set_bool()
235 switch (val[0]) { in param_set_bool()
252 int param_set_invbool(const char *val, struct kernel_param *kp) in param_set_invbool() argument
258 ret = param_set_bool(val, &dummy); in param_set_invbool()
271 const char *val, in param_array() argument
286 if (!val) { in param_array()
301 len = strcspn(val, ","); in param_array()
304 save = val[len]; in param_array()
305 ((char *)val)[len] = '\0'; in param_array()
306 ret = set(val, &kp); in param_array()
311 val += len+1; in param_array()
323 int param_array_set(const char *val, struct kernel_param *kp) in param_array_set() argument
328 return param_array(kp->name, val, 1, arr->max, arr->elem, in param_array_set()
352 int param_set_copystring(const char *val, struct kernel_param *kp) in param_set_copystring() argument
356 if (!val) { in param_set_copystring()
360 if (strlen(val)+1 > kps->maxlen) { in param_set_copystring()
365 strcpy(kps->string, val); in param_set_copystring()