Searched refs:cluster (Results 1 – 3 of 3) sorted by relevance
/DragonOS-0.1.5/kernel/src/filesystem/fat/ |
D | fs.rs | 345 pub fn get_fat_entry(&self, cluster: Cluster) -> Result<FATEntry, i32> { in get_fat_entry() 346 let current_cluster = cluster.cluster_num; in get_fat_entry() 355 fat_type.get_fat_bytes_offset(cluster, fat_start_sector, bytes_per_sec); in get_fat_entry() 440 pub fn get_fat_entry_raw(&self, cluster: Cluster) -> Result<u64, i32> { in get_fat_entry_raw() 441 let current_cluster = cluster.cluster_num; in get_fat_entry_raw() 450 fat_type.get_fat_bytes_offset(cluster, fat_start_sector, bytes_per_sec); in get_fat_entry_raw() 523 pub fn cluster_bytes_offset(&self, cluster: Cluster) -> u64 { in cluster_bytes_offset() 524 if cluster.cluster_num >= 2 { in cluster_bytes_offset() 526 let first_sec_of_cluster = (cluster.cluster_num - 2) in cluster_bytes_offset() 600 pub fn deallocate_cluster(&self, cluster: Cluster) -> Result<(), i32> { in deallocate_cluster() [all …]
|
D | bpb.rs | 165 cluster: Cluster, in get_fat_bytes_offset() 169 let current_cluster = cluster.cluster_num; in get_fat_bytes_offset()
|
D | entry.rs | 1314 pub fn set_first_cluster(&mut self, cluster: Cluster) { in set_first_cluster() 1315 self.fst_clus_lo = (cluster.cluster_num & 0x0000ffff) as u16; in set_first_cluster() 1316 self.fst_clus_hi = ((cluster.cluster_num & 0xffff0000) >> 16) as u16; in set_first_cluster() 1540 Ok((cluster, offset, result)) => { in next() 1541 self.current_cluster = cluster; in next()
|