Home
last modified time | relevance | path

Searched refs:u16 (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.3/kernel/src/driver/uart/
Duart.rs10 #[repr(u16)]
28 pub fn from_u16(val: u16) -> Result<Self, &'static str> { in from_u16()
46 pub fn to_u16(self: &Self) -> u16 { in to_u16() argument
135 fn serial_received(offset: u16) -> bool { in serial_received()
143 fn is_transmit_empty(offset: u16) -> bool { in is_transmit_empty()
181 pub extern "C" fn c_uart_send(port: u16, c: u8) { in c_uart_send() argument
190 pub extern "C" fn c_uart_read(port: u16) -> u8 { in c_uart_read()
199 pub extern "C" fn c_uart_send_str(port: u16, str: *const u8) in c_uart_send_str() argument
215 pub extern "C" fn c_uart_init(port: u16, baud_rate: u32) -> i32 { in c_uart_init() argument
/DragonOS-0.1.3/kernel/src/libs/
Dlz4.c358 U16 u16; member
363 static U16 LZ4_read16(const void *ptr) { return ((const unalign *)ptr)->u16; } in LZ4_read16()
367 static void LZ4_write16(void *memPtr, U16 value) { ((unalign *)memPtr)->u16 = value; } in LZ4_write16()