p_fs 90 drivers/staging/exfat/exfat.h ((((sector_t)((x) - 2)) << p_fs->sectors_per_clu_bits) + \ p_fs 91 drivers/staging/exfat/exfat.h p_fs->data_start_sector) p_fs 94 drivers/staging/exfat/exfat.h ((((sec) - p_fs->data_start_sector + 1) & \ p_fs 95 drivers/staging/exfat/exfat.h ((1 << p_fs->sectors_per_clu_bits) - 1)) == 0) p_fs 98 drivers/staging/exfat/exfat.h ((u32)((((sec) - p_fs->data_start_sector) >> \ p_fs 99 drivers/staging/exfat/exfat.h p_fs->sectors_per_clu_bits) + 2)) p_fs 37 drivers/staging/exfat/exfat_blkdev.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 62 drivers/staging/exfat/exfat_blkdev.c WARN(!p_fs->dev_ejected, p_fs 74 drivers/staging/exfat/exfat_blkdev.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 115 drivers/staging/exfat/exfat_blkdev.c WARN(!p_fs->dev_ejected, p_fs 22 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 25 drivers/staging/exfat/exfat_cache.c (sec >> p_fs->sectors_per_clu_bits)) & (FAT_CACHE_HASH_SIZE - 1); p_fs 27 drivers/staging/exfat/exfat_cache.c hp = &p_fs->FAT_cache_hash_list[off]; p_fs 29 drivers/staging/exfat/exfat_cache.c if ((bp->drv == p_fs->drv) && (bp->sec == sec)) { p_fs 73 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 75 drivers/staging/exfat/exfat_cache.c bp = p_fs->FAT_cache_lru_list.prev; p_fs 77 drivers/staging/exfat/exfat_cache.c move_to_mru(bp, &p_fs->FAT_cache_lru_list); p_fs 86 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs; p_fs 88 drivers/staging/exfat/exfat_cache.c p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 90 drivers/staging/exfat/exfat_cache.c (bp->sec >> p_fs->sectors_per_clu_bits)) & p_fs 93 drivers/staging/exfat/exfat_cache.c hp = &p_fs->FAT_cache_hash_list[off]; p_fs 111 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs; p_fs 113 drivers/staging/exfat/exfat_cache.c p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 115 drivers/staging/exfat/exfat_cache.c (bp->sec >> p_fs->sectors_per_clu_bits)) & p_fs 118 drivers/staging/exfat/exfat_cache.c hp = &p_fs->buf_cache_hash_list[off]; p_fs 133 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 138 drivers/staging/exfat/exfat_cache.c p_fs->FAT_cache_lru_list.next = &p_fs->FAT_cache_lru_list; p_fs 139 drivers/staging/exfat/exfat_cache.c p_fs->FAT_cache_lru_list.prev = &p_fs->FAT_cache_lru_list; p_fs 142 drivers/staging/exfat/exfat_cache.c p_fs->FAT_cache_array[i].drv = -1; p_fs 143 drivers/staging/exfat/exfat_cache.c p_fs->FAT_cache_array[i].sec = ~0; p_fs 144 drivers/staging/exfat/exfat_cache.c p_fs->FAT_cache_array[i].flag = 0; p_fs 145 drivers/staging/exfat/exfat_cache.c p_fs->FAT_cache_array[i].buf_bh = NULL; p_fs 146 drivers/staging/exfat/exfat_cache.c p_fs->FAT_cache_array[i].prev = NULL; p_fs 147 drivers/staging/exfat/exfat_cache.c p_fs->FAT_cache_array[i].next = NULL; p_fs 148 drivers/staging/exfat/exfat_cache.c push_to_mru(&p_fs->FAT_cache_array[i], p_fs 149 drivers/staging/exfat/exfat_cache.c &p_fs->FAT_cache_lru_list); p_fs 152 drivers/staging/exfat/exfat_cache.c p_fs->buf_cache_lru_list.next = &p_fs->buf_cache_lru_list; p_fs 153 drivers/staging/exfat/exfat_cache.c p_fs->buf_cache_lru_list.prev = &p_fs->buf_cache_lru_list; p_fs 156 drivers/staging/exfat/exfat_cache.c p_fs->buf_cache_array[i].drv = -1; p_fs 157 drivers/staging/exfat/exfat_cache.c p_fs->buf_cache_array[i].sec = ~0; p_fs 158 drivers/staging/exfat/exfat_cache.c p_fs->buf_cache_array[i].flag = 0; p_fs 159 drivers/staging/exfat/exfat_cache.c p_fs->buf_cache_array[i].buf_bh = NULL; p_fs 160 drivers/staging/exfat/exfat_cache.c p_fs->buf_cache_array[i].prev = NULL; p_fs 161 drivers/staging/exfat/exfat_cache.c p_fs->buf_cache_array[i].next = NULL; p_fs 162 drivers/staging/exfat/exfat_cache.c push_to_mru(&p_fs->buf_cache_array[i], p_fs 163 drivers/staging/exfat/exfat_cache.c &p_fs->buf_cache_lru_list); p_fs 168 drivers/staging/exfat/exfat_cache.c p_fs->FAT_cache_hash_list[i].drv = -1; p_fs 169 drivers/staging/exfat/exfat_cache.c p_fs->FAT_cache_hash_list[i].sec = ~0; p_fs 170 drivers/staging/exfat/exfat_cache.c p_fs->FAT_cache_hash_list[i].hash_next = p_fs 171 drivers/staging/exfat/exfat_cache.c &p_fs->FAT_cache_hash_list[i]; p_fs 172 drivers/staging/exfat/exfat_cache.c p_fs->FAT_cache_hash_list[i].hash_prev = p_fs 173 drivers/staging/exfat/exfat_cache.c &p_fs->FAT_cache_hash_list[i]; p_fs 177 drivers/staging/exfat/exfat_cache.c FAT_cache_insert_hash(sb, &p_fs->FAT_cache_array[i]); p_fs 180 drivers/staging/exfat/exfat_cache.c p_fs->buf_cache_hash_list[i].drv = -1; p_fs 181 drivers/staging/exfat/exfat_cache.c p_fs->buf_cache_hash_list[i].sec = ~0; p_fs 182 drivers/staging/exfat/exfat_cache.c p_fs->buf_cache_hash_list[i].hash_next = p_fs 183 drivers/staging/exfat/exfat_cache.c &p_fs->buf_cache_hash_list[i]; p_fs 184 drivers/staging/exfat/exfat_cache.c p_fs->buf_cache_hash_list[i].hash_prev = p_fs 185 drivers/staging/exfat/exfat_cache.c &p_fs->buf_cache_hash_list[i]; p_fs 189 drivers/staging/exfat/exfat_cache.c buf_cache_insert_hash(sb, &p_fs->buf_cache_array[i]); p_fs 202 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 205 drivers/staging/exfat/exfat_cache.c if (p_fs->vol_type == FAT12) { p_fs 206 drivers/staging/exfat/exfat_cache.c sec = p_fs->FAT1_start_sector + p_fs 242 drivers/staging/exfat/exfat_cache.c } else if (p_fs->vol_type == FAT16) { p_fs 243 drivers/staging/exfat/exfat_cache.c sec = p_fs->FAT1_start_sector + p_fs 263 drivers/staging/exfat/exfat_cache.c } else if (p_fs->vol_type == FAT32) { p_fs 264 drivers/staging/exfat/exfat_cache.c sec = p_fs->FAT1_start_sector + p_fs 284 drivers/staging/exfat/exfat_cache.c } else if (p_fs->vol_type == EXFAT) { p_fs 285 drivers/staging/exfat/exfat_cache.c sec = p_fs->FAT1_start_sector + p_fs 330 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 333 drivers/staging/exfat/exfat_cache.c if (p_fs->vol_type == FAT12) { p_fs 336 drivers/staging/exfat/exfat_cache.c sec = p_fs->FAT1_start_sector + p_fs 385 drivers/staging/exfat/exfat_cache.c else if (p_fs->vol_type == FAT16) { p_fs 388 drivers/staging/exfat/exfat_cache.c sec = p_fs->FAT1_start_sector + (loc >> p_fs 399 drivers/staging/exfat/exfat_cache.c } else if (p_fs->vol_type == FAT32) { p_fs 402 drivers/staging/exfat/exfat_cache.c sec = p_fs->FAT1_start_sector + (loc >> p_fs 416 drivers/staging/exfat/exfat_cache.c sec = p_fs->FAT1_start_sector + (loc >> p_fs 447 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 451 drivers/staging/exfat/exfat_cache.c move_to_mru(bp, &p_fs->FAT_cache_lru_list); p_fs 459 drivers/staging/exfat/exfat_cache.c bp->drv = p_fs->drv; p_fs 472 drivers/staging/exfat/exfat_cache.c move_to_lru(bp, &p_fs->FAT_cache_lru_list); p_fs 491 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 495 drivers/staging/exfat/exfat_cache.c bp = p_fs->FAT_cache_lru_list.next; p_fs 496 drivers/staging/exfat/exfat_cache.c while (bp != &p_fs->FAT_cache_lru_list) { p_fs 497 drivers/staging/exfat/exfat_cache.c if (bp->drv == p_fs->drv) { p_fs 516 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 520 drivers/staging/exfat/exfat_cache.c bp = p_fs->FAT_cache_lru_list.next; p_fs 521 drivers/staging/exfat/exfat_cache.c while (bp != &p_fs->FAT_cache_lru_list) { p_fs 522 drivers/staging/exfat/exfat_cache.c if ((bp->drv == p_fs->drv) && (bp->flag & DIRTYBIT)) { p_fs 536 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 538 drivers/staging/exfat/exfat_cache.c off = (sec + (sec >> p_fs->sectors_per_clu_bits)) & p_fs 541 drivers/staging/exfat/exfat_cache.c hp = &p_fs->buf_cache_hash_list[off]; p_fs 543 drivers/staging/exfat/exfat_cache.c if ((bp->drv == p_fs->drv) && (bp->sec == sec)) { p_fs 554 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 556 drivers/staging/exfat/exfat_cache.c bp = p_fs->buf_cache_lru_list.prev; p_fs 560 drivers/staging/exfat/exfat_cache.c move_to_mru(bp, &p_fs->buf_cache_lru_list); p_fs 567 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 571 drivers/staging/exfat/exfat_cache.c move_to_mru(bp, &p_fs->buf_cache_lru_list); p_fs 579 drivers/staging/exfat/exfat_cache.c bp->drv = p_fs->drv; p_fs 592 drivers/staging/exfat/exfat_cache.c move_to_lru(bp, &p_fs->buf_cache_lru_list); p_fs 661 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 676 drivers/staging/exfat/exfat_cache.c move_to_lru(bp, &p_fs->buf_cache_lru_list); p_fs 685 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 689 drivers/staging/exfat/exfat_cache.c bp = p_fs->buf_cache_lru_list.next; p_fs 690 drivers/staging/exfat/exfat_cache.c while (bp != &p_fs->buf_cache_lru_list) { p_fs 691 drivers/staging/exfat/exfat_cache.c if (bp->drv == p_fs->drv) { p_fs 710 drivers/staging/exfat/exfat_cache.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 714 drivers/staging/exfat/exfat_cache.c bp = p_fs->buf_cache_lru_list.next; p_fs 715 drivers/staging/exfat/exfat_cache.c while (bp != &p_fs->buf_cache_lru_list) { p_fs 716 drivers/staging/exfat/exfat_cache.c if ((bp->drv == p_fs->drv) && (bp->flag & DIRTYBIT)) { p_fs 95 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 97 drivers/staging/exfat/exfat_core.c if (p_fs->vol_flag == new_flag) p_fs 100 drivers/staging/exfat/exfat_core.c p_fs->vol_flag = new_flag; p_fs 102 drivers/staging/exfat/exfat_core.c if (p_fs->vol_type == EXFAT) { p_fs 103 drivers/staging/exfat/exfat_core.c if (!p_fs->pbr_bh) { p_fs 104 drivers/staging/exfat/exfat_core.c if (sector_read(sb, p_fs->PBR_sector, p_fs 105 drivers/staging/exfat/exfat_core.c &p_fs->pbr_bh, 1) != FFS_SUCCESS) p_fs 109 drivers/staging/exfat/exfat_core.c p_pbr = (struct pbr_sector_t *)p_fs->pbr_bh->b_data; p_fs 116 drivers/staging/exfat/exfat_core.c if ((new_flag == VOL_DIRTY) && (!buffer_dirty(p_fs->pbr_bh))) p_fs 117 drivers/staging/exfat/exfat_core.c sector_write(sb, p_fs->PBR_sector, p_fs->pbr_bh, 1); p_fs 119 drivers/staging/exfat/exfat_core.c sector_write(sb, p_fs->PBR_sector, p_fs->pbr_bh, 0); p_fs 144 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 148 drivers/staging/exfat/exfat_core.c s = p_fs->root_start_sector; p_fs 149 drivers/staging/exfat/exfat_core.c n = p_fs->data_start_sector; p_fs 152 drivers/staging/exfat/exfat_core.c n = s + p_fs->sectors_per_clu; p_fs 175 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 179 drivers/staging/exfat/exfat_core.c new_clu = p_fs->clu_srch_ptr; p_fs 180 drivers/staging/exfat/exfat_core.c else if (new_clu >= p_fs->num_clusters) p_fs 187 drivers/staging/exfat/exfat_core.c for (i = 2; i < p_fs->num_clusters; i++) { p_fs 206 drivers/staging/exfat/exfat_core.c p_fs->clu_srch_ptr = new_clu; p_fs 207 drivers/staging/exfat/exfat_core.c if (p_fs->used_clusters != UINT_MAX) p_fs 208 drivers/staging/exfat/exfat_core.c p_fs->used_clusters += num_clusters; p_fs 213 drivers/staging/exfat/exfat_core.c if ((++new_clu) >= p_fs->num_clusters) p_fs 217 drivers/staging/exfat/exfat_core.c p_fs->clu_srch_ptr = new_clu; p_fs 218 drivers/staging/exfat/exfat_core.c if (p_fs->used_clusters != UINT_MAX) p_fs 219 drivers/staging/exfat/exfat_core.c p_fs->used_clusters += num_clusters; p_fs 229 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 233 drivers/staging/exfat/exfat_core.c hint_clu = test_alloc_bitmap(sb, p_fs->clu_srch_ptr - 2); p_fs 236 drivers/staging/exfat/exfat_core.c } else if (hint_clu >= p_fs->num_clusters) { p_fs 275 drivers/staging/exfat/exfat_core.c p_fs->clu_srch_ptr = hint_clu; p_fs 276 drivers/staging/exfat/exfat_core.c if (p_fs->used_clusters != UINT_MAX) p_fs 277 drivers/staging/exfat/exfat_core.c p_fs->used_clusters += num_clusters; p_fs 284 drivers/staging/exfat/exfat_core.c if (hint_clu >= p_fs->num_clusters) { p_fs 295 drivers/staging/exfat/exfat_core.c p_fs->clu_srch_ptr = hint_clu; p_fs 296 drivers/staging/exfat/exfat_core.c if (p_fs->used_clusters != UINT_MAX) p_fs 297 drivers/staging/exfat/exfat_core.c p_fs->used_clusters += num_clusters; p_fs 308 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 321 drivers/staging/exfat/exfat_core.c if (p_fs->dev_ejected) p_fs 326 drivers/staging/exfat/exfat_core.c for (i = 0; i < p_fs->sectors_per_clu; i++) p_fs 340 drivers/staging/exfat/exfat_core.c if (p_fs->used_clusters != UINT_MAX) p_fs 341 drivers/staging/exfat/exfat_core.c p_fs->used_clusters -= num_clusters; p_fs 349 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 369 drivers/staging/exfat/exfat_core.c for (i = 0; i < p_fs->sectors_per_clu; i++) p_fs 381 drivers/staging/exfat/exfat_core.c if (p_fs->dev_ejected) p_fs 386 drivers/staging/exfat/exfat_core.c for (i = 0; i < p_fs->sectors_per_clu; i++) p_fs 399 drivers/staging/exfat/exfat_core.c if (p_fs->used_clusters != UINT_MAX) p_fs 400 drivers/staging/exfat/exfat_core.c p_fs->used_clusters -= num_clusters; p_fs 406 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 415 drivers/staging/exfat/exfat_core.c if (p_fs->dev_ejected) p_fs 428 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 438 drivers/staging/exfat/exfat_core.c for (i = 2; i < p_fs->num_clusters; i++) { p_fs 454 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 456 drivers/staging/exfat/exfat_core.c for (i = 2; i < p_fs->num_clusters; i++) { p_fs 470 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 475 drivers/staging/exfat/exfat_core.c for (i = 2; i < p_fs->num_clusters; i += 8) { p_fs 476 drivers/staging/exfat/exfat_core.c k = *(((u8 *)p_fs->vol_amap[map_i]->b_data) + map_b); p_fs 514 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 517 drivers/staging/exfat/exfat_core.c clu.dir = p_fs->root_dir; p_fs 521 drivers/staging/exfat/exfat_core.c if (p_fs->dev_ejected) p_fs 524 drivers/staging/exfat/exfat_core.c for (i = 0; i < p_fs->dentries_per_clu; i++) { p_fs 530 drivers/staging/exfat/exfat_core.c type = p_fs->fs_func->get_entry_type((struct dentry_t *)ep); p_fs 538 drivers/staging/exfat/exfat_core.c p_fs->map_clu = GET32_A(ep->start_clu); p_fs 541 drivers/staging/exfat/exfat_core.c p_fs->map_sectors = ((map_size - 1) >> p_bd->sector_size_bits) + 1; p_fs 543 drivers/staging/exfat/exfat_core.c p_fs->vol_amap = kmalloc_array(p_fs->map_sectors, p_fs 546 drivers/staging/exfat/exfat_core.c if (!p_fs->vol_amap) p_fs 549 drivers/staging/exfat/exfat_core.c sector = START_SECTOR(p_fs->map_clu); p_fs 551 drivers/staging/exfat/exfat_core.c for (j = 0; j < p_fs->map_sectors; j++) { p_fs 552 drivers/staging/exfat/exfat_core.c p_fs->vol_amap[j] = NULL; p_fs 553 drivers/staging/exfat/exfat_core.c ret = sector_read(sb, sector + j, &(p_fs->vol_amap[j]), 1); p_fs 558 drivers/staging/exfat/exfat_core.c brelse(p_fs->vol_amap[i++]); p_fs 560 drivers/staging/exfat/exfat_core.c kfree(p_fs->vol_amap); p_fs 561 drivers/staging/exfat/exfat_core.c p_fs->vol_amap = NULL; p_fs 566 drivers/staging/exfat/exfat_core.c p_fs->pbr_bh = NULL; p_fs 581 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 583 drivers/staging/exfat/exfat_core.c brelse(p_fs->pbr_bh); p_fs 585 drivers/staging/exfat/exfat_core.c for (i = 0; i < p_fs->map_sectors; i++) p_fs 586 drivers/staging/exfat/exfat_core.c __brelse(p_fs->vol_amap[i]); p_fs 588 drivers/staging/exfat/exfat_core.c kfree(p_fs->vol_amap); p_fs 589 drivers/staging/exfat/exfat_core.c p_fs->vol_amap = NULL; p_fs 596 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 602 drivers/staging/exfat/exfat_core.c sector = START_SECTOR(p_fs->map_clu) + i; p_fs 604 drivers/staging/exfat/exfat_core.c exfat_bitmap_set((u8 *)p_fs->vol_amap[i]->b_data, b); p_fs 606 drivers/staging/exfat/exfat_core.c return sector_write(sb, sector, p_fs->vol_amap[i], 0); p_fs 618 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 624 drivers/staging/exfat/exfat_core.c sector = START_SECTOR(p_fs->map_clu) + i; p_fs 626 drivers/staging/exfat/exfat_core.c exfat_bitmap_clear((u8 *)p_fs->vol_amap[i]->b_data, b); p_fs 628 drivers/staging/exfat/exfat_core.c return sector_write(sb, sector, p_fs->vol_amap[i], 0); p_fs 633 drivers/staging/exfat/exfat_core.c (1 << p_fs->sectors_per_clu_bits), p_fs 648 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 657 drivers/staging/exfat/exfat_core.c for (i = 2; i < p_fs->num_clusters; i += 8) { p_fs 658 drivers/staging/exfat/exfat_core.c k = *(((u8 *)p_fs->vol_amap[map_i]->b_data) + map_b); p_fs 665 drivers/staging/exfat/exfat_core.c if (clu_free < p_fs->num_clusters) p_fs 671 drivers/staging/exfat/exfat_core.c (clu_base >= p_fs->num_clusters)) { p_fs 672 drivers/staging/exfat/exfat_core.c if ((++map_i) >= p_fs->map_sectors) { p_fs 686 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 688 drivers/staging/exfat/exfat_core.c if (!p_fs->vol_amap) p_fs 691 drivers/staging/exfat/exfat_core.c for (i = 0; i < p_fs->map_sectors; i++) p_fs 692 drivers/staging/exfat/exfat_core.c sync_dirty_buffer(p_fs->vol_amap[i]); p_fs 703 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 715 drivers/staging/exfat/exfat_core.c upcase_table = p_fs->vol_utbl = kmalloc(UTBL_COL_COUNT * sizeof(u16 *), p_fs 788 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 795 drivers/staging/exfat/exfat_core.c upcase_table = p_fs->vol_utbl = kmalloc(UTBL_COL_COUNT * sizeof(u16 *), p_fs 851 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 854 drivers/staging/exfat/exfat_core.c clu.dir = p_fs->root_dir; p_fs 857 drivers/staging/exfat/exfat_core.c if (p_fs->dev_ejected) p_fs 861 drivers/staging/exfat/exfat_core.c for (i = 0; i < p_fs->dentries_per_clu; i++) { p_fs 867 drivers/staging/exfat/exfat_core.c type = p_fs->fs_func->get_entry_type((struct dentry_t *)ep); p_fs 894 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 897 drivers/staging/exfat/exfat_core.c upcase_table = p_fs->vol_utbl; p_fs 901 drivers/staging/exfat/exfat_core.c kfree(p_fs->vol_utbl); p_fs 902 drivers/staging/exfat/exfat_core.c p_fs->vol_utbl = NULL; p_fs 1492 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1499 drivers/staging/exfat/exfat_core.c p_fs->fs_func->set_entry_type(ep, TYPE_DELETED); p_fs 1510 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1517 drivers/staging/exfat/exfat_core.c p_fs->fs_func->set_entry_type(ep, TYPE_DELETED); p_fs 1582 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1586 drivers/staging/exfat/exfat_core.c clu_offset = byte_offset >> p_fs->cluster_size_bits; p_fs 1609 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1617 drivers/staging/exfat/exfat_core.c *sector += p_fs->root_start_sector; p_fs 1624 drivers/staging/exfat/exfat_core.c off &= p_fs->cluster_size - 1; p_fs 1696 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1714 drivers/staging/exfat/exfat_core.c byte_offset &= p_fs->cluster_size - 1; p_fs 1728 drivers/staging/exfat/exfat_core.c entry_type = p_fs->fs_func->get_entry_type(ep); p_fs 1759 drivers/staging/exfat/exfat_core.c entry_type = p_fs->fs_func->get_entry_type(ep); p_fs 1859 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1927 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1948 drivers/staging/exfat/exfat_core.c byte_offset &= p_fs->cluster_size - 1; p_fs 1968 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1971 drivers/staging/exfat/exfat_core.c dentries_per_clu = p_fs->dentries_in_root; p_fs 1973 drivers/staging/exfat/exfat_core.c dentries_per_clu = p_fs->dentries_per_clu; p_fs 1975 drivers/staging/exfat/exfat_core.c if (p_fs->hint_uentry.dir == p_dir->dir) { p_fs 1976 drivers/staging/exfat/exfat_core.c if (p_fs->hint_uentry.entry == -1) p_fs 1979 drivers/staging/exfat/exfat_core.c clu.dir = p_fs->hint_uentry.clu.dir; p_fs 1980 drivers/staging/exfat/exfat_core.c clu.size = p_fs->hint_uentry.clu.size; p_fs 1981 drivers/staging/exfat/exfat_core.c clu.flags = p_fs->hint_uentry.clu.flags; p_fs 1983 drivers/staging/exfat/exfat_core.c dentry = p_fs->hint_uentry.entry; p_fs 1985 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.entry = -1; p_fs 1995 drivers/staging/exfat/exfat_core.c if (p_fs->dev_ejected) p_fs 2008 drivers/staging/exfat/exfat_core.c type = p_fs->fs_func->get_entry_type(ep); p_fs 2012 drivers/staging/exfat/exfat_core.c if (p_fs->hint_uentry.entry == -1) { p_fs 2013 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.dir = p_dir->dir; p_fs 2014 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.entry = dentry; p_fs 2016 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.clu.dir = clu.dir; p_fs 2017 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.clu.size = clu.size; p_fs 2018 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.clu.flags = clu.flags; p_fs 2027 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.dir = CLUSTER_32(~0); p_fs 2028 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.entry = -1; p_fs 2030 drivers/staging/exfat/exfat_core.c if (p_fs->vol_type == EXFAT) p_fs 2063 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 2070 drivers/staging/exfat/exfat_core.c if (p_fs->dev_ejected) p_fs 2073 drivers/staging/exfat/exfat_core.c if (p_fs->vol_type == EXFAT) { p_fs 2074 drivers/staging/exfat/exfat_core.c if (p_dir->dir != p_fs->root_dir) p_fs 2084 drivers/staging/exfat/exfat_core.c ret = p_fs->fs_func->alloc_cluster(sb, 1, &clu); p_fs 2095 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.clu.flags = 0x01; p_fs 2101 drivers/staging/exfat/exfat_core.c if (p_fs->hint_uentry.entry == -1) { p_fs 2102 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.dir = p_dir->dir; p_fs 2103 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.entry = p_dir->size << (p_fs->cluster_size_bits - DENTRY_SIZE_BITS); p_fs 2105 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.clu.dir = clu.dir; p_fs 2106 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.clu.size = 0; p_fs 2107 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.clu.flags = clu.flags; p_fs 2109 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.clu.size++; p_fs 2113 drivers/staging/exfat/exfat_core.c if (p_fs->vol_type == EXFAT) { p_fs 2114 drivers/staging/exfat/exfat_core.c if (p_dir->dir != p_fs->root_dir) { p_fs 2115 drivers/staging/exfat/exfat_core.c size += p_fs->cluster_size; p_fs 2121 drivers/staging/exfat/exfat_core.c p_fs->fs_func->set_entry_size(ep, size); p_fs 2122 drivers/staging/exfat/exfat_core.c p_fs->fs_func->set_entry_flag(ep, p_dir->flags); p_fs 2130 drivers/staging/exfat/exfat_core.c i_size_write(inode, i_size_read(inode) + p_fs->cluster_size); p_fs 2131 drivers/staging/exfat/exfat_core.c EXFAT_I(inode)->mmu_private += p_fs->cluster_size; p_fs 2132 drivers/staging/exfat/exfat_core.c EXFAT_I(inode)->fid.size += p_fs->cluster_size; p_fs 2134 drivers/staging/exfat/exfat_core.c inode->i_blocks += 1 << (p_fs->cluster_size_bits - 9); p_fs 2159 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 2161 drivers/staging/exfat/exfat_core.c if (p_dir->dir == p_fs->root_dir) { p_fs 2170 drivers/staging/exfat/exfat_core.c dentries_per_clu = p_fs->dentries_in_root; p_fs 2172 drivers/staging/exfat/exfat_core.c dentries_per_clu = p_fs->dentries_per_clu; p_fs 2178 drivers/staging/exfat/exfat_core.c if (p_fs->dev_ejected) p_fs 2186 drivers/staging/exfat/exfat_core.c entry_type = p_fs->fs_func->get_entry_type(ep); p_fs 2258 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 2260 drivers/staging/exfat/exfat_core.c if (p_dir->dir == p_fs->root_dir) { p_fs 2269 drivers/staging/exfat/exfat_core.c dentries_per_clu = p_fs->dentries_in_root; p_fs 2271 drivers/staging/exfat/exfat_core.c dentries_per_clu = p_fs->dentries_per_clu; p_fs 2277 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.dir = p_dir->dir; p_fs 2278 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.entry = -1; p_fs 2281 drivers/staging/exfat/exfat_core.c if (p_fs->dev_ejected) p_fs 2289 drivers/staging/exfat/exfat_core.c entry_type = p_fs->fs_func->get_entry_type(ep); p_fs 2295 drivers/staging/exfat/exfat_core.c if (p_fs->hint_uentry.entry == -1) { p_fs 2299 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.clu.dir = clu.dir; p_fs 2300 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.clu.size = clu.size; p_fs 2301 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.clu.flags = clu.flags; p_fs 2304 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.entry = dentry - (num_empty - 1); p_fs 2351 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.dir = CLUSTER_32(~0); p_fs 2352 drivers/staging/exfat/exfat_core.c p_fs->hint_uentry.entry = -1; p_fs 2393 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 2403 drivers/staging/exfat/exfat_core.c if ((p_fs->fs_func->get_entry_type((struct dentry_t *)ext_ep) == p_fs 2423 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 2430 drivers/staging/exfat/exfat_core.c type = p_fs->fs_func->get_entry_type(ext_ep); p_fs 2448 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 2451 drivers/staging/exfat/exfat_core.c dentries_per_clu = p_fs->dentries_in_root; p_fs 2453 drivers/staging/exfat/exfat_core.c dentries_per_clu = p_fs->dentries_per_clu; p_fs 2460 drivers/staging/exfat/exfat_core.c if (p_fs->dev_ejected) p_fs 2468 drivers/staging/exfat/exfat_core.c entry_type = p_fs->fs_func->get_entry_type(ep); p_fs 2504 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 2507 drivers/staging/exfat/exfat_core.c dentries_per_clu = p_fs->dentries_in_root; p_fs 2509 drivers/staging/exfat/exfat_core.c dentries_per_clu = p_fs->dentries_per_clu; p_fs 2516 drivers/staging/exfat/exfat_core.c if (p_fs->dev_ejected) p_fs 2524 drivers/staging/exfat/exfat_core.c type = p_fs->fs_func->get_entry_type(ep); p_fs 2534 drivers/staging/exfat/exfat_core.c if (p_fs->vol_type == EXFAT) p_fs 2536 drivers/staging/exfat/exfat_core.c if ((p_dir->dir == p_fs->root_dir) || ((++count) > 2)) p_fs 2570 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 2572 drivers/staging/exfat/exfat_core.c num_entries = p_fs->fs_func->calc_num_entries(p_uniname); p_fs 2576 drivers/staging/exfat/exfat_core.c if (p_fs->vol_type != EXFAT) { p_fs 2623 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 2631 drivers/staging/exfat/exfat_core.c if (p_fs->fs_func->get_entry_type((struct dentry_t *)ep) == p_fs 2651 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 2669 drivers/staging/exfat/exfat_core.c if (p_fs->fs_func->get_entry_type(ep) == TYPE_EXTEND) p_fs 2753 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 2759 drivers/staging/exfat/exfat_core.c dentries_per_clu = p_fs->dentries_in_root; p_fs 2761 drivers/staging/exfat/exfat_core.c dentries_per_clu = p_fs->dentries_per_clu; p_fs 2767 drivers/staging/exfat/exfat_core.c if (p_fs->dev_ejected) p_fs 2776 drivers/staging/exfat/exfat_core.c type = p_fs->fs_func->get_entry_type((struct dentry_t *) p_fs 2961 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 2974 drivers/staging/exfat/exfat_core.c p_dir->size = (s32)(fid->size >> p_fs->cluster_size_bits); p_fs 3014 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 3024 drivers/staging/exfat/exfat_core.c p_fs->sectors_per_clu = p_bpb->sectors_per_clu; p_fs 3025 drivers/staging/exfat/exfat_core.c p_fs->sectors_per_clu_bits = ilog2(p_bpb->sectors_per_clu); p_fs 3026 drivers/staging/exfat/exfat_core.c p_fs->cluster_size_bits = p_fs->sectors_per_clu_bits + p_fs 3028 drivers/staging/exfat/exfat_core.c p_fs->cluster_size = 1 << p_fs->cluster_size_bits; p_fs 3030 drivers/staging/exfat/exfat_core.c p_fs->num_FAT_sectors = GET16(p_bpb->num_fat_sectors); p_fs 3032 drivers/staging/exfat/exfat_core.c p_fs->FAT1_start_sector = p_fs->PBR_sector + GET16(p_bpb->num_reserved); p_fs 3034 drivers/staging/exfat/exfat_core.c p_fs->FAT2_start_sector = p_fs->FAT1_start_sector; p_fs 3036 drivers/staging/exfat/exfat_core.c p_fs->FAT2_start_sector = p_fs->FAT1_start_sector + p_fs 3037 drivers/staging/exfat/exfat_core.c p_fs->num_FAT_sectors; p_fs 3039 drivers/staging/exfat/exfat_core.c p_fs->root_start_sector = p_fs->FAT2_start_sector + p_fs 3040 drivers/staging/exfat/exfat_core.c p_fs->num_FAT_sectors; p_fs 3041 drivers/staging/exfat/exfat_core.c p_fs->data_start_sector = p_fs->root_start_sector + num_root_sectors; p_fs 3043 drivers/staging/exfat/exfat_core.c p_fs->num_sectors = GET16(p_bpb->num_sectors); p_fs 3044 drivers/staging/exfat/exfat_core.c if (p_fs->num_sectors == 0) p_fs 3045 drivers/staging/exfat/exfat_core.c p_fs->num_sectors = GET32(p_bpb->num_huge_sectors); p_fs 3047 drivers/staging/exfat/exfat_core.c num_reserved = p_fs->data_start_sector - p_fs->PBR_sector; p_fs 3048 drivers/staging/exfat/exfat_core.c p_fs->num_clusters = ((p_fs->num_sectors - num_reserved) >> p_fs 3049 drivers/staging/exfat/exfat_core.c p_fs->sectors_per_clu_bits) + 2; p_fs 3052 drivers/staging/exfat/exfat_core.c if (p_fs->num_clusters < FAT12_THRESHOLD) p_fs 3053 drivers/staging/exfat/exfat_core.c p_fs->vol_type = FAT12; p_fs 3055 drivers/staging/exfat/exfat_core.c p_fs->vol_type = FAT16; p_fs 3056 drivers/staging/exfat/exfat_core.c p_fs->vol_id = GET32(p_bpb->vol_serial); p_fs 3058 drivers/staging/exfat/exfat_core.c p_fs->root_dir = 0; p_fs 3059 drivers/staging/exfat/exfat_core.c p_fs->dentries_in_root = GET16(p_bpb->num_root_entries); p_fs 3060 drivers/staging/exfat/exfat_core.c p_fs->dentries_per_clu = 1 << (p_fs->cluster_size_bits - p_fs 3063 drivers/staging/exfat/exfat_core.c p_fs->vol_flag = VOL_CLEAN; p_fs 3064 drivers/staging/exfat/exfat_core.c p_fs->clu_srch_ptr = 2; p_fs 3065 drivers/staging/exfat/exfat_core.c p_fs->used_clusters = UINT_MAX; p_fs 3067 drivers/staging/exfat/exfat_core.c p_fs->fs_func = &fat_fs_func; p_fs 3076 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 3082 drivers/staging/exfat/exfat_core.c p_fs->sectors_per_clu = p_bpb->sectors_per_clu; p_fs 3083 drivers/staging/exfat/exfat_core.c p_fs->sectors_per_clu_bits = ilog2(p_bpb->sectors_per_clu); p_fs 3084 drivers/staging/exfat/exfat_core.c p_fs->cluster_size_bits = p_fs->sectors_per_clu_bits + p_fs 3086 drivers/staging/exfat/exfat_core.c p_fs->cluster_size = 1 << p_fs->cluster_size_bits; p_fs 3088 drivers/staging/exfat/exfat_core.c p_fs->num_FAT_sectors = GET32(p_bpb->num_fat32_sectors); p_fs 3090 drivers/staging/exfat/exfat_core.c p_fs->FAT1_start_sector = p_fs->PBR_sector + GET16(p_bpb->num_reserved); p_fs 3092 drivers/staging/exfat/exfat_core.c p_fs->FAT2_start_sector = p_fs->FAT1_start_sector; p_fs 3094 drivers/staging/exfat/exfat_core.c p_fs->FAT2_start_sector = p_fs->FAT1_start_sector + p_fs 3095 drivers/staging/exfat/exfat_core.c p_fs->num_FAT_sectors; p_fs 3097 drivers/staging/exfat/exfat_core.c p_fs->root_start_sector = p_fs->FAT2_start_sector + p_fs 3098 drivers/staging/exfat/exfat_core.c p_fs->num_FAT_sectors; p_fs 3099 drivers/staging/exfat/exfat_core.c p_fs->data_start_sector = p_fs->root_start_sector; p_fs 3101 drivers/staging/exfat/exfat_core.c p_fs->num_sectors = GET32(p_bpb->num_huge_sectors); p_fs 3102 drivers/staging/exfat/exfat_core.c num_reserved = p_fs->data_start_sector - p_fs->PBR_sector; p_fs 3104 drivers/staging/exfat/exfat_core.c p_fs->num_clusters = ((p_fs->num_sectors - num_reserved) >> p_fs 3105 drivers/staging/exfat/exfat_core.c p_fs->sectors_per_clu_bits) + 2; p_fs 3108 drivers/staging/exfat/exfat_core.c p_fs->vol_type = FAT32; p_fs 3109 drivers/staging/exfat/exfat_core.c p_fs->vol_id = GET32(p_bpb->vol_serial); p_fs 3111 drivers/staging/exfat/exfat_core.c p_fs->root_dir = GET32(p_bpb->root_cluster); p_fs 3112 drivers/staging/exfat/exfat_core.c p_fs->dentries_in_root = 0; p_fs 3113 drivers/staging/exfat/exfat_core.c p_fs->dentries_per_clu = 1 << (p_fs->cluster_size_bits - p_fs 3116 drivers/staging/exfat/exfat_core.c p_fs->vol_flag = VOL_CLEAN; p_fs 3117 drivers/staging/exfat/exfat_core.c p_fs->clu_srch_ptr = 2; p_fs 3118 drivers/staging/exfat/exfat_core.c p_fs->used_clusters = UINT_MAX; p_fs 3120 drivers/staging/exfat/exfat_core.c p_fs->fs_func = &fat_fs_func; p_fs 3155 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 3161 drivers/staging/exfat/exfat_core.c p_fs->sectors_per_clu = 1 << p_bpb->sectors_per_clu_bits; p_fs 3162 drivers/staging/exfat/exfat_core.c p_fs->sectors_per_clu_bits = p_bpb->sectors_per_clu_bits; p_fs 3163 drivers/staging/exfat/exfat_core.c p_fs->cluster_size_bits = p_fs->sectors_per_clu_bits + p_fs 3165 drivers/staging/exfat/exfat_core.c p_fs->cluster_size = 1 << p_fs->cluster_size_bits; p_fs 3167 drivers/staging/exfat/exfat_core.c p_fs->num_FAT_sectors = GET32(p_bpb->fat_length); p_fs 3169 drivers/staging/exfat/exfat_core.c p_fs->FAT1_start_sector = p_fs->PBR_sector + GET32(p_bpb->fat_offset); p_fs 3171 drivers/staging/exfat/exfat_core.c p_fs->FAT2_start_sector = p_fs->FAT1_start_sector; p_fs 3173 drivers/staging/exfat/exfat_core.c p_fs->FAT2_start_sector = p_fs->FAT1_start_sector + p_fs 3174 drivers/staging/exfat/exfat_core.c p_fs->num_FAT_sectors; p_fs 3176 drivers/staging/exfat/exfat_core.c p_fs->root_start_sector = p_fs->PBR_sector + GET32(p_bpb->clu_offset); p_fs 3177 drivers/staging/exfat/exfat_core.c p_fs->data_start_sector = p_fs->root_start_sector; p_fs 3179 drivers/staging/exfat/exfat_core.c p_fs->num_sectors = GET64(p_bpb->vol_length); p_fs 3180 drivers/staging/exfat/exfat_core.c p_fs->num_clusters = GET32(p_bpb->clu_count) + 2; p_fs 3183 drivers/staging/exfat/exfat_core.c p_fs->vol_type = EXFAT; p_fs 3184 drivers/staging/exfat/exfat_core.c p_fs->vol_id = GET32(p_bpb->vol_serial); p_fs 3186 drivers/staging/exfat/exfat_core.c p_fs->root_dir = GET32(p_bpb->root_cluster); p_fs 3187 drivers/staging/exfat/exfat_core.c p_fs->dentries_in_root = 0; p_fs 3188 drivers/staging/exfat/exfat_core.c p_fs->dentries_per_clu = 1 << (p_fs->cluster_size_bits - p_fs 3191 drivers/staging/exfat/exfat_core.c p_fs->vol_flag = (u32)GET16(p_bpb->vol_flags); p_fs 3192 drivers/staging/exfat/exfat_core.c p_fs->clu_srch_ptr = 2; p_fs 3193 drivers/staging/exfat/exfat_core.c p_fs->used_clusters = UINT_MAX; p_fs 3195 drivers/staging/exfat/exfat_core.c p_fs->fs_func = &exfat_fs_func; p_fs 3208 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 3209 drivers/staging/exfat/exfat_core.c struct fs_func *fs_func = p_fs->fs_func; p_fs 3223 drivers/staging/exfat/exfat_core.c clu.flags = (p_fs->vol_type == EXFAT) ? 0x03 : 0x01; p_fs 3236 drivers/staging/exfat/exfat_core.c if (p_fs->vol_type == EXFAT) { p_fs 3237 drivers/staging/exfat/exfat_core.c size = p_fs->cluster_size; p_fs 3260 drivers/staging/exfat/exfat_core.c if (p_dir->dir == p_fs->root_dir) p_fs 3270 drivers/staging/exfat/exfat_core.c ret = p_fs->fs_func->init_ext_entry(sb, &clu, 1, 1, NULL, p_fs 3294 drivers/staging/exfat/exfat_core.c fid->flags = (p_fs->vol_type == EXFAT) ? 0x03 : 0x01; p_fs 3311 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 3312 drivers/staging/exfat/exfat_core.c struct fs_func *fs_func = p_fs->fs_func; p_fs 3344 drivers/staging/exfat/exfat_core.c fid->flags = (p_fs->vol_type == EXFAT) ? 0x03 : 0x01; p_fs 3361 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 3362 drivers/staging/exfat/exfat_core.c struct fs_func *fs_func = p_fs->fs_func; p_fs 3392 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 3393 drivers/staging/exfat/exfat_core.c struct fs_func *fs_func = p_fs->fs_func; p_fs 3440 drivers/staging/exfat/exfat_core.c if (p_fs->vol_type == EXFAT) { p_fs 3499 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 3500 drivers/staging/exfat/exfat_core.c struct fs_func *fs_func = p_fs->fs_func; p_fs 3550 drivers/staging/exfat/exfat_core.c if (p_fs->vol_type == EXFAT) { p_fs 3573 drivers/staging/exfat/exfat_core.c if (p_newdir->dir == p_fs->root_dir) p_fs 3604 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 3606 drivers/staging/exfat/exfat_core.c if ((sec >= (p_fs->PBR_sector + p_fs->num_sectors)) && p_fs 3607 drivers/staging/exfat/exfat_core.c (p_fs->num_sectors > 0)) { p_fs 3614 drivers/staging/exfat/exfat_core.c if (!p_fs->dev_ejected) { p_fs 3617 drivers/staging/exfat/exfat_core.c p_fs->dev_ejected = 1; p_fs 3627 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 3629 drivers/staging/exfat/exfat_core.c if (sec >= (p_fs->PBR_sector + p_fs->num_sectors) && p_fs 3630 drivers/staging/exfat/exfat_core.c (p_fs->num_sectors > 0)) { p_fs 3643 drivers/staging/exfat/exfat_core.c if (!p_fs->dev_ejected) { p_fs 3646 drivers/staging/exfat/exfat_core.c p_fs->dev_ejected = 1; p_fs 3656 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 3658 drivers/staging/exfat/exfat_core.c if (((sec + num_secs) > (p_fs->PBR_sector + p_fs->num_sectors)) && p_fs 3659 drivers/staging/exfat/exfat_core.c (p_fs->num_sectors > 0)) { p_fs 3666 drivers/staging/exfat/exfat_core.c if (!p_fs->dev_ejected) { p_fs 3669 drivers/staging/exfat/exfat_core.c p_fs->dev_ejected = 1; p_fs 3679 drivers/staging/exfat/exfat_core.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 3681 drivers/staging/exfat/exfat_core.c if ((sec + num_secs) > (p_fs->PBR_sector + p_fs->num_sectors) && p_fs 3682 drivers/staging/exfat/exfat_core.c (p_fs->num_sectors > 0)) { p_fs 3694 drivers/staging/exfat/exfat_core.c if (!p_fs->dev_ejected) { p_fs 3697 drivers/staging/exfat/exfat_core.c p_fs->dev_ejected = 1; p_fs 79 drivers/staging/exfat/exfat_nls.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 83 drivers/staging/exfat/exfat_nls.c if (p_fs->vol_utbl && p_fs->vol_utbl[get_col_index(a)]) p_fs 84 drivers/staging/exfat/exfat_nls.c return p_fs->vol_utbl[get_col_index(a)][get_row_index(a)]; p_fs 351 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 360 drivers/staging/exfat/exfat_super.c sema_init(&p_fs->v_sem, 1); p_fs 361 drivers/staging/exfat/exfat_super.c p_fs->dev_ejected = 0; p_fs 379 drivers/staging/exfat/exfat_super.c p_fs->PBR_sector = 0; p_fs 418 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) { p_fs 432 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) { p_fs 433 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) { p_fs 452 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 460 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 465 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) { p_fs 476 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) { p_fs 484 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 495 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 502 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 504 drivers/staging/exfat/exfat_super.c if (p_fs->used_clusters == UINT_MAX) p_fs 505 drivers/staging/exfat/exfat_super.c p_fs->used_clusters = p_fs->fs_func->count_used_clusters(sb); p_fs 507 drivers/staging/exfat/exfat_super.c info->FatType = p_fs->vol_type; p_fs 508 drivers/staging/exfat/exfat_super.c info->ClusterSize = p_fs->cluster_size; p_fs 509 drivers/staging/exfat/exfat_super.c info->NumClusters = p_fs->num_clusters - 2; /* clu 0 & 1 */ p_fs 510 drivers/staging/exfat/exfat_super.c info->UsedClusters = p_fs->used_clusters; p_fs 513 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 517 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 525 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 528 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 534 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 538 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 556 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 565 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 578 drivers/staging/exfat/exfat_super.c dentry = p_fs->fs_func->find_dir_entry(sb, &dir, &uni_name, num_entries, p_fs 598 drivers/staging/exfat/exfat_super.c fid->start_clu = p_fs->root_dir; p_fs 600 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) { p_fs 617 drivers/staging/exfat/exfat_super.c fid->type = p_fs->fs_func->get_entry_type(ep); p_fs 620 drivers/staging/exfat/exfat_super.c fid->attr = p_fs->fs_func->get_entry_attr(ep); p_fs 622 drivers/staging/exfat/exfat_super.c fid->size = p_fs->fs_func->get_entry_size(ep2); p_fs 624 drivers/staging/exfat/exfat_super.c fid->flags = (p_fs->vol_type == EXFAT) ? 0x03 : 0x01; p_fs 627 drivers/staging/exfat/exfat_super.c fid->flags = p_fs->fs_func->get_entry_flag(ep2); p_fs 628 drivers/staging/exfat/exfat_super.c fid->start_clu = p_fs->fs_func->get_entry_clu0(ep2); p_fs 631 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) p_fs 635 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 639 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 650 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 658 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 675 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 680 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 695 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 707 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 731 drivers/staging/exfat/exfat_super.c clu_offset = (s32)(fid->rwoffset >> p_fs->cluster_size_bits); p_fs 755 drivers/staging/exfat/exfat_super.c p_fs->cluster_size_bits); p_fs 759 drivers/staging/exfat/exfat_super.c offset = (s32)(fid->rwoffset & (p_fs->cluster_size - 1)); p_fs 799 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 804 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 825 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 837 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 861 drivers/staging/exfat/exfat_super.c p_fs->cluster_size_bits) + 1; p_fs 866 drivers/staging/exfat/exfat_super.c clu_offset = (s32)(fid->rwoffset >> p_fs->cluster_size_bits); p_fs 899 drivers/staging/exfat/exfat_super.c p_fs->cluster_size_bits) + 1; p_fs 906 drivers/staging/exfat/exfat_super.c num_alloced = p_fs->fs_func->alloc_cluster(sb, p_fs 940 drivers/staging/exfat/exfat_super.c p_fs->cluster_size_bits); p_fs 944 drivers/staging/exfat/exfat_super.c offset = (s32)(fid->rwoffset & (p_fs->cluster_size - 1)); p_fs 1005 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) { p_fs 1018 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_time(ep, tm_current(&tm), TM_MODIFY); p_fs 1019 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_attr(ep, fid->attr); p_fs 1021 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type != EXFAT) p_fs 1025 drivers/staging/exfat/exfat_super.c if (p_fs->fs_func->get_entry_flag(ep2) != fid->flags) p_fs 1026 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_flag(ep2, fid->flags); p_fs 1028 drivers/staging/exfat/exfat_super.c if (p_fs->fs_func->get_entry_size(ep2) != fid->size) p_fs 1029 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_size(ep2, fid->size); p_fs 1031 drivers/staging/exfat/exfat_super.c if (p_fs->fs_func->get_entry_clu0(ep2) != fid->start_clu) p_fs 1032 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_clu0(ep2, fid->start_clu); p_fs 1034 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type != EXFAT) p_fs 1038 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) { p_fs 1056 drivers/staging/exfat/exfat_super.c else if (p_fs->dev_ejected) p_fs 1061 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 1076 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1084 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 1105 drivers/staging/exfat/exfat_super.c clu.size = (s32)((old_size - 1) >> p_fs->cluster_size_bits) + 1; p_fs 1110 drivers/staging/exfat/exfat_super.c p_fs->cluster_size_bits) + 1; p_fs 1131 drivers/staging/exfat/exfat_super.c fid->flags = (p_fs->vol_type == EXFAT) ? 0x03 : 0x01; p_fs 1136 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) { p_fs 1153 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_time(ep, tm_current(&tm), TM_MODIFY); p_fs 1154 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_attr(ep, fid->attr); p_fs 1156 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_size(ep2, new_size); p_fs 1158 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_flag(ep2, 0x01); p_fs 1159 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_clu0(ep2, CLUSTER_32(0)); p_fs 1162 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type != EXFAT) { p_fs 1176 drivers/staging/exfat/exfat_super.c p_fs->fs_func->free_cluster(sb, &clu, 0); p_fs 1188 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 1194 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 1202 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(parent_inode->i_sb)->fs_info); p_fs 1207 drivers/staging/exfat/exfat_super.c (fid->dir.size << p_fs->cluster_size_bits)) || p_fs 1211 drivers/staging/exfat/exfat_super.c fid->dir.size = ((parent_fid->size + (p_fs->cluster_size - 1)) p_fs 1212 drivers/staging/exfat/exfat_super.c >> p_fs->cluster_size_bits); p_fs 1226 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1242 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 1253 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type != EXFAT) { p_fs 1254 drivers/staging/exfat/exfat_super.c if ((olddir.dir != p_fs->root_dir) && (dentry < 2)) { p_fs 1266 drivers/staging/exfat/exfat_super.c if (p_fs->fs_func->get_entry_attr(ep) & ATTR_READONLY) { p_fs 1286 drivers/staging/exfat/exfat_super.c entry_type = p_fs->fs_func->get_entry_type(ep); p_fs 1293 drivers/staging/exfat/exfat_super.c p_fs->cluster_size_bits) + 1; p_fs 1323 drivers/staging/exfat/exfat_super.c num_entries = p_fs->fs_func->count_ext_entries(sb, p_dir, p_fs 1327 drivers/staging/exfat/exfat_super.c p_fs->fs_func->delete_dir_entry(sb, p_dir, new_entry, 0, p_fs 1336 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 1340 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 1352 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1359 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 1373 drivers/staging/exfat/exfat_super.c if (p_fs->fs_func->get_entry_attr(ep) & ATTR_READONLY) { p_fs 1383 drivers/staging/exfat/exfat_super.c clu_to_free.size = (s32)((fid->size - 1) >> p_fs->cluster_size_bits) + 1; p_fs 1387 drivers/staging/exfat/exfat_super.c p_fs->fs_func->free_cluster(sb, &clu_to_free, 0); p_fs 1391 drivers/staging/exfat/exfat_super.c fid->flags = (p_fs->vol_type == EXFAT) ? 0x03 : 0x01; p_fs 1398 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 1402 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 1416 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1422 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 1428 drivers/staging/exfat/exfat_super.c if ((fid->dir.dir == p_fs->root_dir) && p_fs 1430 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 1437 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 1440 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) { p_fs 1455 drivers/staging/exfat/exfat_super.c type = p_fs->fs_func->get_entry_type(ep); p_fs 1459 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 1464 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) p_fs 1473 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_attr(ep, attr); p_fs 1475 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type != EXFAT) { p_fs 1487 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 1491 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 1507 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1515 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 1518 drivers/staging/exfat/exfat_super.c if ((fid->dir.dir == p_fs->root_dir) && p_fs 1530 drivers/staging/exfat/exfat_super.c dir.dir = p_fs->root_dir; p_fs 1533 drivers/staging/exfat/exfat_super.c if (p_fs->root_dir == CLUSTER_32(0)) { p_fs 1535 drivers/staging/exfat/exfat_super.c info->Size = p_fs->dentries_in_root << p_fs 1539 drivers/staging/exfat/exfat_super.c p_fs->cluster_size_bits; p_fs 1549 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 1556 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) { p_fs 1575 drivers/staging/exfat/exfat_super.c info->Attr = p_fs->fs_func->get_entry_attr(ep); p_fs 1577 drivers/staging/exfat/exfat_super.c p_fs->fs_func->get_entry_time(ep, &tm, TM_CREATE); p_fs 1586 drivers/staging/exfat/exfat_super.c p_fs->fs_func->get_entry_time(ep, &tm, TM_MODIFY); p_fs 1601 drivers/staging/exfat/exfat_super.c p_fs->fs_func->get_uni_name_from_ext_entry(sb, &(fid->dir), fid->entry, p_fs 1603 drivers/staging/exfat/exfat_super.c if (*uni_name.name == 0x0 && p_fs->vol_type != EXFAT) p_fs 1608 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) { p_fs 1618 drivers/staging/exfat/exfat_super.c info->Size = p_fs->fs_func->get_entry_size(ep2); p_fs 1620 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) p_fs 1629 drivers/staging/exfat/exfat_super.c p_fs->cluster_size_bits; p_fs 1639 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 1644 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 1658 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1665 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 1668 drivers/staging/exfat/exfat_super.c if ((fid->dir.dir == p_fs->root_dir) && p_fs 1670 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 1680 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) { p_fs 1698 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_attr(ep, info->Attr); p_fs 1707 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_time(ep, &tm, TM_CREATE); p_fs 1715 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_time(ep, &tm, TM_MODIFY); p_fs 1717 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_size(ep2, info->Size); p_fs 1719 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type != EXFAT) { p_fs 1726 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 1731 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 1749 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1757 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 1759 drivers/staging/exfat/exfat_super.c fid->rwoffset = (s64)(clu_offset) << p_fs->cluster_size_bits; p_fs 1765 drivers/staging/exfat/exfat_super.c p_fs->cluster_size_bits) + 1; p_fs 1805 drivers/staging/exfat/exfat_super.c num_alloced = p_fs->fs_func->alloc_cluster(sb, 1, &new_clu); p_fs 1834 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) { p_fs 1847 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type != EXFAT) { p_fs 1856 drivers/staging/exfat/exfat_super.c if (p_fs->fs_func->get_entry_flag(ep) != fid->flags) p_fs 1857 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_flag(ep, fid->flags); p_fs 1859 drivers/staging/exfat/exfat_super.c if (p_fs->fs_func->get_entry_clu0(ep) != fid->start_clu) p_fs 1860 drivers/staging/exfat/exfat_super.c p_fs->fs_func->set_entry_clu0(ep, p_fs 1863 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type != EXFAT) p_fs 1867 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) { p_fs 1873 drivers/staging/exfat/exfat_super.c inode->i_blocks += num_alloced << (p_fs->cluster_size_bits - 9); p_fs 1877 drivers/staging/exfat/exfat_super.c fid->hint_last_off = (s32)(fid->rwoffset >> p_fs->cluster_size_bits); p_fs 1880 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 1885 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 1900 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1909 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 1925 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 1929 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 1946 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 1947 drivers/staging/exfat/exfat_super.c struct fs_func *fs_func = p_fs->fs_func; p_fs 1959 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 1962 drivers/staging/exfat/exfat_super.c dir.dir = p_fs->root_dir; p_fs 1966 drivers/staging/exfat/exfat_super.c dir.size = (s32)(fid->size >> p_fs->cluster_size_bits); p_fs 1974 drivers/staging/exfat/exfat_super.c dentries_per_clu = p_fs->dentries_in_root; p_fs 1984 drivers/staging/exfat/exfat_super.c dentries_per_clu = p_fs->dentries_per_clu; p_fs 2015 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 2064 drivers/staging/exfat/exfat_super.c if (*uni_name.name == 0x0 && p_fs->vol_type != EXFAT) p_fs 2071 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type == EXFAT) { p_fs 2097 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 2123 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 2128 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 2139 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 2152 drivers/staging/exfat/exfat_super.c if (p_fs->vol_type != EXFAT) { p_fs 2153 drivers/staging/exfat/exfat_super.c if ((dir.dir != p_fs->root_dir) && (dentry < 2)) p_fs 2158 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 2161 drivers/staging/exfat/exfat_super.c clu_to_free.size = (s32)((fid->size - 1) >> p_fs->cluster_size_bits) + 1; p_fs 2175 drivers/staging/exfat/exfat_super.c p_fs->fs_func->free_cluster(sb, &clu_to_free, 1); p_fs 2179 drivers/staging/exfat/exfat_super.c fid->flags = (p_fs->vol_type == EXFAT) ? 0x03 : 0x01; p_fs 2186 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 2191 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); p_fs 2205 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(sbi->fs_info); p_fs 2216 drivers/staging/exfat/exfat_super.c if ((p_fs->vol_type == EXFAT) || (inode->i_ino == EXFAT_ROOT_INO)) { p_fs 2296 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(sbi->fs_info); p_fs 2298 drivers/staging/exfat/exfat_super.c return p_fs->vol_id; p_fs 2898 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(sbi->fs_info); p_fs 2923 drivers/staging/exfat/exfat_super.c inode->i_blocks = ((i_size_read(inode) + (p_fs->cluster_size - 1)) & p_fs 2924 drivers/staging/exfat/exfat_super.c ~((loff_t)p_fs->cluster_size - 1)) >> 9; p_fs 3076 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(sbi->fs_info); p_fs 3087 drivers/staging/exfat/exfat_super.c if ((p_fs->vol_type == FAT12) || (p_fs->vol_type == FAT16)) { p_fs 3090 drivers/staging/exfat/exfat_super.c (p_fs->dentries_in_root >> p_fs 3092 drivers/staging/exfat/exfat_super.c *phys = sector + p_fs->root_start_sector; p_fs 3108 drivers/staging/exfat/exfat_super.c clu_offset = sector >> p_fs->sectors_per_clu_bits; p_fs 3111 drivers/staging/exfat/exfat_super.c sec_offset = sector & (p_fs->sectors_per_clu - 1); p_fs 3124 drivers/staging/exfat/exfat_super.c *mapped_blocks = p_fs->sectors_per_clu - sec_offset; p_fs 3305 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(sbi->fs_info); p_fs 3348 drivers/staging/exfat/exfat_super.c inode->i_blocks = ((i_size_read(inode) + (p_fs->cluster_size - 1)) p_fs 3349 drivers/staging/exfat/exfat_super.c & ~((loff_t)p_fs->cluster_size - 1)) >> 9; p_fs 3500 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 3503 drivers/staging/exfat/exfat_super.c if (p_fs->used_clusters == UINT_MAX) { p_fs 3508 drivers/staging/exfat/exfat_super.c info.FatType = p_fs->vol_type; p_fs 3509 drivers/staging/exfat/exfat_super.c info.ClusterSize = p_fs->cluster_size; p_fs 3510 drivers/staging/exfat/exfat_super.c info.NumClusters = p_fs->num_clusters - 2; p_fs 3511 drivers/staging/exfat/exfat_super.c info.UsedClusters = p_fs->used_clusters; p_fs 3514 drivers/staging/exfat/exfat_super.c if (p_fs->dev_ejected) p_fs 3790 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(sbi->fs_info); p_fs 3793 drivers/staging/exfat/exfat_super.c EXFAT_I(inode)->fid.dir.dir = p_fs->root_dir; p_fs 3796 drivers/staging/exfat/exfat_super.c EXFAT_I(inode)->fid.start_clu = p_fs->root_dir; p_fs 3815 drivers/staging/exfat/exfat_super.c inode->i_blocks = ((i_size_read(inode) + (p_fs->cluster_size - 1)) p_fs 3816 drivers/staging/exfat/exfat_super.c & ~((loff_t)p_fs->cluster_size - 1)) >> 9; p_fs 3817 drivers/staging/exfat/exfat_super.c EXFAT_I(inode)->i_pos = ((loff_t)p_fs->root_dir << 32) | 0xffffffff; p_fs 3975 drivers/staging/exfat/exfat_super.c struct fs_info_t *p_fs = &(EXFAT_SB(sb)->fs_info); p_fs 3987 drivers/staging/exfat/exfat_super.c down(&p_fs->v_sem); p_fs 3990 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem);