Lines Matching refs:value
77 value: [0; KernelCmdlineEarlyKV::VALUE_MAX_LEN], in build_early_kv()
91 value: self.default_bool, in build()
98 value: None, in build()
127 KernelCmdlineParameter::Arg(v) => Some(v.value()), in value_bool()
137 .value in value_str()
171 value: bool, field
179 pub fn value(&self) -> bool { in value() method
180 volatile_read!(self.value) in value()
186 value: Option<CString>, field
194 value: [u8; Self::VALUE_MAX_LEN], field
204 pub fn value(&self) -> &[u8] { in value() method
205 &self.value[..self.index] in value()
209 core::str::from_utf8(&self.value[..self.index]).ok() in value_str()
263 let (node, option, value) = match self.split_arg(argument) { in early_init()
273 if let Some(value) = value { in early_init()
274 let value = value.as_bytes(); in early_init() localVariable
275 let len = value.len().min(KernelCmdlineEarlyKV::VALUE_MAX_LEN); in early_init()
276 p.value[..len].copy_from_slice(&value[..len]); in early_init()
294 v.value[..len].copy_from_slice(v.default.as_bytes()); in early_init()
324 let (node, option, value) = match self.split_arg(argument) { in init()
328 if option == "init" && value.is_some() { in init()
332 inner.init_path = Some(CString::new(value.unwrap()).unwrap()); in init()
345 if p.value.is_some() { in init()
349 p.value = Some(CString::new(value.unwrap()).unwrap()); in init()
363 p.value = !p.inv; in init()
370 if let Some(val) = value { in init()
390 v.value = v.default; in default_initialize()
401 v.value = Some(CString::new(v.default).unwrap()); in default_initialize()
437 let value = iter.next(); in split_arg() localVariable
438 let value = value.map(|v| v.trim()); in split_arg() localVariable
439 if value.is_some() && iter.next().is_some() { in split_arg()
466 Some((node, option, value)) in split_arg()