Searched refs:first_data_sector (Results 1 – 4 of 4) sorted by relevance
/DragonOS-0.1.2/kernel/src/filesystem/fat32/ |
D | internal.h | 12 static inline uint32_t __fat32_calculate_LBA(uint32_t first_data_sector, uint32_t sec_per_clus, uin… in __fat32_calculate_LBA() argument 14 return first_data_sector + (cluster - 2) * sec_per_clus; in __fat32_calculate_LBA() 25 static inline uint32_t __fat32_LBA_to_cluster(uint32_t first_data_sector, uint32_t sec_per_clus, ui… in __fat32_LBA_to_cluster() argument 27 return ((LBA - first_data_sector) / sec_per_clus) + 2; in __fat32_LBA_to_cluster()
|
D | fat32.c | 75 … uint64_t sector = __fat32_calculate_LBA(fsbi->first_data_sector, fsbi->sec_per_clus, cluster); in __fat32_search_long_short() 302 sinfo->i_pos = __fat32_calculate_LBA(fsbi->first_data_sector, fsbi->sec_per_clus, cluster); in __fat32_search_long_short() 344 …finode->dEntry_location_clus = __fat32_LBA_to_cluster(fsbi->first_data_sector, fsbi->sec_per_clus,… in fat32_lookup() 396 …fsbi->first_data_sector = blk->bd_start_LBA + fbs->BPB_RsvdSecCnt + fbs->BPB_FATSz32 * fbs->BPB_Nu… in fat32_read_superblock() 493 … uint64_t fLBA = fsbi->first_data_sector + (finode->dEntry_location_clus - 2) * fsbi->sec_per_clus; in fat32_write_inode() 614 uint64_t sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; in fat32_read() 706 sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; // 计算对应的扇区 in fat32_write() 1059 uint64_t sector = fsbi->first_data_sector + (new_dir_clus - 2) * fsbi->sec_per_clus; in fat32_mkdir() 1188 uint64_t sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; in fat32_readdir()
|
D | fat32.h | 147 uint64_t first_data_sector; // 数据区起始扇区号 member
|
D | fat_ent.c | 207 uint64_t sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; in fat32_find_empty_dentry() 257 sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; in fat32_find_empty_dentry()
|