Lines Matching refs:le32_to_cpu

59 	sb->free_inodes = cpu_to_le32(le32_to_cpu(sb->free_inodes) - 1);  in ext4fs_sb_free_inodes_dec()
64 uint64_t free_blocks = le32_to_cpu(sb->free_blocks); in ext4fs_sb_free_blocks_dec()
65 free_blocks += (uint64_t)le32_to_cpu(sb->free_blocks_high) << 32; in ext4fs_sb_free_blocks_dec()
113 uint64_t free_blocks = le32_to_cpu(sb->free_blocks); in ext4fs_sb_get_free_blocks()
114 free_blocks += (uint64_t)le32_to_cpu(sb->free_blocks_high) << 32; in ext4fs_sb_get_free_blocks()
158 uint64_t block_nr = le32_to_cpu(bg->block_id); in ext4fs_bg_get_block_id()
160 block_nr += (uint64_t)le32_to_cpu(bg->block_id_high) << 32; in ext4fs_bg_get_block_id()
168 uint64_t block_nr = le32_to_cpu(bg->inode_id); in ext4fs_bg_get_inode_id()
170 block_nr += (uint64_t)le32_to_cpu(bg->inode_id_high) << 32; in ext4fs_bg_get_inode_id()
179 uint64_t block_nr = le32_to_cpu(bg->inode_table_id); in ext4fs_bg_get_inode_table_id()
182 (uint64_t)le32_to_cpu(bg->inode_table_id_high) << 32; in ext4fs_bg_get_inode_table_id()
252 if (count > le32_to_cpu(ext4fs_root->sblock.inodes_per_group)) in _get_new_inode_no()
379 inode_no -= (index * le32_to_cpu(ext4fs_root->sblock.inodes_per_group)); in ext4fs_set_inode_bmap()
404 inode_no -= (index * le32_to_cpu(ext4fs_root->sblock.inodes_per_group)); in ext4fs_reset_inode_bmap()
427 if (le32_to_cpu(fs->sb->feature_ro_compat) & EXT4_FEATURE_RO_COMPAT_GDT_CSUM) { in ext4fs_checksum_update()
510 directory_blocks = le32_to_cpu(g_parent_inode->size) >> in ext4fs_update_parent_dentry()
552 if (le32_to_cpu(g_parent_inode->flags) & in ext4fs_update_parent_dentry()
571 new_size = le32_to_cpu(g_parent_inode->size); in ext4fs_update_parent_dentry()
575 new_blockcnt = le32_to_cpu(g_parent_inode->blockcnt); in ext4fs_update_parent_dentry()
644 directory_blocks = le32_to_cpu(parent_inode->size) >> in search_dir()
679 inodeno = le32_to_cpu(dir->inode); in search_dir()
905 inodeno = le32_to_cpu(dir->inode); in unlink_filename()
945 directory_blocks = le32_to_cpu(g_parent_inode->size) >> in ext4fs_filename_unlink()
968 unsigned int blk_per_grp = le32_to_cpu(ext4fs_root->sblock.blocks_per_group); in ext4fs_get_new_blk_no()
1096 unsigned int inodes_per_grp = le32_to_cpu(ext4fs_root->sblock.inodes_per_group); in ext4fs_get_new_inode_no()
1102 int has_gdt_chksum = le32_to_cpu(fs->sb->feature_ro_compat) & in ext4fs_get_new_inode_no()
1185 le32_to_cpu(bgd->inode_id))) in ext4fs_get_new_inode_no()
1551 } while (fileblock >= le32_to_cpu(index[i].ei_block)); in ext4fs_get_extent_block()
1561 block = (block << 32) + le32_to_cpu(index[i].ei_leaf_lo); in ext4fs_get_extent_block()
1583 blkno = le32_to_cpu(data->sblock.first_data_block) + 1 + in ext4fs_blockgroup()
1612 if ( le32_to_cpu(sblock->inodes_per_group) == 0 || fs->inodesz == 0) { in ext4fs_read_inode()
1616 status = ext4fs_blockgroup(data, ino / le32_to_cpu in ext4fs_read_inode()
1629 (ino % le32_to_cpu(sblock->inodes_per_group)) / inodes_per_block; in ext4fs_read_inode()
1661 if (le32_to_cpu(inode->flags) & EXT4_EXTENTS_FL) { in read_allocated_block()
1689 startblock = le32_to_cpu(extent[i].ee_block); in read_allocated_block()
1701 le32_to_cpu(extent[i].ee_start_lo); in read_allocated_block()
1715 blknr = le32_to_cpu(inode->b.blocks.dir_blocks[fileblock]); in read_allocated_block()
1742 if ((le32_to_cpu(inode->b.blocks.indir_block) << in read_allocated_block()
1745 ext4fs_devread((lbaint_t)le32_to_cpu in read_allocated_block()
1755 le32_to_cpu(inode->b.blocks. in read_allocated_block()
1758 blknr = le32_to_cpu(ext4fs_indir1_block in read_allocated_block()
1791 if ((le32_to_cpu(inode->b.blocks.double_indir_block) << in read_allocated_block()
1794 ext4fs_devread((lbaint_t)le32_to_cpu in read_allocated_block()
1805 le32_to_cpu(inode->b.blocks.double_indir_block) << in read_allocated_block()
1832 if ((le32_to_cpu(ext4fs_indir1_block[rblock / perblock]) << in read_allocated_block()
1834 status = ext4fs_devread((lbaint_t)le32_to_cpu in read_allocated_block()
1846 le32_to_cpu(ext4fs_indir1_block[rblock in read_allocated_block()
1851 blknr = le32_to_cpu(ext4fs_indir2_block[rblock % perblock]); in read_allocated_block()
1883 if ((le32_to_cpu(inode->b.blocks.triple_indir_block) << in read_allocated_block()
1887 le32_to_cpu(inode->b.blocks.triple_indir_block) in read_allocated_block()
1896 le32_to_cpu(inode->b.blocks.triple_indir_block) << in read_allocated_block()
1923 if ((le32_to_cpu(ext4fs_indir1_block[rblock / in read_allocated_block()
1927 status = ext4fs_devread((lbaint_t)le32_to_cpu in read_allocated_block()
1939 le32_to_cpu(ext4fs_indir1_block[rblock / in read_allocated_block()
1967 if ((le32_to_cpu(ext4fs_indir2_block[rblock in read_allocated_block()
1972 ext4fs_devread((lbaint_t)le32_to_cpu in read_allocated_block()
1983 le32_to_cpu(ext4fs_indir2_block[(rblock / in read_allocated_block()
1990 blknr = le32_to_cpu(ext4fs_indir3_block in read_allocated_block()
2063 while (fpos < le32_to_cpu(diro->inode.size)) { in ext4fs_iterate_dir()
2095 fdiro->ino = le32_to_cpu(dirent.inode); in ext4fs_iterate_dir()
2110 le32_to_cpu in ext4fs_iterate_dir()
2146 le32_to_cpu( in ext4fs_iterate_dir()
2170 le32_to_cpu(fdiro->inode.size), in ext4fs_iterate_dir()
2192 symlink = zalloc(le32_to_cpu(diro->inode.size) + 1); in ext4fs_read_symlink()
2196 if (le32_to_cpu(diro->inode.size) < sizeof(diro->inode.b.symlink)) { in ext4fs_read_symlink()
2198 le32_to_cpu(diro->inode.size)); in ext4fs_read_symlink()
2201 le32_to_cpu(diro->inode.size), in ext4fs_read_symlink()
2208 symlink[le32_to_cpu(diro->inode.size)] = '\0'; in ext4fs_read_symlink()
2356 *len = le32_to_cpu(fdiro->inode.size); in ext4fs_open()
2386 if (le32_to_cpu(data->sblock.revision_level) == 0) { in ext4fs_mount()
2396 fs->gdsize = le32_to_cpu(data->sblock.feature_incompat) & in ext4fs_mount()
2402 le32_to_cpu(data->sblock.revision_level), in ext4fs_mount()