Home
last modified time | relevance | path

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

1234

/lk-master/lib/fs/memfs/
A Dmemfs.c75 free(file->ptr); in free_file()
76 free(file->name); in free_file()
77 free(file); in free_file()
126 memfs_file_t *file = malloc(sizeof(*file)); in memfs_create() local
127 if (!file) { in memfs_create()
135 free(file); in memfs_create()
139 file->len = len; in memfs_create()
143 file->fs = mem; in memfs_create()
169 if (!file) in memfs_open()
187 if (file) in memfs_remove()
[all …]
/lk-master/lib/fs/ext2/
A Dfile.c31 memset(file, 0, sizeof(ext2_file_t)); in ext2_open_file()
36 free(file); in ext2_open_file()
40 file->ext2 = ext2; in ext2_open_file()
41 *fcookie = (filecookie *)file; in ext2_open_file()
51 if (!S_ISREG(file->inode.i_mode)) { in ext2_read_file()
57 err = ext2_read_inode(file->ext2, &file->inode, buf, offset, len); in ext2_read_file()
68 if (file->ind_cache[i].num != 0) { in ext2_close_file()
69 free(file->ind_cache[i].ptr); in ext2_close_file()
73 free(file); in ext2_close_file()
92 stat->size = ext2_file_len(file->ext2, &file->inode); in ext2_stat_file()
[all …]
A Drules.mk14 $(LOCAL_DIR)/file.c
/lk-master/lib/bootimage/
A Dbootimage.c41 be->file.offset != 0 || in validate_bootimage()
42 be->file.length != 4096 || in validate_bootimage()
43 memcmp(be->file.name, BOOT_MAGIC, sizeof(be->file.name))) { in validate_bootimage()
55 if (memcmp(hash, be->file.sha256, sizeof(be->file.sha256)) != 0) { in validate_bootimage()
100 (be[i].file.type >> 0) & 0xff, (be[i].file.type >> 8) & 0xff, in validate_bootimage()
101 (be[i].file.type >> 16) & 0xff, (be[i].file.type >> 24) & 0xff, in validate_bootimage()
102 be[i].file.offset, be[i].file.length); in validate_bootimage()
105 uint32_t end = be[i].file.offset + be[i].file.length; in validate_bootimage()
115 … SHA256_update(&ctx, (const uint8_t *)bi->ptr + be[i].file.offset, be[i].file.length); in validate_bootimage()
118 if (memcmp(hash, be[i].file.sha256, sizeof(be[i].file.sha256)) != 0) { in validate_bootimage()
[all …]
/lk-master/lib/fs/spifs/
A Dspifs.c235 file->metadata.capacity / file->fs_handle->page_size; in consistency_check()
304 if (file) { in spifs_commit_toc()
655 file = malloc(sizeof(*file)); in spifs_mount()
679 free(file); in spifs_mount()
696 free(file); in spifs_unmount()
758 spifs_file_t *file = malloc(sizeof(*file)); in spifs_create() local
759 if (!file) { in spifs_create()
775 free(file); in spifs_create()
815 if (!file) in spifs_open()
845 if (!file) { in spifs_remove()
[all …]
/lk-master/lib/fs/fat32/
A Dfile.c124 fat_file_t *file = NULL; in fat32_open_file() local
173 file->fat_fs = fat; in fat32_open_file()
210 *fcookie = (filecookie *)file; in fat32_open_file()
216 fat_file_t *file = (fat_file_t *)fcookie; in fat32_read_file() local
217 fat_fs_t *fat = file->fat_fs; in fat32_read_file()
222 cluster = file->start_cluster; in fat32_read_file()
229 uint32_t length = file->length; in fat32_read_file()
264 fat_file_t *file = (fat_file_t *)fcookie; in fat32_close_file() local
265 free(file); in fat32_close_file()
270 fat_file_t *file = (fat_file_t *)fcookie; in fat32_stat_file() local
[all …]
A Drules.mk12 $(LOCAL_DIR)/file.c
/lk-master/tools/
A Dbootimage.c40 img->entry[0].file.kind = KIND_FILE; in bootimage_init()
41 img->entry[0].file.type = TYPE_BOOT_IMAGE; in bootimage_init()
42 img->entry[0].file.offset = 0; in bootimage_init()
43 img->entry[0].file.length = 4096; in bootimage_init()
46 memcpy(img->entry[0].file.name, BOOT_MAGIC, BOOT_MAGIC_LENGTH); in bootimage_init()
70 img->entry[n].file.kind = KIND_FILE; in bootimage_add_filedata()
71 img->entry[n].file.type = type; in bootimage_add_filedata()
72 img->entry[n].file.offset = img->next_offset; in bootimage_add_filedata()
73 img->entry[n].file.length = len; in bootimage_add_filedata()
74 SHA256_hash(data, len, img->entry[n].file.sha256); in bootimage_add_filedata()
[all …]
/lk-master/target/armemu/
A Darmemu.conf6 file = lk.bin
18 file = ../blk.bin
/lk-master/scripts/
A Ddo-cppcheck23 cppcheck --force --file-list=${PROJ_DIR}/srcfiles.txt --includes-file=${PROJ_DIR}/include_paths.txt…
A Ddo-writelpc5 echo usage: $0 file device
10 echo input file does not exist
/lk-master/lib/debug/
A Ddebug.c39 void assert_fail_msg(const char* file, int line, const char* expression, const char* fmt, ...) { in assert_fail_msg() argument
42 printf("ASSERT FAILED at (%s:%d): %s\n", file, line, expression); in assert_fail_msg()
51 void assert_fail(const char* file, int line, const char* expression) { in assert_fail() argument
52 printf("ASSERT FAILED at (%s:%d): %s\n", file, line, expression); in assert_fail()
/lk-master/external/platform/stellaris/ti-driverlib/
A Dmakedefs146 LIBGCC=${shell ${CC} ${CFLAGS} -print-libgcc-file-name}
151 LIBC=${shell ${CC} ${CFLAGS} -print-file-name=libc.a}
156 LIBM=${shell ${CC} ${CFLAGS} -print-file-name=libm.a}
177 # Add the include file paths to AFLAGS and CFLAGS.
183 # The rule for building the object file from each C source file.
198 # The rule for building the object file from each assembly source file.
/lk-master/lib/libc/include/
A Dassert.h89 void assert_fail(const char *file, int line, const char *expression) __NO_RETURN __NO_INLINE;
90 void assert_fail_msg(const char *file, int line, const char *expression, const char *fmt,
/lk-master/external/platform/nrfx/doc/
A Dnrfx.doxyfile173 # less readable) file names. This can be useful is your file systems doesn't
474 # 'anonymous_namespace{file}', where file will be replaced with the base name of
521 # in case and if your file system supports case sensitive file names. Windows
542 # the files that are included by a file in the documentation of that file.
687 # FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
900 # <filter> <input-file>
1177 # files. In the HTML_STYLESHEET file, use the file name only. Also note that the
1317 # file. You can add a path in front of the file if the result should not be
1369 # the file name of the resulting .qch file. The path specified is relative to
1414 # generated .qhp file.
[all …]
A Dmain_page.dox46 line to the @ref nrfx_glue file:
68 in a file named:
72 This file, similarly to the integration files mentioned above, can be placed
76 included through a common nrfx_config.h file, according to the selected SoC.
/lk-master/external/platform/nrfx/mdk/
A Diar_startup_nrf51.s6 ; not use this file except in compliance with the License.
17 ; NOTICE: This file has been modified by Nordic Semiconductor ASA.
19 ; The modules in this file are included in the libraries, and may be replaced
49 ;; Stack size default : Defined in *.icf (linker file). Can be modified inside EW.
50 ;; Heap size default : Defined in *.icf (linker file). Can be modified inside EW.
A Diar_startup_nrf52805.s6 ; not use this file except in compliance with the License.
17 ; NOTICE: This file has been modified by Nordic Semiconductor ASA.
19 ; The modules in this file are included in the libraries, and may be replaced
49 ;; Stack size default : Defined in *.icf (linker file). Can be modified inside EW.
50 ;; Heap size default : Defined in *.icf (linker file). Can be modified inside EW.
A Diar_startup_nrf5340_network.s6 ; not use this file except in compliance with the License.
17 ; NOTICE: This file has been modified by Nordic Semiconductor ASA.
19 ; The modules in this file are included in the libraries, and may be replaced
49 ;; Stack size default : Defined in *.icf (linker file). Can be modified inside EW.
50 ;; Heap size default : Defined in *.icf (linker file). Can be modified inside EW.
A Diar_startup_nrf52811.s6 ; not use this file except in compliance with the License.
17 ; NOTICE: This file has been modified by Nordic Semiconductor ASA.
19 ; The modules in this file are included in the libraries, and may be replaced
49 ;; Stack size default : Defined in *.icf (linker file). Can be modified inside EW.
50 ;; Heap size default : Defined in *.icf (linker file). Can be modified inside EW.
A Diar_startup_nrf52820.s6 ; not use this file except in compliance with the License.
17 ; NOTICE: This file has been modified by Nordic Semiconductor ASA.
19 ; The modules in this file are included in the libraries, and may be replaced
49 ;; Stack size default : Defined in *.icf (linker file). Can be modified inside EW.
50 ;; Heap size default : Defined in *.icf (linker file). Can be modified inside EW.
/lk-master/external/lib/lwip/core/
A Dmemp.c69 const char *file; member
392 memp_malloc_fn(memp_t type, const char* file, const int line) in memp_malloc()
411 memp->file = file; in memp_malloc()
/lk-master/external/lib/lwip/netif/
A DFILES7 Ethernet. The code in this file should be used together with
14 file can be used as a "skeleton" for developing new Ethernet
/lk-master/external/platform/stm32f0xx/STM32F0xx_HAL_Driver/inc/
A Dstm32_assert_template.h61 void assert_failed(char* file, uint32_t line);
/lk-master/external/platform/pico/rp2_common/pico_runtime/
A Druntime.c204 void __assert_func(const char *file, int line, const char *func, const char *failedexpr) { in __assert_func() argument
206 failedexpr, file, line, func ? ", function: " : "", in __assert_func()

Completed in 25 milliseconds

1234