Lines Matching refs:file_p
37 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()
175 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
178 FRESULT res = f_write(file_p, buf, btw, (UINT *)bw); in fs_write()
192 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
197 f_lseek(file_p, pos); in fs_seek()
200 f_lseek(file_p, f_tell((FIL *)file_p) + pos); in fs_seek()
203 f_lseek(file_p, f_size((FIL *)file_p) + pos); in fs_seek()
219 static lv_fs_res_t fs_tell(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p) in fs_tell() argument
222 *pos_p = f_tell((FIL *)file_p); in fs_tell()