Lines Matching refs:new

83     pub fn new(fs_info: FATFsInfo) -> Self {  in new()  method
84 return Self(SpinLock::new(fs_info)); in new()
137 let entry_inode: Arc<LockedFATInode> = LockedFATInode::new( in find()
161 pub fn new( in new() method
172 let inode: Arc<LockedFATInode> = Arc::new(LockedFATInode(SpinLock::new(FATInode { in new()
175 children: BTreeMap::new(), in new()
252 pub fn new(partition: Arc<Partition>) -> Result<Arc<FATFileSystem>, SystemError> { in new() method
253 let bpb = BiosParameterBlock::new(partition.clone())?; in new()
260 FATFsInfo::new( in new()
291 let root_inode: Arc<LockedFATInode> = Arc::new(LockedFATInode(SpinLock::new(FATInode { in new()
294 children: BTreeMap::new(), in new()
319 let result: Arc<FATFileSystem> = Arc::new(FATFileSystem { in new()
323 fs_info: Arc::new(LockedFATFsInfo::new(fs_info)), in new()
374 let mut v = Vec::<u8>::new(); in get_fat_entry()
380 let mut cursor = VecCursor::new(v); in get_fat_entry()
468 let mut v = Vec::<u8>::new(); in get_fat_entry_raw()
474 let mut cursor = VecCursor::new(v); in get_fat_entry_raw()
560 Cluster::new(next_free) in allocate_cluster()
562 Cluster::new(RESERVED_CLUSTERS as u64) in allocate_cluster()
565 _ => Cluster::new(RESERVED_CLUSTERS as u64), in allocate_cluster()
572 self.get_free_cluster(Cluster::new(RESERVED_CLUSTERS as u64), end_cluster)? in allocate_cluster()
632 first_cluster: Cluster::new(s.root_cluster as u64), in root_dir()
640 first_cluster: Cluster::new(0), in root_dir()
781 let bit = self.get_fat_entry_raw(Cluster::new(1))? & 0x0800_0000; in is_shut_bit_ok()
785 let bit = self.get_fat_entry_raw(Cluster::new(1))? & 0x8000; in is_shut_bit_ok()
803 let bit = self.get_fat_entry_raw(Cluster::new(1))? & 0x0400_0000; in is_hard_error_bit_ok()
807 let bit = self.get_fat_entry_raw(Cluster::new(1))? & 0x4000; in is_hard_error_bit_ok()
822 let raw_entry = self.get_fat_entry_raw(Cluster::new(1))? | 0x0800_0000; in set_shut_bit_ok()
823 self.set_entry(Cluster::new(1), FATEntry::Next(Cluster::new(raw_entry)))?; in set_shut_bit_ok()
829 let raw_entry = self.get_fat_entry_raw(Cluster::new(1))? | 0x8000; in set_shut_bit_ok()
830 self.set_entry(Cluster::new(1), FATEntry::Next(Cluster::new(raw_entry)))?; in set_shut_bit_ok()
845 let raw_entry = self.get_fat_entry_raw(Cluster::new(1))? | 0x0400_0000; in set_hard_error_bit_ok()
846 self.set_entry(Cluster::new(1), FATEntry::Next(Cluster::new(raw_entry)))?; in set_hard_error_bit_ok()
851 let raw_entry = self.get_fat_entry_raw(Cluster::new(1))? | 0x4000; in set_hard_error_bit_ok()
852 self.set_entry(Cluster::new(1), FATEntry::Next(Cluster::new(raw_entry)))?; in set_hard_error_bit_ok()
887 return Cluster::new(total_clusters + RESERVED_CLUSTERS as u64 - 1); in max_cluster_number()
902 return Cluster::new(total_clusters + RESERVED_CLUSTERS as u64 - 1); in max_cluster_number()
936 let mut v: Vec<u8> = Vec::new(); in get_free_cluster()
940 let mut cursor: VecCursor = VecCursor::new(v); in get_free_cluster()
951 return Ok(Cluster::new(cluster as u64)); in get_free_cluster()
974 Cluster::new(cluster), in get_free_cluster()
982 let mut v: Vec<u8> = Vec::new(); in get_free_cluster()
988 let mut cursor: VecCursor = VecCursor::new(v); in get_free_cluster()
994 return Ok(Cluster::new(val as u64)); in get_free_cluster()
1006 Cluster::new(cluster), in get_free_cluster()
1014 let mut v: Vec<u8> = Vec::new(); in get_free_cluster()
1020 let mut cursor: VecCursor = VecCursor::new(v); in get_free_cluster()
1026 return Ok(Cluster::new(cluster)); in get_free_cluster()
1063 let mut v: Vec<u8> = Vec::new(); in set_entry()
1067 let mut cursor: VecCursor = VecCursor::new(v); in set_entry()
1096 let mut v: Vec<u8> = Vec::new(); in set_entry()
1100 let mut cursor: VecCursor = VecCursor::new(v); in set_entry()
1123 let mut v: Vec<u8> = Vec::new(); in set_entry()
1127 let mut cursor: VecCursor = VecCursor::new(v); in set_entry()
1206 pub fn new( in new() method
1211 let mut v = Vec::<u8>::new(); in new()
1218 let mut cursor = VecCursor::new(v); in new()
1307 let mut v: Vec<u8> = Vec::new(); in flush()
1311 let mut cursor: VecCursor = VecCursor::new(v); in flush()
1336 let mut v: Vec<u8> = Vec::new(); in update()
1339 let mut cursor: VecCursor = VecCursor::new(v); in update()
1479 let mut buf: Vec<u8> = Vec::new(); in resize()
1515 let mut ret: Vec<String> = Vec::new(); in list()
1529 let entry_inode: Arc<LockedFATInode> = LockedFATInode::new( in list()
1674 pub fn new(cluster: u64) -> Self { in new() method
1699 let new: Option<Cluster> = match self.current_cluster { in next() localVariable
1710 self.current_cluster = new; in next()