Searched refs:bytes_offset (Results 1 – 3 of 3) sorted by relevance
/DragonOS/kernel/src/driver/base/block/ |
H A D | gendisk.rs | 74 pub fn read_at_bytes(&self, buf: &mut [u8], bytes_offset: usize) -> Result<usize, SystemError> { in read_at_bytes() 76 let bytes_offset = self.disk_blkid_2_bytes(start_lba) + bytes_offset; in read_at_bytes() localVariable 79 .read_at_bytes(bytes_offset, buf.len(), buf); in read_at_bytes() 83 pub fn disk_bytes_offset(&self, bytes_offset: usize) -> usize { in disk_bytes_offset() 85 return self.disk_blkid_2_bytes(start_lba) + bytes_offset; in disk_bytes_offset() 96 pub fn write_at_bytes(&self, buf: &[u8], bytes_offset: usize) -> Result<usize, SystemError> { in write_at_bytes() 98 let bytes_offset = self.disk_blkid_2_bytes(start_lba) + bytes_offset; in write_at_bytes() localVariable 101 .write_at_bytes(bytes_offset, buf.len(), buf); in write_at_bytes()
|
/DragonOS/kernel/src/filesystem/fat/ |
H A D | fs.rs | 774 pub fn get_in_block_offset(&self, bytes_offset: u64) -> u64 { in get_in_block_offset() 775 return bytes_offset % LBA_SIZE as u64; in get_in_block_offset()
|
H A D | entry.rs | 746 let bytes_offset = fs.cluster_bytes_offset(off.0) + off.1; localVariable 747 long_entry.flush(fs.clone(), bytes_offset)?;
|