Home
last modified time | relevance | path

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

/DragonOS-0.1.3/kernel/src/filesystem/fat32/
Dfat_ent.c207 uint64_t sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; in fat32_find_empty_dentry() local
210 …blk->bd_disk->fops->transfer(blk->bd_disk, AHCI_CMD_READ_DMA_EXT, sector, fsbi->sec_per_clus, (uin… in fat32_find_empty_dentry()
234 *res_sector = sector; 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()
Dfat32.c75 … uint64_t sector = __fat32_calculate_LBA(fsbi->first_data_sector, fsbi->sec_per_clus, cluster); in __fat32_search_long_short() local
80 …blk->bd_disk->fops->transfer(blk->bd_disk, AHCI_CMD_READ_DMA_EXT, sector, fsbi->sec_per_clus, (uin… in __fat32_search_long_short()
614 uint64_t sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; in fat32_read() local
617 …int errno = blk->bd_disk->fops->transfer(blk->bd_disk, AHCI_CMD_READ_DMA_EXT, sector, fsbi->sec_pe… in fat32_read()
699 uint64_t sector; in fat32_write() local
706 sector = fsbi->first_data_sector + (cluster - 2) * fsbi->sec_per_clus; // 计算对应的扇区 in fat32_write()
711 …int errno = blk->bd_disk->fops->transfer(blk->bd_disk, AHCI_CMD_READ_DMA_EXT, sector, fsbi->sec_pe… in fat32_write()
734 …int errno = blk->bd_disk->fops->transfer(blk->bd_disk, AHCI_CMD_WRITE_DMA_EXT, sector, fsbi->sec_p… in fat32_write()
1059 uint64_t sector = fsbi->first_data_sector + (new_dir_clus - 2) * fsbi->sec_per_clus; in fat32_mkdir() local
1061 …blk->bd_disk->fops->transfer(blk->bd_disk, AHCI_CMD_WRITE_DMA_EXT, sector, fsbi->sec_per_clus, (ui… in fat32_mkdir()
[all …]