/DragonOS-0.1.9/kernel/src/arch/x86_64/driver/apic/ |
D | x2apic.rs | 26 IA32_APIC_BASE.into(), in init_current_cpu() 27 rdmsr(IA32_APIC_BASE.into()) | 1 << 10, in init_current_cpu() 31 (rdmsr(IA32_APIC_BASE.into()) & 0xc00) == 0xc00, in init_current_cpu() 43 wrmsr(IA32_X2APIC_SIVR.into(), val); in init_current_cpu() 46 (rdmsr(IA32_X2APIC_SIVR.into()) & 0x100) == 0x100, in init_current_cpu() 53 (rdmsr(IA32_X2APIC_SIVR.into()) & 0x1000) == 0x1000, in init_current_cpu() 69 wrmsr(IA32_X2APIC_EOI.into(), 0); in send_eoi() 75 unsafe { (rdmsr(IA32_X2APIC_VERSION.into()) & 0xff) as u8 } in version() 79 unsafe { ((rdmsr(IA32_X2APIC_VERSION.into()) >> 24) & 1) == 1 } in support_eoi_broadcast_suppression() 83 unsafe { ((rdmsr(IA32_X2APIC_VERSION.into()) >> 16) & 0xff) as u8 + 1 } in max_lvt_entry() [all …]
|
D | xapic.rs | 95 fn into(self) -> u32 { in into() method 226 let val = self.read(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_SVR.into()); in init_current_cpu() 229 XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_SVR.into(), in init_current_cpu() 233 let val = self.read(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_SVR.into()); in init_current_cpu() 249 self.write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_ESR.into(), 0); in init_current_cpu() 250 self.write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_ESR.into(), 0); in init_current_cpu() 253 self.write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_EOI.into(), 0); in init_current_cpu() 257 XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_ICR_63_32.into(), in init_current_cpu() 261 XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_ICR_31_0.into(), in init_current_cpu() 264 while self.read(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_ICR_31_0.into()) & DELIVS != 0 in init_current_cpu() [all …]
|
D | lapic_vector.rs | 216 msg.address_hi = address_hi.into(); in irq_msi_compose_msg() 217 msg.address_lo = address_lo.into(); in irq_msi_compose_msg() 218 msg.data = arch_data.into(); in irq_msi_compose_msg()
|
D | apic_timer.rs | 307 unsafe { wrmsr(IA32_X2APIC_DIV_CONF, divisor.into()) }; in set_timer_divisor() 312 divisor.into(), in set_timer_divisor() 321 wrmsr(IA32_X2APIC_INIT_COUNT.into(), initial_count); in set_timer_initial_count()
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | int_like.rs | 35 pub const fn into(self) -> $backing_type { 69 container: $backing_atomic_type::new(x.into()), 82 self.container.store(val.into(), order) 90 $new_type_name::from(self.container.swap(val.into(), order)) 102 .compare_exchange(current.into(), new.into(), success, failure) 117 current.into(), 118 new.into(), 132 $new_type_name::from(self.container.fetch_add(val.into(), order))
|
D | semaphore.rs | 56 ProcessManager::current_pcb().pid().into(), in up()
|
/DragonOS-0.1.9/kernel/src/libs/lib_ui/ |
D | textui.rs | 163 fn into(self) -> i32 { in into() method 168 fn into(self) -> u32 { in into() method 173 fn into(self) -> usize { in into() method 224 fn into(self) -> i32 { in into() method 229 fn into(self) -> u32 { in into() method 234 fn into(self) -> usize { in into() method 264 fn into(self) -> usize { in into() method 269 fn into(self) -> u32 { in into() method 274 fn into(self) -> u16 { in into() method 279 fn into(self) -> u64 { in into() method [all …]
|
/DragonOS-0.1.9/kernel/src/libs/intertrait/macros/src/ |
D | lib.rs | 75 Err(err) => vec![err.to_compile_error(), input.into()] in cast_to() 79 .into() in cast_to() 144 .into() in castable_to()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/interrupt/ |
D | ipi.rs | 44 fn into(self) -> u8 { in into() method 80 fn into(self) -> ApicId { in into() method 115 fn into(self) -> x86::apic::DestinationShorthand { in into() method 129 let ipi_vec = ArchIpiKind::from(kind).into(); in send_ipi() 131 let shorthand: x86::apic::DestinationShorthand = target.into(); in send_ipi() 132 let destination: x86::apic::ApicId = target.into(); in send_ipi() 168 target.into(), in ipi_send_smp_init() 179 target.into(), in ipi_send_smp_init() 201 let target: ArchIpiTarget = IpiTarget::Specified(target_cpu).into(); in ipi_send_smp_startup() 206 target.into(), in ipi_send_smp_startup() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 181 let status = unsafe { CurrentPortIOArch::in8(PORT_PS2_KEYBOARD_STATUS.into()) }; in handle() 187 let input = unsafe { CurrentPortIOArch::in8(PORT_PS2_KEYBOARD_DATA.into()) }; in handle() 205 CurrentPortIOArch::in8(PORT_PS2_KEYBOARD_STATUS.into()) in wait_ps2_keyboard_write() 219 CurrentPortIOArch::out8(PORT_PS2_KEYBOARD_CONTROL.into(), PS2_KEYBOARD_COMMAND_WRITE); in ps2_keyboard_init() 221 CurrentPortIOArch::out8(PORT_PS2_KEYBOARD_DATA.into(), PS2_KEYBOARD_PARAM_INIT); in ps2_keyboard_init() 241 let status = unsafe { CurrentPortIOArch::in8(PORT_PS2_KEYBOARD_STATUS.into()) }; in ps2_keyboard_init() 244 unsafe { CurrentPortIOArch::in8(PORT_PS2_KEYBOARD_DATA.into()) }; in ps2_keyboard_init()
|
/DragonOS-0.1.9/kernel/src/ipc/ |
D | signal.rs | 161 .insert(self.clone().into()); in complete_signal() 195 .contains(self.clone().into()) in wants_signal() 406 .remove(SigSet::from(Signal::SIGKILL.into()) | SigSet::from(Signal::SIGSTOP.into())); in do_sigaction() 419 mask.insert(sig.into()); in do_sigaction() 433 new_set.remove(SigSet::from(Signal::SIGKILL.into()) | SigSet::from(Signal::SIGSTOP.into())); in set_current_sig_blocked()
|
/DragonOS-0.1.9/kernel/src/process/ |
D | exit.rs | 162 return Ok(pid.clone().into()); in do_wait() 194 cause: SigChildCode::Continued.into(), in do_waitpid() 221 cause: SigChildCode::Stopped.into(), in do_waitpid() 241 cause: SigChildCode::Exited.into(), in do_waitpid() 250 return Some(Ok(pid.into())); in do_waitpid()
|
/DragonOS-0.1.9/kernel/src/libs/intertrait/src/cast/ |
D | cast_mut.rs | 39 (caster.cast_mut)(any).into() in cast()
|
D | cast_ref.rs | 69 (caster.cast_ref)(any).into() in cast()
|
/DragonOS-0.1.9/kernel/src/time/ |
D | sleep.rs | 64 let rm_time: TimeSpec = (sleep_time - real_sleep_time.into()).into(); in nanosleep()
|
D | mod.rs | 130 micros: micros.into(), in from_micros() 141 micros: millis.into() * 1000, in from_millis() 155 micros: secs.into() * 1000000, in from_secs()
|
/DragonOS-0.1.9/kernel/src/driver/video/ |
D | mod.rs | 196 screen_info.origin_video_cols.into(), in video_init() 197 screen_info.origin_video_lines.into(), in video_init() 199 screen_info.lfb_depth.into(), in video_init() 211 screen_info.lfb_depth.into(), in video_init()
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/ipc/ |
D | signal.rs | 78 fn into(self) -> usize { in into() method 95 fn into(self) -> SigSet { in into() method 123 return (*self) as usize >= Signal::SIGRTMIN.into(); in is_rt_signal() 295 fn into(self) -> i32 { in into() method
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/kvm/vmx/ |
D | vcpu.rs | 275 (segmentation::es().bits() & (!0x07)).into(), in vmcs_init_host() 279 (segmentation::cs().bits() & (!0x07)).into(), in vmcs_init_host() 283 (segmentation::ss().bits() & (!0x07)).into(), in vmcs_init_host() 287 (segmentation::ds().bits() & (!0x07)).into(), in vmcs_init_host() 291 (segmentation::fs().bits() & (!0x07)).into(), in vmcs_init_host() 295 (segmentation::gs().bits() & (!0x07)).into(), in vmcs_init_host() 298 (x86::task::tr().bits() & (!0x07)).into() in vmcs_init_host() 315 x86::task::tr().bits().into() in vmcs_init_host() 469 let descriptor_table = unsafe { slice::from_raw_parts(gdt_base, gdt_size.into()) }; in get_segment_base()
|
/DragonOS-0.1.9/kernel/src/net/ |
D | mod.rs | 104 let x: u8 = value.into(); in from() 128 fn into(self) -> u8 { in into() method
|
/DragonOS-0.1.9/kernel/src/driver/firmware/efi/ |
D | fdt.rs | 59 self.clone().into() in prop_name() 64 fn into(self) -> &'static str { in into() method
|
/DragonOS-0.1.9/kernel/crates/unified-init/macros/src/ |
D | lib.rs | 45 .unwrap_or_else(|e| e.to_compile_error().into()) in unified_init() 46 .into() in unified_init()
|
/DragonOS-0.1.9/kernel/src/sched/ |
D | rt.rs | 56 if pcb.pid().into() == 0 { in enqueue() 79 if pcb.pid().into() == 0 { in enqueue_front()
|
/DragonOS-0.1.9/kernel/src/driver/base/platform/ |
D | mod.rs | 81 BusState::NotInitialized.into(), in platform_bus_init()
|
/DragonOS-0.1.9/kernel/src/driver/serial/serial8250/ |
D | serial8250_pio.rs | 178 self.serial_out(0, (*c).into()); in send_bytes() 204 unsafe { CurrentPortIOArch::in8(self.iobase as u16 + offset as u16).into() } in serial_in()
|