Lines Matching refs:rd_buf
112 char rd_buf[512]; in execute_long_pattern_write() local
117 len = nvs_read(fs, id, rd_buf, sizeof(rd_buf)); in execute_long_pattern_write()
128 len = nvs_read(fs, id, rd_buf, sizeof(rd_buf)); in execute_long_pattern_write()
129 zassert_true(len == sizeof(rd_buf), "nvs_read unexpected failure: %d", in execute_long_pattern_write()
131 zassert_mem_equal(wr_buf, rd_buf, sizeof(rd_buf), in execute_long_pattern_write()
171 char rd_buf[512]; in ZTEST_F() local
182 err = nvs_read(&fixture->fs, TEST_DATA_ID, rd_buf, sizeof(rd_buf)); in ZTEST_F()
193 len = nvs_read(&fixture->fs, TEST_DATA_ID, rd_buf, sizeof(rd_buf)); in ZTEST_F()
194 zassert_true(len == sizeof(rd_buf), "nvs_read unexpected failure: %d", in ZTEST_F()
196 zassert_mem_equal(wr_buf_1, rd_buf, sizeof(rd_buf), in ZTEST_F()
238 len = nvs_read(&fixture->fs, TEST_DATA_ID, rd_buf, sizeof(rd_buf)); in ZTEST_F()
239 zassert_true(len == sizeof(rd_buf), "nvs_read unexpected failure: %d", in ZTEST_F()
241 zassert_true(memcmp(wr_buf_2, rd_buf, sizeof(rd_buf)) != 0, in ZTEST_F()
244 zassert_mem_equal(wr_buf_1, rd_buf, sizeof(rd_buf), in ZTEST_F()
254 uint8_t rd_buf[32]; in ZTEST_F() local
276 len = nvs_read(&fixture->fs, id, rd_buf, sizeof(buf)); in ZTEST_F()
277 zassert_true(len == sizeof(rd_buf), in ZTEST_F()
280 for (uint16_t i = 0; i < sizeof(rd_buf); i++) { in ZTEST_F()
281 rd_buf[i] = rd_buf[i] % max_id; in ZTEST_F()
284 zassert_mem_equal(buf, rd_buf, sizeof(rd_buf), in ZTEST_F()
293 len = nvs_read(&fixture->fs, id, rd_buf, sizeof(buf)); in ZTEST_F()
294 zassert_true(len == sizeof(rd_buf), in ZTEST_F()
297 for (uint16_t i = 0; i < sizeof(rd_buf); i++) { in ZTEST_F()
298 rd_buf[i] = rd_buf[i] % max_id; in ZTEST_F()
301 zassert_mem_equal(buf, rd_buf, sizeof(rd_buf), in ZTEST_F()
326 uint8_t rd_buf[32]; in check_content() local
331 len = nvs_read(fs, id, rd_buf, sizeof(buf)); in check_content()
332 zassert_true(len == sizeof(rd_buf), in check_content()
335 for (uint16_t i = 0; i < ARRAY_SIZE(rd_buf); i++) { in check_content()
336 rd_buf[i] = rd_buf[i] % max_id; in check_content()
339 zassert_mem_equal(buf, rd_buf, sizeof(rd_buf), in check_content()