Lines Matching refs:eeprom

12 ZTEST_BMEM static const struct device *eeprom;  variable
15 ZTEST_USER(eeprom, test_size) in ZTEST_USER() argument
19 size = eeprom_get_size(eeprom); in ZTEST_USER()
24 ZTEST_USER(eeprom, test_out_of_bounds) in ZTEST_USER() argument
30 size = eeprom_get_size(eeprom); in ZTEST_USER()
32 rc = eeprom_write(eeprom, size - 1, data, sizeof(data)); in ZTEST_USER()
37 ZTEST_USER(eeprom, test_write_rewrite) in ZTEST_USER() argument
46 size = eeprom_get_size(eeprom); in ZTEST_USER()
50 rc = eeprom_write(eeprom, address, wr_buf1, sizeof(wr_buf1)); in ZTEST_USER()
53 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER()
64 rc = eeprom_write(eeprom, address, wr_buf2, sizeof(wr_buf2)); in ZTEST_USER()
67 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER()
78 ZTEST_USER(eeprom, test_write_at_fixed_address) in ZTEST_USER() argument
86 size = eeprom_get_size(eeprom); in ZTEST_USER()
89 rc = eeprom_write(eeprom, address, wr_buf1, sizeof(wr_buf1)); in ZTEST_USER()
92 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER()
101 ZTEST_USER(eeprom, test_write_byte) in ZTEST_USER() argument
108 rc = eeprom_write(eeprom, address, &wr, 1); in ZTEST_USER()
111 rc = eeprom_read(eeprom, address, &rd, 1); in ZTEST_USER()
119 ZTEST_USER(eeprom, test_write_at_increasing_address) in ZTEST_USER() argument
127 rc = eeprom_write(eeprom, address, wr_buf1, sizeof(wr_buf1)); in ZTEST_USER()
130 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER()
139 ZTEST_USER(eeprom, test_zero_length_write) in ZTEST_USER() argument
146 rc = eeprom_write(eeprom, 0, wr_buf1, sizeof(wr_buf1)); in ZTEST_USER()
149 rc = eeprom_read(eeprom, 0, rd_buf, sizeof(rd_buf)); in ZTEST_USER()
155 rc = eeprom_write(eeprom, 0, wr_buf2, 0); in ZTEST_USER()
158 rc = eeprom_read(eeprom, 0, rd_buf, sizeof(rd_buf)); in ZTEST_USER()
167 zassert_true(device_is_ready(eeprom), "EEPROM device not ready"); in eeprom_setup()
172 ZTEST_SUITE(eeprom, NULL, eeprom_setup, NULL, NULL, NULL);
177 eeprom = dev; in run_tests_on_eeprom()
179 printk("Running tests on device \"%s\"\n", eeprom->name); in run_tests_on_eeprom()
180 k_object_access_grant(eeprom, k_current_get()); in run_tests_on_eeprom()