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> 24 /// Frequency table implementation. 30 /// OPP frequency table. 32 /// A [`cpufreq::Table`] created from [`Table`] 56 table(&self) -> &cpufreq::Table table() argument 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 600 pub struct Table { global() struct 610 cpusTable global() argument 611 unsafe impl Send for Table {} global() implementation 615 unsafe impl Sync for Table {} global() implementation 617 impl Table { global() implementation 668 let mut table = Self::from_dev(dev)?; from_of() localVariable 696 let mut table = Self::from_dev(dev)?; from_of_cpumask() localVariable 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 978 impl Drop for Table { global() implementation 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 [all...] |