Home
last modified time | relevance | path

Searched refs:in8 (Results 1 – 11 of 11) sorted by relevance

/DragonOS/kernel/src/driver/keyboard/
H A Dps2_keyboard.rs192 let status = unsafe { CurrentPortIOArch::in8(PORT_PS2_KEYBOARD_STATUS.into()) }; in handle()
195 let input = unsafe { CurrentPortIOArch::in8(PORT_PS2_KEYBOARD_DATA.into()) }; in handle()
220 CurrentPortIOArch::in8(PORT_PS2_KEYBOARD_STATUS.into()) in wait_ps2_keyboard_write()
232 let status = unsafe { CurrentPortIOArch::in8(PORT_PS2_KEYBOARD_STATUS.into()) }; in force_clear_input_buffer()
235 unsafe { CurrentPortIOArch::in8(PORT_PS2_KEYBOARD_DATA.into()) }; in force_clear_input_buffer()
/DragonOS/kernel/src/arch/
H A Dio.rs4 unsafe fn in8(port: u16) -> u8; in in8() method
/DragonOS/kernel/src/arch/riscv64/
H A Dpio.rs7 unsafe fn in8(_port: u16) -> u8 { in in8() method
/DragonOS/kernel/src/arch/x86_64/asm/
H A Dpio.rs7 unsafe fn in8(port: u16) -> u8 { in in8() method
/DragonOS/kernel/src/arch/x86_64/driver/
H A Dtsc.rs252 let d = (CurrentPortIOArch::in8(0x61) & (!0x02)) | 0x01; in pit_calibrate_tsc()
269 while unsafe { (CurrentPortIOArch::in8(0x61) & 0x20) == 0 } { in pit_calibrate_tsc()
H A Drtc.rs71 return CurrentPortIOArch::in8(0x71); in read_cmos()
/DragonOS/kernel/src/driver/clocksource/
H A Dacpi_pm.rs148 CurrentPortIOArch::out8(0x61, (CurrentPortIOArch::in8(0x61) & !0x02) | 0x01); in mach_prepare_counter()
162 if (unsafe { CurrentPortIOArch::in8(0x61) } & 0x20) != 0 { in mach_countup()
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_device.rs347 let cmd = unsafe { CurrentPortIOArch::in8(ADDRESS_PORT_ADDRESS) }; in read_data_port()
349 let data = unsafe { CurrentPortIOArch::in8(DATA_PORT_ADDRESS) }; in read_data_port()
389 let value = unsafe { CurrentPortIOArch::in8(ADDRESS_PORT_ADDRESS) }; in wait_for_read()
400 let value = unsafe { CurrentPortIOArch::in8(ADDRESS_PORT_ADDRESS) }; in wait_for_write()
H A Dps_mouse_driver.rs60 unsafe { CurrentPortIOArch::in8(0x60) }; in handle()
/DragonOS/kernel/src/arch/x86_64/pci/
H A Dpci.rs34 let value = unsafe { CurrentPortIOArch::in8(PORT_PCI_CONFIG_DATA + (offset & 3) as u16) }; in read_config_early()
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dserial8250_pio.rs146 if CurrentPortIOArch::in8(port) != 0xAE { in init()
225 unsafe { CurrentPortIOArch::in8(self.iobase as u16 + offset as u16).into() } in serial_in()