Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 8 of 8) sorted by relevance

/DragonOS/kernel/src/filesystem/fat/
H A Dbpb.rs227 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 Dfs.rs438 let mut cursor = VecCursor::new(v); in get_fat_entry() localVariable
439 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_fat_entry()
443 let mut entry = cursor.read_u16()?; in get_fat_entry()
465 let entry = cursor.read_u16()?; in get_fat_entry()
481 let entry = cursor.read_u32()? & 0x0fffffff; in get_fat_entry()
529 let mut cursor = VecCursor::new(v); in get_fat_entry_raw() localVariable
530 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in get_fat_entry_raw()
534 let mut entry = cursor.read_u16()?; in get_fat_entry_raw()
543 let entry = (cursor.read_u16()?) as u64; in get_fat_entry_raw()
547 let entry = cursor.read_u32()? & 0x0fff_ffff; in get_fat_entry_raw()
[all …]
H A Dentry.rs1143 let mut cursor: VecCursor = VecCursor::new(v); in flush() localVariable
1145 cursor.seek(SeekFrom::SeekSet(blk_offset as i64))?; in flush()
1148 cursor.write_u8(self.ord)?; in flush()
1150 cursor.write_u16(*b)?; in flush()
1153 cursor.write_u8(self.file_attrs.value)?; in flush()
1154 cursor.write_u8(self.dirent_type)?; in flush()
1155 cursor.write_u8(self.checksum)?; in flush()
1158 cursor.write_u16(*b)?; in flush()
1161 cursor.write_u16(self.first_clus_low)?; in flush()
1164 cursor.write_u16(*b)?; in flush()
[all …]
/DragonOS/kernel/src/filesystem/
H A Dmbr.rs96 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 Dframebuffer_console.rs363 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 Dmod.rs425 fn cursor(&self, vc_data: &VirtualConsoleData, op: CursorOperation, fg: u32, bg: u32); in cursor() method
/DragonOS/kernel/src/filesystem/vfs/
H A Dfile.rs170 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 Dmod.rs443 fn soft_cursor(&self, cursor: FbCursor) -> Result<(), SystemError> { in soft_cursor()
444 let mut image = cursor.image.clone(); in soft_cursor()
445 if cursor.enable { in soft_cursor()
446 match cursor.rop { in soft_cursor()
449 image.data[i] ^= cursor.mask[i]; in soft_cursor()
454 image.data[i] &= cursor.mask[i]; in soft_cursor()