/openbmc/linux/sound/isa/sb/ |
H A D | sb_mixer.c | 65 spin_lock_irqsave(&sb->mixer_lock, flags); in snd_sbmixer_get_single() 84 oval = snd_sbmixer_read(sb, reg); in snd_sbmixer_put_single() 88 snd_sbmixer_write(sb, reg, val); in snd_sbmixer_put_single() 144 oleft = snd_sbmixer_read(sb, left_reg); in snd_sbmixer_put_double() 148 snd_sbmixer_write(sb, left_reg, left); in snd_sbmixer_put_double() 395 val1 = snd_sbmixer_read(sb, reg1); in snd_sb16mixer_get_input_sw() 396 val2 = snd_sbmixer_read(sb, reg2); in snd_sb16mixer_get_input_sw() 417 oval1 = snd_sbmixer_read(sb, reg1); in snd_sb16mixer_put_input_sw() 418 oval2 = snd_sbmixer_read(sb, reg2); in snd_sb16mixer_put_input_sw() 427 snd_sbmixer_write(sb, reg1, val1); in snd_sb16mixer_put_input_sw() [all …]
|
/openbmc/linux/fs/qnx6/ |
H A D | inode.c | 49 struct super_block *sb = root->d_sb; in qnx6_show_options() local 50 struct qnx6_sb_info *sbi = QNX6_SB(sb); in qnx6_show_options() 59 sync_filesystem(sb); in qnx6_remount() 66 struct qnx6_sb_info *sbi = QNX6_SB(sb); in qnx6_get_devblock() 161 buf->f_type = sb->s_magic; in qnx6_statfs() 162 buf->f_bsize = sb->s_blocksize; in qnx6_statfs() 261 struct qnx6_super_block *sb; in qnx6_check_first_superblock() local 488 sb->s_fs_info = NULL; in qnx6_put_super() 528 inode = iget_locked(sb, ino); in qnx6_iget() 540 sb->s_id, ino); in qnx6_iget() [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | super.h | 8 int btrfs_sync_fs(struct super_block *sb, int wait); 12 static inline struct btrfs_fs_info *btrfs_sb(struct super_block *sb) in btrfs_sb() argument 14 return sb->s_fs_info; in btrfs_sb() 17 static inline void btrfs_set_sb_rdonly(struct super_block *sb) in btrfs_set_sb_rdonly() argument 19 sb->s_flags |= SB_RDONLY; in btrfs_set_sb_rdonly() 20 set_bit(BTRFS_FS_STATE_RO, &btrfs_sb(sb)->fs_state); in btrfs_set_sb_rdonly() 23 static inline void btrfs_clear_sb_rdonly(struct super_block *sb) in btrfs_clear_sb_rdonly() argument 25 sb->s_flags &= ~SB_RDONLY; in btrfs_clear_sb_rdonly() 26 clear_bit(BTRFS_FS_STATE_RO, &btrfs_sb(sb)->fs_state); in btrfs_clear_sb_rdonly()
|
/openbmc/linux/fs/minix/ |
H A D | bitmap.c | 44 struct super_block *sb = inode->i_sb; in minix_free_block() local 47 int k = sb->s_blocksize_bits + 3; in minix_free_block() 65 sb->s_id, block); in minix_free_block() 115 sb->s_id, (long)ino); in minix_V1_raw_inode() 121 *bh = sb_bread(sb, block); in minix_V1_raw_inode() 141 sb->s_id, (long)ino); in minix_V2_raw_inode() 147 *bh = sb_bread(sb, block); in minix_V2_raw_inode() 185 struct super_block *sb = inode->i_sb; in minix_free_inode() local 188 int k = sb->s_blocksize_bits + 3; in minix_free_inode() 215 struct super_block *sb = dir->i_sb; in minix_new_inode() local [all …]
|
/openbmc/linux/fs/efs/ |
H A D | super.c | 113 sync_filesystem(sb); in efs_remount() 246 sb->total_groups = be16_to_cpu(super->fs_ncg); in efs_validate_super() 253 struct efs_sb_info *sb; in efs_fill_super() local 258 if (!sb) in efs_fill_super() 260 s->s_fs_info = sb; in efs_fill_super() 287 if (sb->fs_start == -1) { in efs_fill_super() 291 bh = sb_bread(s, sb->fs_start + EFS_SUPER); in efs_fill_super() 300 sb->fs_start + EFS_SUPER); in efs_fill_super() 331 struct super_block *sb = dentry->d_sb; in efs_statfs() local 332 struct efs_sb_info *sbi = SUPER_INFO(sb); in efs_statfs() [all …]
|
/openbmc/linux/fs/omfs/ |
H A D | bitmap.c | 8 unsigned long omfs_count_free(struct super_block *sb) in omfs_count_free() argument 12 struct omfs_sb_info *sbi = OMFS_SB(sb); in omfs_count_free() 13 int nbits = sb->s_blocksize * 8; in omfs_count_free() 54 struct omfs_sb_info *sbi = OMFS_SB(sb); in set_run() 68 bh = sb_bread(sb, in set_run() 94 struct omfs_sb_info *sbi = OMFS_SB(sb); in omfs_allocate_block() 95 int bits_per_entry = 8 * sb->s_blocksize; in omfs_allocate_block() 136 struct omfs_sb_info *sbi = OMFS_SB(sb); in omfs_allocate_range() 137 int bits_per_entry = 8 * sb->s_blocksize; in omfs_allocate_range() 177 struct omfs_sb_info *sbi = OMFS_SB(sb); in omfs_clear_range() [all …]
|
H A D | omfs.h | 35 static inline struct omfs_sb_info *OMFS_SB(struct super_block *sb) in OMFS_SB() argument 37 return sb->s_fs_info; in OMFS_SB() 41 extern unsigned long omfs_count_free(struct super_block *sb); 42 extern int omfs_allocate_block(struct super_block *sb, u64 block); 43 extern int omfs_allocate_range(struct super_block *sb, int min_request, 45 extern int omfs_clear_range(struct super_block *sb, u64 block, int count); 50 extern int omfs_make_empty(struct inode *inode, struct super_block *sb); 62 extern struct buffer_head *omfs_bread(struct super_block *sb, sector_t block); 63 extern struct inode *omfs_iget(struct super_block *sb, ino_t inode); 65 extern int omfs_reserve_block(struct super_block *sb, sector_t block); [all …]
|
/openbmc/linux/fs/sysv/ |
H A D | super.c | 223 sb->s_id); in detect_sysv() 332 found, sb->s_blocksize, sb->s_id); in complete_read_super() 345 if (!sb->s_root) { in complete_read_super() 369 sbi->s_sb = sb; in sysv_fill_super() 372 sb->s_fs_info = sbi; in sysv_fill_super() 373 sb->s_time_min = 0; in sysv_fill_super() 428 sb->s_id); in sysv_fill_super() 445 sbi = sb->s_fs_info; in v7_sanity_check() 486 sbi->s_sb = sb; in v7_fill_super() 491 sb->s_time_min = 0; in v7_fill_super() [all …]
|
H A D | balloc.c | 35 if (SYSV_SB(sb)->s_type == FSTYPE_SYSV4) in get_chunk() 45 struct sysv_sb_info * sbi = SYSV_SB(sb); in sysv_free_block() 78 bh = sb_getblk(sb, block); in sysv_free_block() 96 dirty_sb(sb); in sysv_free_block() 102 struct sysv_sb_info *sbi = SYSV_SB(sb); in sysv_new_block() 131 if (!(bh = sb_bread(sb, block))) { in sysv_new_block() 150 dirty_sb(sb); in sysv_new_block() 204 bh = sb_bread(sb, block); in sysv_count_free_blocks() 208 blocks = get_chunk(sb, bh); in sysv_count_free_blocks() 235 if (!sb_rdonly(sb)) { in sysv_count_free_blocks() [all …]
|
/openbmc/linux/fs/befs/ |
H A D | inode.c | 19 befs_check_inode(struct super_block *sb, befs_inode *raw_inode, in befs_check_inode() argument 22 u32 magic1 = fs32_to_cpu(sb, raw_inode->magic1); in befs_check_inode() 23 befs_inode_addr ino_num = fsrun_to_cpu(sb, raw_inode->inode_num); in befs_check_inode() 24 u32 flags = fs32_to_cpu(sb, raw_inode->flags); in befs_check_inode() 28 befs_error(sb, in befs_check_inode() 37 if (inode != iaddr2blockno(sb, &ino_num)) { in befs_check_inode() 38 befs_error(sb, "inode blocknr field disagrees with vfs " in befs_check_inode() 40 inode, (unsigned long)iaddr2blockno(sb, &ino_num)); in befs_check_inode() 49 befs_error(sb, "inode is not used - inode = %lu", in befs_check_inode()
|
/openbmc/linux/fs/ocfs2/ |
H A D | ocfs2.h | 295 struct super_block *sb; member 472 #define OCFS2_SB(sb) ((struct ocfs2_super *)(sb)->s_fs_info) argument 719 sb->s_blocksize_bits; in ocfs2_clusters_to_blocks() 728 sb->s_blocksize_bits; in ocfs2_clusters_for_blocks() 738 sb->s_blocksize_bits; in ocfs2_blocks_to_clusters() 746 int cl_bits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_clusters_for_bytes() 749 bytes += OCFS2_SB(sb)->s_clustersize - 1; in ocfs2_clusters_for_bytes() 769 bytes += sb->s_blocksize - 1; in ocfs2_blocks_for_bytes() 770 return bytes >> sb->s_blocksize_bits; in ocfs2_blocks_for_bytes() 782 int bits = OCFS2_SB(sb)->s_clustersize_bits - sb->s_blocksize_bits; in ocfs2_block_to_cluster_start() [all …]
|
H A D | ocfs2_fs.h | 1263 size = sb->s_blocksize - in ocfs2_extent_recs_per_inode() 1291 size = sb->s_blocksize - in ocfs2_extent_recs_per_dx_root() 1301 size = sb->s_blocksize - in ocfs2_chain_recs_per_inode() 1311 size = sb->s_blocksize - in ocfs2_extent_recs_per_eb() 1321 size = sb->s_blocksize - in ocfs2_extent_recs_per_gd() 1331 size = sb->s_blocksize - in ocfs2_dx_entries_per_leaf() 1341 size = sb->s_blocksize - in ocfs2_dx_entries_per_root() 1351 size = sb->s_blocksize - in ocfs2_local_alloc_size() 1381 size = sb->s_blocksize - in ocfs2_truncate_recs_per_inode() 1405 size = sb->s_blocksize - in ocfs2_xattr_recs_per_xb() [all …]
|
/openbmc/linux/fs/afs/ |
H A D | super.c | 464 ret = super_setup_bdi(sb); in afs_fill_super() 485 if (!sb->s_root) in afs_fill_super() 495 rcu_assign_pointer(as->volume->sb, sb); in afs_fill_super() 549 kill_anon_super(sb); in afs_kill_super() 561 struct super_block *sb; in afs_get_tree() local 579 sb = sget_fc(fc, in afs_get_tree() 582 if (IS_ERR(sb)) { in afs_get_tree() 583 ret = PTR_ERR(sb); in afs_get_tree() 587 if (!sb->s_root) { in afs_get_tree() 593 sb->s_flags |= SB_ACTIVE; in afs_get_tree() [all …]
|
/openbmc/linux/fs/erofs/ |
H A D | data.c | 72 if (erofs_is_fscache_mode(sb)) in erofs_init_metabuf() 75 buf->inode = sb->s_bdev->bd_inode; in erofs_init_metabuf() 81 erofs_init_metabuf(buf, sb); in erofs_read_metabuf() 91 struct super_block *sb = inode->i_sb; in erofs_map_blocks_flatmode() local 108 if (erofs_blkoff(sb, map->m_pa) + map->m_plen > sb->s_blocksize) { in erofs_map_blocks_flatmode() 159 kaddr = erofs_read_metabuf(&buf, sb, erofs_blknr(sb, pos), EROFS_KMAP); in erofs_map_blocks() 181 idx = kaddr + erofs_blkoff(sb, pos); in erofs_map_blocks() 188 EROFS_SB(sb)->device_id_mask; in erofs_map_blocks() 208 map->m_bdev = sb->s_bdev; in erofs_map_dev() 274 ret = erofs_map_dev(sb, &mdev); in erofs_iomap_begin() [all …]
|
H A D | xattr.c | 12 struct super_block *sb; member 34 struct super_block *sb = inode->i_sb; in erofs_init_inode_xattrs() local 63 erofs_err(sb, in erofs_init_inode_xattrs() 80 erofs_init_metabuf(&it.buf, sb); in erofs_init_inode_xattrs() 184 struct super_block *sb = it->sb; in erofs_xattr_copy_to_buffer() local 257 struct super_block *sb = it->sb; in erofs_getxattr_foreach() local 300 sb->s_blocksize - erofs_blkoff(sb, it->pos), in erofs_getxattr_foreach() 370 struct super_block *const sb = it->sb; in erofs_xattr_iter_shared() local 423 it.sb = inode->i_sb; in erofs_getxattr() 449 it.sb = dentry->d_sb; in erofs_listxattr() [all …]
|
/openbmc/linux/fs/hfs/ |
H A D | bitmap.c | 148 mutex_lock(&HFS_SB(sb)->bitmap_lock); in hfs_vbm_search_free() 149 bitmap = HFS_SB(sb)->bitmap; in hfs_vbm_search_free() 152 if (pos >= HFS_SB(sb)->fs_ablocks) { in hfs_vbm_search_free() 155 if (pos >= HFS_SB(sb)->fs_ablocks) { in hfs_vbm_search_free() 162 HFS_SB(sb)->free_ablocks -= *num_bits; in hfs_vbm_search_free() 163 hfs_bitmap_dirty(sb); in hfs_vbm_search_free() 165 mutex_unlock(&HFS_SB(sb)->bitmap_lock); in hfs_vbm_search_free() 208 mutex_lock(&HFS_SB(sb)->bitmap_lock); in hfs_clear_vbm_bits() 238 HFS_SB(sb)->free_ablocks += len; in hfs_clear_vbm_bits() 239 mutex_unlock(&HFS_SB(sb)->bitmap_lock); in hfs_clear_vbm_bits() [all …]
|
/openbmc/linux/fs/fuse/ |
H A D | inode.c | 181 sync_filesystem(sb); in fuse_reconfigure() 499 if (!fm_iter->sb) in fuse_ilookup() 574 retire_super(sb); in fuse_umount_begin() 696 if (!sb->s_root) in fuse_sync_fs() 862 if (sb->s_bdev && sb->s_blocksize != FUSE_DEFAULT_BLKSIZE) in fuse_show_options() 1383 if (sb->s_bdev) { in fuse_bdi_init() 1527 fm->sb = sb; in fuse_fill_super_submount() 1552 if (!sb->s_root) in fuse_fill_super_submount() 1589 if (IS_ERR(sb)) in fuse_get_tree_submount() 1663 fm->sb = sb; in fuse_fill_super_common() [all …]
|
/openbmc/linux/fs/adfs/ |
H A D | adfs.h | 82 static inline struct adfs_sb_info *ADFS_SB(struct super_block *sb) in ADFS_SB() argument 84 return sb->s_fs_info; in ADFS_SB() 91 struct super_block *sb; member 126 int (*read)(struct super_block *sb, unsigned int indaddr, 152 void adfs_map_statfs(struct super_block *sb, struct kstatfs *buf); 154 void adfs_free_map(struct super_block *sb); 158 void __adfs_error(struct super_block *sb, const char *function, 160 #define adfs_error(sb, fmt...) __adfs_error(sb, __func__, fmt) argument 181 int adfs_dir_read_buffers(struct super_block *sb, u32 indaddr, 213 block += off << ADFS_SB(sb)->s_log2sharesize; in __adfs_block_map() [all …]
|
/openbmc/linux/fs/ntfs3/ |
H A D | debug.h | 24 void ntfs_printk(const struct super_block *sb, const char *fmt, ...); 29 void ntfs_printk(const struct super_block *sb, const char *fmt, ...) in ntfs_printk() argument 43 #define ntfs_err(sb, fmt, ...) ntfs_printk(sb, KERN_ERR fmt, ##__VA_ARGS__) argument 44 #define ntfs_warn(sb, fmt, ...) ntfs_printk(sb, KERN_WARNING fmt, ##__VA_ARGS__) argument 45 #define ntfs_info(sb, fmt, ...) ntfs_printk(sb, KERN_INFO fmt, ##__VA_ARGS__) argument 46 #define ntfs_notice(sb, fmt, ...) \ argument 47 ntfs_printk(sb, KERN_NOTICE fmt, ##__VA_ARGS__)
|
/openbmc/linux/fs/hfsplus/ |
H A D | wrapper.c | 62 io_size = hfsplus_min_io_size(sb); in hfsplus_submit_bio() 67 bio = bio_alloc(sb->s_bdev, 1, opf, GFP_NOIO); in hfsplus_submit_bio() 125 static int hfsplus_get_last_session(struct super_block *sb, in hfsplus_get_last_session() argument 132 *size = bdev_nr_sectors(sb->s_bdev); in hfsplus_get_last_session() 134 if (HFSPLUS_SB(sb)->session >= 0) { in hfsplus_get_last_session() 140 te.cdte_track = HFSPLUS_SB(sb)->session; in hfsplus_get_last_session() 161 int hfsplus_read_wrapper(struct super_block *sb) in hfsplus_read_wrapper() argument 163 struct hfsplus_sb_info *sbi = HFSPLUS_SB(sb); in hfsplus_read_wrapper() 170 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper() 213 if (hfs_part_find(sb, &part_start, &part_size)) in hfsplus_read_wrapper() [all …]
|
/openbmc/linux/fs/exfat/ |
H A D | dir.c | 161 exfat_utf16_to_nls(sb, &uni_name, in exfat_readdir() 256 mutex_lock(&EXFAT_SB(sb)->s_lock); in exfat_iterate() 269 cpos &= ~(sb->s_blocksize - 1); in exfat_iterate() 280 tmp = exfat_iget(sb, i_pos); in exfat_iterate() 677 exfat_fs_error(sb, in exfat_walk_fat_chain() 740 bh = sb_find_get_block(sb, sec); in exfat_dir_readahead() 768 exfat_dir_readahead(sb, sec); in exfat_get_dentry() 770 *bh = sb_bread(sb, sec); in exfat_get_dentry() 873 es->sb = sb; in exfat_get_dentry_set() 878 bh = sb_bread(sb, sec); in exfat_get_dentry_set() [all …]
|
/openbmc/linux/fs/affs/ |
H A D | inode.c | 29 inode = iget_locked(sb, ino); in affs_iget() 38 bh = affs_bread(sb, block); in affs_iget() 44 affs_warning(sb,"read_inode", in affs_iget() 50 tail = AFFS_TAIL(sb, bh); in affs_iget() 188 tail = AFFS_TAIL(sb, bh); in affs_write_inode() 211 affs_fix_checksum(sb, bh); in affs_write_inode() 301 if (!(inode = new_inode(sb))) in affs_new_inode() 307 bh = affs_getzeroblk(sb, block); in affs_new_inode() 338 affs_free_block(sb, block); in affs_new_inode() 402 affs_fix_checksum(sb, bh); in affs_add_entry() [all …]
|
H A D | namei.c | 36 affs_get_toupper(struct super_block *sb) in affs_get_toupper() argument 172 struct super_block *sb = dir->i_sb; in affs_find_entry() local 179 bh = affs_bread(sb, dir->i_ino); in affs_find_entry() 189 bh = affs_bread(sb, key); in affs_find_entry() 201 struct super_block *sb = dir->i_sb; in affs_lookup() local 226 inode = affs_iget(sb, ino); in affs_lookup() 439 affs_fix_checksum(sb, bh); in affs_rename() 487 affs_fix_checksum(sb, bh_old); in affs_xrename() 494 affs_fix_checksum(sb, bh_new); in affs_xrename() 546 if (!affs_validblock(sb, ino)) in affs_nfs_get_inode() [all …]
|
/openbmc/linux/fs/squashfs/ |
H A D | super.c | 199 msblk = sb->s_fs_info; in squashfs_fill_super() 232 sb->s_bdev); in squashfs_fill_super() 312 sb->s_time_min = 0; in squashfs_fill_super() 313 sb->s_time_max = U32_MAX; in squashfs_fill_super() 314 sb->s_flags |= SB_RDONLY; in squashfs_fill_super() 439 root = new_inode(sb); in squashfs_fill_super() 477 kfree(sb->s_fs_info); in squashfs_fill_super() 478 sb->s_fs_info = NULL; in squashfs_fill_super() 585 if (sb->s_fs_info) { in squashfs_put_super() 598 kfree(sb->s_fs_info); in squashfs_put_super() [all …]
|
/openbmc/linux/drivers/android/ |
H A D | binderfs.c | 82 return sb->s_fs_info; in BINDERFS_SB() 150 inode = new_inode(sb); in binderfs_binder_device_create() 185 root = sb->s_root; in binderfs_binder_device_create() 417 inode = new_inode(sb); in binderfs_binder_ctl_create() 472 ret = new_inode(sb); in binderfs_make_inode() 645 info = sb->s_fs_info; in init_binder_logs() 680 sb->s_time_gran = 1; in binderfs_fill_super() 683 if (!sb->s_fs_info) in binderfs_fill_super() 685 info = sb->s_fs_info; in binderfs_fill_super() 698 inode = new_inode(sb); in binderfs_fill_super() [all …]
|