Lines Matching full:sizeof
39 for (offs = 0; offs < fa->fa_size; offs += sizeof(temp)) { in ZTEST()
40 ret = flash_area_read(fa, offs, &temp, sizeof(temp)); in ZTEST()
43 ret = flash_area_write(fa, offs, &temp2, sizeof(temp)); in ZTEST()
51 for (offs = 0; offs < fa->fa_size; offs += sizeof(temp)) { in ZTEST()
52 ret = flash_area_read(fa, offs, &temp, sizeof(temp)); in ZTEST()
80 ret = flash_area_read(fa, fa->fa_size - sizeof(expectation), in ZTEST()
81 &readout, sizeof(readout)); in ZTEST()
84 zassert(memcmp(expectation, readout, sizeof(expectation)) == 0, in ZTEST()
92 ret = flash_area_read(fa, fa->fa_size - sizeof(expectation), in ZTEST()
93 &readout, sizeof(readout)); in ZTEST()
96 zassert(memcmp(&expectation[2], &readout[2], sizeof(expectation) - in ZTEST()
97 2 * sizeof(expectation[0])) == 0, "pass", "fail"); in ZTEST()
111 memset(&flag[1], 0xff, sizeof(flag) - 1); in ZTEST()
122 ret = flash_area_read(fa, fa->fa_size - sizeof(img_magic), in ZTEST()
123 &readout, sizeof(img_magic)); in ZTEST()
126 if (memcmp(img_magic, readout, sizeof(img_magic)) != 0) { in ZTEST()
133 ret = flash_area_write(fa, fa->fa_size - 32, &flag, sizeof(flag)); in ZTEST()
140 sizeof(readout[0])); in ZTEST()