Lines Matching refs:LBA_SIZE
19 io::{device::LBA_SIZE, disk_info::Partition, SeekFrom},
252 let fs_info_in_disk_bytes_offset = partition.lba_start * LBA_SIZE as u64 in new()
359 let fat_ent_lba = self.partition.lba_start + fat_bytes_offset / LBA_SIZE as u64; in get_fat_entry()
497 return (self.get_lba_from_offset(first_sec_cluster) * LBA_SIZE) as u64; in root_dir_bytes_offset()
502 return (self.get_lba_from_offset(root_sec) * LBA_SIZE) as u64; in root_dir_bytes_offset()
529 return (self.get_lba_from_offset(first_sec_of_cluster) * LBA_SIZE) as u64; in cluster_bytes_offset()
695 + in_partition_sec_offset * (self.bpb.bytes_per_sector as u64 / LBA_SIZE as u64)) in get_lba_from_offset()
702 return self.bpb.bytes_per_sector as usize / LBA_SIZE; in lba_per_sector()
714 return disk_bytes_offset - (self.partition.lba_start * LBA_SIZE as u64); in get_in_partition_bytes_offset()
720 return bytes_offset % LBA_SIZE as u64; in get_in_block_offset()
925 let num_lba = (6 * 1024) / LBA_SIZE; in get_free_cluster()
927 v.resize(num_lba * LBA_SIZE, 0); in get_free_cluster()
973 v.resize(self.lba_per_sector() * LBA_SIZE, 0); in get_free_cluster()
1005 v.resize(self.lba_per_sector() * LBA_SIZE, 0); in get_free_cluster()
1054 v.resize(LBA_SIZE, 0); in set_entry()
1087 v.resize(LBA_SIZE, 0); in set_entry()
1114 v.resize(LBA_SIZE, 0); in set_entry()
1207 .read_at(in_disk_fs_info_offset as usize / LBA_SIZE, 1, &mut v)?; in new()
1293 let in_block_offset = off % LBA_SIZE as u64; in flush()
1295 let lba = off as usize / LBA_SIZE; in flush()
1298 v.resize(LBA_SIZE, 0); in flush()
1322 let in_block_offset = off % LBA_SIZE as u64; in update()
1324 let lba = off as usize / LBA_SIZE; in update()
1327 v.resize(LBA_SIZE, 0); in update()