Lines Matching refs:FATDirEntry

42 pub enum FATDirEntry {  enum
505 ) -> Result<FATDirEntry, SystemError> { in find_entry() argument
676 let e: Result<FATDirEntry, SystemError> = in check_existence()
718 ) -> Result<FATDirEntry, SystemError> { argument
788 let e: FATDirEntry = self.find_entry(name, None, None, fs.clone())?; in remove()
838 ) -> Result<FATDirEntry, SystemError> { in get_dir_entry() argument
840 return Ok(FATDirEntry::Dir(self.clone())); in get_dir_entry()
854 ) -> Result<FATDirEntry, SystemError> { in rename() argument
856 let old_dentry: FATDirEntry = if let FATDirEntryOrShortName::DirEntry(dentry) = in rename()
880 let new_dentry: FATDirEntry = self.create_dir_entries( in rename()
1196 pub fn to_dir_entry(&self, loc: (Cluster, u64)) -> FATDirEntry { in to_dir_entry() argument
1212 return FATDirEntry::File(file); in to_dir_entry()
1214 return FATDirEntry::VolId(file); in to_dir_entry()
1225 return FATDirEntry::Dir(dir); in to_dir_entry()
1239 ) -> FATDirEntry { in to_dir_entry_with_long_name() argument
1253 return FATDirEntry::File(file); in to_dir_entry_with_long_name()
1255 return FATDirEntry::VolId(file); in to_dir_entry_with_long_name()
1266 return FATDirEntry::Dir(dir); in to_dir_entry_with_long_name()
1407 fn get_dir_entry(&mut self) -> Result<(Cluster, u64, Option<FATDirEntry>), SystemError> { in get_dir_entry() argument
1515 let dir_entry: Result<FATDirEntry, SystemError> = FATDirEntry::new( in get_dir_entry()
1551 type Item = FATDirEntry;
1567 impl FATDirEntry { implementation
1620 FATDirEntry::File(f) | FATDirEntry::VolId(f) => { in short_name()
1623 FATDirEntry::Dir(d) => match d.short_dir_entry { in short_name()
1631 FATDirEntry::UnInit => unreachable!("FATFS: FATDirEntry uninitialized."), in short_name()
1638 FATDirEntry::File(f) => { in short_dir_entry()
1641 FATDirEntry::Dir(d) => { in short_dir_entry()
1644 FATDirEntry::VolId(s) => { in short_dir_entry()
1647 FATDirEntry::UnInit => unreachable!("FATFS: FATDirEntry uninitialized."), in short_dir_entry()
1654 FATDirEntry::File(f) => { in first_cluster()
1657 FATDirEntry::Dir(d) => { in first_cluster()
1660 FATDirEntry::VolId(s) => { in first_cluster()
1663 FATDirEntry::UnInit => unreachable!("FATFS: FATDirEntry uninitialized."), in first_cluster()
1672 FATDirEntry::File(f) => Some(f.loc), in get_dir_range()
1673 FATDirEntry::Dir(d) => d.loc, in get_dir_range()
1674 FATDirEntry::VolId(s) => Some(s.loc), in get_dir_range()
1675 FATDirEntry::UnInit => unreachable!("FATFS: FATDirEntry uninitialized."), in get_dir_range()
1682 FATDirEntry::File(f) => {
1685 FATDirEntry::Dir(d) => match d.short_dir_entry {
1697 FATDirEntry::VolId(s) => {
1701 FATDirEntry::UnInit => unreachable!("FATFS: FATDirEntry uninitialized."),
1708 FATDirEntry::File(f) => { in name()
1711 FATDirEntry::VolId(s) => { in name()
1714 FATDirEntry::Dir(d) => { in name()
1717 FATDirEntry::UnInit => unreachable!("FATFS: FATDirEntry uninitialized."), in name()
1724 &FATDirEntry::File(_) | &FATDirEntry::VolId(_) => true, in is_file()
1732 &FATDirEntry::Dir(_) => true, in is_dir()
1740 &FATDirEntry::VolId(_) => true, in is_vol_id()
1772 FATDirEntry::File(f) | FATDirEntry::VolId(f) => { in to_file()
1785 FATDirEntry::Dir(d) => { in to_dir()
2256 DirEntry(FATDirEntry),