Lines Matching defs:sbi
53 struct msdos_sb_info *sbi = MSDOS_SB(sb);
58 if ((iblock & (sbi->sec_per_clus - 1)) || sbi->sec_per_clus == 1)
61 if (!is_fat32(sbi) && (dir->i_ino == MSDOS_ROOT_INO))
66 for (sec = 0; sec < sbi->sec_per_clus; sec++)
184 struct msdos_sb_info *sbi = MSDOS_SB(sb);
185 if (sbi->options.utf8)
189 return uni16_to_x8(sb, buf, uni, size, sbi->nls_io);
254 static inline int fat_name_match(struct msdos_sb_info *sbi,
261 if (sbi->options.name_check != 's')
262 return !nls_strnicmp(sbi->nls_io, a, b, a_len);
353 const struct msdos_sb_info *sbi = MSDOS_SB(sb);
354 int isvfat = sbi->options.isvfat;
355 int nocase = sbi->options.nocase;
356 unsigned short opt_shortname = sbi->options.shortname;
357 struct nls_table *nls_disk = sbi->nls_disk;
450 if (sbi->options.isvfat) {
467 struct msdos_sb_info *sbi = MSDOS_SB(sb);
512 if (fat_name_match(sbi, name, name_len, bufname, len))
521 if (fat_name_match(sbi, name, name_len, longname, len))
558 struct msdos_sb_info *sbi = MSDOS_SB(sb);
564 int isvfat = sbi->options.isvfat;
571 mutex_lock(&sbi->s_lock);
636 sbi->options.dotsOK);
650 short_len = fat_parse_short(sb, de, bufname, sbi->options.dotsOK);
697 mutex_unlock(&sbi->s_lock);
1136 struct msdos_sb_info *sbi = MSDOS_SB(sb);
1148 blknr = fat_clus_to_blknr(sbi, cluster);
1155 fat_time_unix2fat(sbi, ts, &time, &date, &time_cs);
1167 if (sbi->options.isvfat) {
1203 struct msdos_sb_info *sbi = MSDOS_SB(sb);
1215 *nr_cluster = (size + (sbi->cluster_size - 1)) >> sbi->cluster_bits;
1229 start_blknr = blknr = fat_clus_to_blknr(sbi, cluster[i]);
1230 last_blknr = start_blknr + sbi->sec_per_clus;
1285 struct msdos_sb_info *sbi = MSDOS_SB(sb);
1320 if (!is_fat32(sbi))
1387 if (dir->i_size & (sbi->cluster_size - 1)) {
1389 dir->i_size = (dir->i_size + sbi->cluster_size - 1)
1390 & ~((loff_t)sbi->cluster_size - 1);
1392 dir->i_size += nr_cluster << sbi->cluster_bits;
1393 MSDOS_I(dir)->mmu_private += nr_cluster << sbi->cluster_bits;