/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 18 if (check_file_dir_exists(file_path)) { in test_file_open() 19 TC_PRINT("Opening existing file %s\n", file_path); in test_file_open() 21 TC_PRINT("Creating new file %s\n", file_path); in test_file_open() 25 res = fs_open(filep, file_path, FS_O_CREATE | FS_O_RDWR); in test_file_open() 31 TC_PRINT("Opened file %s\n", file_path); in test_file_open() 128 int test_file_delete(const char *file_path) in test_file_delete() argument 136 res = fs_unlink(file_path); in test_file_delete() 143 if (check_file_dir_exists(file_path)) { in test_file_delete() 144 TC_PRINT("Failed deleting %s\n", file_path); in test_file_delete() [all …]
|
D | test_common_dir.c | 24 char file_path[PATH_MAX] = { 0 }; in test_mkdir() local 27 res = sprintf(file_path, "%s/%s", dir_path, file); in test_mkdir() 28 __ASSERT_NO_MSG(res < sizeof(file_path)); in test_mkdir() 47 res = fs_open(&filep, file_path, FS_O_CREATE | FS_O_RDWR); in test_mkdir() 53 TC_PRINT("Testing write to file %s\n", file_path); in test_mkdir() 133 char file_path[PATH_MAX] = { 0 }; in test_rmdir() local 143 sprintf(file_path, "%s/%s", dir_path, entry.name); in test_rmdir() 144 __ASSERT_NO_MSG(res < sizeof(file_path)); in test_rmdir() 145 TC_PRINT("Removing %s\n", file_path); in test_rmdir() 147 res = fs_unlink(file_path); in test_rmdir()
|
/Zephyr-latest/tests/subsys/fs/ext2/src/ |
D | testfs_ext_specific.c | 42 static void write_to_file(const char *file_path, uint32_t bytes_to_write) in write_to_file() argument 49 ret = fs_open(&file, file_path, FS_O_RDWR | FS_O_CREATE); in write_to_file() 61 ret = fs_stat(file_path, &entry); in write_to_file() 68 ret = fs_open(&file, file_path, FS_O_READ); in write_to_file() 80 static void truncate_file(const char *file_path, uint32_t new_size) in truncate_file() argument 90 ret = fs_open(&file, file_path, FS_O_RDWR); in truncate_file() 96 ret = fs_stat(file_path, &entry); in truncate_file() 117 static const char *file_path = "/sml/file"; in writing_test() local 139 write_to_file(file_path, bytes_to_write); in writing_test() 145 truncate_file(file_path, new_size); in writing_test() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | loopback_disk.h | 18 const char *file_path; member 41 int loopback_disk_access_register(struct loopback_disk_access *ctx, const char *file_path,
|
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/ |
D | test_fat_dir.c | 106 char file_path[80 + MAX_FILE_NAME]; in test_rmdir() local 133 sprintf(file_path, "%s/%s", TEST_DIR, entry.name); in test_rmdir() 134 TC_PRINT("Removing %s\n", file_path); in test_rmdir() 136 res = fs_unlink(file_path); in test_rmdir()
|
/Zephyr-latest/drivers/disk/ |
D | loopback_disk.c | 132 int loopback_disk_access_register(struct loopback_disk_access *ctx, const char *file_path, in loopback_disk_access_register() argument 135 ctx->file_path = file_path; in loopback_disk_access_register() 141 int ret = fs_stat(ctx->file_path, &entry); in loopback_disk_access_register() 155 ret = fs_open(&ctx->file, ctx->file_path, FS_O_READ | FS_O_WRITE); in loopback_disk_access_register()
|
/Zephyr-latest/tests/subsys/fs/fat_fs_dual_drive/src/ |
D | test_fat_dir.c | 111 char file_path[80]; in test_rmdir() local 138 sprintf(file_path, "%s/%s", dir, entry.name); in test_rmdir() 139 TC_PRINT("Removing %s\n", file_path); in test_rmdir() 141 res = fs_unlink(file_path); in test_rmdir()
|
/Zephyr-latest/tests/subsys/fs/common/ |
D | test_fs_open_flags.c | 29 char *file_path; member 57 TC_PRINT("# %d: OPEN %s with flags %x\n", line, ts->file_path, flags); in ZOPEN() 58 ZEQ(fs_open(&ts->file, ts->file_path, flags), expected); in ZOPEN() 64 TC_PRINT("# %d: CLOSE %s\n", line, ts->file_path); in ZCLOSE() 71 TC_PRINT("# %d: WRITE %s\n", line, ts->file_path); in ZWRITE() 78 TC_PRINT("# %d: READ %s\n", line, ts->file_path); in ZREAD() 87 TC_PRINT("# %d: UNLINK %s\n", line, ts->file_path); in ZUNLINK() 88 ret = fs_unlink(ts->file_path); in ZUNLINK()
|
/Zephyr-latest/scripts/build/ |
D | check_init_priorities.py | 101 def __init__(self, file_path): argument 102 self.file_path = file_path 103 self._elf = ELFFile(open(file_path, "rb"))
|
/Zephyr-latest/subsys/settings/src/ |
D | settings_file.c | 533 static int mkdir_for_file(const char *file_path) in mkdir_for_file() argument 538 for (size_t i = 0; file_path[i] != '\0'; i++) { in mkdir_for_file() 539 if (i > 0 && file_path[i] == '/') { in mkdir_for_file() 548 dir_path[i] = file_path[i]; in mkdir_for_file()
|
/Zephyr-latest/scripts/tests/twister_blackbox/ |
D | test_report.py | 331 file_path = os.path.join(ZEPHYR_BASE, file_name) 332 if os.path.exists(file_path): 333 os.remove(file_path) 343 assert os.path.exists(file_path), 'file not found {f_name}'
|
/Zephyr-latest/include/zephyr/drivers/modem/ |
D | hl7800.h | 397 int32_t mdm_hl7800_update_fw(char *file_path);
|
/Zephyr-latest/scripts/ci/coverage/ |
D | coverage_analysis.py | 254 file_path = i_covered_file['file'] 258 "Path":file_path,
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | runner.py | 1431 for file_path in files_to_sanitize: 1432 file_path = os.path.join(self.instance.build_dir, file_path) 1433 if not os.path.exists(file_path): 1436 with open(file_path) as file: 1443 with open(file_path, 'w') as file:
|
/Zephyr-latest/drivers/modem/ |
D | hl7800.c | 6260 int32_t mdm_hl7800_update_fw(char *file_path) in mdm_hl7800_update_fw() argument 6267 ret = fs_stat(file_path, &file_info); in mdm_hl7800_update_fw() 6271 LOG_ERR("Failed to get file [%s] info: %d", file_path, ret); in mdm_hl7800_update_fw() 6275 ret = fs_open(&iface_ctx.fw_update_file, file_path, FS_O_READ); in mdm_hl7800_update_fw() 6277 LOG_ERR("%s open err: %d", file_path, ret); in mdm_hl7800_update_fw()
|
/Zephyr-latest/subsys/bluetooth/controller/hci/ |
D | hci.c | 5250 const char *file_path, argument 5256 if (file_path) { 5258 while (file_path[file_name_len] != '\0') { 5259 if (file_path[file_name_len] == '/') { 5264 file_path += pos; 5301 net_buf_add_mem(buf, file_path, file_name_len);
|