Searched refs:u32_add_overflow (Results 1 – 12 of 12) sorted by relevance
/Zephyr-latest/tests/unit/math_extras/ |
D | tests.inc | 15 zassert_false(u32_add_overflow(2, 3, &result)); 18 zassert_false(u32_add_overflow(2, 0, &result)); 21 zassert_false(u32_add_overflow(0, 3, &result)); 24 zassert_false(u32_add_overflow(0, UINT32_MAX, &result)); 26 zassert_true(u32_add_overflow(1, UINT32_MAX, &result)); 29 zassert_false(u32_add_overflow(UINT32_MAX, 0, &result)); 31 zassert_true(u32_add_overflow(UINT32_MAX, 2, &result));
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_mcux_pwt.c | 170 if (u32_add_overflow(high_overflows, low_overflows, &period)) { in mcux_pwt_calc_period() 180 if (u32_add_overflow(period, ppw, &period)) { in mcux_pwt_calc_period() 185 if (u32_add_overflow(period, npw, &period)) { in mcux_pwt_calc_period() 205 if (u32_add_overflow(pulse, pw, &pulse)) { in mcux_pwt_calc_pulse() 229 data->overflowed |= u32_add_overflow(1, in mcux_pwt_isr() 232 data->overflowed |= u32_add_overflow(1, in mcux_pwt_isr()
|
D | pwm_mcux_ftm.c | 349 if (u32_add_overflow(cycles, second_cnv, &cycles)) { in mcux_ftm_capture_second_edge()
|
/Zephyr-latest/include/zephyr/sys/ |
D | math_extras.h | 51 static bool u32_add_overflow(uint32_t a, uint32_t b, uint32_t *result);
|
D | math_extras_impl.h | 37 static inline bool u32_add_overflow(uint32_t a, uint32_t b, uint32_t *result) in u32_add_overflow() function 61 static inline bool u32_add_overflow(uint32_t a, uint32_t b, uint32_t *result) in u32_add_overflow() function
|
/Zephyr-latest/arch/arm/core/mpu/cortex_a_r/ |
D | arm_mpu_internal.h | 139 if (u32_add_overflow(start, size, &end)) { in is_in_region()
|
/Zephyr-latest/arch/arm/core/mpu/cortex_m/ |
D | arm_mpu_internal.h | 110 if (u32_add_overflow(start, size, &end)) { in is_in_region()
|
/Zephyr-latest/drivers/led/ |
D | led_pwm.c | 44 if (u32_add_overflow(delay_on, delay_off, &period_usec) || in led_pwm_blink()
|
/Zephyr-latest/drivers/flash/ |
D | flash_util.c | 100 if (u32_add_overflow((uint32_t)offset, (uint32_t)size, &end) || (end > INT32_MAX)) { in off_add_overflow()
|
D | flash_stm32wb0x.c | 115 return !u32_add_overflow(offset, len, &offset_plus_len) in is_valid_flash_range()
|
/Zephyr-latest/arch/arm/core/mpu/ |
D | nxp_mpu.c | 525 if (u32_add_overflow(start, size, &end)) { in is_in_region()
|
D | arm_mpu_v8_internal.h | 381 if (u32_add_overflow(start, size, &end)) { in is_in_region()
|