Searched refs:SIZEOF_FIELD (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/tests/subsys/fs/zms/src/ |
D | main.c | 595 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/ |
D | gpio_gecko.c | 68 #define NUMBER_OF_PORTS (SIZEOF_FIELD(GPIO_TypeDef, P) / \ 69 SIZEOF_FIELD(GPIO_TypeDef, P[0]))
|
/Zephyr-latest/tests/unit/util/ |
D | main.c | 816 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/ |
D | zms.c | 371 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/ |
D | util.h | 298 #define SIZEOF_FIELD(type, member) sizeof((((type *)0)->member)) macro
|