Lines Matching refs:rc

28 	int rc;  in ZTEST_USER()  local
32 rc = eeprom_write(eeprom, size - 1, data, sizeof(data)); in ZTEST_USER()
33 zassert_equal(-EINVAL, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
44 int rc; in ZTEST_USER() local
50 rc = eeprom_write(eeprom, address, wr_buf1, sizeof(wr_buf1)); in ZTEST_USER()
51 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
53 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER()
54 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
56 rc = memcmp(wr_buf1, rd_buf, sizeof(wr_buf1)); in ZTEST_USER()
57 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
64 rc = eeprom_write(eeprom, address, wr_buf2, sizeof(wr_buf2)); in ZTEST_USER()
65 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
67 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER()
68 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
70 rc = memcmp(wr_buf2, rd_buf, sizeof(wr_buf2)); in ZTEST_USER()
71 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
84 int rc; in ZTEST_USER() local
89 rc = eeprom_write(eeprom, address, wr_buf1, sizeof(wr_buf1)); in ZTEST_USER()
90 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
92 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER()
93 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
95 rc = memcmp(wr_buf1, rd_buf, sizeof(wr_buf1)); in ZTEST_USER()
96 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
105 int rc; in ZTEST_USER() local
108 rc = eeprom_write(eeprom, address, &wr, 1); in ZTEST_USER()
109 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
111 rc = eeprom_read(eeprom, address, &rd, 1); in ZTEST_USER()
112 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
114 zassert_equal(wr - rd, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
124 int rc; in ZTEST_USER() local
127 rc = eeprom_write(eeprom, address, wr_buf1, sizeof(wr_buf1)); in ZTEST_USER()
128 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
130 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER()
131 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
133 rc = memcmp(wr_buf1, rd_buf, sizeof(wr_buf1)); in ZTEST_USER()
134 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
144 int rc; in ZTEST_USER() local
146 rc = eeprom_write(eeprom, 0, wr_buf1, sizeof(wr_buf1)); in ZTEST_USER()
147 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
149 rc = eeprom_read(eeprom, 0, rd_buf, sizeof(rd_buf)); in ZTEST_USER()
150 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
152 rc = memcmp(wr_buf1, rd_buf, sizeof(wr_buf1)); in ZTEST_USER()
153 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
155 rc = eeprom_write(eeprom, 0, wr_buf2, 0); in ZTEST_USER()
156 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
158 rc = eeprom_read(eeprom, 0, rd_buf, sizeof(rd_buf)); in ZTEST_USER()
159 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()
161 rc = memcmp(wr_buf1, rd_buf, sizeof(wr_buf1)); in ZTEST_USER()
162 zassert_equal(0, rc, "Unexpected error code (%d)", rc); in ZTEST_USER()