/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/ |
D | test_fat_file.c | 24 res = fs_open(&filep, TEST_FILE, FS_O_CREATE | FS_O_RDWR); in test_file_open() 47 res = fs_seek(&filep, 0, FS_SEEK_SET); in test_file_write() 50 fs_close(&filep); in test_file_write() 57 brw = fs_write(&filep, (char *)test_str, strlen(test_str)); in test_file_write() 60 fs_close(&filep); in test_file_write() 67 fs_close(&filep); in test_file_write() 83 res = fs_sync(&filep); in test_file_sync() 101 res = fs_seek(&filep, 0, FS_SEEK_SET); in test_file_read() 104 fs_close(&filep); in test_file_read() 109 brw = fs_read(&filep, read_buff, sz); in test_file_read() [all …]
|
D | test_fat_file_reentrant.c | 47 res = fs_open(&filep, TEST_FILE, FS_O_CREATE | FS_O_RDWR); in test_reentrant_access() 56 res = fs_close(&filep); in test_reentrant_access() 73 res = fs_open(&filep, TEST_FILE, FS_O_CREATE | FS_O_RDWR); in test_reentrant_parallel_file_access() 101 res = fs_close(&filep); in test_reentrant_parallel_file_access()
|
D | test_fat_dir.c | 38 res = fs_open(&filep, TEST_DIR_FILE, FS_O_CREATE | FS_O_RDWR); in test_mkdir() 49 res = fs_close(&filep); in test_mkdir()
|
D | test_fat.h | 36 extern struct fs_file_t filep;
|
D | main.c | 31 fs_file_t_init(&filep); in fat_fs_basic_setup()
|
D | common.c | 17 struct fs_file_t filep; variable
|
/Zephyr-latest/tests/subsys/fs/fat_fs_dual_drive/src/ |
D | test_fat_file.c | 29 res = fs_open(&filep, path, FS_O_CREATE | FS_O_RDWR); in test_file_open() 48 res = fs_seek(&filep, 0, FS_SEEK_SET); in test_file_write() 51 fs_close(&filep); in test_file_write() 58 brw = fs_write(&filep, (char *)test_str, strlen(test_str)); in test_file_write() 61 fs_close(&filep); in test_file_write() 68 fs_close(&filep); in test_file_write() 84 res = fs_sync(&filep); in test_file_sync() 102 res = fs_seek(&filep, 0, FS_SEEK_SET); in test_file_read() 105 fs_close(&filep); in test_file_read() 110 brw = fs_read(&filep, read_buff, sz); in test_file_read() [all …]
|
D | main.c | 18 fs_file_t_init(&filep); in fat_fs_dual_drive_setup()
|
D | common.c | 9 struct fs_file_t filep; variable
|
D | test_fat.h | 23 extern struct fs_file_t filep;
|
D | test_fat_dir.c | 43 res = fs_open(&filep, file, FS_O_CREATE | FS_O_RDWR); in test_mkdir() 54 res = fs_close(&filep); in test_mkdir()
|
/Zephyr-latest/tests/subsys/fs/multi-fs/src/ |
D | test_common_file.c | 12 int test_file_open(struct fs_file_t *filep, const char *file_path) in test_file_open() argument 25 res = fs_open(filep, file_path, FS_O_CREATE | FS_O_RDWR); in test_file_open() 36 int test_file_write(struct fs_file_t *filep, const char *test_str) in test_file_write() argument 44 res = fs_seek(filep, 0, FS_SEEK_SET); in test_file_write() 47 fs_close(filep); in test_file_write() 54 brw = fs_write(filep, (char *)test_str, strlen(test_str)); in test_file_write() 57 fs_close(filep); in test_file_write() 64 fs_close(filep); in test_file_write() 73 int test_file_read(struct fs_file_t *filep, const char *test_str) in test_file_read() argument 82 res = fs_seek(filep, 0, FS_SEEK_SET); in test_file_read() [all …]
|
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_dir.c | 23 struct fs_file_t filep; in test_mkdir() local 26 fs_file_t_init(&filep); in test_mkdir() 47 res = fs_open(&filep, file_path, FS_O_CREATE | FS_O_RDWR); in test_mkdir() 54 res = test_file_write(&filep, "NOTHING"); in test_mkdir() 56 fs_close(&filep); in test_mkdir() 60 res = fs_close(&filep); in test_mkdir()
|
/Zephyr-latest/tests/subsys/fs/fs_api/src/ |
D | test_fs_dir_file.c | 90 static struct fs_file_t filep; variable 105 zassert_equal(fst.filep, NULL, "Expected to be initialized to NULL"); in ZTEST() 496 fs_file_t_init(&filep); in test_file_open() 499 ret = fs_open(&filep, NULL, FS_O_READ); in test_file_open() 503 ret = fs_open(&filep, "/", FS_O_READ); in test_file_open() 507 ret = fs_open(&filep, "test_file.txt", FS_O_READ); in test_file_open() 511 ret = fs_open(&filep, "/test_file.txt", FS_O_READ); in test_file_open() 515 ret = fs_open(&filep, NOOP_MNTP"/test_file.txt", FS_O_READ); in test_file_open() 518 ret = fs_open(&filep, TEST_FILE, FS_O_READ); in test_file_open() 522 ret = fs_open(&filep, TEST_FILE, FS_O_READ); in test_file_open() [all …]
|
D | test_fs.c | 34 if (zfp->filep) { in temp_open() 35 if (strcmp(zfp->filep, file_name) == 0) { in temp_open() 45 zfp->filep = (char *)file_name; in temp_open() 55 if (zfp->filep) { in temp_close() 56 zfp->filep = NULL; in temp_close()
|
/Zephyr-latest/subsys/fs/ |
D | fat_fs.c | 126 zfp->filep = ptr; in fatfs_open() 133 res = f_open(zfp->filep, translate_path(file_name), fs_mode); in fatfs_open() 137 zfp->filep = NULL; in fatfs_open() 147 res = f_close(zfp->filep); in fatfs_close() 150 k_mem_slab_free(&fatfs_filep_pool, zfp->filep); in fatfs_close() 151 zfp->filep = NULL; in fatfs_close() 198 res = f_read(zfp->filep, ptr, size, &br); in fatfs_read() 212 off_t pos = f_size((FIL *)zfp->filep); in fatfs_write() 221 res = f_lseek(zfp->filep, pos); in fatfs_write() 225 res = f_write(zfp->filep, ptr, size, &bw); in fatfs_write() [all …]
|
D | littlefs_fs.c | 44 #define LFS_FILEP(fp) (&((struct lfs_file_data *)(fp->filep))->file) 264 struct lfs_file_data *fdp = fp->filep; in release_file_data() 270 k_mem_slab_free(&file_data_pool, fp->filep); in release_file_data() 271 fp->filep = NULL; in release_file_data() 295 int ret = k_mem_slab_alloc(&file_data_pool, &fp->filep, K_NO_WAIT); in littlefs_open() 301 struct lfs_file_data *fdp = fp->filep; in littlefs_open()
|
/Zephyr-latest/subsys/fs/ext2/ |
D | ext2_ops.c | 104 filp->filep = file; in ext2_open() 118 struct ext2_file *f = filp->filep; in ext2_close() 131 filp->filep = NULL; in ext2_close() 138 struct ext2_file *f = filp->filep; in ext2_read() 155 struct ext2_file *f = filp->filep; in ext2_write() 177 struct ext2_file *f = filp->filep; in ext2_lseek() 207 struct ext2_file *f = filp->filep; in ext2_tell() 214 struct ext2_file *f = filp->filep; in ext2_truncate() 230 struct ext2_file *f = filp->filep; in ext2_sync()
|
/Zephyr-latest/include/zephyr/fs/ |
D | fs_interface.h | 78 void *filep; member
|
D | fs.h | 239 zfp->filep = NULL; in fs_file_t_init()
|
/Zephyr-latest/tests/net/lib/http_server/core/src/ |
D | main.c | 2578 int test_file_write(struct fs_file_t *filep, const char *test_str) in test_file_write() argument 2586 res = fs_seek(filep, 0, FS_SEEK_SET); in test_file_write() 2589 fs_close(filep); in test_file_write() 2596 brw = fs_write(filep, (char *)test_str, strlen(test_str)); in test_file_write() 2599 fs_close(filep); in test_file_write() 2606 fs_close(filep); in test_file_write() 2618 struct fs_file_t filep; in test_mkdir() local 2621 fs_file_t_init(&filep); in test_mkdir() 2639 res = fs_open(&filep, file_path, FS_O_CREATE | FS_O_RDWR); in test_mkdir() 2646 res = test_file_write(&filep, TEST_STATIC_FS_PAYLOAD); in test_mkdir() [all …]
|