Home
last modified time | relevance | path

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

12

/Zephyr-latest/tests/subsys/logging/log_backend_fs/src/
Dlog_fs_test.c63 char fname[MAX_PATH_LEN]; in ZTEST() local
85 sprintf(fname, "%s/%s", CONFIG_LOG_BACKEND_FS_DIR, in ZTEST()
87 rc = fs_unlink(fname); in ZTEST()
88 zassert_equal(rc, 0, "Can not remove file %s.", fname); in ZTEST()
89 TC_PRINT("removed: %s\n", fname); in ZTEST()
102 static char fname[MAX_PATH_LEN]; in ZTEST() local
109 sprintf(fname, "%s/%s0000", CONFIG_LOG_BACKEND_FS_DIR, log_prefix); in ZTEST()
111 zassert_equal(fs_open(&file, fname, FS_O_READ), 0, in ZTEST()
127 zassert_equal(fs_open(&file, fname, FS_O_READ), 0, in ZTEST()
148 static char fname[MAX_PATH_LEN]; in ZTEST() local
[all …]
/Zephyr-latest/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-latest/drivers/usb/udc/
Dudc_dwc2.h58 #define DWC2_QUIRK_FUNC_DEFINE(fname) \ argument
59 static inline int dwc2_quirk_##fname(const struct device *dev) \
64 if (quirks != NULL && config->quirks->fname != NULL) { \
65 return quirks->fname(dev); \
/Zephyr-latest/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-latest/subsys/logging/backends/
Dlog_backend_fs.c120 char fname[MAX_PATH_LEN]; in check_log_file_exist() local
123 rc = get_log_path(fname, sizeof(fname), num); in check_log_file_exist()
129 rc = fs_stat(fname, &ent); in check_log_file_exist()
249 char fname[MAX_PATH_LEN]; in allocate_new_file() local
328 get_log_path(fname, sizeof(fname), curr_file_num); in allocate_new_file()
329 rc = fs_open(file, fname, FS_O_CREATE | FS_O_WRITE | FS_O_APPEND); in allocate_new_file()
389 get_log_path(fname, sizeof(fname), curr_file_num); in allocate_new_file()
391 rc = fs_open(file, fname, FS_O_CREATE | FS_O_WRITE); in allocate_new_file()
/Zephyr-latest/cmake/emu/
Darmfvp.cmake32 -C bp.secureflashloader.fname=${APPLICATION_BINARY_DIR}/tfa${FVP_SECURE_FLASH_FILE}
33 -C bp.flashloader0.fname=${APPLICATION_BINARY_DIR}/tfa${FVP_FLASH_FILE}
51 -C bp.secureflashloader.fname=${ARMFVP_BL1_FILE}
52 -C bp.flashloader0.fname=${ARMFVP_FIP_FILE}
/Zephyr-latest/doc/_extensions/zephyr/
Dexternal_content.py51 fname: Path,
67 if fname.suffix != ".rst":
70 dstpath = dstpath or fname.parent
83 with open(fname, "r+", encoding=encoding) as f:
/Zephyr-latest/scripts/west_commands/runners/
Dteensy.py48 fname = self.hex_name
55 [fname])
Djlink.py441 def run_flash_cmd(self, fname, flash_file, **kwargs): argument
457 + ['-CommanderScript', fname]
470 fname = self.flash_script
471 if fname is None:
476 fname = os.path.join(d, 'runner.jlink')
477 with open(fname, 'wb') as f:
480 self.run_flash_cmd(fname, flash_file, **kwargs)
482 self.run_flash_cmd(fname, None, **kwargs)
Dpyocd.py154 fname = self.hex_name
157 fname = self.bin_name
159 fname = self.elf_name
178 [fname])
/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_core.c789 int http_server_find_file(char *fname, size_t fname_size, size_t *file_size, in http_server_find_file() argument
796 len = strlen(fname); in http_server_find_file()
800 snprintk(fname + len, fname_size - len, ".br"); in http_server_find_file()
801 ret = fs_stat(fname, &dirent); in http_server_find_file()
808 snprintk(fname + len, fname_size - len, ".gz"); in http_server_find_file()
809 ret = fs_stat(fname, &dirent); in http_server_find_file()
816 snprintk(fname + len, fname_size - len, ".zst"); in http_server_find_file()
817 ret = fs_stat(fname, &dirent); in http_server_find_file()
824 snprintk(fname + len, fname_size - len, ".lzw"); in http_server_find_file()
825 ret = fs_stat(fname, &dirent); in http_server_find_file()
[all …]
Dhttp_server_http1.c497 char fname[HTTP_SERVER_MAX_URL_LENGTH]; in handle_http1_static_fs_resource() local
509 snprintk(fname, sizeof(fname), "%s/index.html", static_fs_detail->fs_path); in handle_http1_static_fs_resource()
513 snprintk(fname, sizeof(fname), "%s%s", static_fs_detail->fs_path, in handle_http1_static_fs_resource()
519 ret = http_server_find_file(fname, sizeof(fname), &file_size, client->supported_compression, in handle_http1_static_fs_resource()
522 ret = http_server_find_file(fname, sizeof(fname), &file_size, 0, NULL); in handle_http1_static_fs_resource()
525 LOG_ERR("fs_stat %s: %d", fname, ret); in handle_http1_static_fs_resource()
529 ret = fs_open(&file, fname, FS_O_READ); in handle_http1_static_fs_resource()
531 LOG_ERR("fs_open %s: %d", fname, ret); in handle_http1_static_fs_resource()
537 LOG_DBG("found %s, file size: %zu", fname, file_size); in handle_http1_static_fs_resource()
Dhttp_server_http2.c460 char fname[HTTP_SERVER_MAX_URL_LENGTH]; in handle_http2_static_fs_resource() local
486 snprintk(fname, sizeof(fname), "%s/index.html", static_fs_detail->fs_path); in handle_http2_static_fs_resource()
490 snprintk(fname, sizeof(fname), "%s%s", static_fs_detail->fs_path, in handle_http2_static_fs_resource()
496 ret = http_server_find_file(fname, sizeof(fname), &client->data_len, in handle_http2_static_fs_resource()
499 ret = http_server_find_file(fname, sizeof(fname), &client->data_len, 0, NULL); in handle_http2_static_fs_resource()
502 LOG_ERR("fs_stat %s: %d", fname, ret); in handle_http2_static_fs_resource()
512 ret = fs_open(&file, fname, FS_O_READ); in handle_http2_static_fs_resource()
514 LOG_ERR("fs_open %s: %d", fname, ret); in handle_http2_static_fs_resource()
/Zephyr-latest/scripts/ci/
Dcheck_compliance.py1226 for fname in get_files(filter="d"):
1227 if "Kconfig" in fname:
1228 self.check_kconfig_header(fname)
1229 self.check_redundant_zephyr_source(fname)
1231 if fname.startswith("dts/bindings/"):
1232 self.check_redundant_document_separator(fname)
1234 if fname.endswith((".c", ".conf", ".cpp", ".dts", ".overlay",
1237 "Kconfig" in fname or \
1238 "defconfig" in fname or \
1239 fname == "README":
[all …]
Dtest_plan.py138 fname = "_test_plan_partial.json"
139 cmd = [f"{zephyr_base}/scripts/twister", "-c"] + options + ["--save-tests", fname ]
153 with open(fname, newline='') as jsonfile:
157 if os.path.exists(fname):
158 os.remove(fname)
/Zephyr-latest/scripts/support/
Dquartus-flash.py107 dname, fname = os.path.split(pof_file.name)
109 cdf = t.substitute(POF_DIR=dname, POF_FILE=fname)
/Zephyr-latest/tests/subsys/settings/file/include/
Dsettings_test_file.h41 int settings_test_file_strstr(const char *fname, char const *string,
/Zephyr-latest/soc/intel/intel_adsp/tools/
Dcavstool_client.py62 fname = os.path.basename(filename)
71 values = (fsize, fname.encode('utf-8'), md5_tx.encode('utf-8'))
Dremote-fw-service.py60 fsize, fname, md5_tx_b = s.unpack(header)
73 with open(fname,'wb') as f:
87 return fname
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dcoverage.py285 files_ = [fname for fname in
288 if os.path.exists(fname)]
455 files_ = [fname for fname in
458 if os.path.exists(fname)]
/Zephyr-latest/subsys/net/lib/http/headers/
Dserver_internal.h53 int http_server_find_file(char *fname, size_t fname_size, size_t *file_size,
/Zephyr-latest/scripts/footprint/
Dpack_as_twister.py127 def read_plan(fname: str) -> list[dict]:
129 with open(fname) as plan_file:
/Zephyr-latest/scripts/tests/twister/
Dtest_runner.py1862 def mock_exists(fname): argument
1863 assert fname == os.path.join('build', 'dir', domain if domain else '',
1927 def mock_exists(fname): argument
1982 def mock_exists(fname): argument
1983 if not fname.startswith(build_dir_path):
1985 return fname[len(build_dir_path):] in text_mocks
1987 def mock_open(fname, *args, **kwargs): argument
1988 if not fname.startswith(build_dir_path):
1990 return text_mocks[fname[len(build_dir_path):]]()
2004 for fname, fhandler in text_mocks.items():
[all …]
/Zephyr-latest/subsys/fs/
Dfat_fs.c374 strcpy(entry->name, fno.fname); in fatfs_readdir()
407 strcpy(entry->name, fno.fname); in fatfs_stat()

12