Home
last modified time | relevance | path

Searched refs:SIZEOF_FIELD (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/tests/subsys/fs/zms/src/
Dmain.c595 crc8_ccitt(0xff, (uint8_t *)&empty_ate + SIZEOF_FIELD(struct zms_ate, crc8), in ZTEST_F()
596 sizeof(struct zms_ate) - SIZEOF_FIELD(struct zms_ate, crc8)); in ZTEST_F()
604 ate.crc8 = crc8_ccitt(0xff, (uint8_t *)&ate + SIZEOF_FIELD(struct zms_ate, crc8), in ZTEST_F()
605 sizeof(struct zms_ate) - SIZEOF_FIELD(struct zms_ate, crc8)); in ZTEST_F()
656 crc8_ccitt(0xff, (uint8_t *)&close_ate + SIZEOF_FIELD(struct zms_ate, crc8), in ZTEST_F()
657 sizeof(struct zms_ate) - SIZEOF_FIELD(struct zms_ate, crc8)); in ZTEST_F()
/Zephyr-latest/drivers/gpio/
Dgpio_gecko.c68 #define NUMBER_OF_PORTS (SIZEOF_FIELD(GPIO_TypeDef, P) / \
69 SIZEOF_FIELD(GPIO_TypeDef, P[0]))
/Zephyr-latest/tests/unit/util/
Dmain.c816 BUILD_ASSERT(SIZEOF_FIELD(struct test_t, a) == 4, "The a member is 4-byte wide."); in ZTEST()
817 BUILD_ASSERT(SIZEOF_FIELD(struct test_t, b) == 1, "The b member is 1-byte wide."); in ZTEST()
818 BUILD_ASSERT(SIZEOF_FIELD(struct test_t, c) == 17, "The c member is 17-byte wide."); in ZTEST()
819 BUILD_ASSERT(SIZEOF_FIELD(struct test_t, d) == 2, "The d member is 2-byte wide."); in ZTEST()
/Zephyr-latest/subsys/fs/zms/
Dzms.c371 crc8 = crc8_ccitt(0xff, (uint8_t *)entry + SIZEOF_FIELD(struct zms_ate, crc8), in zms_ate_crc8_update()
372 sizeof(struct zms_ate) - SIZEOF_FIELD(struct zms_ate, crc8)); in zms_ate_crc8_update()
384 crc8 = crc8_ccitt(0xff, (uint8_t *)entry + SIZEOF_FIELD(struct zms_ate, crc8), in zms_ate_crc8_check()
385 sizeof(struct zms_ate) - SIZEOF_FIELD(struct zms_ate, crc8)); in zms_ate_crc8_check()
/Zephyr-latest/include/zephyr/sys/
Dutil.h298 #define SIZEOF_FIELD(type, member) sizeof((((type *)0)->member)) macro