Lines Matching refs:in
74 static void default_directory_inode(struct ext2_disk_inode *in, uint32_t nblocks, in default_directory_inode() argument
77 LOG_DBG("Set directory inode: %p", in); in default_directory_inode()
78 in->i_mode = sys_cpu_to_le16(EXT2_DEF_DIR_MODE); in default_directory_inode()
79 in->i_uid = 0; in default_directory_inode()
80 in->i_size = sys_cpu_to_le32(nblocks * cfg->block_size); in default_directory_inode()
81 in->i_atime = 0; in default_directory_inode()
82 in->i_ctime = 0; in default_directory_inode()
83 in->i_mtime = 0; in default_directory_inode()
84 in->i_dtime = 0; in default_directory_inode()
85 in->i_gid = 0; in default_directory_inode()
86 in->i_blocks = sys_cpu_to_le32(nblocks * cfg->block_size / 512); in default_directory_inode()
87 in->i_flags = 0; in default_directory_inode()
88 in->i_osd1 = 0; in default_directory_inode()
89 in->i_generation = 0; in default_directory_inode()
90 in->i_file_acl = 0; in default_directory_inode()
91 in->i_dir_acl = 0; in default_directory_inode()
92 in->i_faddr = 0; in default_directory_inode()
93 memset(in->i_block, 0, EXT2_INODE_BLOCKS * sizeof(uint32_t)); in default_directory_inode()
311 struct ext2_disk_inode *in; in ext2_format() local
316 in = (struct ext2_disk_inode *)itable_block1->data; in ext2_format()
318 default_directory_inode(&in[inode_offset], 1, cfg); in ext2_format()
320 in[inode_offset].i_links_count = sys_cpu_to_le16(3); /* 2 from itself, 1 from child */ in ext2_format()
321 in[inode_offset].i_block[0] = sys_cpu_to_le32(root_dir_blk_num); in ext2_format()
337 in = (struct ext2_disk_inode *)itable_block2->data; in ext2_format()
340 default_directory_inode(&in[inode_offset], 1, cfg); in ext2_format()
341 in[inode_offset].i_links_count = sys_cpu_to_le16(2); /* 1 from itself, 1 from parent */ in ext2_format()
342 in[inode_offset].i_block[0] = sys_cpu_to_le32(lost_found_dir_blk_num); in ext2_format()