Home
last modified time | relevance | path

Searched refs:p_fs (Results 1 – 6 of 6) sorted by relevance

/drivers/staging/exfat/
Dexfat_cache.c22 struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); in FAT_cache_find() local
25 (sec >> p_fs->sectors_per_clu_bits)) & (FAT_CACHE_HASH_SIZE - 1); in FAT_cache_find()
27 hp = &p_fs->FAT_cache_hash_list[off]; in FAT_cache_find()
29 if ((bp->drv == p_fs->drv) && (bp->sec == sec)) { in FAT_cache_find()
73 struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); in FAT_cache_get() local
75 bp = p_fs->FAT_cache_lru_list.prev; in FAT_cache_get()
77 move_to_mru(bp, &p_fs->FAT_cache_lru_list); in FAT_cache_get()
86 struct fs_info_t *p_fs; in FAT_cache_insert_hash() local
88 p_fs = &(EXFAT_SB(sb)->fs_info); in FAT_cache_insert_hash()
90 (bp->sec >> p_fs->sectors_per_clu_bits)) & in FAT_cache_insert_hash()
[all …]
Dexfat_core.c95 struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); in fs_set_vol_flags() local
97 if (p_fs->vol_flag == new_flag) in fs_set_vol_flags()
100 p_fs->vol_flag = new_flag; in fs_set_vol_flags()
102 if (p_fs->vol_type == EXFAT) { in fs_set_vol_flags()
103 if (!p_fs->pbr_bh) { in fs_set_vol_flags()
104 if (sector_read(sb, p_fs->PBR_sector, in fs_set_vol_flags()
105 &p_fs->pbr_bh, 1) != FFS_SUCCESS) in fs_set_vol_flags()
109 p_pbr = (struct pbr_sector_t *)p_fs->pbr_bh->b_data; in fs_set_vol_flags()
116 if ((new_flag == VOL_DIRTY) && (!buffer_dirty(p_fs->pbr_bh))) in fs_set_vol_flags()
117 sector_write(sb, p_fs->PBR_sector, p_fs->pbr_bh, 1); in fs_set_vol_flags()
[all …]
Dexfat_super.c351 struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); in ffsMountVol() local
360 sema_init(&p_fs->v_sem, 1); in ffsMountVol()
361 p_fs->dev_ejected = 0; in ffsMountVol()
379 p_fs->PBR_sector = 0; in ffsMountVol()
418 if (p_fs->vol_type == EXFAT) { in ffsMountVol()
432 if (p_fs->dev_ejected) { in ffsMountVol()
433 if (p_fs->vol_type == EXFAT) { in ffsMountVol()
452 struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); in ffsUmountVol() local
460 down(&p_fs->v_sem); in ffsUmountVol()
465 if (p_fs->vol_type == EXFAT) { in ffsUmountVol()
[all …]
Dexfat_blkdev.c37 struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); in bdev_read() local
62 WARN(!p_fs->dev_ejected, in bdev_read()
74 struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); in bdev_write() local
115 WARN(!p_fs->dev_ejected, in bdev_write()
Dexfat_nls.c79 struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); in nls_upper() local
83 if (p_fs->vol_utbl && p_fs->vol_utbl[get_col_index(a)]) in nls_upper()
84 return p_fs->vol_utbl[get_col_index(a)][get_row_index(a)]; in nls_upper()
Dexfat.h90 ((((sector_t)((x) - 2)) << p_fs->sectors_per_clu_bits) + \
91 p_fs->data_start_sector)
94 ((((sec) - p_fs->data_start_sector + 1) & \
95 ((1 << p_fs->sectors_per_clu_bits) - 1)) == 0)
98 ((u32)((((sec) - p_fs->data_start_sector) >> \
99 p_fs->sectors_per_clu_bits) + 2))