Searched refs:u8 (Results 1 – 5 of 5) sorted by relevance
/DragonOS-0.1.2/kernel/src/mm/ |
D | allocator.rs | 8 unsafe fn local_alloc(&self, layout: Layout, gfp: gfp_t) -> *mut u8; in local_alloc() argument 9 unsafe fn local_alloc_zeroed(&self, layout: Layout, gfp: gfp_t) -> *mut u8; in local_alloc_zeroed() argument 10 unsafe fn local_dealloc(&self, ptr: *mut u8, layout: Layout); in local_dealloc() argument 17 unsafe fn local_alloc(&self, layout: Layout, gfp: gfp_t) -> *mut u8 { in local_alloc() argument 21 return kmalloc(layout.size() as u64, gfp) as *mut u8; in local_alloc() 24 unsafe fn local_alloc_zeroed(&self, layout: Layout, gfp: gfp_t) -> *mut u8 { in local_alloc_zeroed() argument 28 return kmalloc(layout.size() as u64, gfp | __GFP_ZERO) as *mut u8; in local_alloc_zeroed() 31 unsafe fn local_dealloc(&self, ptr: *mut u8, layout: Layout) { in local_dealloc() argument 38 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc() argument 42 unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { in alloc_zeroed() argument [all …]
|
/DragonOS-0.1.2/kernel/src/driver/uart/ |
D | uart.rs | 64 reg_data: u8, 65 reg_interrupt_enable: u8, 66 reg_ii_fifo: u8, // Interrupt Identification and FIFO control registers 67 reg_line_config: u8, 68 reg_modem_config: u8, 69 reg_line_status: u8, 70 reg_modem_statue: u8, 71 reg_scartch: u8, 106 io_out8(port + 0, (divisor & 0xff) as u8); // Set divisor (lo byte) in uart_init() 107 io_out8(port + 1, ((divisor >> 8) & 0xff) as u8); // (hi byte) in uart_init() [all …]
|
/DragonOS-0.1.2/kernel/src/process/ |
D | pid.rs | 3 #[repr(u8)] 16 *self as u8 == *other as u8 in eq()
|
/DragonOS-0.1.2/kernel/src/arch/x86_64/ |
D | cpu.rs | 5 pub fn arch_current_apic_id() -> u8 { in arch_current_apic_id() 15 return (cpuid_res >> 24) as u8; in arch_current_apic_id()
|
/DragonOS-0.1.2/kernel/src/libs/ |
D | printk.rs | 115 pub fn __utf8_to_ascii(&self, s: &str) -> Vec<u8> { in __utf8_to_ascii() argument 116 let mut ascii_str: Vec<u8> = Vec::with_capacity(s.len() + 1); in __utf8_to_ascii()
|