Lines Matching refs:KernelCmdlineParameter
13 pub static KCMDLINE_PARAM_EARLY_KV: [KernelCmdlineParameter] = [..];
16 pub static KCMDLINE_PARAM_KV: [KernelCmdlineParameter] = [..];
19 pub static KCMDLINE_PARAM_ARG: [KernelCmdlineParameter] = [..];
87 pub const fn build(self) -> Option<KernelCmdlineParameter> { in build() argument
89 KCmdlineParamType::Arg => Some(KernelCmdlineParameter::Arg(KernelCmdlineArg { in build()
96 KCmdlineParamType::KV => Some(KernelCmdlineParameter::KV(KernelCmdlineKV { in build()
108 pub enum KernelCmdlineParameter { enum
115 impl KernelCmdlineParameter { implementation
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()
135 KernelCmdlineParameter::Arg(_) => None, in value_str()
136 KernelCmdlineParameter::KV(v) => v in value_str()
140 KernelCmdlineParameter::EarlyKV(v) => v.value_str(), in value_str()
145 matches!(self, KernelCmdlineParameter::Arg(_)) in is_arg()
149 matches!(self, KernelCmdlineParameter::KV(_)) in is_kv()
153 matches!(self, KernelCmdlineParameter::EarlyKV(_)) in is_early_kv()
271 KernelCmdlineParameter::EarlyKV(p) => { in early_init()
290 if let KernelCmdlineParameter::EarlyKV(v) = x { in early_init()
344 KernelCmdlineParameter::KV(p) => { in init()
358 KernelCmdlineParameter::Arg(p) => { in init()
388 if let KernelCmdlineParameter::Arg(v) = x { in default_initialize()
399 if let KernelCmdlineParameter::KV(v) = x { in default_initialize()
414 ) -> Option<&KernelCmdlineParameter> { in find_param() argument