Lines Matching refs:buf
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…
116 char buf[LV_FS_MAX_PATH_LEN]; in fs_open() local
117 lv_snprintf(buf, sizeof(buf), LV_FS_POSIX_PATH "%s", path); in fs_open()
119 int fd = open(buf, flags, 0666); in fs_open()
121 LV_LOG_WARN("Could not open file: %s, flags: 0x%x, errno: %d", buf, flags, errno); in fs_open()
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
164 ssize_t ret = read(fd, buf, btr); in fs_read()
183 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
188 ssize_t ret = write(fd, buf, btw); in fs_write()
268 char buf[256]; in fs_dir_open() local
269 lv_snprintf(buf, sizeof(buf), LV_FS_POSIX_PATH "%s", path); in fs_dir_open()
271 void * dir = opendir(buf); in fs_dir_open()
273 LV_LOG_WARN("Could not open directory: %s, errno: %d", buf, errno); in fs_dir_open()