Searched refs:sec_per_clus (Results 1 – 4 of 4) sorted by relevance
/DragonOS-0.1.3/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() 80 …sk->fops->transfer(blk->bd_disk, AHCI_CMD_READ_DMA_EXT, sector, fsbi->sec_per_clus, (uint64_t)buf); 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 …y_location_clus = __fat32_LBA_to_cluster(fsbi->first_data_sector, fsbi->sec_per_clus, sinfo.i_pos); in fat32_lookup() 393 fsbi->sec_per_clus = fbs->BPB_SecPerClus; 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() 499 fsbi->sec_per_clus, (uint64_t)buf); in fat32_write_inode() 510 fsbi->sec_per_clus, (uint64_t)buf); in fat32_write_inode() 614 uint64_t sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; in fat32_read() 617 …rno = blk->bd_disk->fops->transfer(blk->bd_disk, AHCI_CMD_READ_DMA_EXT, sector, fsbi->sec_per_clus, in fat32_read() [all …]
|
D | fat_ent.c | 207 uint64_t sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; in fat32_find_empty_dentry() 210 …sk->fops->transfer(blk->bd_disk, AHCI_CMD_READ_DMA_EXT, sector, fsbi->sec_per_clus, (uint64_t)buf); in fat32_find_empty_dentry() 257 sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; in fat32_find_empty_dentry() 259 … blk->bd_disk->fops->transfer(blk->bd_disk, AHCI_CMD_WRITE_DMA_EXT, sector, fsbi->sec_per_clus, in fat32_find_empty_dentry() 457 fsbi->sec_per_clus, (uint64_t)sinfo->buffer); in fat32_remove_entries()
|
D | fat32.h | 143 uint64_t sec_per_clus; // 每簇扇区数 member
|