Lines Matching refs:cpu
13 cpu::CpuId,
469 pub fn cpu(&self) -> CpuId { in cpu() method
471 unsafe { CpuId::from_u32_unchecked(self.as_ref().cpu) } in cpu()
530 Ok(unsafe { bindings::cpufreq_generic_get(u32::from(self.cpu())) }) in generic_get()
683 fn from_cpu(cpu: CpuId) -> Result<Self> { in from_cpu()
685 let ptr = from_err_ptr(unsafe { bindings::cpufreq_cpu_get(u32::from(cpu)) })?; in from_cpu()
1261 cpu: c_uint, in adjust_perf_callback()
1267 let cpu_id = unsafe { CpuId::from_u32_unchecked(cpu) }; in adjust_perf_callback()
1323 unsafe extern "C" fn get_callback(cpu: c_uint) -> c_uint { in get_callback()
1325 let cpu_id = unsafe { CpuId::from_u32_unchecked(cpu) }; in get_callback()
1349 unsafe extern "C" fn bios_limit_callback(cpu: c_int, limit: *mut c_uint) -> c_int { in bios_limit_callback()
1351 let cpu_id = unsafe { CpuId::from_i32_unchecked(cpu) }; in bios_limit_callback()