Lines Matching refs:sec_per_clus

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()
706 sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; // 计算对应的扇区 in fat32_write()
711 …rno = blk->bd_disk->fops->transfer(blk->bd_disk, AHCI_CMD_READ_DMA_EXT, sector, fsbi->sec_per_clus, in fat32_write()
734 …no = blk->bd_disk->fops->transfer(blk->bd_disk, AHCI_CMD_WRITE_DMA_EXT, sector, fsbi->sec_per_clus, in fat32_write()
877 inode->blocks = fsbi->sec_per_clus; in fat32_create()
925 …d_disk->fops->transfer(blk->bd_disk, AHCI_CMD_WRITE_DMA_EXT, tmp_dentry_sector, fsbi->sec_per_clus, in fat32_create()
982 inode->blocks = fsbi->sec_per_clus; in fat32_mkdir()
1027 …d_disk->fops->transfer(blk->bd_disk, AHCI_CMD_WRITE_DMA_EXT, tmp_dentry_sector, fsbi->sec_per_clus, in fat32_mkdir()
1059 uint64_t sector = fsbi->first_data_sector + (new_dir_clus - 2) * fsbi->sec_per_clus; in fat32_mkdir()
1061 …k->fops->transfer(blk->bd_disk, AHCI_CMD_WRITE_DMA_EXT, sector, fsbi->sec_per_clus, (uint64_t)buf); in fat32_mkdir()
1188 uint64_t sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; in fat32_readdir()
1192 fsbi->sec_per_clus, (uint64_t)buf)) in fat32_readdir()