Home
last modified time | relevance | path

Searched refs:empty_ate (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/fs/zms/
Dzms.c21 static int zms_get_sector_header(struct zms_fs *fs, uint64_t addr, struct zms_ate *empty_ate,
488 static int zms_validate_closed_sector(struct zms_fs *fs, uint64_t addr, struct zms_ate *empty_ate, in zms_validate_closed_sector() argument
494 rc = zms_get_sector_header(fs, addr, empty_ate, close_ate); in zms_validate_closed_sector()
499 if (zms_empty_ate_valid(fs, empty_ate) && zms_close_ate_valid(fs, close_ate) && in zms_validate_closed_sector()
500 (empty_ate->cycle_cnt == close_ate->cycle_cnt)) { in zms_validate_closed_sector()
594 struct zms_ate empty_ate; in zms_compute_prev_addr() local
610 sec_closed = zms_validate_closed_sector(fs, *addr, &empty_ate, &close_ate); in zms_compute_prev_addr()
727 struct zms_ate empty_ate; in zms_add_empty_ate() local
735 empty_ate.id = ZMS_HEAD_ID; in zms_add_empty_ate()
736 empty_ate.len = 0xffff; in zms_add_empty_ate()
[all …]
/Zephyr-latest/tests/subsys/fs/zms/src/
Dmain.c576 struct zms_ate empty_ate; in ZTEST_F() local
589 empty_ate.id = 0xffffffff; in ZTEST_F()
590 empty_ate.offset = 0; in ZTEST_F()
591 empty_ate.len = 0xffff; in ZTEST_F()
592 empty_ate.metadata = 0x4201; in ZTEST_F()
593 empty_ate.cycle_cnt = 1; in ZTEST_F()
594 empty_ate.crc8 = in ZTEST_F()
595 crc8_ccitt(0xff, (uint8_t *)&empty_ate + SIZEOF_FIELD(struct zms_ate, crc8), in ZTEST_F()
610 &empty_ate, sizeof(empty_ate)); in ZTEST_F()