/Zephyr-latest/tests/drivers/eeprom/api/src/ |
D | main.c | 41 uint8_t rd_buf[sizeof(wr_buf1)]; in ZTEST_USER() local 53 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER() 56 rc = memcmp(wr_buf1, rd_buf, sizeof(wr_buf1)); in ZTEST_USER() 67 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER() 70 rc = memcmp(wr_buf2, rd_buf, sizeof(wr_buf2)); in ZTEST_USER() 81 uint8_t rd_buf[sizeof(wr_buf1)]; in ZTEST_USER() local 92 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER() 95 rc = memcmp(wr_buf1, rd_buf, sizeof(wr_buf1)); in ZTEST_USER() 123 uint8_t rd_buf[sizeof(wr_buf1)]; in ZTEST_USER() local 130 rc = eeprom_read(eeprom, address, rd_buf, sizeof(rd_buf)); in ZTEST_USER() [all …]
|
/Zephyr-latest/tests/subsys/fs/zms/src/ |
D | main.c | 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() [all …]
|
/Zephyr-latest/tests/boards/altera_max10/qspi/src/ |
D | qspi_flash.c | 22 uint8_t rd_buf[2]; in ZTEST() local 66 &rd_buf, sizeof(rd_buf)), in ZTEST() 68 zassert_equal(memcmp(wr_buf + 1, rd_buf, sizeof(rd_buf)), in ZTEST()
|
/Zephyr-latest/tests/subsys/fs/nvs/src/ |
D | main.c | 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() [all …]
|
/Zephyr-latest/drivers/adc/ |
D | adc_ltc2451.c | 64 uint8_t rd_buf[2]; in ltc2451_read_latest_conversion() local 66 int err = i2c_read_dt(&config->i2c, rd_buf, sizeof(rd_buf)); in ltc2451_read_latest_conversion() 70 value_buf[0] = sys_get_be16(rd_buf); in ltc2451_read_latest_conversion()
|
/Zephyr-latest/drivers/eeprom/ |
D | eeprom_shell.c | 75 uint8_t rd_buf[CONFIG_EEPROM_SHELL_BUFFER_SIZE]; in cmd_write() local 117 err = eeprom_read(eeprom, offset, rd_buf, len); in cmd_write() 123 if (memcmp(wr_buf, rd_buf, len) != 0) { in cmd_write() 150 uint8_t rd_buf[CONFIG_EEPROM_SHELL_BUFFER_SIZE]; in cmd_fill() local 197 err = eeprom_read(eeprom, addr, rd_buf, pending); in cmd_fill() 203 if (memcmp(wr_buf, rd_buf, pending) != 0) { in cmd_fill()
|