Lines Matching refs:sbi
158 struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb); in fat_mode_can_hold_ro() local
162 if (!sbi->options.rodir) in fat_mode_can_hold_ro()
164 mask = ~sbi->options.fs_dmask; in fat_mode_can_hold_ro()
166 mask = ~sbi->options.fs_fmask; in fat_mode_can_hold_ro()
174 static inline umode_t fat_make_mode(struct msdos_sb_info *sbi, in fat_make_mode() argument
177 if (attrs & ATTR_RO && !((attrs & ATTR_DIR) && !sbi->options.rodir)) in fat_make_mode()
181 return (mode & ~sbi->options.fs_dmask) | S_IFDIR; in fat_make_mode()
183 return (mode & ~sbi->options.fs_fmask) | S_IFREG; in fat_make_mode()
216 static inline sector_t fat_clus_to_blknr(struct msdos_sb_info *sbi, int clus) in fat_clus_to_blknr() argument
218 return ((sector_t)clus - FAT_START_ENT) * sbi->sec_per_clus in fat_clus_to_blknr()
219 + sbi->data_start; in fat_clus_to_blknr()
222 static inline void fat_get_blknr_offset(struct msdos_sb_info *sbi, in fat_get_blknr_offset() argument
225 *blknr = i_pos >> sbi->dir_per_block_bits; in fat_get_blknr_offset()
226 *offset = i_pos & (sbi->dir_per_block - 1); in fat_get_blknr_offset()
229 static inline loff_t fat_i_pos_read(struct msdos_sb_info *sbi, in fat_i_pos_read() argument
234 spin_lock(&sbi->inode_hash_lock); in fat_i_pos_read()
238 spin_unlock(&sbi->inode_hash_lock); in fat_i_pos_read()
255 static inline int fat_get_start(const struct msdos_sb_info *sbi, in fat_get_start() argument
259 if (sbi->fat_bits == 32) in fat_get_start()
404 extern void fat_time_fat2unix(struct msdos_sb_info *sbi, struct timespec *ts,
406 extern void fat_time_unix2fat(struct msdos_sb_info *sbi, struct timespec *ts,