/Zephyr-latest/tests/subsys/logging/log_backend_fs/src/ |
D | log_fs_test.c | 56 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-latest/samples/subsys/fs/littlefs/src/ |
D | main.c | 68 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/ |
D | udc_dwc2.h | 58 #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/ |
D | settings_test_compress_file.c | 21 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()
|
D | settings_test_file.c | 206 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/cmake/emu/ |
D | armfvp.cmake | 32 -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/ |
D | external_content.py | 51 fname: Path, 67 if fname.suffix != ".rst": 70 dstpath = dstpath or fname.parent 83 with open(fname, "r+", encoding=encoding) as f:
|
/Zephyr-latest/subsys/logging/backends/ |
D | log_backend_fs.c | 265 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() 406 snprintf(fname, sizeof(fname), "%s/%s%04d", in allocate_new_file() 410 rc = fs_open(file, fname, FS_O_CREATE | FS_O_WRITE); in allocate_new_file()
|
/Zephyr-latest/scripts/west_commands/runners/ |
D | teensy.py | 48 fname = self.hex_name 55 [fname])
|
D | jlink.py | 413 def run_flash_cmd(self, fname, flash_file, **kwargs): argument 429 + ['-CommanderScript', fname] 442 fname = self.flash_script 443 if fname is None: 448 fname = os.path.join(d, 'runner.jlink') 449 with open(fname, 'wb') as f: 452 self.run_flash_cmd(fname, flash_file, **kwargs) 454 self.run_flash_cmd(fname, None, **kwargs)
|
D | pyocd.py | 154 fname = self.hex_name 157 fname = self.bin_name 159 fname = self.elf_name 178 [fname])
|
/Zephyr-latest/scripts/ci/ |
D | check_compliance.py | 1103 for fname in get_files(filter="d"): 1104 if "Kconfig" in fname: 1105 self.check_kconfig_header(fname) 1106 self.check_redundant_zephyr_source(fname) 1108 if fname.startswith("dts/bindings/"): 1109 self.check_redundant_document_separator(fname) 1111 if fname.endswith((".c", ".conf", ".cpp", ".dts", ".overlay", 1114 "Kconfig" in fname or \ 1115 "defconfig" in fname or \ 1116 fname == "README": [all …]
|
D | test_plan.py | 138 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/ |
D | quartus-flash.py | 107 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/ |
D | settings_test_file.h | 41 int settings_test_file_strstr(const char *fname, char const *string,
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_server_http1.c | 400 char fname[HTTP_SERVER_MAX_URL_LENGTH]; in handle_http1_static_fs_resource() local 421 snprintk(fname, sizeof(fname), "%s/index.html", static_fs_detail->fs_path); in handle_http1_static_fs_resource() 425 snprintk(fname, sizeof(fname), "%s%s", static_fs_detail->fs_path, in handle_http1_static_fs_resource() 430 ret = http_server_find_file(fname, sizeof(fname), &file_size, &gzipped); in handle_http1_static_fs_resource() 432 LOG_ERR("fs_stat %s: %d", fname, ret); in handle_http1_static_fs_resource() 441 ret = fs_open(&file, fname, FS_O_READ); in handle_http1_static_fs_resource() 443 LOG_ERR("fs_open %s: %d", fname, ret); in handle_http1_static_fs_resource() 449 LOG_DBG("found %s, file size: %zu", fname, file_size); in handle_http1_static_fs_resource()
|
D | http_server_http2.c | 402 char fname[HTTP_SERVER_MAX_URL_LENGTH]; in handle_http2_static_fs_resource() local 428 snprintk(fname, sizeof(fname), "%s/index.html", static_fs_detail->fs_path); in handle_http2_static_fs_resource() 432 snprintk(fname, sizeof(fname), "%s%s", static_fs_detail->fs_path, in handle_http2_static_fs_resource() 437 ret = http_server_find_file(fname, sizeof(fname), &client->data_len, &gzipped); in handle_http2_static_fs_resource() 439 LOG_ERR("fs_stat %s: %d", fname, ret); in handle_http2_static_fs_resource() 449 ret = fs_open(&file, fname, FS_O_READ); in handle_http2_static_fs_resource() 451 LOG_ERR("fs_open %s: %d", fname, ret); in handle_http2_static_fs_resource()
|
D | http_server_core.c | 751 int http_server_find_file(char *fname, size_t fname_size, size_t *file_size, bool *gzipped) in http_server_find_file() argument 757 ret = fs_stat(fname, &dirent); in http_server_find_file() 759 len = strlen(fname); in http_server_find_file() 760 snprintk(fname + len, fname_size - len, ".gz"); in http_server_find_file() 761 ret = fs_stat(fname, &dirent); in http_server_find_file()
|
/Zephyr-latest/subsys/net/lib/http/headers/ |
D | server_internal.h | 44 int http_server_find_file(char *fname, size_t fname_size, size_t *file_size, bool *gzipped);
|
/Zephyr-latest/soc/intel/intel_adsp/tools/ |
D | cavstool_client.py | 62 fname = os.path.basename(filename) 70 values = (fsize, fname.encode('utf-8'), md5_tx.encode('utf-8'))
|
D | remote-fw-service.py | 60 fsize, fname, md5_tx_b = s.unpack(header) 73 with open(fname,'wb') as f: 87 return fname
|
/Zephyr-latest/scripts/footprint/ |
D | pack_as_twister.py | 127 def read_plan(fname: str) -> list[dict]: 129 with open(fname) as plan_file:
|
/Zephyr-latest/scripts/tests/twister/ |
D | test_runner.py | 1854 def mock_exists(fname): argument 1855 assert fname == os.path.join('build', 'dir', domain if domain else '', 1919 def mock_exists(fname): argument 1974 def mock_exists(fname): argument 1975 if not fname.startswith(build_dir_path): 1977 return fname[len(build_dir_path):] in text_mocks 1979 def mock_open(fname, *args, **kwargs): argument 1980 if not fname.startswith(build_dir_path): 1982 return text_mocks[fname[len(build_dir_path):]]() 1996 for fname, fhandler in text_mocks.items(): [all …]
|
/Zephyr-latest/subsys/fs/ |
D | fat_fs.c | 374 strcpy(entry->name, fno.fname); in fatfs_readdir() 407 strcpy(entry->name, fno.fname); in fatfs_stat()
|
/Zephyr-latest/scripts/west_commands/ |
D | sign.py | 615 for fname in filenames: 616 with open(fname, 'rb') as infile:
|