Home
last modified time | relevance | path

Searched refs:ext2_data (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/subsys/fs/ext2/
Dext2_impl.h17 void error_behavior(struct ext2_data *fs, const char *msg);
24 int ext2_init_disk_access_backend(struct ext2_data *fs, const void *storage_dev, int flags);
29 struct ext2_block *ext2_get_block(struct ext2_data *fs, uint32_t block);
31 struct ext2_block *ext2_get_empty_block(struct ext2_data *fs);
44 int ext2_write_block(struct ext2_data *fs, struct ext2_block *b);
46 void ext2_init_blocks_slab(struct ext2_data *fs);
54 int ext2_write_block(struct ext2_data *fs, struct ext2_block *b);
56 int ext2_assign_block_num(struct ext2_data *fs, struct ext2_block *b);
72 int ext2_init_storage(struct ext2_data **fsp, const void *storage_dev, int flags);
90 int ext2_init_fs(struct ext2_data *fs);
[all …]
Dext2_diskops.h19 int ext2_fetch_superblock(struct ext2_data *fs);
31 int ext2_fetch_inode(struct ext2_data *fs, uint32_t ino, struct ext2_inode *inode);
55 int ext2_fetch_block_group(struct ext2_data *fs, uint32_t group);
107 int ext2_clear_inode(struct ext2_data *fs, uint32_t ino);
146 int ext2_commit_superblock(struct ext2_data *fs);
159 int ext2_commit_bg(struct ext2_data *fs);
177 int64_t ext2_alloc_block(struct ext2_data *fs);
190 int32_t ext2_alloc_inode(struct ext2_data *fs);
200 int ext2_free_block(struct ext2_data *fs, uint32_t block);
212 int ext2_free_inode(struct ext2_data *fs, uint32_t ino, bool directory);
Dext2_struct.h146 struct ext2_data *fs; /* pointer to file system data */
168 struct ext2_data *i_fs; /* pointer to file system data */
216 struct ext2_data;
219 int64_t (*get_device_size)(struct ext2_data *fs);
220 int64_t (*get_write_size)(struct ext2_data *fs);
221 int (*read_block)(struct ext2_data *fs, void *buf, uint32_t num);
222 int (*write_block)(struct ext2_data *fs, const void *buf, uint32_t num);
223 int (*read_superblock)(struct ext2_data *fs, struct ext2_disk_superblock *sb);
224 int (*sync)(struct ext2_data *fs);
229 struct ext2_data { struct
Dext2_disk_access.c22 static int64_t disk_access_device_size(struct ext2_data *fs) in disk_access_device_size()
29 static int64_t disk_access_write_size(struct ext2_data *fs) in disk_access_write_size()
89 static int disk_access_read_block(struct ext2_data *fs, void *buf, uint32_t block) in disk_access_read_block()
103 static int disk_access_write_block(struct ext2_data *fs, const void *buf, uint32_t block) in disk_access_write_block()
117 static int disk_access_read_superblock(struct ext2_data *fs, struct ext2_disk_superblock *sb) in disk_access_read_superblock()
131 static int disk_access_sync(struct ext2_data *fs) in disk_access_sync()
148 int ext2_init_disk_access_backend(struct ext2_data *fs, const void *storage_dev, int flags) in ext2_init_disk_access_backend()
Dext2_diskops.c25 static int get_level_offsets(struct ext2_data *fs, uint32_t block, uint32_t offsets[4]);
26 static inline uint32_t get_ngroups(struct ext2_data *fs);
201 int ext2_fetch_superblock(struct ext2_data *fs) in ext2_fetch_superblock()
226 static inline uint32_t get_ngroups(struct ext2_data *fs) in get_ngroups()
238 int ext2_fetch_block_group(struct ext2_data *fs, uint32_t group) in ext2_fetch_block_group()
299 struct ext2_data *fs = bg->fs; in ext2_fetch_bg_itable()
318 struct ext2_data *fs = bg->fs; in ext2_fetch_bg_ibitmap()
334 struct ext2_data *fs = bg->fs; in ext2_fetch_bg_bbitmap()
349 static int32_t get_itable_entry(struct ext2_data *fs, uint32_t ino) in get_itable_entry()
377 int ext2_fetch_inode(struct ext2_data *fs, uint32_t ino, struct ext2_inode *inode) in ext2_fetch_inode()
[all …]
Dext2_impl.c22 static struct ext2_data __fs;
39 void error_behavior(struct ext2_data *fs, const char *msg) in error_behavior()
89 struct ext2_block *ext2_get_block(struct ext2_data *fs, uint32_t block) in ext2_get_block()
108 struct ext2_block *ext2_get_empty_block(struct ext2_data *fs) in ext2_get_empty_block()
121 int ext2_write_block(struct ext2_data *fs, struct ext2_block *b) in ext2_write_block()
148 void ext2_init_blocks_slab(struct ext2_data *fs) in ext2_init_blocks_slab()
162 int ext2_assign_block_num(struct ext2_data *fs, struct ext2_block *b) in ext2_assign_block_num()
184 int ext2_init_storage(struct ext2_data **fsp, const void *storage_dev, int flags) in ext2_init_storage()
191 struct ext2_data *fs = &__fs; in ext2_init_storage()
308 int ext2_init_fs(struct ext2_data *fs) in ext2_init_fs()
[all …]
Dext2_ops.c29 struct ext2_data *fs = filp->mp->fs_data; in ext2_open()
244 struct ext2_data *fs = mountp->fs_data; in ext2_mkdir()
293 struct ext2_data *fs = dirp->mp->fs_data; in ext2_opendir()
371 struct ext2_data *fs = NULL; in ext2_mount()
452 struct ext2_data *fs; in ext2_mkfs()
485 struct ext2_data *fs = mountp->fs_data; in ext2_unmount()
503 struct ext2_data *fs = mountp->fs_data; in ext2_unlink()
535 struct ext2_data *fs = mountp->fs_data; in ext2_rename()
584 struct ext2_data *fs = mountp->fs_data; in ext2_stat()
613 struct ext2_data *fs = mountp->fs_data; in ext2_statvfs()
Dext2_format.c96 int ext2_format(struct ext2_data *fs, struct ext2_cfg *cfg) in ext2_format()