Lines Matching refs:cluster_num
40 pub cluster_num: u64, field
47 return self.cluster_num.partial_cmp(&other.cluster_num); in partial_cmp()
54 self.cluster_num == other.cluster_num in eq()
352 let current_cluster = cluster.cluster_num; in get_fat_entry()
401 cluster_num: entry as u64, in get_fat_entry()
417 cluster_num: entry as u64, in get_fat_entry()
435 cluster_num: entry as u64, in get_fat_entry()
451 let current_cluster = cluster.cluster_num; in get_fat_entry_raw()
534 if cluster.cluster_num >= 2 { in cluster_bytes_offset()
536 let first_sec_of_cluster = (cluster.cluster_num - 2) in cluster_bytes_offset()
559 if next_free < end_cluster.cluster_num { in allocate_cluster()
571 Err(_) if start_cluster.cluster_num > RESERVED_CLUSTERS as u64 => { in allocate_cluster()
584 .update_next_free((free_cluster.cluster_num + 1) as u32); in allocate_cluster()
920 let mut cluster: u64 = start_cluster.cluster_num; in get_free_cluster()
957 if cluster == end_cluster.cluster_num || cluster == max_cluster.cluster_num { in get_free_cluster()
972 while cluster < end_cluster.cluster_num && cluster < max_cluster.cluster_num { in get_free_cluster()
1004 while cluster < end_cluster.cluster_num && cluster < max_cluster.cluster_num { in get_free_cluster()
1056 FATEntry::Next(c) => c.cluster_num as u16, in set_entry()
1071 let new_val: u16 = if (cluster.cluster_num & 0x1) > 0 { in set_entry()
1089 FATEntry::Next(c) => c.cluster_num as u16, in set_entry()
1134 && cluster.cluster_num >= 0x0ffffff7 in set_entry()
1135 && cluster.cluster_num <= 0x0fffffff in set_entry()
1149 FATEntry::Next(c) => c.cluster_num as u32, in set_entry()
1253 let count_clusters = max_cluster.cluster_num - RESERVED_CLUSTERS as u64 + 1; in count_free_cluster()
1676 cluster_num: cluster, in new()