Lines Matching refs:file_p

33 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p);
35 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
36 static lv_fs_res_t fs_write(lv_fs_drv_t * drv, void * file_p, const void * buf, uint32_t btw, uint3…
38 static lv_fs_res_t fs_seek(lv_fs_drv_t * drv, void * file_p, uint32_t pos, lv_fs_whence_t whence);
39 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
138 lfs_file_t * file_p = lv_mem_alloc(sizeof(lfs_file_t)); in fs_open() local
139 if(file_p == NULL) return NULL; in fs_open()
141 int result = lfs_file_open(lfs_p, file_p, path, flags); in fs_open()
144 lv_mem_free(file_p); in fs_open()
148 return file_p; in fs_open()
157 static lv_fs_res_t fs_close(lv_fs_drv_t * drv, void * file_p) in fs_close() argument
161 int result = lfs_file_close(lfs_p, file_p); in fs_close()
162 lv_mem_free(file_p); in fs_close()
178 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
182 lfs_ssize_t result = lfs_file_read(lfs_p, file_p, buf, btr); in fs_read()
198 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
203 lfs_ssize_t result = lfs_file_write(lfs_p, file_p, buf, btw); in fs_write()
204 if(result < 0 || lfs_file_sync(lfs_p, file_p) < 0) return LV_FS_RES_UNKNOWN; in fs_write()
221 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
229 lfs_soff_t result = lfs_file_seek(lfs_p, file_p, pos, lfs_whence); in fs_seek()
243 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p) in fs_tell() argument
247 lfs_soff_t result = lfs_file_tell(lfs_p, file_p); in fs_tell()