Home
last modified time | relevance | path

Searched refs:file_p (Results 1 – 14 of 14) sorted by relevance

/lvgl-latest/src/misc/
Dlv_fs.c39 static lv_fs_res_t lv_fs_read_cached(lv_fs_file_t * file_p, void * buf, uint32_t btr, uint32_t * br…
40 static lv_fs_res_t lv_fs_write_cached(lv_fs_file_t * file_p, const void * buf, uint32_t btw, uint32…
41 static lv_fs_res_t lv_fs_seek_cached(lv_fs_file_t * file_p, uint32_t pos, lv_fs_whence_t whence);
76 lv_fs_res_t lv_fs_open(lv_fs_file_t * file_p, const char * path, lv_fs_mode_t mode) in lv_fs_open() argument
106 file_p->drv = drv; in lv_fs_open()
110 file_p->file_d = file_p; in lv_fs_open()
118 file_p->file_d = file_d; in lv_fs_open()
122 file_p->cache = lv_malloc_zeroed(sizeof(lv_fs_file_cache_t)); in lv_fs_open()
123 LV_ASSERT_MALLOC(file_p->cache); in lv_fs_open()
128 file_p->cache->buffer = (void *)path_ex->buffer; in lv_fs_open()
[all …]
Dlv_fs.h75 lv_fs_res_t (*close_cb)(lv_fs_drv_t * drv, void * file_p);
76 … lv_fs_res_t (*read_cb)(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * br);
77 …lv_fs_res_t (*write_cb)(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint32_t…
78 lv_fs_res_t (*seek_cb)(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
79 lv_fs_res_t (*tell_cb)(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
142 lv_fs_res_t lv_fs_open(lv_fs_file_t * file_p, const char * path, lv_fs_mode_t mode);
158 lv_fs_res_t lv_fs_close(lv_fs_file_t * file_p);
168 lv_fs_res_t lv_fs_read(lv_fs_file_t * file_p, void * buf, uint32_t btr, uint32_t * br);
178 lv_fs_res_t lv_fs_write(lv_fs_file_t * file_p, const void * buf, uint32_t btw, uint32_t * bw);
187 lv_fs_res_t lv_fs_seek(lv_fs_file_t * file_p, uint32_t pos, lv_fs_whence_t whence);
[all …]
/lvgl-latest/src/libs/fsdrv/
Dlv_fs_fatfs.c37 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
38 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
39 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
40 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
41 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
140 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close() argument
143 f_close(file_p); in fs_close()
144 lv_free(file_p); in fs_close()
158 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… in fs_read() argument
161 FRESULT res = f_read(file_p, buf, btr, (UINT *)br); in fs_read()
[all …]
Dlv_fs_memfs.c64 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
65 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
66 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
67 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
137 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close() argument
140 LV_UNUSED(file_p); in fs_close()
154 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… in fs_read() argument
157 LV_UNUSED(file_p); in fs_read()
172 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence) in fs_seek() argument
176 lv_fs_file_t * fp = (lv_fs_file_t *)file_p; in fs_seek()
[all …]
Dlv_fs_arduino_esp_littlefs.cpp20 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
21 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
22 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
23 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
24 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
99 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close() argument
102 ArduinoEspLittleFile * lf = (ArduinoEspLittleFile *)file_p; in fs_close()
118 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… in fs_read() argument
121 ArduinoEspLittleFile * lf = (ArduinoEspLittleFile *)file_p; in fs_read()
136 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3… in fs_write() argument
[all …]
Dlv_fs_arduino_sd.cpp20 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
21 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
22 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
23 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
24 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
91 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close() argument
94 SdFile * lf = (SdFile *)file_p; in fs_close()
110 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… in fs_read() argument
113 SdFile * lf = (SdFile *)file_p; in fs_read()
128 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3… in fs_write() argument
[all …]
Dlv_fs_posix.c32 #define FILEP2FD(file_p) ((lv_uintptr_t)file_p - 1) argument
43 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
44 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
45 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
46 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
47 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
135 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close() argument
139 int fd = FILEP2FD(file_p); in fs_close()
159 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… in fs_read() argument
163 int fd = FILEP2FD(file_p); in fs_read()
[all …]
Dlv_fs_littlefs.c23 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
24 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
25 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
26 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
27 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
103 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close() argument
105 LittleFile * lf = file_p; in fs_close()
123 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… in fs_read() argument
125 LittleFile * lf = file_p; in fs_read()
142 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3… in fs_write() argument
[all …]
Dlv_fs_stdio.c45 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
46 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
47 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
48 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
49 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
132 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close() argument
135 fclose(file_p); in fs_close()
149 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… in fs_read() argument
152 *br = fread(buf, 1, btr, file_p); in fs_read()
165 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3… in fs_write() argument
[all …]
Dlv_fs_win32.c41 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
42 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
43 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
44 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
45 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
245 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close() argument
248 return CloseHandle((HANDLE)file_p) in fs_close()
263 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b… in fs_read() argument
266 return ReadFile((HANDLE)file_p, buf, btr, (LPDWORD)br, NULL) in fs_read()
280 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3… in fs_write() argument
[all …]
Dlv_fs_uefi.c58 static lv_fs_res_t lv_fs_uefi_close_cb(lv_fs_drv_t * drv, void * file_p);
59 static lv_fs_res_t lv_fs_uefi_read_cb(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, u…
60 static lv_fs_res_t lv_fs_uefi_write_cb(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t…
61 static lv_fs_res_t lv_fs_uefi_seek_cb(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_…
62 static lv_fs_res_t lv_fs_uefi_tell_cb(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
194 static lv_fs_res_t lv_fs_uefi_close_cb(lv_fs_drv_t * drv, void * file_p) in lv_fs_uefi_close_cb() argument
197 lv_uefi_fs_file_context_t * file_ctx = (lv_uefi_fs_file_context_t *)file_p; in lv_fs_uefi_close_cb()
209 static lv_fs_res_t lv_fs_uefi_read_cb(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, u… in lv_fs_uefi_read_cb() argument
212 lv_uefi_fs_file_context_t * file_ctx = (lv_uefi_fs_file_context_t *)file_p; in lv_fs_uefi_read_cb()
228 static lv_fs_res_t lv_fs_uefi_write_cb(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t… in lv_fs_uefi_write_cb() argument
[all …]
/lvgl-latest/examples/porting/
Dlv_port_fs_template.c29 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
30 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
31 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
32 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
33 static lv_fs_res_t fs_size(lv_fs_drv_t * drv, void * file_p, uint32_t * size_p);
34 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
133 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p)
151 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
169 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
186 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence)
[all …]
/lvgl-latest/src/libs/freetype/
Dlv_ftsystem.c127 lv_fs_file_t * file_p = lv_malloc(sizeof(lv_fs_file_t)); in FT_Stream_Open() local
128 LV_ASSERT_MALLOC(file_p); in FT_Stream_Open()
130 if(!file_p) { in FT_Stream_Open()
136 *file_p = file; in FT_Stream_Open()
138 stream->descriptor.pointer = file_p; in FT_Stream_Open()
245 lv_fs_file_t * file_p = STREAM_FILE(stream); in ft_lv_fs_stream_close() local
246 lv_fs_close(file_p); in ft_lv_fs_stream_close()
247 lv_free(file_p); in ft_lv_fs_stream_close()
270 lv_fs_file_t * file_p; in ft_lv_fs_stream_io() local
275 file_p = STREAM_FILE(stream); in ft_lv_fs_stream_io()
[all …]
/lvgl-latest/docs/details/main-components/
Dfs.rst157 …lv_fs_res_t (*write_cb)(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint32_t…
159 For ``file_p``, LVGL passes the return value of ``open_cb``, ``buf`` is