Lines Matching refs:rd_buf

109 	char rd_buf[512];  in execute_long_pattern_write()  local
114 len = zms_read(fs, id, rd_buf, sizeof(rd_buf)); in execute_long_pattern_write()
125 len = zms_read(fs, id, rd_buf, sizeof(rd_buf)); in execute_long_pattern_write()
126 zassert_true(len == sizeof(rd_buf), "zms_read unexpected failure: %d", len); in execute_long_pattern_write()
127 zassert_mem_equal(wr_buf, rd_buf, sizeof(rd_buf), "RD buff should be equal to the WR buff"); in execute_long_pattern_write()
166 char rd_buf[512]; in ZTEST_F() local
177 err = zms_read(&fixture->fs, TEST_DATA_ID, rd_buf, sizeof(rd_buf)); in ZTEST_F()
188 len = zms_read(&fixture->fs, TEST_DATA_ID, rd_buf, sizeof(rd_buf)); in ZTEST_F()
189 zassert_true(len == sizeof(rd_buf), "zms_read unexpected failure: %d", len); in ZTEST_F()
190 zassert_mem_equal(wr_buf_1, rd_buf, sizeof(rd_buf), in ZTEST_F()
220 len = zms_read(&fixture->fs, TEST_DATA_ID, rd_buf, sizeof(rd_buf)); in ZTEST_F()
221 zassert_true(len == sizeof(rd_buf), "zms_read unexpected failure: %d", len); in ZTEST_F()
222 zassert_true(memcmp(wr_buf_2, rd_buf, sizeof(rd_buf)) != 0, in ZTEST_F()
225 zassert_mem_equal(wr_buf_1, rd_buf, sizeof(rd_buf), in ZTEST_F()
235 uint8_t rd_buf[32]; in ZTEST_F() local
256 len = zms_read(&fixture->fs, id, rd_buf, sizeof(buf)); in ZTEST_F()
257 zassert_true(len == sizeof(rd_buf), "zms_read unexpected failure: %d", len); in ZTEST_F()
259 for (int i = 0; i < sizeof(rd_buf); i++) { in ZTEST_F()
260 rd_buf[i] = rd_buf[i] % max_id; in ZTEST_F()
263 zassert_mem_equal(buf, rd_buf, sizeof(rd_buf), in ZTEST_F()
271 len = zms_read(&fixture->fs, id, rd_buf, sizeof(buf)); in ZTEST_F()
272 zassert_true(len == sizeof(rd_buf), "zms_read unexpected failure: %d", len); in ZTEST_F()
274 for (int i = 0; i < sizeof(rd_buf); i++) { in ZTEST_F()
275 rd_buf[i] = rd_buf[i] % max_id; in ZTEST_F()
278 zassert_mem_equal(buf, rd_buf, sizeof(rd_buf), in ZTEST_F()
301 uint8_t rd_buf[32]; in check_content() local
306 len = zms_read(fs, id, rd_buf, sizeof(buf)); in check_content()
307 zassert_true(len == sizeof(rd_buf), "zms_read unexpected failure: %d", len); in check_content()
309 for (int i = 0; i < ARRAY_SIZE(rd_buf); i++) { in check_content()
310 rd_buf[i] = rd_buf[i] % max_id; in check_content()
313 zassert_mem_equal(buf, rd_buf, sizeof(rd_buf), in check_content()