Home
last modified time | relevance | path

Searched refs:into (Results 1 – 25 of 57) sorted by relevance

123

/DragonOS-0.1.9/kernel/src/arch/x86_64/driver/apic/
Dx2apic.rs26 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 …]
Dxapic.rs95 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 …]
Dlapic_vector.rs216 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()
Dapic_timer.rs307 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/
Dint_like.rs35 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))
Dsemaphore.rs56 ProcessManager::current_pcb().pid().into(), in up()
/DragonOS-0.1.9/kernel/src/libs/lib_ui/
Dtextui.rs163 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/
Dlib.rs75 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/
Dipi.rs44 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/
Dps2_keyboard.rs181 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/
Dsignal.rs161 .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/
Dexit.rs162 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/
Dcast_mut.rs39 (caster.cast_mut)(any).into() in cast()
Dcast_ref.rs69 (caster.cast_ref)(any).into() in cast()
/DragonOS-0.1.9/kernel/src/time/
Dsleep.rs64 let rm_time: TimeSpec = (sleep_time - real_sleep_time.into()).into(); in nanosleep()
Dmod.rs130 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/
Dmod.rs196 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/
Dsignal.rs78 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/
Dvcpu.rs275 (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/
Dmod.rs104 let x: u8 = value.into(); in from()
128 fn into(self) -> u8 { in into() method
/DragonOS-0.1.9/kernel/src/driver/firmware/efi/
Dfdt.rs59 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/
Dlib.rs45 .unwrap_or_else(|e| e.to_compile_error().into()) in unified_init()
46 .into() in unified_init()
/DragonOS-0.1.9/kernel/src/sched/
Drt.rs56 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/
Dmod.rs81 BusState::NotInitialized.into(), in platform_bus_init()
/DragonOS-0.1.9/kernel/src/driver/serial/serial8250/
Dserial8250_pio.rs178 self.serial_out(0, (*c).into()); in send_bytes()
204 unsafe { CurrentPortIOArch::in8(self.iobase as u16 + offset as u16).into() } in serial_in()

123