Home
last modified time | relevance | path

Searched refs:btr (Results 1 – 9 of 9) sorted by relevance

/lvgl-3.7.0/src/misc/
Dlv_fs.c132 static lv_fs_res_t lv_fs_read_cached(lv_fs_file_t * file_p, char * buf, uint32_t btr, uint32_t * br) in lv_fs_read_cached() argument
146 if(btr <= buffer_remaining_length) { in lv_fs_read_cached()
148 lv_memcpy(buf, buffer + buffer_offset, btr); in lv_fs_read_cached()
149 *br = btr; in lv_fs_read_cached()
156 if(btr > buffer_size) { in lv_fs_read_cached()
159 btr - buffer_remaining_length, &bytes_read_to_buffer); in lv_fs_read_cached()
167 … uint16_t data_chunk_remaining = LV_MIN(btr - buffer_remaining_length, bytes_read_to_buffer); in lv_fs_read_cached()
170 *br = LV_MIN(buffer_remaining_length + bytes_read_to_buffer, btr); in lv_fs_read_cached()
175 if(btr > buffer_size) { in lv_fs_read_cached()
177 res = file_p->drv->read_cb(file_p->drv, file_p->file_d, (void *)buf, btr, br); in lv_fs_read_cached()
[all …]
Dlv_fs.h76 …lv_fs_res_t (*read_cb)(struct _lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_…
172 lv_fs_res_t lv_fs_read(lv_fs_file_t * file_p, void * buf, uint32_t btr, uint32_t * br);
/lvgl-3.7.0/src/extra/libs/fsdrv/
Dlv_fs_fatfs.c33 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
151 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
154 FRESULT res = f_read(file_p, buf, btr, (UINT *)br); in fs_read()
Dlv_fs_littlefs.c35 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
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()
Dlv_fs_posix.c39 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
144 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
147 *br = read((lv_uintptr_t)file_p, buf, btr); in fs_read()
Dlv_fs_stdio.c42 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
146 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
149 *br = fread(buf, 1, btr, file_p); in fs_read()
Dlv_fs_win32.c37 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
258 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
261 return ReadFile((HANDLE)file_p, buf, btr, (LPDWORD)br, NULL) in fs_read()
/lvgl-3.7.0/examples/porting/
Dlv_port_fs_template.c30 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
152 static lv_fs_res_t fs_read(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * b…
/lvgl-3.7.0/src/draw/
Dlv_img_decoder.c551 uint32_t btr = len * (px_size >> 3); in lv_img_decoder_built_in_line_true_color() local
553 res = lv_fs_read(&user_data->f, buf, btr, &br); in lv_img_decoder_built_in_line_true_color()
554 if(res != LV_FS_RES_OK || btr != br) { in lv_img_decoder_built_in_line_true_color()