Home
last modified time | relevance | path

Searched refs:fs_file_t (Results 1 – 25 of 58) sorted by relevance

123

/Zephyr-latest/include/zephyr/fs/
Dfs_sys.h35 int (*open)(struct fs_file_t *filp, const char *fs_path,
45 ssize_t (*read)(struct fs_file_t *filp, void *dest, size_t nbytes);
54 ssize_t (*write)(struct fs_file_t *filp,
64 int (*lseek)(struct fs_file_t *filp, off_t off, int whence);
71 off_t (*tell)(struct fs_file_t *filp);
79 int (*truncate)(struct fs_file_t *filp, off_t length);
86 int (*sync)(struct fs_file_t *filp);
93 int (*close)(struct fs_file_t *filp);
Dfs.h237 static inline void fs_file_t_init(struct fs_file_t *zfp) in fs_file_t_init()
294 int fs_open(struct fs_file_t *zfp, const char *file_name, fs_mode_t flags);
307 int fs_close(struct fs_file_t *zfp);
368 ssize_t fs_read(struct fs_file_t *zfp, void *ptr, size_t size);
389 ssize_t fs_write(struct fs_file_t *zfp, const void *ptr, size_t size);
409 int fs_seek(struct fs_file_t *zfp, off_t offset, int whence);
425 off_t fs_tell(struct fs_file_t *zfp);
447 int fs_truncate(struct fs_file_t *zfp, off_t length);
465 int fs_sync(struct fs_file_t *zfp);
Dfs_interface.h76 struct fs_file_t { struct
/Zephyr-latest/tests/subsys/fs/multi-fs/src/
Dtest_common.h14 int test_file_open(struct fs_file_t *filep, const char *fpath);
15 int test_file_write(struct fs_file_t *filep, const char *str);
16 int test_file_read(struct fs_file_t *filep, const char *test_str);
17 int test_file_close(struct fs_file_t *filep);
Dtest_common_file.c12 int test_file_open(struct fs_file_t *filep, const char *file_path) in test_file_open()
36 int test_file_write(struct fs_file_t *filep, const char *test_str) in test_file_write()
73 int test_file_read(struct fs_file_t *filep, const char *test_str) in test_file_read()
112 int test_file_close(struct fs_file_t *filep) in test_file_close()
Dtest_fat_file.c12 static struct fs_file_t test_file;
Dtest_littlefs_file.c12 static struct fs_file_t test_file;
/Zephyr-latest/modules/lvgl/
Dlvgl_fs.c70 file = lv_malloc(sizeof(struct fs_file_t)); in lvgl_fs_open()
75 fs_file_t_init((struct fs_file_t *)file); in lvgl_fs_open()
77 err = fs_open((struct fs_file_t *)file, path, zmode); in lvgl_fs_open()
90 err = fs_close((struct fs_file_t *)file); in lvgl_fs_close()
99 err = fs_read((struct fs_file_t *)file, buf, btr); in lvgl_fs_read()
116 err = fs_write((struct fs_file_t *)file, buf, btw); in lvgl_fs_write()
152 err = fs_seek((struct fs_file_t *)file, pos, fs_whence); in lvgl_fs_seek()
160 pos = fs_tell((struct fs_file_t *)file); in lvgl_fs_tell()
/Zephyr-latest/tests/subsys/fs/fs_api/src/
Dtest_fs.c28 int temp_open(struct fs_file_t *zfp, const char *file_name, fs_mode_t flags) in temp_open()
49 static int temp_close(struct fs_file_t *zfp) in temp_close()
89 static ssize_t temp_read(struct fs_file_t *zfp, void *ptr, size_t size) in temp_read()
108 static ssize_t temp_write(struct fs_file_t *zfp, const void *ptr, size_t size) in temp_write()
133 static int temp_seek(struct fs_file_t *zfp, off_t offset, int whence) in temp_seek()
161 static off_t temp_tell(struct fs_file_t *zfp) in temp_tell()
174 static int temp_truncate(struct fs_file_t *zfp, off_t length) in temp_truncate()
187 static int temp_sync(struct fs_file_t *zfp) in temp_sync()
/Zephyr-latest/tests/subsys/fs/common/
Dtest_fs_util.h112 int testfs_write_constant(struct fs_file_t *fp,
130 int testfs_verify_constant(struct fs_file_t *fp,
146 int testfs_write_incrementing(struct fs_file_t *fp,
164 int testfs_verify_incrementing(struct fs_file_t *fp,
Dtest_fs_basic.c25 struct fs_file_t file; in create_write_hello()
90 struct fs_file_t file; in verify_hello()
122 struct fs_file_t file; in seek_within_hello()
190 struct fs_file_t file; in truncate_hello()
281 struct fs_file_t file; in sync_goodbye()
345 struct fs_file_t file; in verify_goodbye()
Dtest_fs_util.c87 int testfs_write_constant(struct fs_file_t *fp, in testfs_write_constant()
115 int testfs_verify_constant(struct fs_file_t *fp, in testfs_verify_constant()
155 int testfs_write_incrementing(struct fs_file_t *fp, in testfs_write_incrementing()
185 int testfs_verify_incrementing(struct fs_file_t *fp, in testfs_verify_incrementing()
233 struct fs_file_t file; in testfs_build()
298 struct fs_file_t file; in check_layout_entry()
/Zephyr-latest/lib/posix/options/
Dfs_priv.h16 struct fs_file_t file;
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dtest_fat_rd_only_mount.c19 struct fs_file_t fs; in test_prepare()
36 struct fs_file_t fs; in test_ops_on_rd()
Dtest_fat.h36 extern struct fs_file_t filep;
/Zephyr-latest/tests/subsys/fs/fat_fs_dual_drive/src/
Dcommon.c9 struct fs_file_t filep;
Dtest_fat.h23 extern struct fs_file_t filep;
/Zephyr-latest/subsys/fs/
Dfat_fs.c117 static int fatfs_open(struct fs_file_t *zfp, const char *file_name, in fatfs_open()
143 static int fatfs_close(struct fs_file_t *zfp) in fatfs_close()
193 static ssize_t fatfs_read(struct fs_file_t *zfp, void *ptr, size_t size) in fatfs_read()
206 static ssize_t fatfs_write(struct fs_file_t *zfp, const void *ptr, size_t size) in fatfs_write()
238 static int fatfs_seek(struct fs_file_t *zfp, off_t offset, int whence) in fatfs_seek()
266 static off_t fatfs_tell(struct fs_file_t *zfp) in fatfs_tell()
271 static int fatfs_truncate(struct fs_file_t *zfp, off_t length) in fatfs_truncate()
322 static int fatfs_sync(struct fs_file_t *zfp) in fatfs_sync()
Dfs.c133 int fs_open(struct fs_file_t *zfp, const char *file_name, fs_mode_t flags) in fs_open()
201 int fs_close(struct fs_file_t *zfp) in fs_close()
224 ssize_t fs_read(struct fs_file_t *zfp, void *ptr, size_t size) in fs_read()
244 ssize_t fs_write(struct fs_file_t *zfp, const void *ptr, size_t size) in fs_write()
264 int fs_seek(struct fs_file_t *zfp, off_t offset, int whence) in fs_seek()
284 off_t fs_tell(struct fs_file_t *zfp) in fs_tell()
304 int fs_truncate(struct fs_file_t *zfp, off_t length) in fs_truncate()
324 int fs_sync(struct fs_file_t *zfp) in fs_sync()
/Zephyr-latest/include/zephyr/drivers/
Dloopback_disk.h19 struct fs_file_t file;
/Zephyr-latest/subsys/settings/src/
Dsettings_file.c118 struct fs_file_t file; in settings_file_load_priv()
205 static int settings_file_create_or_replace(struct fs_file_t *zfp, in settings_file_create_or_replace()
231 struct fs_file_t rf; in settings_file_save_and_compress()
232 struct fs_file_t wf; in settings_file_save_and_compress()
376 struct fs_file_t file; in settings_file_save_priv()
449 struct fs_file_t *file = entry_ctx->stor_ctx; in read_handler()
492 struct fs_file_t *file = entry_ctx->stor_ctx; in write_handler()
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/fs_mgmt/
Dfs_mgmt_hash_checksum.h29 typedef int (*fs_mgmt_hash_checksum_handler_fn)(struct fs_file_t *file, uint8_t *output,
/Zephyr-latest/subsys/fs/ext2/
Dext2_ops.c25 static int ext2_open(struct fs_file_t *filp, const char *fs_path, fs_mode_t flags) in ext2_open()
114 static int ext2_close(struct fs_file_t *filp) in ext2_close()
135 static ssize_t ext2_read(struct fs_file_t *filp, void *dest, size_t nbytes) in ext2_read()
152 static ssize_t ext2_write(struct fs_file_t *filp, const void *src, size_t nbytes) in ext2_write()
174 static int ext2_lseek(struct fs_file_t *filp, off_t off, int whence) in ext2_lseek()
204 static off_t ext2_tell(struct fs_file_t *filp) in ext2_tell()
211 static int ext2_truncate(struct fs_file_t *filp, off_t length) in ext2_truncate()
227 static int ext2_sync(struct fs_file_t *filp) in ext2_sync()
/Zephyr-latest/include/zephyr/llext/
Dfs_loader.h35 struct fs_file_t file;
/Zephyr-latest/tests/lib/c_lib/stdio/src/
Dmain.c36 struct fs_file_t file; in ZTEST()

123