Lines Matching +full:light +full:- +full:weight
1 // SPDX-License-Identifier: GPL-2.0
3 //! Rust based implementation of the cpufreq-dt driver.
20 fn find_supply_name_exact(dev: &Device, name: &str) -> Option<CString> { in find_supply_name_exact()
21 let prop_name = CString::try_from_fmt(fmt!("{name}-supply")).ok()?; in find_supply_name_exact()
29 fn find_supply_names(dev: &Device, cpu: cpu::CpuId) -> Option<KVec<CString>> { in find_supply_names()
55 const NAME: &'static CStr = c_str!("cpufreq-dt");
61 fn init(policy: &mut cpufreq::Policy) -> Result<Self::PData> { in init()
63 // SAFETY: The CPU device is only used during init; it won't get hot-unplugged. The cpufreq in init()
65 // once the CPU is hot-unplugged. in init()
79 // Get OPP-sharing information from "operating-points-v2" bindings. in init()
83 // "operating-points-v2" not supported. If the platform hasn't in init()
93 // For platforms not using "operating-points-v2" bindings, we do this in init()
98 // it is -EPROBE_DEFER. in init()
151 fn exit(_policy: &mut cpufreq::Policy, _data: Option<Self::PData>) -> Result { in exit()
155 fn online(_policy: &mut cpufreq::Policy) -> Result { in online()
156 // We did light-weight tear down earlier, nothing to do here. in online()
160 fn offline(_policy: &mut cpufreq::Policy) -> Result { in offline()
161 // Preserve policy->data and don't free resources on light-weight in offline()
166 fn suspend(policy: &mut cpufreq::Policy) -> Result { in suspend()
170 fn verify(data: &mut cpufreq::PolicyData) -> Result { in verify()
174 fn target_index(policy: &mut cpufreq::Policy, index: cpufreq::TableIndex) -> Result { in target_index()
183 fn get(policy: &mut cpufreq::Policy) -> Result<u32> { in get()
187 fn set_boost(_policy: &mut cpufreq::Policy, _state: i32) -> Result { in set_boost()
200 [(of::DeviceId::new(c_str!("operating-points-v2")), ())]
210 ) -> Result<Pin<KBox<Self>>> { in probe()
218 name: "cpufreq-dt",