Lines Matching refs:disk_de
128 struct ext2_direntry *ext2_fetch_direntry(struct ext2_disk_direntry *disk_de) in ext2_fetch_direntry() argument
131 if (disk_de->de_name_len > EXT2_MAX_FILE_NAME) { in ext2_fetch_direntry()
134 uint32_t prog_rec_len = sizeof(struct ext2_direntry) + disk_de->de_name_len; in ext2_fetch_direntry()
139 de->de_inode = sys_le32_to_cpu(disk_de->de_inode); in ext2_fetch_direntry()
140 de->de_rec_len = sys_le16_to_cpu(disk_de->de_rec_len); in ext2_fetch_direntry()
141 de->de_name_len = disk_de->de_name_len; in ext2_fetch_direntry()
142 de->de_file_type = disk_de->de_file_type; in ext2_fetch_direntry()
143 memcpy(de->de_name, disk_de->de_name, de->de_name_len); in ext2_fetch_direntry()
147 void ext2_write_direntry(struct ext2_disk_direntry *disk_de, struct ext2_direntry *de) in ext2_write_direntry() argument
149 disk_de->de_inode = sys_le32_to_cpu(de->de_inode); in ext2_write_direntry()
150 disk_de->de_rec_len = sys_le16_to_cpu(de->de_rec_len); in ext2_write_direntry()
151 disk_de->de_name_len = de->de_name_len; in ext2_write_direntry()
152 disk_de->de_file_type = de->de_file_type; in ext2_write_direntry()
153 memcpy(disk_de->de_name, de->de_name, de->de_name_len); in ext2_write_direntry()