/DragonOS/kernel/src/libs/ |
H A D | cpumask.rs | 8 pub struct CpuMask { struct 13 impl CpuMask { implementation 105 pub fn bitand_assign(&mut self, rhs: &CpuMask) { in bitand_assign() argument 110 impl BitAnd for &CpuMask { implementation 111 type Output = CpuMask; 113 fn bitand(self, rhs: &CpuMask) -> Self::Output { in bitand() 115 CpuMask { bmp } in bitand() 119 impl Default for CpuMask { implementation 126 mask: &'a CpuMask, 156 impl core::fmt::Debug for CpuMask { implementation
|
/DragonOS/kernel/src/smp/cpu/ |
H A D | mod.rs | 9 libs::cpumask::CpuMask, 76 possible_cpus: CpuMask, 78 present_cpus: CpuMask, 89 let possible_cpus = CpuMask::new(); in new() 90 let present_cpus = CpuMask::new(); in new() 133 pub fn possible_cpus(&self) -> &CpuMask { in possible_cpus() argument 194 pub fn present_cpus(&self) -> &CpuMask { in present_cpus() argument
|
/DragonOS/kernel/src/exception/ |
H A D | irqdata.rs | 7 cpumask::CpuMask, 213 affinity: CpuMask::new(), in new() 214 effective_affinity: CpuMask::new(), in new() 301 pub fn affinity(&self) -> CpuMask { in affinity() argument 305 pub fn set_affinity(&self, affinity: CpuMask) { in set_affinity() argument 310 pub fn set_effective_affinity(&self, affinity: CpuMask) { in set_effective_affinity() argument 327 affinity: CpuMask, 328 effective_affinity: CpuMask, 351 pub fn effective_affinity(&self) -> &CpuMask { in effective_affinity() argument
|
H A D | irqdesc.rs | 24 cpumask::CpuMask, 375 percpu_enabled: Option<CpuMask>, 377 percpu_affinity: Option<CpuMask>, 543 pub fn percpu_enabled(&self) -> &Option<CpuMask> { in percpu_enabled() argument 547 pub fn percpu_enabled_mut(&mut self) -> &mut Option<CpuMask> { in percpu_enabled_mut() argument 552 pub fn percpu_affinity(&self) -> &Option<CpuMask> { in percpu_affinity() argument 556 pub fn percpu_affinity_mut(&mut self) -> &mut Option<CpuMask> { in percpu_affinity_mut() argument 992 affinity: Option<&CpuMask>, in set_percpu_devid() argument 1001 *desc_inner.percpu_enabled_mut() = Some(CpuMask::new()); in set_percpu_devid()
|
H A D | manage.rs | 14 libs::{cpumask::CpuMask, spinlock::SpinLockGuard}, 30 static ref IRQ_DEFAULT_AFFINITY: CpuMask = { 31 let mut mask = CpuMask::new(); 793 cpumask: &CpuMask, in irq_set_affinity() argument 801 cpumask: &CpuMask, in irq_do_set_affinity() argument 867 _affinity: &CpuMask, in __irq_startup_managed() argument
|
H A D | irqchip.rs | 20 cpumask::CpuMask, 102 _cpu: &CpuMask, in irq_set_affinity() argument
|
/DragonOS/kernel/src/driver/irqchip/ |
H A D | riscv_sifive_plic.rs | 44 cpumask::CpuMask, 74 lmask: SpinLock<CpuMask>, 88 lmask: SpinLock::new(CpuMask::new()), in new() 97 fn lmask(&self) -> SpinLockGuard<CpuMask> { in lmask() argument 189 fn plic_irq_toggle(cpumask: &CpuMask, irq_data: &Arc<IrqData>, enable: bool) { in plic_irq_toggle() argument 353 mask_val: &CpuMask, in irq_set_affinity() argument 382 .set_effective_affinity(CpuMask::from_cpu(cpu)); in irq_set_affinity()
|
/DragonOS/kernel/src/arch/x86_64/smp/ |
H A D | mod.rs | 13 libs::{cpumask::CpuMask, rwlock::RwLock}, 182 fn print_cpus(s: &str, mask: &CpuMask) { in print_cpus() argument
|
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | ioapic.rs | 21 cpumask::CpuMask, 546 cpu: &CpuMask, in irq_set_affinity() argument
|