Searched refs:cluster (Results 1 – 3 of 3) sorted by relevance
/DragonOS/kernel/src/filesystem/fat/ |
H A D | fs.rs | 413 pub fn get_fat_entry(&self, cluster: Cluster) -> Result<FATEntry, SystemError> { in get_fat_entry() 414 let current_cluster = cluster.cluster_num; in get_fat_entry() 427 fat_type.get_fat_bytes_offset(cluster, fat_start_sector, bytes_per_sec); in get_fat_entry() 508 pub fn get_fat_entry_raw(&self, cluster: Cluster) -> Result<u64, SystemError> { in get_fat_entry_raw() 509 let current_cluster = cluster.cluster_num; in get_fat_entry_raw() 518 fat_type.get_fat_bytes_offset(cluster, fat_start_sector, bytes_per_sec); in get_fat_entry_raw() 588 pub fn cluster_bytes_offset(&self, cluster: Cluster) -> u64 { in cluster_bytes_offset() 589 if cluster.cluster_num >= 2 { in cluster_bytes_offset() 591 let first_sec_of_cluster = (cluster.cluster_num - 2) in cluster_bytes_offset() 662 pub fn deallocate_cluster(&self, cluster: Cluster) -> Result<(), SystemError> { in deallocate_cluster() [all …]
|
H A D | bpb.rs | 165 cluster: Cluster, in get_fat_bytes_offset() 169 let current_cluster = cluster.cluster_num; in get_fat_bytes_offset()
|
H A D | entry.rs | 1381 pub fn set_first_cluster(&mut self, cluster: Cluster) { in set_first_cluster() 1382 self.fst_clus_lo = (cluster.cluster_num & 0x0000ffff) as u16; in set_first_cluster() 1383 self.fst_clus_hi = ((cluster.cluster_num & 0xffff0000) >> 16) as u16; in set_first_cluster() 1611 Ok((cluster, offset, result)) => { in next() 1612 self.current_cluster = cluster; in next()
|