Home
last modified time | relevance | path

Searched refs:inode (Results 1 – 6 of 6) sorted by relevance

/Zephyr-Core-3.5.0/subsys/fs/ext2/
Dext2_impl.c405 static int64_t find_dir_entry(struct ext2_inode *inode, const char *name, size_t len,
430 args->inode = cur_dir; in ext2_lookup_inode()
521 args->inode = next; in ext2_lookup_inode()
562 static int64_t find_dir_entry(struct ext2_inode *inode, const char *name, size_t len, in find_dir_entry() argument
568 struct ext2_data *fs = inode->i_fs; in find_dir_entry()
571 while (offset < inode->i_size) { in find_dir_entry()
575 rc = ext2_fetch_inode_block(inode, block); in find_dir_entry()
581 EXT2_DISK_DIRENTRY_BY_OFFSET(inode_current_block_mem(inode), block_off); in find_dir_entry()
609 ssize_t ext2_inode_read(struct ext2_inode *inode, void *buf, uint32_t offset, size_t nbytes) in ext2_inode_read() argument
613 uint32_t block_size = inode->i_fs->block_size; in ext2_inode_read()
[all …]
Dext2_diskops.c106 static void fill_inode(struct ext2_inode *inode, struct ext2_disk_inode *dino) in fill_inode() argument
108 inode->i_mode = sys_le16_to_cpu(dino->i_mode); in fill_inode()
109 inode->i_size = sys_le32_to_cpu(dino->i_size); in fill_inode()
110 inode->i_links_count = sys_le16_to_cpu(dino->i_links_count); in fill_inode()
111 inode->i_blocks = sys_le32_to_cpu(dino->i_blocks); in fill_inode()
113 inode->i_block[i] = sys_le32_to_cpu(dino->i_block[i]); in fill_inode()
117 static void fill_disk_inode(struct ext2_disk_inode *dino, struct ext2_inode *inode) in fill_disk_inode() argument
119 dino->i_mode = sys_cpu_to_le16(inode->i_mode); in fill_disk_inode()
120 dino->i_size = sys_cpu_to_le32(inode->i_size); in fill_disk_inode()
121 dino->i_links_count = sys_cpu_to_le16(inode->i_links_count); in fill_disk_inode()
[all …]
Dext2_impl.h153 struct ext2_inode *inode; /* (OP, CR, ST, UN) found inode */ member
187 ssize_t ext2_inode_read(struct ext2_inode *inode, void *buf, uint32_t offset,
201 ssize_t ext2_inode_write(struct ext2_inode *inode, const void *buf,
214 int ext2_inode_trunc(struct ext2_inode *inode, off_t size);
222 int ext2_inode_sync(struct ext2_inode *inode);
268 int ext2_create_file(struct ext2_inode *parent, struct ext2_inode *inode,
283 int ext2_create_dir(struct ext2_inode *parent, struct ext2_inode *inode,
297 int ext2_inode_unlink(struct ext2_inode *parent, struct ext2_inode *inode,
355 int ext2_inode_drop(struct ext2_inode *inode);
358 void ext2_inode_drop_blocks(struct ext2_inode *inode);
[all …]
Dext2_diskops.h31 int ext2_fetch_inode(struct ext2_data *fs, uint32_t ino, struct ext2_inode *inode);
42 int ext2_fetch_inode_block(struct ext2_inode *inode, uint32_t block);
120 int ext2_commit_inode(struct ext2_inode *inode);
133 int ext2_commit_inode_block(struct ext2_inode *inode);
233 void ext2_set_disk_direntry_inode(struct ext2_disk_direntry *de, uint32_t inode);
Dext2_ops.c45 .inode = NULL, in ext2_open()
60 struct ext2_inode *found_inode = args.inode; in ext2_open()
249 .inode = NULL, in ext2_mkdir()
260 struct ext2_inode *found_inode = args.inode; in ext2_mkdir()
296 .inode = NULL, in ext2_opendir()
305 struct ext2_inode *found_inode = args.inode; in ext2_opendir()
507 .inode = NULL, in ext2_unlink()
518 ret = ext2_inode_unlink(args.parent, args.inode, args.offset); in ext2_unlink()
524 rc = ext2_inode_drop(args.inode); in ext2_unlink()
543 .inode = NULL, in ext2_rename()
[all …]
Dext2_struct.h185 static inline struct ext2_block *inode_current_block(struct ext2_inode *inode) in inode_current_block() argument
187 return inode->blocks[inode->block_lvl]; in inode_current_block()
190 static inline uint8_t *inode_current_block_mem(struct ext2_inode *inode) in inode_current_block_mem() argument
192 return (uint8_t *)inode_current_block(inode)->data; in inode_current_block_mem()