Lines Matching refs:LBA_SIZE

17     io::{device::LBA_SIZE, disk_info::Partition, SeekFrom},
258 let fs_info_in_disk_bytes_offset = partition.lba_start * LBA_SIZE as u64 in new()
369 let fat_ent_lba = self.partition.lba_start + fat_bytes_offset / LBA_SIZE as u64; in get_fat_entry()
507 return (self.get_lba_from_offset(first_sec_cluster) * LBA_SIZE) as u64; in root_dir_bytes_offset()
512 return (self.get_lba_from_offset(root_sec) * LBA_SIZE) as u64; in root_dir_bytes_offset()
539 return (self.get_lba_from_offset(first_sec_of_cluster) * LBA_SIZE) as u64; in cluster_bytes_offset()
705 + in_partition_sec_offset * (self.bpb.bytes_per_sector as u64 / LBA_SIZE as u64)) in get_lba_from_offset()
712 return self.bpb.bytes_per_sector as usize / LBA_SIZE; in lba_per_sector()
724 return disk_bytes_offset - (self.partition.lba_start * LBA_SIZE as u64); in get_in_partition_bytes_offset()
730 return bytes_offset % LBA_SIZE as u64; in get_in_block_offset()
935 let num_lba = (6 * 1024) / LBA_SIZE; in get_free_cluster()
937 v.resize(num_lba * LBA_SIZE, 0); in get_free_cluster()
983 v.resize(self.lba_per_sector() * LBA_SIZE, 0); in get_free_cluster()
1015 v.resize(self.lba_per_sector() * LBA_SIZE, 0); in get_free_cluster()
1064 v.resize(LBA_SIZE, 0); in set_entry()
1097 v.resize(LBA_SIZE, 0); in set_entry()
1124 v.resize(LBA_SIZE, 0); in set_entry()
1217 .read_at(in_disk_fs_info_offset as usize / LBA_SIZE, 1, &mut v)?; in new()
1303 let in_block_offset = off % LBA_SIZE as u64; in flush()
1305 let lba = off as usize / LBA_SIZE; in flush()
1308 v.resize(LBA_SIZE, 0); in flush()
1332 let in_block_offset = off % LBA_SIZE as u64; in update()
1334 let lba = off as usize / LBA_SIZE; in update()
1337 v.resize(LBA_SIZE, 0); in update()