Searched refs:cursor (Results 1 – 8 of 8) sorted by relevance
/DragonOS/kernel/src/filesystem/fat/ |
H A D | bpb.rs | 227 let mut cursor = VecCursor::new(v); in new() localVariable 231 cursor.read_exact(&mut bpb.jmp_boot)?; in new() 232 cursor.read_exact(&mut bpb.oem_name)?; in new() 233 bpb.bytes_per_sector = cursor.read_u16()?; in new() 234 bpb.sector_per_cluster = cursor.read_u8()?; in new() 235 bpb.rsvd_sec_cnt = cursor.read_u16()?; in new() 236 bpb.num_fats = cursor.read_u8()?; in new() 237 bpb.root_entries_cnt = cursor.read_u16()?; in new() 238 bpb.total_sectors_16 = cursor.read_u16()?; in new() 239 bpb.media = cursor.read_u8()?; in new() [all …]
|
H A D | fs.rs | 437 let mut cursor = VecCursor::new(v); in get_fat_entry() localVariable 438 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_fat_entry() 442 let mut entry = cursor.read_u16()?; in get_fat_entry() 464 let entry = cursor.read_u16()?; in get_fat_entry() 480 let entry = cursor.read_u32()? & 0x0fffffff; in get_fat_entry() 528 let mut cursor = VecCursor::new(v); in get_fat_entry_raw() localVariable 529 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_fat_entry_raw() 533 let mut entry = cursor.read_u16()?; in get_fat_entry_raw() 542 let entry = (cursor.read_u16()?) as u64; in get_fat_entry_raw() 546 let entry = cursor.read_u32()? & 0x0fff_ffff; in get_fat_entry_raw() [all …]
|
H A D | entry.rs | 1141 let mut cursor: VecCursor = VecCursor::new(v); in flush() localVariable 1143 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in flush() 1146 cursor.write_u8(self.ord)?; in flush() 1148 cursor.write_u16(*b)?; in flush() 1151 cursor.write_u8(self.file_attrs.value)?; in flush() 1152 cursor.write_u8(self.dirent_type)?; in flush() 1153 cursor.write_u8(self.checksum)?; in flush() 1156 cursor.write_u16(*b)?; in flush() 1159 cursor.write_u16(self.first_clus_low)?; in flush() 1162 cursor.write_u16(*b)?; in flush() [all …]
|
/DragonOS/kernel/src/filesystem/ |
H A D | mbr.rs | 96 let mut cursor = VecCursor::new(buf); in from_disk() localVariable 97 cursor.seek(SeekFrom::SeekCurrent(446))?; in from_disk() 100 table.dpte[i].flags = cursor.read_u8()?; in from_disk() 101 table.dpte[i].starting_head = cursor.read_u8()?; in from_disk() 102 table.dpte[i].starting_sector_cylinder = cursor.read_u16()?; in from_disk() 103 table.dpte[i].part_type = cursor.read_u8()?; in from_disk() 104 table.dpte[i].ending_head = cursor.read_u8()?; in from_disk() 105 table.dpte[i].ending_sector_cylinder = cursor.read_u16()?; in from_disk() 106 table.dpte[i].starting_lba = cursor.read_u32()?; in from_disk() 107 table.dpte[i].total_sectors = cursor.read_u32()?; in from_disk() [all …]
|
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/ |
H A D | framebuffer_console.rs | 363 self.cursor( in con_cursor() 660 fn cursor(&self, vc_data: &VirtualConsoleData, op: CursorOperation, fg: u32, bg: u32) { in cursor() method 663 let mut cursor = FbCursor::default(); in cursor() localVariable 682 cursor.set_mode.insert(FbCursorSetMode::FB_CUR_SETIMAGE); in cursor() 703 cursor.set_mode.insert(FbCursorSetMode::FB_CUR_SETCMAP); in cursor() 712 cursor.set_mode.insert(FbCursorSetMode::FB_CUR_SETPOS); in cursor() 721 cursor.set_mode.insert(FbCursorSetMode::FB_CUR_SETSIZE); in cursor() 729 cursor.hot_y = 0; in cursor() 730 cursor.set_mode.insert(FbCursorSetMode::FB_CUR_SETHOT); in cursor() 733 if cursor.set_mode.contains(FbCursorSetMode::FB_CUR_SETSIZE) in cursor() [all …]
|
H A D | mod.rs | 425 fn cursor(&self, vc_data: &VirtualConsoleData, op: CursorOperation, fg: u32, bg: u32); in cursor() method
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | file.rs | 170 let mut cursor = guard.cursor_mut(offset as u64); in add_page() localVariable 171 cursor.store(page.clone()); in add_page() 176 let mut cursor = guard.cursor_mut(offset as u64); in get_page() localVariable 177 let page = cursor.load().map(|r| (*r).clone()); in get_page() 183 let mut cursor = guard.cursor_mut(offset as u64); in remove_page() localVariable 184 cursor.remove(); in remove_page()
|
/DragonOS/kernel/src/driver/video/fbdev/base/ |
H A D | mod.rs | 414 fn soft_cursor(&self, cursor: FbCursor) -> Result<(), SystemError> { in soft_cursor() 415 let mut image = cursor.image.clone(); in soft_cursor() 416 if cursor.enable { in soft_cursor() 417 match cursor.rop { in soft_cursor() 420 image.data[i] ^= cursor.mask[i]; in soft_cursor() 425 image.data[i] &= cursor.mask[i]; in soft_cursor()
|