Home
last modified time | relevance | path

Searched refs:bytes_per_sector (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dbpb.rs23 pub bytes_per_sector: u16, field
238 bpb.bytes_per_sector = cursor.read_u16()?; in new()
273 let root_sectors = ((bpb.root_entries_cnt as u32 * 32) + (bpb.bytes_per_sector as u32 - 1)) in new()
274 / (bpb.bytes_per_sector as u32); in new()
317 if self.bytes_per_sector.count_ones() != 1 { in validate()
320 } else if self.bytes_per_sector < 512 { in validate()
323 } else if self.bytes_per_sector > 4096 { in validate()
355 + (self.bytes_per_sector as u32 - 1)) in validate()
356 / (self.bytes_per_sector as u32); in validate()
Dfs.rs182 blk_size: fs.bpb.bytes_per_sector as usize, in new()
259 + bpb32.fs_info as u64 * bpb.bytes_per_sector as u64; in new()
263 bpb.bytes_per_sector as usize, in new()
271 + (bpb.bytes_per_sector as u64 - 1)) in new()
272 / (bpb.bytes_per_sector as u64); in new()
301 blk_size: bpb.bytes_per_sector as usize, in new()
342 return (self.bpb.bytes_per_sector as u64) * (self.bpb.sector_per_cluster as u64); in bytes_per_cluster()
361 let bytes_per_sec = self.bpb.bytes_per_sector as u64; in get_fat_entry()
375 v.resize(self.bpb.bytes_per_sector as usize, 0); in get_fat_entry()
456 let bytes_per_sec = self.bpb.bytes_per_sector as u64; in get_fat_entry_raw()
[all …]