Home
last modified time | relevance | path

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

12345678910>>...61

/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 …]
/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/tests/posix/xsi_realtime/src/
Dsync_io.c52 static int file_write(int file) in file_write() argument
57 res = lseek(file, 0, SEEK_SET); in file_write()
60 brw = write(file, (char *)test_str, strlen(test_str)); in file_write()
78 int file = file_open(); in ZTEST() local
80 res = file_write(file); in ZTEST()
81 res = fsync(file); in ZTEST()
83 zassert_ok(close(file), "Failed to close file"); in ZTEST()
96 int file = file_open(); in ZTEST() local
98 res = file_write(file); in ZTEST()
99 res = fdatasync(file); in ZTEST()
[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_bass.sh12 for file in "$dir_path"/bap_bass*.sh; do
13 if [ -f "$file" ]; then
14 echo "Running $file"
15 $file
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
D_cap_broadcast.sh12 for file in "$dir_path"/cap_broadcast*.sh; do
13 if [ -f "$file" ]; then
14 echo "Running $file"
15 $file
D_cap_unicast.sh12 for file in "$dir_path"/cap_unicast*.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.
26 int "Maximum number of distinct file system types allowed"
29 Zephyr provides several file system types including FatFS and
34 int "Optional override for maximum file name length"
37 Specify the maximum file name allowed across all enabled file
39 file name length for enabled in-tree file systems. This
41 file system. Selecting a value less than the actual length
[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/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/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/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/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/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]:";

12345678910>>...61