• Home
  • Raw
  • Download

Lines Matching refs:cpu_to_le32

295 					cpu_to_le32(c.devices[i].total_segments);  in f2fs_prepare_super_block()
466 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CHKSUM)) in f2fs_prepare_super_block()
476 if (c.feature & cpu_to_le32(F2FS_FEATURE_QUOTA_INO)) { in f2fs_prepare_super_block()
478 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) in f2fs_prepare_super_block()
485 sb->qf_ino[qtype] = cpu_to_le32(c.next_free_nid++); in f2fs_prepare_super_block()
490 if (c.feature & cpu_to_le32(F2FS_FEATURE_LOST_FOUND)) in f2fs_prepare_super_block()
537 if (c.feature & cpu_to_le32(F2FS_FEATURE_CASEFOLD)) { in f2fs_prepare_super_block()
748 cpu_to_le32(crc); in f2fs_write_check_point_pack()
799 journal->nat_j.entries[0].ne.block_addr = cpu_to_le32( in f2fs_write_check_point_pack()
809 journal->nat_j.entries[i].ne.block_addr = cpu_to_le32( in f2fs_write_check_point_pack()
817 journal->nat_j.entries[i].nid = cpu_to_le32(c.lpf_ino); in f2fs_write_check_point_pack()
819 journal->nat_j.entries[i].ne.ino = cpu_to_le32(c.lpf_ino); in f2fs_write_check_point_pack()
820 journal->nat_j.entries[i].ne.block_addr = cpu_to_le32( in f2fs_write_check_point_pack()
889 (sum_entry + off)->nid = cpu_to_le32(c.lpf_ino); in f2fs_write_check_point_pack()
919 sum->entries[i].nid = cpu_to_le32(c.lpf_ino); in f2fs_write_check_point_pack()
994 cpu_to_le32(crc); in f2fs_write_check_point_pack()
1134 raw_node->footer.next_blkaddr = cpu_to_le32( in f2fs_write_root_inode()
1141 raw_node->i.i_links = cpu_to_le32(3); in f2fs_write_root_inode()
1143 raw_node->i.i_links = cpu_to_le32(2); in f2fs_write_root_inode()
1144 raw_node->i.i_uid = cpu_to_le32(c.root_uid); in f2fs_write_root_inode()
1145 raw_node->i.i_gid = cpu_to_le32(c.root_gid); in f2fs_write_root_inode()
1151 raw_node->i.i_atime = cpu_to_le32(mkfs_time); in f2fs_write_root_inode()
1153 raw_node->i.i_ctime = cpu_to_le32(mkfs_time); in f2fs_write_root_inode()
1155 raw_node->i.i_mtime = cpu_to_le32(mkfs_time); in f2fs_write_root_inode()
1160 raw_node->i.i_current_depth = cpu_to_le32(1); in f2fs_write_root_inode()
1163 if (c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR)) { in f2fs_write_root_inode()
1168 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) in f2fs_write_root_inode()
1169 raw_node->i.i_projid = cpu_to_le32(F2FS_DEF_PROJID); in f2fs_write_root_inode()
1171 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CRTIME)) { in f2fs_write_root_inode()
1172 raw_node->i.i_crtime = cpu_to_le32(mkfs_time); in f2fs_write_root_inode()
1176 if (c.feature & cpu_to_le32(F2FS_FEATURE_COMPRESSION)) { in f2fs_write_root_inode()
1184 raw_node->i.i_addr[get_extra_isize(raw_node)] = cpu_to_le32(data_blk_nor); in f2fs_write_root_inode()
1223 ddqheader.dqh_magic = cpu_to_le32(file_magics[qtype]); in f2fs_write_default_quota()
1225 ddqheader.dqh_version = cpu_to_le32(1); in f2fs_write_default_quota()
1230 ddqinfo.dqi_bgrace = cpu_to_le32(MAX_DQ_TIME); in f2fs_write_default_quota()
1231 ddqinfo.dqi_igrace = cpu_to_le32(MAX_IQ_TIME); in f2fs_write_default_quota()
1232 ddqinfo.dqi_flags = cpu_to_le32(0); in f2fs_write_default_quota()
1233 ddqinfo.dqi_blocks = cpu_to_le32(QT_TREEOFF + 5); in f2fs_write_default_quota()
1234 ddqinfo.dqi_free_blk = cpu_to_le32(0); in f2fs_write_default_quota()
1235 ddqinfo.dqi_free_entry = cpu_to_le32(5); in f2fs_write_default_quota()
1247 dqblk.dqb_pad = cpu_to_le32(0); in f2fs_write_default_quota()
1296 raw_node->footer.next_blkaddr = cpu_to_le32( in f2fs_write_qf_inode()
1302 raw_node->i.i_links = cpu_to_le32(1); in f2fs_write_qf_inode()
1303 raw_node->i.i_uid = cpu_to_le32(c.root_uid); in f2fs_write_qf_inode()
1304 raw_node->i.i_gid = cpu_to_le32(c.root_gid); in f2fs_write_qf_inode()
1309 raw_node->i.i_atime = cpu_to_le32(mkfs_time); in f2fs_write_qf_inode()
1311 raw_node->i.i_ctime = cpu_to_le32(mkfs_time); in f2fs_write_qf_inode()
1313 raw_node->i.i_mtime = cpu_to_le32(mkfs_time); in f2fs_write_qf_inode()
1318 raw_node->i.i_current_depth = cpu_to_le32(0); in f2fs_write_qf_inode()
1321 if (c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR)) { in f2fs_write_qf_inode()
1326 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) in f2fs_write_qf_inode()
1327 raw_node->i.i_projid = cpu_to_le32(F2FS_DEF_PROJID); in f2fs_write_qf_inode()
1352 cpu_to_le32(data_blk_nor + i); in f2fs_write_qf_inode()
1394 cpu_to_le32(get_sb(main_blkaddr) + in f2fs_update_nat_root()
1402 nat_blk->entries[get_sb(root_ino)].block_addr = cpu_to_le32( in f2fs_update_nat_root()
1408 nat_blk->entries[get_sb(node_ino)].block_addr = cpu_to_le32(1); in f2fs_update_nat_root()
1412 nat_blk->entries[get_sb(meta_ino)].block_addr = cpu_to_le32(1); in f2fs_update_nat_root()
1441 dent_blk->dentry[0].ino = cpu_to_le32(c.lpf_ino); in f2fs_add_default_dentry_lpf()
1487 raw_node->footer.nid = cpu_to_le32(c.lpf_ino); in f2fs_write_lpf_inode()
1490 raw_node->footer.next_blkaddr = cpu_to_le32( in f2fs_write_lpf_inode()
1496 raw_node->i.i_links = cpu_to_le32(2); in f2fs_write_lpf_inode()
1497 raw_node->i.i_uid = cpu_to_le32(c.root_uid); in f2fs_write_lpf_inode()
1498 raw_node->i.i_gid = cpu_to_le32(c.root_gid); in f2fs_write_lpf_inode()
1504 raw_node->i.i_atime = cpu_to_le32(mkfs_time); in f2fs_write_lpf_inode()
1506 raw_node->i.i_ctime = cpu_to_le32(mkfs_time); in f2fs_write_lpf_inode()
1508 raw_node->i.i_mtime = cpu_to_le32(mkfs_time); in f2fs_write_lpf_inode()
1516 raw_node->i.i_current_depth = cpu_to_le32(1); in f2fs_write_lpf_inode()
1519 if (c.feature & cpu_to_le32(F2FS_FEATURE_EXTRA_ATTR)) { in f2fs_write_lpf_inode()
1524 if (c.feature & cpu_to_le32(F2FS_FEATURE_PRJQUOTA)) in f2fs_write_lpf_inode()
1525 raw_node->i.i_projid = cpu_to_le32(F2FS_DEF_PROJID); in f2fs_write_lpf_inode()
1527 if (c.feature & cpu_to_le32(F2FS_FEATURE_INODE_CRTIME)) { in f2fs_write_lpf_inode()
1528 raw_node->i.i_crtime = cpu_to_le32(mkfs_time); in f2fs_write_lpf_inode()
1532 if (c.feature & cpu_to_le32(F2FS_FEATURE_COMPRESSION)) { in f2fs_write_lpf_inode()
1544 raw_node->i.i_addr[get_extra_isize(raw_node)] = cpu_to_le32(data_blk_nor); in f2fs_write_lpf_inode()
1597 dent_blk->dentry[2].hash_code = cpu_to_le32(hash); in f2fs_add_default_dentry_root()
1598 dent_blk->dentry[2].ino = cpu_to_le32(c.lpf_ino); in f2fs_add_default_dentry_root()
1647 if (c.feature & cpu_to_le32(F2FS_FEATURE_LOST_FOUND)) { in f2fs_create_root_dir()