Lines Matching refs:v

118             KernelCmdlineParameter::Arg(v) => v.name,  in name()
119 KernelCmdlineParameter::KV(v) => v.name, in name()
120 KernelCmdlineParameter::EarlyKV(v) => v.name, in name()
127 KernelCmdlineParameter::Arg(v) => Some(v.value()), in value_bool()
136 KernelCmdlineParameter::KV(v) => v in value_str()
139 .and_then(|v| str::from_utf8(v.as_bytes()).ok()), in value_str()
140 KernelCmdlineParameter::EarlyKV(v) => v.value_str(), in value_str()
264 Some(v) => v, in early_init()
290 if let KernelCmdlineParameter::EarlyKV(v) = x { in early_init()
291 if !v.initialized { in early_init()
292 let v = unsafe { v.force_mut() }; in early_init() localVariable
293 let len = v.default.len().min(KernelCmdlineEarlyKV::VALUE_MAX_LEN); in early_init()
294 v.value[..len].copy_from_slice(v.default.as_bytes()); in early_init()
295 v.index = len; in early_init()
296 v.initialized = true; in early_init()
325 Some(v) => v, in init()
388 if let KernelCmdlineParameter::Arg(v) = x { in default_initialize()
389 if !v.initialized { in default_initialize()
390 v.value = v.default; in default_initialize()
391 v.initialized = true; in default_initialize()
399 if let KernelCmdlineParameter::KV(v) = x { in default_initialize()
400 if !v.initialized { in default_initialize()
401 v.value = Some(CString::new(v.default).unwrap()); in default_initialize()
402 v.initialized = true; in default_initialize()
438 let value = value.map(|v| v.trim()); in split_arg()
445 let v1 = iter.next().map(|v| v.trim()); in split_arg()
446 let v2 = iter.next().map(|v| v.trim()); in split_arg()
447 let v3 = iter.next().map(|v| v.trim()); in split_arg()
448 let v = [v1, v2, v3]; in split_arg() localVariable
451 v.iter().for_each(|x| { in split_arg()
458 1 => (None, v[0].unwrap()), in split_arg()
459 2 => (Some(v[0].unwrap()), v[1].unwrap()), in split_arg()