Lines Matching refs:f
11 static void read_range(lv_fs_file_t * f, uint32_t from, uint32_t to);
87 static void read_range(lv_fs_file_t * f, uint32_t from, uint32_t to) in read_range() argument
89 lv_fs_seek(f, from, LV_FS_SEEK_SET); in read_range()
94 lv_fs_read(f, buf_rd, len, &br); in read_range()
104 static void read_next(lv_fs_file_t * f, uint32_t from, uint32_t len) in read_next() argument
108 lv_fs_read(f, buf_rd, len, &br); in read_next()
129 lv_fs_file_t f; in read_random_drv() local
130 res = lv_fs_open(&f, fn, LV_FS_MODE_WR); in read_random_drv()
137 res = lv_fs_write(&f, buf256, 256, NULL); in read_random_drv()
140 res = lv_fs_close(&f); in read_random_drv()
143 res = lv_fs_open(&f, fn, LV_FS_MODE_RD); in read_random_drv()
165 read_range(&f, from, to); in read_random_drv()
169 read_next(&f, from, next); in read_random_drv()
173 read_next(&f, from, next); in read_random_drv()
176 res = lv_fs_close(&f); in read_random_drv()
190 lv_fs_file_t f; in test_write_read_random() local
191 res = lv_fs_open(&f, "A:fs_write_read_random.bin", LV_FS_MODE_WR); in test_write_read_random()
193 res = lv_fs_close(&f); in test_write_read_random()
195 res = lv_fs_open(&f, "A:fs_write_read_random.bin", LV_FS_MODE_WR | LV_FS_MODE_RD); in test_write_read_random()
200 res = lv_fs_write(&f, buf1000, 1000, NULL); in test_write_read_random()
230 res = lv_fs_seek(&f, pos, LV_FS_SEEK_SET); in test_write_read_random()
237 res = lv_fs_read(&f, buf, amount, &bres); in test_write_read_random()
249 res = lv_fs_write(&f, buf, amount, &bres); in test_write_read_random()
256 res = lv_fs_seek(&f, pos, LV_FS_SEEK_SET); in test_write_read_random()
265 res = lv_fs_seek(&f, 0, LV_FS_SEEK_END); in test_write_read_random()
267 res = lv_fs_tell(&f, &tell_pos); in test_write_read_random()
271 res = lv_fs_close(&f); in test_write_read_random()