Lines Matching refs:c
94 let mut current_cluster = if let Some(c) = in read()
97 c in read()
114 if let Ok(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster) { in read()
115 current_cluster = c; in read()
167 let mut current_cluster: Cluster = if let Some(c) = in write()
170 c in write()
183 if let Ok(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster) { in write()
184 current_cluster = c; in write()
260 let last_cluster = if let Some(c) = fs.get_last_cluster(self.first_cluster) { in ensure_len()
261 c in ensure_len()
422 if let Ok(FATEntry::Next(c)) = fs.get_fat_entry(current_cluster) { in find_free_entries()
423 current_cluster = c; in find_free_entries()
473 let c: Cluster = fs.allocate_cluster(Some(prev_cluster))?; in find_free_entries() localVariable
475 first_cluster = c; in find_free_entries()
478 prev_cluster = c; in find_free_entries()
733 Some(c) => c,
1107 for c in name.chars() { in validate_long_name()
1108 match c { in validate_long_name()
1115 debug!("error char: {}", c); in validate_long_name()
1238 let iter = name[..total_len].iter().map(|c| decode_u8_ascii(*c)); in name_to_string()
1327 for c in &self.name { in checksum()
1328 result = (result << 7) + (result >> 1) + *c; in checksum()
1466 FATEntry::Next(c) => { in get_dir_entry()
1468 self.current_cluster = c; in get_dir_entry()
1524 FATEntry::Next(c) => { in get_dir_entry()
1526 self.current_cluster = c; in get_dir_entry()
1801 let short_name = binding.chars().flat_map(|c| c.to_uppercase()); in eq_name()
1803 let long_name = binding.chars().flat_map(|c| c.to_uppercase()); in eq_name()
1804 let name = name.chars().flat_map(|c| c.to_uppercase()); in eq_name()
1944 for c in src.chars() { in copy_part()
1950 if c == ' ' || c == '.' { in copy_part()
1955 let cp: char = match c { in copy_part()
1956 'a'..='z' | 'A'..='Z' | '0'..='9' => c, in copy_part()
1958 | '^' | '#' | '&' => c, in copy_part()
1963 lossy_conv = lossy_conv || c != cp; in copy_part()
1966 dest[dest_len] = c.to_ascii_uppercase() as u8; in copy_part()
1977 for c in name.chars() { in fletcher_16_checksum()
1978 sum1 = (sum1 + (c as u16)) % 0xff; in fletcher_16_checksum()
2241 let mut name: Vec<u16> = name.chars().map(|c| c as u16).collect(); in new()
2369 Ok(FATEntry::Next(c)) => { in next()
2370 new_cluster = c; in next()