Searched refs:current_cluster (Results 1 – 3 of 3) sorted by relevance
94 let mut current_cluster = if let Some(c) = in read() localVariable114 if let Ok(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster) { in read()115 current_cluster = c; in read()132 let offset = fs.cluster_bytes_offset(current_cluster) + in_cluster_offset; in read()167 let mut current_cluster: Cluster = if let Some(c) = in write() localVariable183 if let Ok(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster) { in write()184 current_cluster = c; in write()197 let offset = fs.cluster_bytes_offset(current_cluster) + in_cluster_bytes_offset; in write()267 let mut current_cluster: Cluster = last_cluster; in ensure_len() localVariable269 current_cluster = fs.allocate_cluster(Some(current_cluster))?; in ensure_len()[all …]
169 let current_cluster = cluster.cluster_num; in get_fat_bytes_offset() localVariable172 FATType::FAT12(_) => current_cluster + (current_cluster / 2), in get_fat_bytes_offset()173 FATType::FAT16(_) => current_cluster * 2, in get_fat_bytes_offset()174 FATType::FAT32(_) => current_cluster * 4, in get_fat_bytes_offset()
413 let current_cluster = cluster.cluster_num; in get_fat_entry() localVariable414 if current_cluster < 2 { in get_fat_entry()444 if (current_cluster & 1) > 0 { in get_fat_entry()459 parent_cluster: current_cluster, in get_fat_entry()475 parent_cluster: current_cluster, in get_fat_entry()483 _n if (0x0ffffff7..=0x0fffffff).contains(¤t_cluster) => { in get_fat_entry()485 …et fat entry: current cluster number [{}] is not an allocatable cluster number.", current_cluster); in get_fat_entry()493 parent_cluster: current_cluster, in get_fat_entry()508 let current_cluster = cluster.cluster_num; in get_fat_entry_raw() localVariable534 entry = if (current_cluster & 0x0001) > 0 { in get_fat_entry_raw()[all …]