Searched refs:prev_val (Results 1 – 9 of 9) sorted by relevance
/Zephyr-latest/boards/qemu/cortex_m0/ |
D | nrf_timer_timer.c | 73 uint32_t prev_val; in prevent_false_prev_evt() local 81 prev_val = get_comparator(); in prevent_false_prev_evt() 85 if (counter_sub(prev_val, now) == 1) { in prevent_false_prev_evt()
|
/Zephyr-latest/include/zephyr/sys/ |
D | bitarray.h | 134 int sys_bitarray_test_and_set_bit(sys_bitarray_t *bitarray, size_t bit, int *prev_val); 147 int sys_bitarray_test_and_clear_bit(sys_bitarray_t *bitarray, size_t bit, int *prev_val);
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/dut/src/ |
D | main.c | 228 static uint16_t prev_val; in gatt_read() local 239 ASSERT(prev_val == value, "Something's up: expected %d got %d", prev_val, value); in gatt_read() 240 prev_val++; in gatt_read()
|
/Zephyr-latest/lib/utils/ |
D | bitarray.c | 413 int sys_bitarray_test_and_set_bit(sys_bitarray_t *bitarray, size_t bit, int *prev_val) in sys_bitarray_test_and_set_bit() argument 424 CHECKIF(prev_val == NULL) { in sys_bitarray_test_and_set_bit() 438 *prev_val = 1; in sys_bitarray_test_and_set_bit() 440 *prev_val = 0; in sys_bitarray_test_and_set_bit() 452 int sys_bitarray_test_and_clear_bit(sys_bitarray_t *bitarray, size_t bit, int *prev_val) in sys_bitarray_test_and_clear_bit() argument 463 CHECKIF(prev_val == NULL) { in sys_bitarray_test_and_clear_bit() 477 *prev_val = 1; in sys_bitarray_test_and_clear_bit() 479 *prev_val = 0; in sys_bitarray_test_and_clear_bit()
|
/Zephyr-latest/drivers/counter/ |
D | counter_nrfx_rtc.c | 236 uint32_t prev_val; in set_cc() local 259 prev_val = nrfy_rtc_cc_get(rtc, chan); in set_cc() 264 if (ticks_sub(dev, prev_val, now, top) == 1) { in set_cc()
|
D | counter_nrfx_timer.c | 149 uint32_t prev_val; in set_cc() local 163 prev_val = nrf_timer_cc_get(reg, chan); in set_cc()
|
D | counter_ll_stm32_timer.c | 204 uint32_t prev_val; in counter_stm32_set_cc() local 217 prev_val = get_timer_compare[id](timer); in counter_stm32_set_cc()
|
/Zephyr-latest/drivers/can/ |
D | can_xmc4xxx.c | 233 int prev_val; in can_xmc4xxx_get_mo() local 235 sys_bitarray_test_and_set_bit(&mo_usage_bitarray, i, &prev_val); in can_xmc4xxx_get_mo() 236 if (prev_val == 0) { in can_xmc4xxx_get_mo()
|
/Zephyr-latest/drivers/tee/optee/ |
D | optee.c | 474 int prev_val; in optee_notif_wait() local 494 rc = sys_bitarray_test_and_clear_bit(data->notif_bitmap, key, &prev_val); in optee_notif_wait() 495 if (rc || prev_val) { in optee_notif_wait()
|