Lines Matching refs:max_id

236 	const uint8_t max_id = 10;  in ZTEST_F()  local
246 uint8_t id = (i % max_id); in ZTEST_F()
247 uint8_t id_data = id + max_id * (i / max_id); in ZTEST_F()
255 for (int id = 0; id < max_id; id++) { in ZTEST_F()
260 rd_buf[i] = rd_buf[i] % max_id; in ZTEST_F()
270 for (int id = 0; id < max_id; id++) { in ZTEST_F()
275 rd_buf[i] = rd_buf[i] % max_id; in ZTEST_F()
283 static void write_content(uint32_t max_id, uint32_t begin, uint32_t end, struct zms_fs *fs) in write_content() argument
289 uint8_t id = (i % max_id); in write_content()
290 uint8_t id_data = id + max_id * (i / max_id); in write_content()
299 static void check_content(uint32_t max_id, struct zms_fs *fs) in check_content() argument
305 for (int id = 0; id < max_id; id++) { in check_content()
310 rd_buf[i] = rd_buf[i] % max_id; in check_content()
324 const uint16_t max_id = 10; in ZTEST_F() local
341 write_content(max_id, 0, max_writes, &fixture->fs); in ZTEST_F()
345 check_content(max_id, &fixture->fs); in ZTEST_F()
351 check_content(max_id, &fixture->fs); in ZTEST_F()
354 write_content(max_id, max_writes, max_writes_2, &fixture->fs); in ZTEST_F()
358 check_content(max_id, &fixture->fs); in ZTEST_F()
364 check_content(max_id, &fixture->fs); in ZTEST_F()
367 write_content(max_id, max_writes_2, max_writes_3, &fixture->fs); in ZTEST_F()
371 check_content(max_id, &fixture->fs); in ZTEST_F()
377 check_content(max_id, &fixture->fs); in ZTEST_F()
380 write_content(max_id, max_writes_3, max_writes_4, &fixture->fs); in ZTEST_F()
384 check_content(max_id, &fixture->fs); in ZTEST_F()
390 check_content(max_id, &fixture->fs); in ZTEST_F()
411 const uint16_t max_id = 10; in ZTEST_F() local
424 uint8_t id = (i % max_id); in ZTEST_F()
425 uint8_t id_data = id + max_id * (i / max_id); in ZTEST_F()
451 check_content(max_id, &fixture->fs); in ZTEST_F()
454 execute_long_pattern_write(max_id, &fixture->fs); in ZTEST_F()