Lines Matching refs:sb
41 block_ptr_per_block = EXT2_ADDR_PER_BLOCK(ext2->sb); in ext2_calculate_block_pointer_pos()
182 uint file_block = offset / EXT2_BLOCK_SIZE(ext2->sb); in ext2_read_inode()
185 if ((offset % EXT2_BLOCK_SIZE(ext2->sb)) != 0) { in ext2_read_inode()
186 uint8_t temp[EXT2_BLOCK_SIZE(ext2->sb)]; in ext2_read_inode()
191 memset(temp, 0, EXT2_BLOCK_SIZE(ext2->sb)); in ext2_read_inode()
197 size_t block_offset = offset % EXT2_BLOCK_SIZE(ext2->sb); in ext2_read_inode()
198 size_t tocopy = MIN(len, EXT2_BLOCK_SIZE(ext2->sb) - block_offset); in ext2_read_inode()
209 while (len >= EXT2_BLOCK_SIZE(ext2->sb)) { in ext2_read_inode()
213 memset(buf, 0, EXT2_BLOCK_SIZE(ext2->sb)); in ext2_read_inode()
220 len -= EXT2_BLOCK_SIZE(ext2->sb); in ext2_read_inode()
221 bytes_read += EXT2_BLOCK_SIZE(ext2->sb); in ext2_read_inode()
222 buf += EXT2_BLOCK_SIZE(ext2->sb); in ext2_read_inode()
227 uint8_t temp[EXT2_BLOCK_SIZE(ext2->sb)]; in ext2_read_inode()
232 memset(temp, 0, EXT2_BLOCK_SIZE(ext2->sb)); in ext2_read_inode()