Lines Matching refs:Policy

415 pub struct Policy(Opaque<bindings::cpufreq_policy>);  struct
417 impl Policy { impl
680 struct PolicyCpu<'a>(&'a mut Policy);
690 unsafe { Policy::from_raw_mut(ptr) }, in from_cpu()
696 type Target = Policy;
704 fn deref_mut(&mut self) -> &mut Policy { in deref_mut() argument
739 fn init(policy: &mut Policy) -> Result<Self::PData>; in init()
742 fn exit(_policy: &mut Policy, _data: Option<Self::PData>) -> Result { in exit() argument
747 fn online(_policy: &mut Policy) -> Result { in online()
752 fn offline(_policy: &mut Policy) -> Result { in offline()
757 fn suspend(_policy: &mut Policy) -> Result { in suspend()
762 fn resume(_policy: &mut Policy) -> Result { in resume()
767 fn ready(_policy: &mut Policy) { in ready() argument
775 fn setpolicy(_policy: &mut Policy) -> Result { in setpolicy()
780 fn target(_policy: &mut Policy, _target_freq: u32, _relation: Relation) -> Result { in target() argument
785 fn target_index(_policy: &mut Policy, _index: TableIndex) -> Result { in target_index() argument
790 fn fast_switch(_policy: &mut Policy, _target_freq: u32) -> u32 { in fast_switch() argument
795 fn adjust_perf(_policy: &mut Policy, _min_perf: usize, _target_perf: usize, _capacity: usize) { in adjust_perf() argument
800 fn get_intermediate(_policy: &mut Policy, _index: TableIndex) -> u32 { in get_intermediate() argument
805 fn target_intermediate(_policy: &mut Policy, _index: TableIndex) -> Result { in target_intermediate() argument
810 fn get(_policy: &mut Policy) -> Result<u32> { in get()
815 fn update_limits(_policy: &mut Policy) { in update_limits() argument
820 fn bios_limit(_policy: &mut Policy, _limit: &mut u32) -> Result { in bios_limit() argument
825 fn set_boost(_policy: &mut Policy, _state: i32) -> Result { in set_boost() argument
830 fn register_em(_policy: &mut Policy) { in register_em() argument
1071 let policy = unsafe { Policy::from_raw_mut(ptr) }; in init_callback()
1088 let policy = unsafe { Policy::from_raw_mut(ptr) }; in exit_callback()
1104 let policy = unsafe { Policy::from_raw_mut(ptr) }; in online_callback()
1119 let policy = unsafe { Policy::from_raw_mut(ptr) }; in offline_callback()
1134 let policy = unsafe { Policy::from_raw_mut(ptr) }; in suspend_callback()
1149 let policy = unsafe { Policy::from_raw_mut(ptr) }; in resume_callback()
1163 let policy = unsafe { Policy::from_raw_mut(ptr) }; in ready_callback()
1192 let policy = unsafe { Policy::from_raw_mut(ptr) }; in setpolicy_callback()
1211 let policy = unsafe { Policy::from_raw_mut(ptr) }; in target_callback()
1229 let policy = unsafe { Policy::from_raw_mut(ptr) }; in target_index_callback()
1251 let policy = unsafe { Policy::from_raw_mut(ptr) }; in fast_switch_callback()
1286 let policy = unsafe { Policy::from_raw_mut(ptr) }; in get_intermediate_callback()
1308 let policy = unsafe { Policy::from_raw_mut(ptr) }; in target_intermediate_callback()
1339 let policy = unsafe { Policy::from_raw_mut(ptr) }; in update_limits_callback()
1374 let policy = unsafe { Policy::from_raw_mut(ptr) }; in set_boost_callback()
1388 let policy = unsafe { Policy::from_raw_mut(ptr) }; in register_em_callback()