/DragonOS/kernel/src/arch/riscv64/interrupt/ |
H A D | ipi.rs | 11 let mask = Into::into(target); in send_ipi() localVariable 14 IpiKind::FlushTLB => RiscV64MMArch::remote_invalidate_all_with_mask(mask).ok(), in send_ipi() 25 let mask = HartMask::from_mask_base(data, 0); in into() localVariable 26 mask in into() 29 let mask = Into::into(cpu_id); in into() localVariable 30 mask in into() 33 let mask = Into::into(smp_get_processor_id()); in into() localVariable 34 mask in into()
|
/DragonOS/docs/kernel/core_api/ |
H A D | atomic.md | 68 ### `inline void atomic_set_mask(atomic_t *ato, long mask)` 72   将原子变量的值与mask变量进行or运算 80 **mask** 84 ### `inline void atomic_clear_mask(atomic_t *ato, long mask)` argument 88   将原子变量的值与mask变量进行and运算 96 **mask**
|
/DragonOS/kernel/src/libs/ |
H A D | cpumask.rs | 29 let mut mask = Self::new(); in from_cpu() localVariable 30 mask.set(cpu, true); in from_cpu() 31 mask in from_cpu() 84 mask: self, in iter_cpu() 94 mask: self, in iter_zero_cpu() 126 mask: &'a CpuMask, field 138 self.index = self.mask.first(); in next() 140 self.index = self.mask.first_zero(); in next() 147 self.index = self.mask.next_index(self.index?); in next() 149 self.index = self.mask.next_zero_index(self.index?); in next()
|
/DragonOS/kernel/crates/bitmap/src/ |
H A D | bitmap_core.rs | 54 let mask = T::make_mask(n % T::bit_size()); in set_all() localVariable 55 if mask != T::zero() { in set_all() 56 *last_element &= mask; in set_all() 105 let mut mask = T::make_mask(n % T::bit_size()); in last_false_index() localVariable 106 if mask != T::zero() { in last_false_index() 107 <T as BitOps>::invert(&mut mask); in last_false_index() 109 last_element |= mask; in last_false_index() 219 let mask = T::make_mask(n % T::bit_size()); in invert() localVariable 220 if mask != T::zero() { in invert() 221 *last_element &= mask; in invert() [all …]
|
H A D | traits.rs | 39 let mask = 1 << index; localVariable 40 let prev = *bits & mask; 42 *bits |= mask; 44 *bits &= !mask;
|
/DragonOS/kernel/src/common/ |
H A D | atomic.h | 83 inline void atomic_set_mask(atomic_t *ato, long mask) in atomic_set_mask() argument 87 : "r"(mask) in atomic_set_mask() 96 inline void atomic_clear_mask(atomic_t *ato, long mask) in atomic_clear_mask() argument 100 : "r"(mask) in atomic_clear_mask()
|
/DragonOS/kernel/src/ipc/ |
H A D | signal_types.rs | 192 mask: SigSet, // 为了可扩展性而设置的sa_mask field 202 mask: Default::default(), in default() 225 mask: SigSet, in new() 231 mask, in new() 256 pub fn mask(&self) -> SigSet { in mask() method 257 self.mask in mask() 261 &mut self.mask in mask_mut() 272 mask: SigSet::from_bits_truncate(0), 280 mask: SigSet::from_bits_truncate(0), 293 pub mask: SigSet, field [all …]
|
H A D | syscall.rs | 146 let mask: SigSet = unsafe { (*act).mask }; in sigaction() localVariable 188 *new_ka.mask_mut() = mask; in sigaction() 240 (*old_act).mask = old_sigaction.mask(); in sigaction()
|
H A D | signal.rs | 435 let mut mask: SigSet = SigSet::from_bits_truncate(0); in do_sigaction() localVariable 436 mask.insert(sig.into()); in do_sigaction() 437 pcb.sig_info_mut().sig_pending_mut().flush_by_mask(&mask); in do_sigaction()
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | render_helper.rs | 56 let mask = 0x000000ff; in reverse() localVariable 60 ans |= mask & num; in reverse() 64 ans |= mask & num; in reverse() 98 let mask = 0x000000ff << ((self.byte_per_pixel - 1) << 3); in full_buffer() localVariable 106 temp = color & mask; in full_buffer()
|
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | ioapic.rs | 204 mut mask: bool, in install() 225 mask = true; in install() 227 if mask { in install() 349 mask: bool, in new() 359 mask, in new() 377 mask: bool, field 389 self.mask, in sync_to_chip() 463 mask: bool, in ioapic_install() 473 mask, in ioapic_install() 503 chip_data_inner.mask = true; in irq_mask() [all …]
|
H A D | mod.rs | 294 pub fn set_mask(&mut self, mask: bool) { in set_mask() 296 if mask { in set_mask() 305 pub fn mask(&self) -> bool { in mask() method
|
H A D | apic_timer.rs | 239 fn setup_lvt(&mut self, vector: u8, mask: bool, mode: LocalApicTimerMode) { in setup_lvt() 241 let data = (mode << 17) | (vector as u32) | (if mask { 1 << 16 } else { 0 }); in setup_lvt()
|
/DragonOS/kernel/src/time/ |
H A D | clocksource.rs | 280 max_cycles = max_cycles.min(cs_data_guard.mask.bits); in clocksource_max_deferment() 327 let mut sec: u64 = cs_data.mask.bits(); in clocksource_update_freq_scale() 333 } else if sec > 600 && cs_data.mask.bits() > u32::MAX as u64 { in clocksource_update_freq_scale() 669 pub mask: ClocksourceMask, field 691 mask: ClocksourceMask, in new() 702 mask, in new() 722 pub fn set_mask(&mut self, mask: ClocksourceMask) { in set_mask() 723 self.mask = mask; in set_mask() 859 CycleNum((wd_now_clock - cs_data.watchdog_last.data()) & wd_now_data.mask.bits), in clocksource_watchdog() 865 CycleNum(cs_now_clock.div(cs_data.cs_last).data() & cs_data.mask.bits), in clocksource_watchdog()
|
H A D | jiffies.rs | 55 d.set_mask(data.mask); in update_clocksource_data() 77 mask: ClocksourceMask::new(0xffffffff), in new()
|
H A D | timekeeping.rs | 151 let cycle_delta = (cycle_now.div(clock_data.cycle_last)).data() & clock_data.mask.bits(); in timekeeping_get_ns() 403 let mut offset = (clock.read().div(clock_data.cycle_last).data()) & clock_data.mask.bits(); in update_wall_time()
|
/DragonOS/kernel/src/driver/pci/ |
H A D | pci_irq.rs | 766 let mut mask = pci_root_0().read_config( in msi_mask() localVariable 770 mask |= 1 << irq_index; in msi_mask() 774 mask, in msi_mask() 778 let mut mask = pci_root_0().read_config( in msi_mask() localVariable 782 mask |= 1 << irq_index; in msi_mask() 786 mask, in msi_mask() 887 let mut mask = pci_root_0().read_config( in msi_unmask() localVariable 891 mask &= !(1 << irq_index); in msi_unmask() 895 mask, in msi_unmask() 899 let mut mask = pci_root_0().read_config( in msi_unmask() localVariable [all …]
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | syscall.rs | 1402 mask: u32, in do_statx() 1409 let mask = PosixStatxMask::from_bits_truncate(mask); in do_statx() localVariable 1411 if mask.contains(PosixStatxMask::STATX_RESERVED) { in do_statx() 1432 if mask.contains(PosixStatxMask::STATX_MODE) || mask.contains(PosixStatxMask::STATX_TYPE) { in do_statx() 1435 if mask.contains(PosixStatxMask::STATX_NLINK) { in do_statx() 1438 if mask.contains(PosixStatxMask::STATX_UID) { in do_statx() 1441 if mask.contains(PosixStatxMask::STATX_GID) { in do_statx() 1444 if mask.contains(PosixStatxMask::STATX_ATIME) { in do_statx() 1448 if mask.contains(PosixStatxMask::STATX_MTIME) { in do_statx() 1452 if mask.contains(PosixStatxMask::STATX_CTIME) { in do_statx() [all …]
|
/DragonOS/kernel/src/driver/irqchip/ |
H A D | riscv_sifive_plic.rs | 247 let mask = inner_guard.effective_affinity(); in irq_enable() localVariable 249 plic_irq_toggle(mask, irq_data, true); in irq_enable() 307 let mask = inner_guard.effective_affinity(); in irq_disable() localVariable 308 plic_irq_toggle(mask, irq_data, false); in irq_disable() 606 let mask = plic_chip_data.lmask().clone(); in map() localVariable 607 irq_manager().irq_set_affinity(&irq_desc.irq_data(), &irq_desc.inner(), &mask)?; in map()
|
/DragonOS/kernel/src/arch/x86_64/smp/ |
H A D | mod.rs | 184 fn print_cpus(s: &str, mask: &CpuMask) { in print_cpus() 186 for cpu in mask.iter_cpu() { in print_cpus()
|
/DragonOS/kernel/src/driver/clocksource/ |
H A D | acpi_pm.rs | 85 mask: ClocksourceMask::new(ACPI_PM_MASK), in new() 124 d.set_mask(data.mask); in update_clocksource_data()
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | framebuffer_console.rs | 735 || fbcon_data.cursor_state.mask.is_empty() in cursor() 771 fbcon_data.cursor_state.mask.push(0x00); in cursor() 777 fbcon_data.cursor_state.mask.push(0xff); in cursor() 805 cursor.mask = fbcon_data.cursor_state.mask.clone(); in cursor()
|
/DragonOS/kernel/src/exception/ |
H A D | handle.rs | 162 let mask = IrqStatus::IRQD_IRQ_INPROGRESS | IrqStatus::IRQD_WAKEUP_ARMED; in irq_may_run() localVariable 166 if status.bitand(mask).is_empty() { in irq_may_run()
|
H A D | manage.rs | 31 let mut mask = CpuMask::new(); localVariable 33 mask.set(ProcessorId::new(0), true); 34 mask
|
/DragonOS/kernel/src/arch/riscv64/mm/ |
H A D | mod.rs | 72 pub fn remote_invalidate_all_with_mask(mask: HartMask) -> Result<(), SbiRet> { in remote_invalidate_all_with_mask() 73 let r = sbi_rt::remote_sfence_vma(mask, 0, 1 << RiscV64MMArch::ENTRY_ADDRESS_SHIFT); in remote_invalidate_all_with_mask()
|