/Zephyr-Core-3.6.0/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-Core-3.6.0/tests/subsys/fs/ext2/src/ |
D | testfs_ext_specific.c | 49 static const char *file_path = "/sml/file"; in writing_test() local 59 ret = fs_open(&file, file_path, FS_O_RDWR | FS_O_CREATE); in writing_test() 85 ret = fs_stat(file_path, &entry); in writing_test() 92 ret = fs_open(&file, file_path, FS_O_READ); in writing_test() 110 ret = fs_open(&file, file_path, FS_O_RDWR); in writing_test() 116 ret = fs_stat(file_path, &entry); in writing_test()
|
/Zephyr-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/scripts/build/ |
D | check_init_priorities.py | 105 def __init__(self, file_path): argument 106 self.file_path = file_path 107 self._elf = ELFFile(open(file_path, "rb"))
|
/Zephyr-Core-3.6.0/subsys/settings/src/ |
D | settings_file.c | 538 static int mkdir_for_file(const char *file_path) in mkdir_for_file() argument 543 for (size_t i = 0; file_path[i] != '\0'; i++) { in mkdir_for_file() 544 if (i > 0 && file_path[i] == '/') { in mkdir_for_file() 553 dir_path[i] = file_path[i]; in mkdir_for_file()
|
/Zephyr-Core-3.6.0/scripts/tests/twister_blackbox/ |
D | test_report.py | 339 file_path = os.path.join(ZEPHYR_BASE, file_name) 340 if os.path.exists(file_path): 341 os.remove(file_path) 351 assert os.path.exists(file_path), 'file not found {f_name}'
|
/Zephyr-Core-3.6.0/include/zephyr/drivers/modem/ |
D | hl7800.h | 397 int32_t mdm_hl7800_update_fw(char *file_path);
|
/Zephyr-Core-3.6.0/scripts/pylib/twister/twisterlib/ |
D | runner.py | 923 for file_path in files_to_sanitize: 924 file_path = os.path.join(self.instance.build_dir, file_path) 925 if not os.path.exists(file_path): 928 with open(file_path, "rt") as file: 935 with open(file_path, "wt") as file:
|
/Zephyr-Core-3.6.0/drivers/modem/ |
D | hl7800.c | 6254 int32_t mdm_hl7800_update_fw(char *file_path) in mdm_hl7800_update_fw() argument 6261 ret = fs_stat(file_path, &file_info); in mdm_hl7800_update_fw() 6265 LOG_ERR("Failed to get file [%s] info: %d", file_path, ret); in mdm_hl7800_update_fw() 6269 ret = fs_open(&iface_ctx.fw_update_file, file_path, FS_O_READ); in mdm_hl7800_update_fw() 6271 LOG_ERR("%s open err: %d", file_path, ret); in mdm_hl7800_update_fw()
|
/Zephyr-Core-3.6.0/subsys/bluetooth/controller/hci/ |
D | hci.c | 5028 const char *file_path, argument 5034 if (file_path) { 5036 while (file_path[file_name_len] != '\0') { 5037 if (file_path[file_name_len] == '/') { 5042 file_path += pos; 5079 net_buf_add_mem(buf, file_path, file_name_len);
|