Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 1532) sorted by relevance

12345678910>>...62

/Zephyr-latest/scripts/utils/
Dgen_util_macros.py23 def write_hidden_start(file): argument
24 file.write("/**\n")
25 file.write(" * @cond INTERNAL_HIDDEN\n")
26 file.write(" */\n")
29 def write_hidden_stop(file): argument
30 file.write("/**\n")
31 file.write(" * INTERNAL_HIDDEN @endcond\n")
32 file.write(" */\n")
36 with open("util_listify.h", "w") as file:
37 write_hidden_start(file)
[all …]
/Zephyr-latest/tests/subsys/fs/ext2/src/
Dtestfs_dirops.c18 struct fs_file_t file; in ZTEST() local
21 fs_file_t_init(&file); in ZTEST()
28 zassert_equal(fs_open(&file, "/sml/file1", FS_O_CREATE), 0, "Create file1 failed"); in ZTEST()
29 zassert_equal(fs_close(&file), 0, "Close file error"); in ZTEST()
30 zassert_equal(fs_open(&file, "/sml/dir1/file2", FS_O_CREATE), 0, "Create file2 failed"); in ZTEST()
31 zassert_equal(fs_close(&file), 0, "Close file error"); in ZTEST()
32 zassert_equal(fs_open(&file, "/sml/dir2/file3", FS_O_CREATE), 0, "Create file3 failed"); in ZTEST()
33 zassert_equal(fs_close(&file), 0, "Close file error"); in ZTEST()
36 zassert_equal(fs_open(&file, "/sml/dir1", 0), -EINVAL, "Should return error"); in ZTEST()
37 zassert_equal(fs_open(&file, "/sml/dir2", 0), -EINVAL, "Should return error"); in ZTEST()
[all …]
Dtestfs_ext_specific.c45 struct fs_file_t file; in write_to_file() local
48 fs_file_t_init(&file); in write_to_file()
49 ret = fs_open(&file, file_path, FS_O_RDWR | FS_O_CREATE); in write_to_file()
52 ret = testfs_write_incrementing(&file, 0, bytes_to_write); in write_to_file()
56 ret = fs_close(&file); in write_to_file()
67 fs_file_t_init(&file); in write_to_file()
68 ret = fs_open(&file, file_path, FS_O_READ); in write_to_file()
72 ret = testfs_verify_incrementing(&file, 0, bytes_to_write); in write_to_file()
76 ret = fs_close(&file); in write_to_file()
83 struct fs_file_t file; in truncate_file() local
[all …]
/Zephyr-latest/tests/posix/fs/src/
Dtest_fs_file.c13 int file = -1; variable
26 file = res; in test_file_open()
36 res = lseek(file, 0, SEEK_SET); in test_file_write()
39 close(file); in test_file_write()
40 file = -1; in test_file_write()
44 brw = write(file, (char *)test_str, strlen(test_str)); in test_file_write()
47 close(file); in test_file_write()
48 file = -1; in test_file_write()
55 close(file); in test_file_write()
56 file = -1; in test_file_write()
[all …]
/Zephyr-latest/tests/subsys/fs/common/
Dtest_fs_basic.c25 struct fs_file_t file; in create_write_hello() local
27 fs_file_t_init(&file); in create_write_hello()
30 zassert_equal(fs_open(&file, in create_write_hello()
50 zassert_equal(testfs_write_incrementing(&file, 0, TESTFS_BUFFER_SIZE), in create_write_hello()
71 zassert_equal(fs_close(&file), 0, in create_write_hello()
90 struct fs_file_t file; in verify_hello() local
92 fs_file_t_init(&file); in verify_hello()
95 zassert_equal(fs_open(&file, in verify_hello()
103 zassert_equal(fs_tell(&file), 0U, in verify_hello()
106 zassert_equal(testfs_verify_incrementing(&file, 0, TESTFS_BUFFER_SIZE), in verify_hello()
[all …]
/Zephyr-latest/tests/bluetooth/controller/common/include/
Dhelper_pdu.h67 void helper_pdu_verify_ping_req(const char *file, uint32_t line, struct pdu_data *pdu, void *param);
68 void helper_pdu_verify_ping_rsp(const char *file, uint32_t line, struct pdu_data *pdu, void *param);
70 void helper_pdu_verify_feature_req(const char *file, uint32_t line, struct pdu_data *pdu,
72 void helper_pdu_verify_peripheral_feature_req(const char *file, uint32_t line, struct pdu_data *pdu,
74 void helper_pdu_verify_feature_rsp(const char *file, uint32_t line, struct pdu_data *pdu,
77 void helper_pdu_verify_min_used_chans_ind(const char *file, uint32_t line, struct pdu_data *pdu,
80 void helper_pdu_verify_version_ind(const char *file, uint32_t line, struct pdu_data *pdu,
83 void helper_pdu_verify_enc_req(const char *file, uint32_t line, struct pdu_data *pdu, void *param);
85 void helper_pdu_ntf_verify_enc_req(const char *file, uint32_t line, struct pdu_data *pdu,
88 void helper_pdu_verify_enc_rsp(const char *file, uint32_t line, struct pdu_data *pdu, void *param);
[all …]
/Zephyr-latest/tests/bluetooth/controller/common/src/
Dhelper_pdu.c47 zassert_mem_equal(_s._f, _p->_f, sizeof(_p->_f), _t "\nCalled at %s:%d\n", file, line);
534 void helper_pdu_verify_version_ind(const char *file, uint32_t line, struct pdu_data *pdu, in helper_pdu_verify_version_ind() argument
539 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_version_ind()
542 "Not a LL_VERSION_IND.\nCalled at %s:%d\n", file, line); in helper_pdu_verify_version_ind()
544 "Wrong version number.\nCalled at %s:%d\n", file, line); in helper_pdu_verify_version_ind()
546 "Wrong company id.\nCalled at %s:%d\n", file, line); in helper_pdu_verify_version_ind()
548 "Wrong sub version number.\nCalled at %s:%d\n", file, line); in helper_pdu_verify_version_ind()
551 void helper_pdu_verify_ping_req(const char *file, uint32_t line, struct pdu_data *pdu, void *param) in helper_pdu_verify_ping_req() argument
553 zassert_equal(pdu->ll_id, PDU_DATA_LLID_CTRL, "Not a Control PDU.\nCalled at %s:%d\n", file, in helper_pdu_verify_ping_req()
556 "Not a LL_PING_REQ. Called at %s:%d\n", file, line); in helper_pdu_verify_ping_req()
[all …]
/Zephyr-latest/modules/cmsis-nn/
DCMakeLists.txt18 file(GLOB SRC "${CMSIS_NN_DIR}/Source/ActivationFunctions/*_s8*.c")
19 file(GLOB SRC_S16 "${CMSIS_NN_DIR}/Source/ActivationFunctions/*_s16*.c")
26 file(GLOB SRC "${CMSIS_NN_DIR}/Source/BasicMathFunctions/*_*.c")
31 file(GLOB SRC "${CMSIS_NN_DIR}/Source/ConcatenationFunctions/*_*.c")
36 file(GLOB SRC_S4 "${CMSIS_NN_DIR}/Source/ConvolutionFunctions/*_s4*.c")
37 file(GLOB SRC_S8 "${CMSIS_NN_DIR}/Source/ConvolutionFunctions/*_s8*.c")
38 file(GLOB SRC_S16 "${CMSIS_NN_DIR}/Source/ConvolutionFunctions/*_s16*.c")
43 file(GLOB SRC_S4 "${CMSIS_NN_DIR}/Source/FullyConnectedFunctions/*_s4.c")
44 file(GLOB SRC_S8 "${CMSIS_NN_DIR}/Source/FullyConnectedFunctions/*_s8.c")
45 file(GLOB SRC_S16 "${CMSIS_NN_DIR}/Source/FullyConnectedFunctions/*_s16*.c")
[all …]
/Zephyr-latest/modules/lvgl/
Dlvgl_fs.c60 void *file; in lvgl_fs_open() local
70 file = lv_malloc(sizeof(struct fs_file_t)); in lvgl_fs_open()
71 if (!file) { in lvgl_fs_open()
75 fs_file_t_init((struct fs_file_t *)file); in lvgl_fs_open()
77 err = fs_open((struct fs_file_t *)file, path, zmode); in lvgl_fs_open()
79 lv_free(file); in lvgl_fs_open()
83 return file; in lvgl_fs_open()
86 static lv_fs_res_t lvgl_fs_close(lv_fs_drv_t *drv, void *file) in lvgl_fs_close() argument
90 err = fs_close((struct fs_file_t *)file); in lvgl_fs_close()
91 lv_free(file); in lvgl_fs_close()
[all …]
/Zephyr-latest/scripts/build/
Dgen_symtab.py126 print("/* AUTO-GENERATED by gen_symtab.py, do not edit! */", file=wf)
127 print("", file=wf)
128 print("#include <zephyr/linker/sections.h>", file=wf)
129 print("#include <zephyr/debug/symtab.h>", file=wf)
130 print("", file=wf)
132 …const struct z_symtab_entry __symtab_entry z_symtab_entries[{len(symtab_list) + 1}] = {{", file=wf)
135 f"\t/* ADDR: {hex(entry.addr)} SIZE: {hex(entry.size)} */", file=wf)
137 f"\t[{i}] = {{.offset = {hex(entry.offset)}, .name = \"{entry.name}\"}},", file=wf)
144 print("\t/* dummy entry */", file=wf)
146 f"\t[{len(symtab_list)}] = {{.offset = {dummy_offset}, .name = \"?\"}},", file=wf)
[all …]
Dgen_strerror_table.py60 print(front_matter(highest_errno + 1), file=outf)
64 f'static const char *const sys_errlist[sys_nerr] = {{', file=outf)
65 print('[0] = "Success",', file=outf)
67 print(f'[{symbol}] = "{msgs[symbol]}",', file=outf)
69 print('};', file=outf)
73 f'static const uint8_t sys_errlen[sys_nerr] = {{', file=outf)
74 print('[0] = 8,', file=outf)
76 print(f'[{symbol}] = {len(msgs[symbol]) + 1},', file=outf)
78 print('};', file=outf)
/Zephyr-latest/tests/bsim/bluetooth/audio/test_scripts/
D_bap_broadcast.sh12 for file in "$dir_path"/bap_broadcast_audio*.sh; do
13 if [ -f "$file" ]; then
14 echo "Running $file"
15 $file
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/resources/
Dfifo_mock.py20 self.file = None
31 self.file = open(self.filename, self.mode, buffering=0)
39 if self.file:
40 self.file.write(data)
43 if self.file:
44 return self.file.readline()
47 if self.file:
48 self.file.close()
65 read_path = args.file + '.in'
66 write_path = args.file + '.out'
/Zephyr-latest/cmake/
Dcfb.cmake3 # These functions can be used to generate a CFB font include file from
4 # a TrueType/OpenType font file or an image file.
6 input_file # The TrueType/OpenType font file or the image file
7 output_file # The generated header file
29 target # The cmake target that depends on the generated file
30 input_file # The TrueType/OpenType font file or the image file
31 output_file # The generated header file
34 gen_target # The generated file target we depend on
47 target # The cmake target that depends on the generated file
48 input_file # The TrueType/OpenType font file or image file
[all …]
/Zephyr-latest/doc/hardware/porting/
Dsoc_porting.rst76 #. :file:`soc.yml`: a YAML file describing the high-level meta data of the
84 #. :file:`soc.h`: a header file which can be used to describe or provide
85 configuration macros for the SoC. The :file:`soc.h` will often be included in
88 #. :file:`Kconfig.soc`: the base SoC configuration which defines a Kconfig SoC
92 be defined in this file. Kconfig settings outside of the SoC tree must not be
93 selected. To select general Zephyr Kconfig settings the :file:`Kconfig` file
96 #. :file:`CMakeLists.txt`: CMake file loaded by the Zephyr build system. This
97 CMake file can define additional include paths and/or source files to be used
103 - :file:`Kconfig`, :file:`Kconfig.defconfig` software configuration in
110 The SoC YAML file describes the SoC family, SoC series, and SoC at a high level.
[all …]
/Zephyr-latest/subsys/fs/
DKconfig8 bool "Link file system libraries into build"
10 Link in the underlying file system libraries. This can be
12 to work directly with the underlying file system libraries.
21 Enables support for file system.
38 int "Maximum number of distinct file system types allowed"
41 Zephyr provides several file system types including FatFS and
46 int "Optional override for maximum file name length"
49 Specify the maximum file name allowed across all enabled file
51 file name length for enabled in-tree file systems. This
53 file system. Selecting a value less than the actual length
[all …]
Dshell.c216 struct fs_file_t file; in cmd_trunc() local
228 fs_file_t_init(&file); in cmd_trunc()
229 err = fs_open(&file, path, FS_O_WRITE); in cmd_trunc()
235 err = fs_truncate(&file, length); in cmd_trunc()
241 fs_close(&file); in cmd_trunc()
282 struct fs_file_t file; in cmd_read() local
318 fs_file_t_init(&file); in cmd_read()
319 err = fs_open(&file, path, FS_O_READ); in cmd_read()
326 err = fs_seek(&file, offset, FS_SEEK_SET); in cmd_read()
330 fs_close(&file); in cmd_read()
[all …]
/Zephyr-latest/doc/build/snippets/
Dwriting.rst10 Snippets are defined using YAML files named :file:`snippet.yml`.
12 A :file:`snippet.yml` file contains the name of the snippet, along with
20 Build system settings go in other keys in the file as described later on in
24 you can combine a snippet-specific devicetree overlay and a ``.conf`` file like
71 application source directory (so :file:`<app>/snippets` is also).
79 :file:`snippet.yml` files underneath a subdirectory named :file:`snippets/`,
83 system will look for :file:`snippet.yml` files underneath the following
86 - :file:`/foo/snippets/`
87 - :file:`/bar/snippets/`
89 The :file:`snippet.yml` files can be nested anywhere underneath these
[all …]
/Zephyr-latest/cmake/util/
Dfmerge.cmake3 # Merges a list of files into a destination file.
4 # Usage: list of files as arguments, first argument is the destination file
13 # Empty the file
14 file(REMOVE ${DEST_FILE})
17 file(READ ${CMAKE_ARGV${i}} BUF)
18 file(APPEND ${DEST_FILE} ${BUF})
/Zephyr-latest/tests/application_development/gen_inc_file/
DCMakeLists.txt10 # Write the generated file into the include/generated directory, which
13 set(source_file src/file.bin)
15 generate_inc_file_for_target(app ${source_file} ${gen_dir}/file.bin.inc)
16 generate_inc_file_for_target(app ${source_file} ${gen_dir}/file.bin.partial.inc
18 generate_inc_file_for_target(app ${source_file} ${gen_dir}/file.bin.gz.inc --gzip)
19 generate_inc_file_for_target(app ${source_file} ${gen_dir}/file.bin.mtime.gz.inc
21 generate_inc_file_for_target(app ${source_file} ${gen_dir}/file.bin.partial.gz.inc
/Zephyr-latest/subsys/net/ip/
Dtp.c46 void *tp_malloc(size_t size, const char *file, int line, const char *func) in tp_malloc() argument
51 mem->file = file; in tp_malloc()
92 mem->file, mem->line, mem->func, mem->mem, mem->size); in tp_mem_chk()
100 mem->file, mem->line, mem->func, mem->mem, in tp_mem_chk()
105 mem->file, mem->line, mem->func, mem->mem, in tp_mem_chk()
110 void tp_free(void *ptr, const char *file, int line, const char *func) in tp_free() argument
118 file, line, func, ptr); in tp_free()
125 void *tp_calloc(size_t nmemb, size_t size, const char *file, int line, in tp_calloc() argument
129 void *ptr = tp_malloc(bytes, file, line, func); in tp_calloc()
141 tp_dbg("len=%zu %s:%d", mem->size, mem->file, mem->line); in tp_mem_stat()
[all …]
/Zephyr-latest/lib/libc/arcmwdt/
Dlibc-hooks.c75 __weak int fileno(FILE *file) in fileno() argument
77 return _fileno(file); in fileno()
85 int _isatty(int file) in _isatty() argument
87 if (file == STDIN_FILENO || file == STDOUT_FILENO || file == STDERR_FILENO) { in _isatty()
/Zephyr-latest/scripts/
Dcheckstack.pl118 my ($func, $file, $lastslash);
124 elsif ($line =~ m/(.*):\s*file format/) {
125 $file = $1;
126 $file =~ s/\.ko//;
127 $lastslash = rindex($file, "/");
129 $file = substr($file, $lastslash + 1);
148 my $intro = "$addr $func [$file]:";
165 my $intro = "$addr $func [$file]:";
/Zephyr-latest/subsys/logging/backends/
DKconfig.fs9 When enabled, backend is using the configured file system to output logs.
10 As the file system must be mounted for the logging to work, it must be
12 Log messages are discarded as long as the file system is not mounted.
24 When enabled automatically start the file system backend on
35 bool "Append to the newest log file"
38 When enabled and when there is space left in the newest log file,
40 When disabled backend creates a new log file on every startup.
43 string "Log file name prefix"
46 User defined name of log files saved in the file system.
47 The prefix is followed by the number of log file.
[all …]
/Zephyr-latest/doc/develop/toolchains/
Dcustom_cmake.rst6 To use a custom toolchain defined in an external CMake file, :ref:`set these
14 :file:`TOOLCHAIN_ROOT` directory:
16 - :file:`cmake/toolchain/<toolchain name>/generic.cmake`: configures the
19 :ref:`devicetree` file.
20 - :file:`cmake/toolchain/<toolchain name>/target.cmake`: configures the
28 :file:`generic.cmake` and :file:`target.cmake` files should contain.
43 settings in a file named :file:`my-toolchain.cmake`, you can then invoke cmake
46 Zephyr includes :file:`include/toolchain.h` which again includes a toolchain
50 based, for example ``llvm`` which then gets the :file:`toolchain/llvm.h` included.
51 This included file may though not be right for the custom toolchain. In order
[all …]

12345678910>>...62