Lines Matching refs:buffer
118 if(file_p->cache->buffer) { in lv_fs_close()
119 lv_mem_free(file_p->cache->buffer); in lv_fs_close()
138 char * buffer = file_p->cache->buffer; in lv_fs_read_cached() local
148 lv_memcpy(buf, buffer + buffer_offset, btr); in lv_fs_read_cached()
153 lv_memcpy(buf, buffer + buffer_offset, buffer_remaining_length); in lv_fs_read_cached()
163 …res = file_p->drv->read_cb(file_p->drv, file_p->file_d, (void *)buffer, buffer_size, &bytes_read_t… in lv_fs_read_cached()
168 lv_memcpy(buf + buffer_remaining_length, buffer, data_chunk_remaining); in lv_fs_read_cached()
181 if(buffer == NULL) { in lv_fs_read_cached()
182 file_p->cache->buffer = lv_mem_alloc(buffer_size); in lv_fs_read_cached()
183 LV_ASSERT_MALLOC(file_p->cache->buffer); in lv_fs_read_cached()
184 buffer = file_p->cache->buffer; in lv_fs_read_cached()
188 …res = file_p->drv->read_cb(file_p->drv, file_p->file_d, (void *)buffer, buffer_size, &bytes_read_t… in lv_fs_read_cached()
193 lv_memcpy(buf, buffer, *br); in lv_fs_read_cached()