Lines Matching refs:Policy

414 pub struct Policy(Opaque<bindings::cpufreq_policy>);  struct
416 impl Policy { impl
679 struct PolicyCpu<'a>(&'a mut Policy);
689 unsafe { Policy::from_raw_mut(ptr) }, in from_cpu()
695 type Target = Policy;
703 fn deref_mut(&mut self) -> &mut Policy { in deref_mut() argument
738 fn init(policy: &mut Policy) -> Result<Self::PData>; in init()
741 fn exit(_policy: &mut Policy, _data: Option<Self::PData>) -> Result { in exit() argument
746 fn online(_policy: &mut Policy) -> Result { in online()
751 fn offline(_policy: &mut Policy) -> Result { in offline()
756 fn suspend(_policy: &mut Policy) -> Result { in suspend()
761 fn resume(_policy: &mut Policy) -> Result { in resume()
766 fn ready(_policy: &mut Policy) { in ready() argument
774 fn setpolicy(_policy: &mut Policy) -> Result { in setpolicy()
779 fn target(_policy: &mut Policy, _target_freq: u32, _relation: Relation) -> Result { in target() argument
784 fn target_index(_policy: &mut Policy, _index: TableIndex) -> Result { in target_index() argument
789 fn fast_switch(_policy: &mut Policy, _target_freq: u32) -> u32 { in fast_switch() argument
794 fn adjust_perf(_policy: &mut Policy, _min_perf: usize, _target_perf: usize, _capacity: usize) { in adjust_perf() argument
799 fn get_intermediate(_policy: &mut Policy, _index: TableIndex) -> u32 { in get_intermediate() argument
804 fn target_intermediate(_policy: &mut Policy, _index: TableIndex) -> Result { in target_intermediate() argument
809 fn get(_policy: &mut Policy) -> Result<u32> { in get()
814 fn update_limits(_policy: &mut Policy) { in update_limits() argument
819 fn bios_limit(_policy: &mut Policy, _limit: &mut u32) -> Result { in bios_limit() argument
824 fn set_boost(_policy: &mut Policy, _state: i32) -> Result { in set_boost() argument
829 fn register_em(_policy: &mut Policy) { in register_em() argument
1069 let policy = unsafe { Policy::from_raw_mut(ptr) }; in init_callback()
1086 let policy = unsafe { Policy::from_raw_mut(ptr) }; in exit_callback()
1102 let policy = unsafe { Policy::from_raw_mut(ptr) }; in online_callback()
1117 let policy = unsafe { Policy::from_raw_mut(ptr) }; in offline_callback()
1132 let policy = unsafe { Policy::from_raw_mut(ptr) }; in suspend_callback()
1147 let policy = unsafe { Policy::from_raw_mut(ptr) }; in resume_callback()
1161 let policy = unsafe { Policy::from_raw_mut(ptr) }; in ready_callback()
1190 let policy = unsafe { Policy::from_raw_mut(ptr) }; in setpolicy_callback()
1209 let policy = unsafe { Policy::from_raw_mut(ptr) }; in target_callback()
1227 let policy = unsafe { Policy::from_raw_mut(ptr) }; in target_index_callback()
1249 let policy = unsafe { Policy::from_raw_mut(ptr) }; in fast_switch_callback()
1284 let policy = unsafe { Policy::from_raw_mut(ptr) }; in get_intermediate_callback()
1306 let policy = unsafe { Policy::from_raw_mut(ptr) }; in target_intermediate_callback()
1337 let policy = unsafe { Policy::from_raw_mut(ptr) }; in update_limits_callback()
1372 let policy = unsafe { Policy::from_raw_mut(ptr) }; in set_boost_callback()
1386 let policy = unsafe { Policy::from_raw_mut(ptr) }; in register_em_callback()