Lines Matching refs:u32

42 pub const ETERNAL_LATENCY_NS: u32 = bindings::CPUFREQ_ETERNAL as u32;
69 const CPUFREQ_RELATION_L: u32 = 0;
70 const CPUFREQ_RELATION_H: u32 = 1;
71 const CPUFREQ_RELATION_C: u32 = 2;
74 const CPUFREQ_RELATION_E: u32 = 1 << 2;
91 fn new(val: u32) -> Result<Self> { in new()
103 impl From<Relation> for u32 { implementation
262 pub fn flags(&self, index: TableIndex) -> u32 { in flags() argument
270 pub fn data(&self, index: TableIndex) -> u32 { in data() argument
366 pub fn add(&mut self, freq: Hertz, flags: u32, driver_data: u32) -> Result { in add() argument
372 frequency: freq.as_khz() as u32, in add()
483 self.as_mut_ref().min = min.as_khz() as u32; in set_min()
496 self.as_mut_ref().max = max.as_khz() as u32; in set_max()
515 self.as_mut_ref().suspend_freq = freq.as_khz() as u32; in set_suspend_freq()
528 pub fn generic_get(&self) -> Result<u32> { in generic_get() argument
530 Ok(unsafe { bindings::cpufreq_generic_get(u32::from(self.cpu())) }) in generic_get()
584 pub fn set_transition_latency_ns(&mut self, latency_ns: u32) -> &mut Self { in set_transition_latency_ns()
592 self.as_mut_ref().cpuinfo.min_freq = min_freq.as_khz() as u32; in set_cpuinfo_min_freq()
599 self.as_mut_ref().cpuinfo.max_freq = max_freq.as_khz() as u32; in set_cpuinfo_max_freq()
606 pub fn set_transition_delay_us(&mut self, transition_delay_us: u32) -> &mut Self { in set_transition_delay_us()
685 let ptr = from_err_ptr(unsafe { bindings::cpufreq_cpu_get(u32::from(cpu)) })?; in from_cpu()
780 fn target(_policy: &mut Policy, _target_freq: u32, _relation: Relation) -> Result { in target() argument
790 fn fast_switch(_policy: &mut Policy, _target_freq: u32) -> u32 { in fast_switch() argument
800 fn get_intermediate(_policy: &mut Policy, _index: TableIndex) -> u32 { in get_intermediate() argument
810 fn get(_policy: &mut Policy) -> Result<u32> { in get() argument
820 fn bios_limit(_policy: &mut Policy, _limit: &mut u32) -> Result { in bios_limit()