| H A D | opp.rs | 1 // SPDX-License-Identifier: GPL-2.0 5 //! This module provides rust abstractions for interacting with the OPP subsystem. 9 //! Reference: <https://docs.kernel.org/power/opp.html> 30 /// OPP frequency table. 40 pub(crate) fn new(table: &Table) -> Result<Self> { in new() 57 fn table(&self) -> &cpufreq::Table { in table() 67 fn deref(&self) -> &Self::Target { in deref() 90 /// Creates a null-terminate 143 pub struct MicroWatt(pub c_ulong); global() struct 295 config_clks(_dev: &Device, _table: &Table, _opp: &OPP, _scaling_down: bool) -> Result config_clks() argument 303 config_regulators( _dev: &Device, _opp_old: &OPP, _opp_new: &OPP, _data: *mut *mut bindings::regulator, _count: u32, ) -> Result config_regulators() argument 304 config_regulators( _dev: &Device, _opp_old: &OPP, _opp_new: &OPP, _data: *mut *mut bindings::regulator, _count: u32, ) -> Result config_regulators() argument 850 opp_from_freq( &self, freq: Hertz, available: Option<bool>, index: Option<u32>, stype: SearchType, ) -> Result<ARef<OPP>> opp_from_freq() argument 889 opp_from_level(&self, mut level: u32, stype: SearchType) -> Result<ARef<OPP>> opp_from_level() argument 915 opp_from_bw(&self, mut bw: u32, index: i32, stype: SearchType) -> Result<ARef<OPP>> opp_from_bw() argument 1035 pub struct OPP(Opaque<bindings::dev_pm_opp>); global() struct 1038 unsafe impl Send for OPP {} global() implementation 1042 unsafe impl Sync for OPP {} global() implementation 1045 unsafe impl AlwaysRefCounted for OPP { global() implementation 1057 impl OPP { global() implementation 1125 power(&self) -> MicroWatt power() argument [all...] |