Lines Matching refs:res

30     lv_fs_res_t res;  in test_read()  local
41 res = lv_fs_open(&fa, "A:src/test_files/readtest.txt", LV_FS_MODE_RD); in test_read()
42 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read()
46 res = lv_fs_open(&fb, "B:src/test_files/readtest.txt", LV_FS_MODE_RD); in test_read()
47 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read()
54 res = lv_fs_read(&fa, buf, sizeof(buf), &br); in test_read()
55 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read()
58 res = lv_fs_read(&fb, buf, sizeof(buf), &br); in test_read()
59 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read()
128 lv_fs_res_t res; in read_random_drv() local
130 res = lv_fs_open(&f, fn, LV_FS_MODE_WR); in read_random_drv()
131 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in read_random_drv()
137 res = lv_fs_write(&f, buf256, 256, NULL); in read_random_drv()
138 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in read_random_drv()
140 res = lv_fs_close(&f); in read_random_drv()
141 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in read_random_drv()
143 res = lv_fs_open(&f, fn, LV_FS_MODE_RD); in read_random_drv()
144 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in read_random_drv()
176 res = lv_fs_close(&f); in read_random_drv()
177 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in read_random_drv()
189 lv_fs_res_t res; 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()
192 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_write_read_random()
193 res = lv_fs_close(&f); in test_write_read_random()
194 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); 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()
196 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_write_read_random()
200 res = lv_fs_write(&f, buf1000, 1000, NULL); in test_write_read_random()
201 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_write_read_random()
230 res = lv_fs_seek(&f, pos, LV_FS_SEEK_SET); in test_write_read_random()
231 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_write_read_random()
237 res = lv_fs_read(&f, buf, amount, &bres); in test_write_read_random()
238 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_write_read_random()
249 res = lv_fs_write(&f, buf, amount, &bres); in test_write_read_random()
250 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_write_read_random()
256 res = lv_fs_seek(&f, pos, LV_FS_SEEK_SET); in test_write_read_random()
257 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_write_read_random()
265 res = lv_fs_seek(&f, 0, LV_FS_SEEK_END); in test_write_read_random()
266 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_write_read_random()
267 res = lv_fs_tell(&f, &tell_pos); in test_write_read_random()
268 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_write_read_random()
271 res = lv_fs_close(&f); in test_write_read_random()
272 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_write_read_random()