| H A D | cpufreq.rs | 402 /// Rust abstraction for the C `struct cpufreq_policy`. 406 /// A [`Policy`] instance always corresponds to a valid C `struct cpufreq_policy`. 408 /// The callers must ensure that the `struct cpufreq_policy` is valid for access and remains valid 429 pub struct Policy(Opaque<bindings::cpufreq_policy>); in from_raw() 432 /// Creates a reference to an existing `struct cpufreq_policy` pointer. 439 pub unsafe fn from_raw<'a>(ptr: *const bindings::cpufreq_policy) -> &'a Self { 447 /// Creates a mutable reference to an existing `struct cpufreq_policy` pointer. 454 pub unsafe fn from_raw_mut<'a>(ptr: *mut bindings::cpufreq_policy) -> &'a mut Self { 462 /// Returns a raw mutable pointer to the C `struct cpufreq_policy`. in as_mut_ref() argument 464 fn as_raw(&self) -> *mut bindings::cpufreq_policy { in as_mut_ref() 450 as_raw(&self) -> *mut bindings::cpufreq_policy as_raw() argument 456 as_ref(&self) -> &bindings::cpufreq_policy as_ref() argument 1085 exit_callback(ptr: *mut bindings::cpufreq_policy) exit_callback() argument 1160 ready_callback(ptr: *mut bindings::cpufreq_policy) ready_callback() argument 1204 target_callback( ptr: *mut bindings::cpufreq_policy, target_freq: c_uint, relation: c_uint, ) -> c_int target_callback() argument 1223 target_index_callback( ptr: *mut bindings::cpufreq_policy, index: c_uint, ) -> c_int target_index_callback() argument 1246 fast_switch_callback( ptr: *mut bindings::cpufreq_policy, target_freq: c_uint, ) -> c_uint fast_switch_callback() argument 1262 adjust_perf_callback( ptr: *mut bindings::cpufreq_policy, min_perf: c_ulong, target_perf: c_ulong, capacity: c_ulong, ) adjust_perf_callback() argument 1280 get_intermediate_callback( ptr: *mut bindings::cpufreq_policy, index: c_uint, ) -> c_uint get_intermediate_callback() argument 1301 target_intermediate_callback( ptr: *mut bindings::cpufreq_policy, index: c_uint, ) -> c_int target_intermediate_callback() argument 1335 update_limits_callback(ptr: *mut bindings::cpufreq_policy) update_limits_callback() argument 1367 set_boost_callback( ptr: *mut bindings::cpufreq_policy, state: c_int, ) -> c_int set_boost_callback() argument 1384 register_em_callback(ptr: *mut bindings::cpufreq_policy) register_em_callback() argument [all...] |