/Zephyr-latest/include/zephyr/fs/ |
D | fs_sys.h | 35 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);
|
D | fs.h | 237 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);
|
D | fs_interface.h | 76 struct fs_file_t { struct
|
/Zephyr-latest/tests/subsys/fs/multi-fs/src/ |
D | test_common.h | 14 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);
|
D | test_common_file.c | 12 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()
|
D | test_fat_file.c | 12 static struct fs_file_t test_file;
|
D | test_littlefs_file.c | 12 static struct fs_file_t test_file;
|
/Zephyr-latest/modules/lvgl/ |
D | lvgl_fs.c | 70 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/ |
D | test_fs.c | 28 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/ |
D | test_fs_util.h | 112 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,
|
D | test_fs_basic.c | 25 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()
|
D | test_fs_util.c | 87 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/ |
D | fs_priv.h | 16 struct fs_file_t file;
|
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/ |
D | test_fat_rd_only_mount.c | 19 struct fs_file_t fs; in test_prepare() 36 struct fs_file_t fs; in test_ops_on_rd()
|
D | test_fat.h | 36 extern struct fs_file_t filep;
|
/Zephyr-latest/tests/subsys/fs/fat_fs_dual_drive/src/ |
D | common.c | 9 struct fs_file_t filep;
|
D | test_fat.h | 23 extern struct fs_file_t filep;
|
/Zephyr-latest/subsys/fs/ |
D | fat_fs.c | 117 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()
|
D | fs.c | 133 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/ |
D | loopback_disk.h | 19 struct fs_file_t file;
|
/Zephyr-latest/subsys/settings/src/ |
D | settings_file.c | 118 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/ |
D | fs_mgmt_hash_checksum.h | 29 typedef int (*fs_mgmt_hash_checksum_handler_fn)(struct fs_file_t *file, uint8_t *output,
|
/Zephyr-latest/subsys/fs/ext2/ |
D | ext2_ops.c | 25 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/ |
D | fs_loader.h | 35 struct fs_file_t file;
|
/Zephyr-latest/tests/lib/c_lib/stdio/src/ |
D | main.c | 36 struct fs_file_t file; in ZTEST()
|