Lines Matching refs:current_cluster
94 let mut current_cluster = if let Some(c) = in read() localVariable
114 if let Some(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster).ok() { in read()
115 current_cluster = c; in read()
132 let offset = fs.cluster_bytes_offset(current_cluster) + in_cluster_offset; in read()
169 let mut current_cluster: Cluster = if let Some(c) = in write() localVariable
185 if let Some(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster).ok() { in write()
186 current_cluster = c; in write()
199 let offset = fs.cluster_bytes_offset(current_cluster) + in_cluster_bytes_offset; in write()
272 let mut current_cluster: Cluster = last_cluster; in ensure_len() localVariable
274 current_cluster = fs.allocate_cluster(Some(current_cluster))?; in ensure_len()
390 current_cluster: self.first_cluster, in to_iter()
421 let mut current_cluster: Cluster = self.first_cluster; in find_free_entries() localVariable
430 if let Some(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster).ok() { in find_free_entries()
431 current_cluster = c; in find_free_entries()
444 let e_offset = fs.cluster_bytes_offset(current_cluster) + offset; in find_free_entries()
450 first_free = Some((current_cluster, offset)); in find_free_entries()
476 let mut prev_cluster = current_cluster; in find_free_entries()
1399 current_cluster: Cluster, field
1418 if unlikely(self.current_cluster.cluster_num < 2) { in get_dir_entry()
1419 return Ok((self.current_cluster, self.offset, None)); in get_dir_entry()
1424 match self.fs.get_fat_entry(self.current_cluster)? { in get_dir_entry()
1427 self.current_cluster = c; in get_dir_entry()
1433 return Ok((self.current_cluster, self.offset, None)); in get_dir_entry()
1441 return Ok((self.current_cluster, self.offset, None)); in get_dir_entry()
1445 let offset: u64 = self.fs.cluster_bytes_offset(self.current_cluster) + self.offset; in get_dir_entry()
1458 self.current_cluster, in get_dir_entry()
1461 self.current_cluster, in get_dir_entry()
1472 let start_cluster: Cluster = self.current_cluster; in get_dir_entry()
1482 match self.fs.get_fat_entry(self.current_cluster)? { in get_dir_entry()
1485 self.current_cluster = c; in get_dir_entry()
1505 self.fs.cluster_bytes_offset(self.current_cluster) + self.offset; in get_dir_entry()
1532 (self.current_cluster, self.offset), in get_dir_entry()
1540 return Ok((self.current_cluster, self.offset, Some(d))); in get_dir_entry()
1555 return Ok((self.current_cluster, self.offset, None)); in get_dir_entry()
1569 self.current_cluster = cluster; in next()