Home
last modified time | relevance | path

Searched refs:fsbi (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.3/kernel/src/filesystem/fat32/
Dfat_ent.c21 fat32_sb_info_t *fsbi = (fat32_sb_info_t *)inode->sb->private_sb_info; in fat32_alloc_clusters() local
24 uint64_t sec_per_fat = fsbi->sec_per_FAT; in fat32_alloc_clusters()
27 uint32_t *buf = (uint32_t *)kzalloc(fsbi->bytes_per_sec, 0); in fat32_alloc_clusters()
28 int ent_per_sec = (fsbi->bytes_per_sec >> 2); in fat32_alloc_clusters()
34 memset(buf, 0, fsbi->bytes_per_sec); in fat32_alloc_clusters()
35 …blk->bd_disk->fops->transfer(blk->bd_disk, AHCI_CMD_READ_DMA_EXT, fsbi->FAT1_base_sector + i, 1, (… in fat32_alloc_clusters()
75 tmp_clus = fat32_read_FAT_entry(blk, fsbi, cluster); in fat32_alloc_clusters()
87 fat32_write_FAT_entry(blk, fsbi, cluster, clusters[i]); in fat32_alloc_clusters()
90 fat32_write_FAT_entry(blk, fsbi, cluster, 0x0ffffff8); in fat32_alloc_clusters()
126 uint32_t fat32_read_FAT_entry(struct block_device *blk, fat32_sb_info_t *fsbi, uint32_t cluster) in fat32_read_FAT_entry() argument
[all …]
Dfat32.c60 fat32_sb_info_t *fsbi = (fat32_sb_info_t *)parent_inode->sb->private_sb_info; in __fat32_search_long_short() local
63 uint8_t *buf = kzalloc(fsbi->bytes_per_clus, 0); in __fat32_search_long_short()
75 … uint64_t sector = __fat32_calculate_LBA(fsbi->first_data_sector, fsbi->sec_per_clus, cluster); in __fat32_search_long_short()
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()
85 for (int i = 0; i < fsbi->bytes_per_clus; i += 32, ++tmp_dEntry) in __fat32_search_long_short()
283 cluster = fat32_read_FAT_entry(blk, fsbi, 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()
319 fat32_sb_info_t *fsbi = (fat32_sb_info_t *)parent_inode->sb->private_sb_info; in fat32_lookup() local
333 p->blocks = (p->file_size + fsbi->bytes_per_clus - 1) / fsbi->bytes_per_sec; in fat32_lookup()
344 …finode->dEntry_location_clus = __fat32_LBA_to_cluster(fsbi->first_data_sector, fsbi->sec_per_clus,… in fat32_lookup()
[all …]
Dfat_ent.h34 uint32_t fat32_read_FAT_entry(struct block_device * blk, fat32_sb_info_t *fsbi, uint32_t cluster);
45 int fat32_write_FAT_entry(struct block_device * blk, fat32_sb_info_t *fsbi, uint32_t cluster, uint3…