Lines Matching refs:file
60 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()
95 static lv_fs_res_t lvgl_fs_read(lv_fs_drv_t *drv, void *file, void *buf, uint32_t btr, uint32_t *br) in lvgl_fs_read() argument
99 err = fs_read((struct fs_file_t *)file, buf, btr); in lvgl_fs_read()
111 static lv_fs_res_t lvgl_fs_write(lv_fs_drv_t *drv, void *file, const void *buf, uint32_t btw, in lvgl_fs_write() argument
116 err = fs_write((struct fs_file_t *)file, buf, btw); in lvgl_fs_write()
135 static lv_fs_res_t lvgl_fs_seek(lv_fs_drv_t *drv, void *file, uint32_t pos, lv_fs_whence_t whence) in lvgl_fs_seek() argument
152 err = fs_seek((struct fs_file_t *)file, pos, fs_whence); in lvgl_fs_seek()
156 static lv_fs_res_t lvgl_fs_tell(lv_fs_drv_t *drv, void *file, uint32_t *pos_p) in lvgl_fs_tell() argument
160 pos = fs_tell((struct fs_file_t *)file); in lvgl_fs_tell()