Searched refs:cpu (Results 1 – 5 of 5) sorted by relevance
| /rust/helpers/ |
| A D | cpumask.c | 5 void rust_helper_cpumask_set_cpu(unsigned int cpu, struct cpumask *dstp) in rust_helper_cpumask_set_cpu() argument 7 cpumask_set_cpu(cpu, dstp); in rust_helper_cpumask_set_cpu() 10 void rust_helper___cpumask_set_cpu(unsigned int cpu, struct cpumask *dstp) in rust_helper___cpumask_set_cpu() argument 12 __cpumask_set_cpu(cpu, dstp); in rust_helper___cpumask_set_cpu() 15 void rust_helper_cpumask_clear_cpu(int cpu, struct cpumask *dstp) in rust_helper_cpumask_clear_cpu() argument 17 cpumask_clear_cpu(cpu, dstp); in rust_helper_cpumask_clear_cpu() 20 void rust_helper___cpumask_clear_cpu(int cpu, struct cpumask *dstp) in rust_helper___cpumask_clear_cpu() argument 22 __cpumask_clear_cpu(cpu, dstp); in rust_helper___cpumask_clear_cpu() 25 bool rust_helper_cpumask_test_cpu(int cpu, struct cpumask *srcp) in rust_helper_cpumask_test_cpu() argument 27 return cpumask_test_cpu(cpu, srcp); in rust_helper_cpumask_test_cpu()
|
| /rust/kernel/ |
| A D | cpumask.rs | 9 cpu::CpuId, 92 pub fn set(&mut self, cpu: CpuId) { in set() 94 unsafe { bindings::__cpumask_set_cpu(u32::from(cpu), self.as_raw()) }; in set() 103 pub fn clear(&mut self, cpu: CpuId) { in clear() 106 unsafe { bindings::__cpumask_clear_cpu(i32::from(cpu), self.as_raw()) }; in clear() 113 pub fn test(&self, cpu: CpuId) -> bool { in test() 115 unsafe { bindings::cpumask_test_cpu(i32::from(cpu), self.as_raw()) } in test()
|
| A D | cpu.rs | 141 pub unsafe fn from_cpu(cpu: CpuId) -> Result<&'static Device> { in from_cpu() 143 let ptr = unsafe { bindings::get_cpu_device(u32::from(cpu)) }; in from_cpu()
|
| A D | cpufreq.rs | 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() [all …]
|
| A D | lib.rs | 74 pub mod cpu; module
|
Completed in 10 milliseconds