Lines Matching refs:start_cluster
608 let start_cluster: Cluster = match self.bpb.fat_type { in allocate_cluster() localVariable
621 let free_cluster: Cluster = match self.get_free_cluster(start_cluster, end_cluster) { in allocate_cluster()
623 Err(_) if start_cluster.cluster_num > RESERVED_CLUSTERS as u64 => { in allocate_cluster()
651 pub fn deallocate_cluster_chain(&self, start_cluster: Cluster) -> Result<(), SystemError> { in deallocate_cluster_chain()
652 let clusters: Vec<Cluster> = self.clusters(start_cluster); in deallocate_cluster_chain()
781 pub fn clusters(&self, start_cluster: Cluster) -> Vec<Cluster> { in clusters()
782 return self.cluster_iter(start_cluster).collect(); in clusters()
788 pub fn num_clusters_chain(&self, start_cluster: Cluster) -> u64 { in num_clusters_chain()
790 .cluster_iter(start_cluster) in num_clusters_chain()
796 fn cluster_iter(&self, start_cluster: Cluster) -> ClusterIter { in cluster_iter()
798 current_cluster: Some(start_cluster), in cluster_iter()
805 pub fn get_cluster_by_relative(&self, start_cluster: Cluster, n: usize) -> Option<Cluster> { in get_cluster_by_relative()
806 return self.cluster_iter(start_cluster).nth(n); in get_cluster_by_relative()
811 pub fn get_last_cluster(&self, start_cluster: Cluster) -> Option<Cluster> { in get_last_cluster()
812 return self.cluster_iter(start_cluster).last(); in get_last_cluster()
962 start_cluster: Cluster, in get_free_cluster()
966 let mut cluster: u64 = start_cluster.cluster_num; in get_free_cluster()
975 fat_type.get_fat_bytes_offset(start_cluster, fat_start_sector, bytes_per_sec); in get_free_cluster()