Lines Matching refs:max_id
256 const uint16_t max_id = 10; in ZTEST_F() local
266 uint8_t id = (i % max_id); in ZTEST_F()
267 uint8_t id_data = id + max_id * (i / max_id); in ZTEST_F()
275 for (uint16_t id = 0; id < max_id; id++) { in ZTEST_F()
281 rd_buf[i] = rd_buf[i] % max_id; in ZTEST_F()
292 for (uint16_t id = 0; id < max_id; id++) { in ZTEST_F()
298 rd_buf[i] = rd_buf[i] % max_id; in ZTEST_F()
307 static void write_content(uint16_t max_id, uint16_t begin, uint16_t end, in write_content() argument
314 uint8_t id = (i % max_id); in write_content()
315 uint8_t id_data = id + max_id * (i / max_id); in write_content()
324 static void check_content(uint16_t max_id, struct nvs_fs *fs) in check_content() argument
330 for (uint16_t id = 0; id < max_id; id++) { in check_content()
336 rd_buf[i] = rd_buf[i] % max_id; in check_content()
352 const uint16_t max_id = 10; in ZTEST_F() local
370 write_content(max_id, 0, max_writes, &fixture->fs); in ZTEST_F()
375 check_content(max_id, &fixture->fs); in ZTEST_F()
382 check_content(max_id, &fixture->fs); in ZTEST_F()
385 write_content(max_id, max_writes, max_writes_2, &fixture->fs); in ZTEST_F()
390 check_content(max_id, &fixture->fs); in ZTEST_F()
397 check_content(max_id, &fixture->fs); in ZTEST_F()
400 write_content(max_id, max_writes_2, max_writes_3, &fixture->fs); in ZTEST_F()
405 check_content(max_id, &fixture->fs); in ZTEST_F()
412 check_content(max_id, &fixture->fs); in ZTEST_F()
415 write_content(max_id, max_writes_3, max_writes_4, &fixture->fs); in ZTEST_F()
420 check_content(max_id, &fixture->fs); in ZTEST_F()
427 check_content(max_id, &fixture->fs); in ZTEST_F()
474 const uint16_t max_id = 10; in ZTEST_F() local
492 uint8_t id = (i % max_id); in ZTEST_F()
493 uint8_t id_data = id + max_id * (i / max_id); in ZTEST_F()
523 check_content(max_id, &fixture->fs); in ZTEST_F()
526 execute_long_pattern_write(max_id, &fixture->fs); in ZTEST_F()