/DragonOS-0.1.9/kernel/src/arch/riscv64/interrupt/ |
D | handle.rs | 67 fn default_handler(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in default_handler() 75 fn do_trap_insn_misaligned(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_insn_misaligned() 83 fn do_trap_insn_access_fault(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_insn_access_fault() 91 fn do_trap_insn_illegal(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_insn_illegal() 99 fn do_trap_break(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_break() 107 fn do_trap_load_misaligned(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_load_misaligned() 115 fn do_trap_load_access_fault(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_load_access_fault() 123 fn do_trap_store_misaligned(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_store_misaligned() 131 fn do_trap_store_access_fault(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_store_access_fault() 139 fn do_trap_user_env_call(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_user_env_call() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/input/serio/ |
D | serio_device.rs | 23 fn write(&self, device: &Arc<dyn SerioDevice>, data: u8) -> Result<(), SystemError>; in write() 25 fn open(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in open() 27 fn close(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in close() 29 fn start(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in start() 31 fn stop(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in stop() 50 pub fn register_port(&self, device: Arc<dyn SerioDevice>) -> Result<(), SystemError> { in register_port() 64 pub fn init_port(&self, device: Arc<dyn SerioDevice>) -> Result<(), SystemError> { in init_port()
|
D | serio_driver.rs | 16 fn write_wakeup(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in write_wakeup() 34 ) -> Result<(), SystemError>; in interrupt() 36 fn connect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in connect() 38 fn reconnect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in reconnect() 40 fn fast_reconnect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in fast_reconnect() 42 fn disconnect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in disconnect() 44 fn cleanup(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in cleanup() 66 pub fn register(&self, driver: Arc<dyn SerioDriver>) -> Result<(), SystemError> { in register()
|
/DragonOS-0.1.9/kernel/src/driver/base/platform/ |
D | platform_driver.rs | 24 fn probe(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in probe() 25 fn remove(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in remove() 26 fn shutdown(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in shutdown() 27 fn suspend(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in suspend() 28 fn resume(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in resume() 43 pub fn register(&self, driver: Arc<dyn PlatformDriver>) -> Result<(), SystemError> { in register()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/kvm/vmx/ |
D | vmx_asm_wrapper.rs | 7 pub fn vmxon(vmxon_pa: u64) -> Result<(), SystemError> { in vmxon() 26 pub fn vmx_vmwrite(vmcs_field: u32, value: u64) -> Result<(), SystemError> { in vmx_vmwrite() 48 pub fn vmx_vmptrld(vmcs_pa: u64) -> Result<(), SystemError> { in vmx_vmptrld() 91 pub fn vmx_vmclear(vmcs_pa: u64) -> Result<(), SystemError> { in vmx_vmclear()
|
D | vcpu.rs | 131 pub fn init_region(&mut self) -> Result<(), SystemError> { in init_region() 169 pub fn vmx_set_cr0(cr0: X86_CR0) -> Result<(), SystemError> { in vmx_set_cr0() 177 pub fn vmcs_init_guest(&self) -> Result<(), SystemError> { in vmcs_init_guest() 265 pub fn vmcs_init_host(&self) -> Result<(), SystemError> { in vmcs_init_host() 347 pub fn vmcs_init(&self) -> Result<(), SystemError> { in vmcs_init() 390 fn kvm_mmu_load(&mut self) -> Result<(), SystemError> { in kvm_mmu_load() 407 pub fn set_regs(&mut self, regs: VcpuContextFrame) -> Result<(), SystemError> { in set_regs() 415 fn virtualize_cpu(&mut self) -> Result<(), SystemError> { in virtualize_cpu() 452 fn devirtualize_cpu(&self) -> Result<(), SystemError> { in devirtualize_cpu()
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | notifier.rs | 35 ) -> Result<(), SystemError> { in register() 67 pub fn unregister(&mut self, block: Arc<dyn NotifierBlock<V, T>>) -> Result<(), SystemError> { in unregister() 115 pub fn register(&mut self, block: Arc<dyn NotifierBlock<V, T>>) -> Result<(), SystemError> { in register() 123 ) -> Result<(), SystemError> { in register_unique_prio() 128 pub fn unregister(&mut self, block: Arc<dyn NotifierBlock<V, T>>) -> Result<(), SystemError> { in unregister() 154 pub fn register(&mut self, block: Arc<dyn NotifierBlock<V, T>>) -> Result<(), SystemError> { in register() 162 ) -> Result<(), SystemError> { in register_unique_prio() 167 pub fn unregister(&mut self, block: Arc<dyn NotifierBlock<V, T>>) -> Result<(), SystemError> { in unregister() 191 pub fn register(&mut self, block: Arc<dyn NotifierBlock<V, T>>) -> Result<(), SystemError> { in register() 195 pub fn unregister(&mut self, block: Arc<dyn NotifierBlock<V, T>>) -> Result<(), SystemError> { in unregister()
|
/DragonOS-0.1.9/kernel/src/filesystem/sysfs/ |
D | group.rs | 25 ) -> Result<(), SystemError> { in create_groups() 34 ) -> Result<(), SystemError> { in do_create_groups() 59 ) -> Result<(), SystemError> { in do_create_group() 133 ) -> Result<(), SystemError> { in remove_group() 174 ) -> Result<(), SystemError> { in group_create_files()
|
D | symlink.rs | 28 ) -> Result<(), SystemError> { in create_link() 51 ) -> Result<(), SystemError> { in do_create_link() 70 ) -> Result<(), SystemError> { in do_create_link_sd() 101 ) -> Result<(), SystemError> { in create_link_sd()
|
/DragonOS-0.1.9/kernel/src/virt/kvm/ |
D | vcpu.rs | 5 fn virtualize_cpu(&mut self) -> Result<(), SystemError>; in virtualize_cpu() 6 fn devirtualize_cpu(&self) -> Result<(), SystemError>; in devirtualize_cpu()
|
/DragonOS-0.1.9/kernel/src/driver/tty/ |
D | console.rs | 10 fn con_init(&self, vc_data: &mut VirtualConsoleData, init: bool) -> Result<(), SystemError>; in con_init() 13 fn con_deinit(&self) -> Result<(), SystemError>; in con_deinit() 30 ) -> Result<(), SystemError>; in con_clear() 44 ) -> Result<(), SystemError>; in con_putc() 60 ) -> Result<(), SystemError>; in con_putcs() 109 ) -> Result<(), SystemError>; in con_set_palette()
|
/DragonOS-0.1.9/kernel/src/driver/tty/tty_ldisc/ |
D | mod.rs | 16 fn open(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in open() 17 fn close(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in close() 18 fn flush_buffer(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in flush_buffer() 49 fn set_termios(&self, tty: Arc<TtyCore>, old: Option<Termios>) -> Result<(), SystemError>; in set_termios() 52 fn hangup(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in hangup() 73 fn write_wakeup(&self, _tty: &TtyCoreData) -> Result<(), SystemError> { in write_wakeup() 102 pub fn ldisc_setup(tty: Arc<TtyCore>, _o_tty: Option<Arc<TtyCore>>) -> Result<(), SystemError> { in ldisc_setup()
|
/DragonOS-0.1.9/kernel/src/exception/ |
D | manage.rs | 68 ) -> Result<(), SystemError> { in request_irq() 116 ) -> Result<(), SystemError> { in request_threaded_irq() 169 ) -> Result<(), SystemError> { in inner_setup_irq() 606 ) -> Result<(), SystemError> { in irq_activate_and_startup() 615 ) -> Result<(), SystemError> { in irq_activate() 632 ) -> Result<(), SystemError> { in irq_startup() 723 ) -> Result<(), SystemError> { in irq_setup_affinity() 759 ) -> Result<(), SystemError> { in irq_do_set_affinity() 799 ) -> Result<(), SystemError> { in __irq_startup() 878 ) -> Result<(), SystemError> { in do_enable_irq() [all …]
|
D | dummychip.rs | 49 fn irq_enable(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_enable() 67 fn irq_startup(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_startup() 71 fn irq_shutdown(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_shutdown() 98 fn irq_enable(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_enable() 114 fn irq_startup(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_startup() 118 fn irq_shutdown(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_shutdown()
|
D | resend.rs | 18 ) -> Result<(), SystemError> { in irq_check_and_resend() 74 ) -> Result<(), SystemError> { in try_retrigger()
|
D | irqchip.rs | 40 fn irq_startup(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_startup() 45 fn irq_shutdown(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_shutdown() 52 fn irq_enable(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_enable() 69 fn irq_mask(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_mask() 84 fn irq_unmask(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_unmask() 107 fn retrigger(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in retrigger() 129 fn irq_set_wake(&self, _irq: &Arc<IrqData>, _on: bool) -> Result<(), SystemError> { in irq_set_wake() 134 fn irq_bus_lock(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_bus_lock() 139 fn irq_bus_sync_unlock(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_bus_sync_unlock() 161 fn irq_request_resources(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_request_resources() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/serial/ |
D | mod.rs | 34 fn set_divisor(&self, baud: BaudRate) -> Result<(), SystemError>; in set_divisor() 36 fn startup(&self) -> Result<(), SystemError>; in startup() 38 fn handle_irq(&self) -> Result<(), SystemError>; in handle_irq() 58 pub fn register_driver(&self, _driver: &Arc<dyn UartDriver>) -> Result<(), SystemError> { in register_driver()
|
/DragonOS-0.1.9/kernel/src/driver/input/ps2_mouse/ |
D | ps_mouse_device.rs | 219 pub fn init(&self) -> Result<(), SystemError> { in init() 257 pub fn get_mouse_id(&self) -> Result<(), SystemError> { in get_mouse_id() 266 pub fn set_sample_rate(&self, hz: u8) -> Result<(), SystemError> { in set_sample_rate() 292 pub fn process_packet(&self) -> Result<(), SystemError> { in process_packet() 361 fn send_command_to_ps2mouse(&self, command: PsMouseCommand) -> Result<(), SystemError> { in send_command_to_ps2mouse() 367 fn do_send_command(&self, ctrl: u8, command: u8) -> Result<(), SystemError> { in do_send_command() 373 fn write_data_port(&self, data: u8) -> Result<(), SystemError> { in write_data_port() 381 fn write_control_port(&self, command: u8) -> Result<(), SystemError> { in write_control_port() 389 fn wait_for_read(&self) -> Result<(), SystemError> { in wait_for_read() 400 fn wait_for_write(&self) -> Result<(), SystemError> { in wait_for_write() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/acpi/ |
D | bus.rs | 32 pub(super) fn bus_init(&self) -> Result<(), SystemError> { in bus_init() 72 fn remove(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in remove() 80 fn resume(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in resume() 97 fn probe(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in probe()
|
/DragonOS-0.1.9/kernel/src/driver/base/device/ |
D | bus.rs | 138 fn probe(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in probe() 141 fn remove(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError>; in remove() 148 fn resume(&self, device: &Arc<dyn Device>) -> Result<(), SystemError>; in resume() 264 pub fn add_device(&self, dev: &Arc<dyn Device>) -> Result<(), SystemError> { in add_device() 294 pub fn add_driver(&self, driver: &Arc<dyn Driver>) -> Result<(), SystemError> { in add_driver() 356 pub fn register(&self, bus: Arc<dyn Bus>) -> Result<(), SystemError> { in register() 380 pub fn unregister(&self, _bus: Arc<dyn Bus>) -> Result<(), SystemError> { in unregister() 384 fn add_probe_files(&self, bus: &Arc<dyn Bus>) -> Result<(), SystemError> { in add_probe_files() 404 ) -> Result<(), SystemError> { in create_file() 419 ) -> Result<(), SystemError> { in add_groups() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/input/serio/i8042/ |
D | mod.rs | 53 pub fn i8042_start(_serio: &Arc<dyn SerioDevice>) -> Result<(), SystemError> { in i8042_start() 58 pub fn i8042_stop(_serio: &Arc<dyn SerioDevice>) -> Result<(), SystemError> { in i8042_stop()
|
/DragonOS-0.1.9/kernel/src/filesystem/ramfs/ |
D | mod.rs | 124 fn truncate(&self, len: usize) -> Result<(), SystemError> { in truncate() 139 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() 147 ) -> Result<(), SystemError> { in open() 230 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() 242 fn resize(&self, len: usize) -> Result<(), SystemError> { in resize() 305 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() 336 fn unlink(&self, name: &str) -> Result<(), SystemError> { in unlink() 359 fn rmdir(&self, name: &str) -> Result<(), SystemError> { in rmdir() 382 ) -> Result<(), SystemError> { in move_()
|
/DragonOS-0.1.9/kernel/src/filesystem/devfs/ |
D | mod.rs | 107 ) -> Result<(), SystemError> { in register_device() 176 ) -> Result<(), SystemError> { in unregister_device() 271 pub fn add_dir(&self, name: &str) -> Result<(), SystemError> { in add_dir() 294 pub fn add_dev(&self, name: &str, dev: Arc<dyn IndexNode>) -> Result<(), SystemError> { in add_dev() 305 pub fn remove(&self, name: &str) -> Result<(), SystemError> { in remove() 376 ) -> Result<(), SystemError> { in open() 380 fn close(&self, _data: &mut super::vfs::FilePrivateData) -> Result<(), SystemError> { in close() 491 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() 555 pub fn devfs_register<T: DeviceINode>(name: &str, device: Arc<T>) -> Result<(), SystemError> { in devfs_register() 561 pub fn devfs_unregister<T: DeviceINode>(name: &str, device: Arc<T>) -> Result<(), SystemError> { in devfs_unregister()
|
/DragonOS-0.1.9/kernel/src/net/ |
D | net_core.rs | 25 fn run(&mut self) -> Result<(), SystemError> { in run() 140 pub fn poll_ifaces_try_lock(times: u16) -> Result<(), SystemError> { in poll_ifaces_try_lock() 190 fn send_event(sockets: &smoltcp::iface::SocketSet) -> Result<(), SystemError> { in send_event()
|
/DragonOS-0.1.9/kernel/src/filesystem/vfs/ |
D | mount.rs | 135 fn open(&self, data: &mut FilePrivateData, mode: &FileMode) -> Result<(), SystemError> { in open() 139 fn close(&self, data: &mut FilePrivateData) -> Result<(), SystemError> { in close() 160 fn truncate(&self, len: usize) -> Result<(), SystemError> { in truncate() 200 fn set_metadata(&self, metadata: &super::Metadata) -> Result<(), SystemError> { in set_metadata() 205 fn resize(&self, len: usize) -> Result<(), SystemError> { in resize() 224 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() 230 fn unlink(&self, name: &str) -> Result<(), SystemError> { in unlink() 242 fn rmdir(&self, name: &str) -> Result<(), SystemError> { in rmdir() 261 ) -> Result<(), SystemError> { in move_()
|