Home
last modified time | relevance | path

Searched refs:disk_de (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/subsys/fs/ext2/
Dext2_format.c350 struct ext2_disk_direntry *disk_de; in ext2_format() local
365 disk_de = EXT2_DISK_DIRENTRY_BY_OFFSET(root_dir_blk->data, de_offset); in ext2_format()
367 ext2_write_direntry(disk_de, de); in ext2_format()
372 disk_de = EXT2_DISK_DIRENTRY_BY_OFFSET(root_dir_blk->data, de_offset); in ext2_format()
374 ext2_write_direntry(disk_de, de); in ext2_format()
381 disk_de = EXT2_DISK_DIRENTRY_BY_OFFSET(root_dir_blk->data, de_offset); in ext2_format()
388 ext2_write_direntry(disk_de, de); in ext2_format()
407 disk_de = EXT2_DISK_DIRENTRY_BY_OFFSET(lost_found_dir_blk->data, de_offset); in ext2_format()
409 ext2_write_direntry(disk_de, de); in ext2_format()
414 disk_de = EXT2_DISK_DIRENTRY_BY_OFFSET(lost_found_dir_blk->data, de_offset); in ext2_format()
[all …]
Dext2_diskops.h221 struct ext2_direntry *ext2_fetch_direntry(struct ext2_disk_direntry *disk_de);
226 void ext2_write_direntry(struct ext2_disk_direntry *disk_de, struct ext2_direntry *de);
Dext2_diskops.c128 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()
[all …]
Dext2_impl.c580 struct ext2_disk_direntry *disk_de = in find_dir_entry() local
583 de = ext2_fetch_direntry(disk_de); in find_dir_entry()
824 struct ext2_disk_direntry *disk_de = in ext2_get_direntry() local
826 struct ext2_direntry *de = ext2_fetch_direntry(disk_de); in ext2_get_direntry()
1059 struct ext2_disk_direntry *disk_de; in ext2_create_dir() local
1096 disk_de = EXT2_DISK_DIRENTRY_BY_OFFSET(inode_current_block_mem(new_inode), 0); in ext2_create_dir()
1097 ext2_write_direntry(disk_de, entry); in ext2_create_dir()