• Home
  • Raw
  • Download

Lines Matching refs:entry

22 static void fat12_ent_blocknr(struct super_block *sb, int entry,  in fat12_ent_blocknr()  argument
26 int bytes = entry + (entry >> 1); in fat12_ent_blocknr()
27 WARN_ON(!fat_valid_entry(sbi, entry)); in fat12_ent_blocknr()
32 static void fat_ent_blocknr(struct super_block *sb, int entry, in fat_ent_blocknr() argument
36 int bytes = (entry << sbi->fatent_shift); in fat_ent_blocknr()
37 WARN_ON(!fat_valid_entry(sbi, entry)); in fat_ent_blocknr()
124 if (fatent->entry & 1) in fat12_ent_get()
162 if (fatent->entry & 1) { in fat12_ent_put()
197 u8 *nextp = ent12_p[1] + 1 + (fatent->entry & 1); in fat12_ent_next()
199 fatent->entry++; in fat12_ent_next()
229 fatent->entry++; in fat16_ent_next()
241 fatent->entry++; in fat32_ent_next()
347 int fat_ent_read(struct inode *inode, struct fat_entry *fatent, int entry) in fat_ent_read() argument
355 if (!fat_valid_entry(sbi, entry)) { in fat_ent_read()
357 fat_fs_error(sb, "invalid access to FAT (entry 0x%08x)", entry); in fat_ent_read()
361 fatent_set_entry(fatent, entry); in fat_ent_read()
362 ops->ent_blocknr(sb, entry, &offset, &blocknr); in fat_ent_read()
428 if (fatent->entry < sbi->max_cluster) in fat_ent_next()
442 ops->ent_blocknr(sb, fatent->entry, &offset, &blocknr); in fat_ent_read_block()
488 if (fatent.entry >= sbi->max_cluster) in fat_alloc_clusters()
489 fatent.entry = FAT_START_ENT; in fat_alloc_clusters()
490 fatent_set_entry(&fatent, fatent.entry); in fat_alloc_clusters()
498 int entry = fatent.entry; in fat_alloc_clusters() local
503 ops->ent_put(&prev_ent, entry); in fat_alloc_clusters()
507 sbi->prev_free = entry; in fat_alloc_clusters()
511 cluster[idx_clus] = entry; in fat_alloc_clusters()
583 if (cluster != fatent.entry + 1) { in fat_free_clusters()
584 int nr_clus = fatent.entry - first_cl + 1; in fat_free_clusters()
645 ops->ent_blocknr(sb, fatent->entry, &offset, &blocknr); in fat_ent_reada()
670 while (fatent.entry < sbi->max_cluster) { in fat_count_free_clusters()
736 while (fatent.entry <= ent_end) { in fat_trim_fs()
752 u32 clus = fatent.entry - free; in fat_trim_fs()
763 } while (fat_ent_next(sbi, &fatent) && fatent.entry <= ent_end); in fat_trim_fs()
779 u32 clus = fatent.entry - free; in fat_trim_fs()