Lines Matching refs:start_cluster
553 let start_cluster: Cluster = match self.bpb.fat_type { in allocate_cluster() localVariable
569 let free_cluster: Cluster = match self.get_free_cluster(start_cluster, end_cluster) { in allocate_cluster()
571 Err(_) if start_cluster.cluster_num > RESERVED_CLUSTERS as u64 => { in allocate_cluster()
599 pub fn deallocate_cluster_chain(&self, start_cluster: Cluster) -> Result<(), SystemError> { in deallocate_cluster_chain()
600 let clusters: Vec<Cluster> = self.clusters(start_cluster); in deallocate_cluster_chain()
736 pub fn clusters(&self, start_cluster: Cluster) -> Vec<Cluster> { in clusters()
737 return self.cluster_iter(start_cluster).collect(); in clusters()
743 pub fn num_clusters_chain(&self, start_cluster: Cluster) -> u64 { in num_clusters_chain()
745 .cluster_iter(start_cluster) in num_clusters_chain()
751 fn cluster_iter(&self, start_cluster: Cluster) -> ClusterIter { in cluster_iter()
753 current_cluster: Some(start_cluster), in cluster_iter()
760 pub fn get_cluster_by_relative(&self, start_cluster: Cluster, n: usize) -> Option<Cluster> { in get_cluster_by_relative()
761 return self.cluster_iter(start_cluster).skip(n).next(); in get_cluster_by_relative()
766 pub fn get_last_cluster(&self, start_cluster: Cluster) -> Option<Cluster> { in get_last_cluster()
767 return self.cluster_iter(start_cluster).last(); in get_last_cluster()
916 start_cluster: Cluster, in get_free_cluster()
920 let mut cluster: u64 = start_cluster.cluster_num; in get_free_cluster()
929 fat_type.get_fat_bytes_offset(start_cluster, fat_start_sector, bytes_per_sec); in get_free_cluster()