Lines Matching refs:bg

70 	(struct ext2_block_group *bg, const struct ext_filesystem *fs)  in ext4fs_bg_free_inodes_dec()  argument
72 uint32_t free_inodes = le16_to_cpu(bg->free_inodes); in ext4fs_bg_free_inodes_dec()
74 free_inodes += le16_to_cpu(bg->free_inodes_high) << 16; in ext4fs_bg_free_inodes_dec()
77 bg->free_inodes = cpu_to_le16(free_inodes & 0xffff); in ext4fs_bg_free_inodes_dec()
79 bg->free_inodes_high = cpu_to_le16(free_inodes >> 16); in ext4fs_bg_free_inodes_dec()
83 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_free_blocks_dec() argument
85 uint32_t free_blocks = le16_to_cpu(bg->free_blocks); in ext4fs_bg_free_blocks_dec()
87 free_blocks += le16_to_cpu(bg->free_blocks_high) << 16; in ext4fs_bg_free_blocks_dec()
90 bg->free_blocks = cpu_to_le16(free_blocks & 0xffff); in ext4fs_bg_free_blocks_dec()
92 bg->free_blocks_high = cpu_to_le16(free_blocks >> 16); in ext4fs_bg_free_blocks_dec()
96 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_itable_unused_dec() argument
98 uint32_t free_inodes = le16_to_cpu(bg->bg_itable_unused); in ext4fs_bg_itable_unused_dec()
100 free_inodes += le16_to_cpu(bg->bg_itable_unused_high) << 16; in ext4fs_bg_itable_unused_dec()
103 bg->bg_itable_unused = cpu_to_le16(free_inodes & 0xffff); in ext4fs_bg_itable_unused_dec()
105 bg->bg_itable_unused_high = cpu_to_le16(free_inodes >> 16); in ext4fs_bg_itable_unused_dec()
121 uint32_t ext4fs_bg_get_free_blocks(const struct ext2_block_group *bg, in ext4fs_bg_get_free_blocks() argument
124 uint32_t free_blocks = le16_to_cpu(bg->free_blocks); in ext4fs_bg_get_free_blocks()
126 free_blocks += le16_to_cpu(bg->free_blocks_high) << 16; in ext4fs_bg_get_free_blocks()
131 uint32_t ext4fs_bg_get_free_inodes(const struct ext2_block_group *bg, in ext4fs_bg_get_free_inodes() argument
134 uint32_t free_inodes = le16_to_cpu(bg->free_inodes); in ext4fs_bg_get_free_inodes()
136 free_inodes += le16_to_cpu(bg->free_inodes_high) << 16; in ext4fs_bg_get_free_inodes()
140 static inline uint16_t ext4fs_bg_get_flags(const struct ext2_block_group *bg) in ext4fs_bg_get_flags() argument
142 return le16_to_cpu(bg->bg_flags); in ext4fs_bg_get_flags()
145 static inline void ext4fs_bg_set_flags(struct ext2_block_group *bg, in ext4fs_bg_set_flags() argument
148 bg->bg_flags = cpu_to_le16(flags); in ext4fs_bg_set_flags()
152 uint64_t ext4fs_bg_get_block_id(const struct ext2_block_group *bg, in ext4fs_bg_get_block_id() argument
155 uint64_t block_nr = le32_to_cpu(bg->block_id); in ext4fs_bg_get_block_id()
157 block_nr += (uint64_t)le32_to_cpu(bg->block_id_high) << 32; in ext4fs_bg_get_block_id()
162 uint64_t ext4fs_bg_get_inode_id(const struct ext2_block_group *bg, in ext4fs_bg_get_inode_id() argument
165 uint64_t block_nr = le32_to_cpu(bg->inode_id); in ext4fs_bg_get_inode_id()
167 block_nr += (uint64_t)le32_to_cpu(bg->inode_id_high) << 32; in ext4fs_bg_get_inode_id()
173 uint64_t ext4fs_bg_get_inode_table_id(const struct ext2_block_group *bg, in ext4fs_bg_get_inode_table_id() argument
176 uint64_t block_nr = le32_to_cpu(bg->inode_table_id); in ext4fs_bg_get_inode_table_id()
179 (uint64_t)le32_to_cpu(bg->inode_table_id_high) << 32; in ext4fs_bg_get_inode_table_id()