Home
last modified time | relevance | path

Searched refs:fname (Results 1 – 18 of 18) sorted by relevance

/Zephyr-Core-3.5.0/tests/subsys/logging/log_backend_fs/src/
Dlog_fs_test.c56 char fname[MAX_PATH_LEN]; in ZTEST() local
78 sprintf(fname, "%s/%s", CONFIG_LOG_BACKEND_FS_DIR, in ZTEST()
80 rc = fs_unlink(fname); in ZTEST()
81 zassert_equal(rc, 0, "Can not remove file %s.", fname); in ZTEST()
82 TC_PRINT("removed: %s\n", fname); in ZTEST()
95 static char fname[MAX_PATH_LEN]; in ZTEST() local
101 sprintf(fname, "%s/%s0000", CONFIG_LOG_BACKEND_FS_DIR, log_prefix); in ZTEST()
103 zassert_equal(fs_open(&file, fname, FS_O_READ), 0, in ZTEST()
117 zassert_equal(fs_open(&file, fname, FS_O_READ), 0, in ZTEST()
138 static char fname[MAX_PATH_LEN]; in ZTEST() local
[all …]
/Zephyr-Core-3.5.0/samples/subsys/fs/littlefs/src/
Dmain.c68 static int littlefs_increase_infile_value(char *fname) in littlefs_increase_infile_value() argument
75 rc = fs_open(&file, fname, FS_O_CREATE | FS_O_RDWR); in littlefs_increase_infile_value()
77 LOG_ERR("FAIL: open %s: %d", fname, rc); in littlefs_increase_infile_value()
83 LOG_ERR("FAIL: read %s: [rd:%d]", fname, rc); in littlefs_increase_infile_value()
86 LOG_PRINTK("%s read count:%u (bytes: %d)\n", fname, boot_count, rc); in littlefs_increase_infile_value()
90 LOG_ERR("FAIL: seek %s: %d", fname, rc); in littlefs_increase_infile_value()
97 LOG_ERR("FAIL: write %s: %d", fname, rc); in littlefs_increase_infile_value()
101 LOG_PRINTK("%s write new boot count %u: [wr:%d]\n", fname, in littlefs_increase_infile_value()
107 LOG_ERR("FAIL: close %s: %d", fname, ret); in littlefs_increase_infile_value()
171 static int littlefs_binary_file_adj(char *fname) in littlefs_binary_file_adj() argument
[all …]
/Zephyr-Core-3.5.0/tests/subsys/settings/file/src/
Dsettings_test_compress_file.c21 int file_str_cmp(const char *fname, char const *string, size_t pattern_len);
86 int file_str_cmp(const char *fname, char const *string, size_t pattern_len) in file_str_cmp() argument
94 rc = fs_stat(fname, &entry); in file_str_cmp()
107 rc = fsutil_read_file(fname, 0, len, buf, &rlen); in file_str_cmp()
Dsettings_test_file.c206 int settings_test_file_strstr(const char *fname, char const *string, in settings_test_file_strstr() argument
215 rc = fs_stat(fname, &entry); in settings_test_file_strstr()
224 rc = fsutil_read_file(fname, 0, len, buf, &rlen); in settings_test_file_strstr()
/Zephyr-Core-3.5.0/scripts/ci/
Dcheck_compliance.py759 for fname in get_files(filter="d"):
760 if "Kconfig" in fname:
761 self.check_kconfig_header(fname)
762 self.check_redundant_zephyr_source(fname)
764 if fname.startswith("dts/bindings/"):
765 self.check_redundant_document_separator(fname)
767 if fname.endswith((".c", ".conf", ".cpp", ".dts", ".overlay",
770 "Kconfig" in fname or \
771 "defconfig" in fname or \
772 fname == "README":
[all …]
Dtest_plan.py113 fname = "_test_plan_partial.json"
114 cmd = ["scripts/twister", "-c"] + options + ["--save-tests", fname ]
120 with open(fname, newline='') as jsonfile:
124 if os.path.exists(fname):
125 os.remove(fname)
/Zephyr-Core-3.5.0/cmake/emu/
Darmfvp.cmake34 -C bp.secureflashloader.fname=${APPLICATION_BINARY_DIR}/tfa${FVP_SECURE_FLASH_FILE}
35 -C bp.flashloader0.fname=${APPLICATION_BINARY_DIR}/tfa${FVP_FLASH_FILE}
53 -C bp.secureflashloader.fname=${ARMFVP_BL1_FILE}
54 -C bp.flashloader0.fname=${ARMFVP_FIP_FILE}
/Zephyr-Core-3.5.0/doc/_extensions/zephyr/
Dexternal_content.py52 fname: Path,
68 if fname.suffix != ".rst":
71 dstpath = dstpath or fname.parent
84 with open(fname, "r+", encoding=encoding) as f:
/Zephyr-Core-3.5.0/subsys/logging/backends/
Dlog_backend_fs.c265 char fname[MAX_PATH_LEN]; in allocate_new_file() local
344 snprintf(fname, sizeof(fname), "%s/%s%04d", CONFIG_LOG_BACKEND_FS_DIR, in allocate_new_file()
346 rc = fs_open(file, fname, FS_O_CREATE | FS_O_WRITE | FS_O_APPEND); in allocate_new_file()
405 snprintf(fname, sizeof(fname), "%s/%s%04d", in allocate_new_file()
409 rc = fs_open(file, fname, FS_O_CREATE | FS_O_WRITE); in allocate_new_file()
/Zephyr-Core-3.5.0/scripts/support/
Dquartus-flash.py107 dname, fname = os.path.split(pof_file.name)
109 cdf = t.substitute(POF_DIR=dname, POF_FILE=fname)
/Zephyr-Core-3.5.0/scripts/west_commands/runners/
Dpyocd.py152 fname = self.hex_name
158 fname = self.bin_name
177 [fname])
179 self.logger.info('Flashing file: {}'.format(fname))
Djlink.py351 fname = os.path.join(d, 'runner.jlink')
352 with open(fname, 'wb') as f:
364 '-CommanderScript', fname] +
/Zephyr-Core-3.5.0/tests/subsys/settings/file/include/
Dsettings_test_file.h41 int settings_test_file_strstr(const char *fname, char const *string,
/Zephyr-Core-3.5.0/soc/xtensa/intel_adsp/tools/
Dcavstool_client.py62 fname = os.path.basename(filename)
70 values = (fsize, fname.encode('utf-8'), md5_tx.encode('utf-8'))
Dremote-fw-service.py58 fsize, fname, md5_tx_b = s.unpack(header)
71 with open(fname,'wb') as f:
85 return fname
/Zephyr-Core-3.5.0/subsys/fs/
Dfat_fs.c351 strcpy(entry->name, fno.fname); in fatfs_readdir()
384 strcpy(entry->name, fno.fname); in fatfs_stat()
/Zephyr-Core-3.5.0/scripts/west_commands/
Dsign.py561 for fname in filenames:
562 with open(fname, 'rb') as infile:
/Zephyr-Core-3.5.0/scripts/dts/python-devicetree/src/devicetree/
Dedtlib.py339 def _load_raw(self, fname: str) -> dict:
345 path = self._fname2path.get(fname)