Searched refs:current_state (Results 1 – 10 of 10) sorted by relevance
/Zephyr-latest/subsys/bluetooth/services/bas/ |
D | bas_bcs.c | 68 bool current_state = (battery_critical_status & BT_BAS_BCS_BATTERY_CRITICAL_STATE) != 0; in bt_bas_bcs_set_battery_critical_state() local 70 if (current_state == critical_state) { in bt_bas_bcs_set_battery_critical_state() 85 bool current_state = (battery_critical_status & BT_BAS_BCS_IMMEDIATE_SERVICE_REQUIRED) != 0; in bt_bas_bcs_set_immediate_service_required() local 87 if (current_state == service_required) { in bt_bas_bcs_set_immediate_service_required()
|
/Zephyr-latest/tests/boards/nrf/mram_latency/src/ |
D | main.c | 19 static volatile uint32_t current_state; variable 44 current_state = state; in monitor_cb() 139 zassert_equal(current_state, ONOFF_STATE_OFF); in ZTEST() 141 zassert_equal(current_state, ONOFF_STATE_ON); in ZTEST() 143 zassert_equal(current_state, ONOFF_STATE_OFF); in ZTEST() 171 zassert_equal(current_state, ONOFF_STATE_OFF); in before() 176 zassert_equal(current_state, ONOFF_STATE_OFF); in after()
|
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v2/src/ |
D | kernel.c | 37 int32_t state_before_lock, state_after_lock, current_state; in lock_unlock_check() local 52 current_state = osKernelRestoreLock(state_before_lock); in lock_unlock_check() 54 zassert_true(current_state == osErrorISR); in lock_unlock_check() 56 zassert_equal(current_state, state_before_lock); in lock_unlock_check()
|
/Zephyr-latest/samples/drivers/can/counter/src/ |
D | main.c | 36 enum can_state current_state; variable 174 state_to_str(current_state), in state_change_work_handler() 185 current_state = state; in state_change_callback()
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_pca953x.c | 115 uint8_t current_state; in gpio_pca953x_handle_interrupt() local 135 current_state = drv_data->pin_state.input; in gpio_pca953x_handle_interrupt() 136 transitioned_pins = previous_state ^ current_state; in gpio_pca953x_handle_interrupt() 140 current_state); in gpio_pca953x_handle_interrupt()
|
D | gpio_tca6424a.c | 186 uint32_t current_state; in tca6424a_handle_interrupt() local 200 ret = update_input_regs(dev, ¤t_state); in tca6424a_handle_interrupt() 207 transitioned_pins = previous_state ^ current_state; in tca6424a_handle_interrupt() 210 interrupt_status = (irq_state->rising & transitioned_pins & current_state); in tca6424a_handle_interrupt()
|
/Zephyr-latest/soc/intel/intel_adsp/common/ |
D | ipc.c | 145 enum pm_device_state current_state; in intel_adsp_ipc_send_message() local 147 if (pm_device_state_get(INTEL_ADSP_IPC_HOST_DEV, ¤t_state) != 0 || in intel_adsp_ipc_send_message() 148 current_state != PM_DEVICE_STATE_ACTIVE) { in intel_adsp_ipc_send_message()
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_nxp_fs26.c | 375 uint32_t current_state; in fs26_goto_init_fs_state() local 379 current_state = rx_frame.data & FS_STATES_MASK; in fs26_goto_init_fs_state() 380 if (current_state < FS_STATES_INIT_FS) { in fs26_goto_init_fs_state() 381 LOG_ERR("Cannot go to INIT_FS from current state %x", current_state); in fs26_goto_init_fs_state() 383 } else if (current_state == FS_STATES_INIT_FS) { in fs26_goto_init_fs_state()
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_parser.c | 206 int cb_notify(struct http_parser *parser, enum state *current_state, http_cb cb, in cb_notify() argument 215 parser->state = *current_state; in cb_notify() 219 *current_state = parser->state; in cb_notify() 231 enum state *current_state, size_t *parsed, size_t already_parsed, in cb_data() argument 244 parser->state = *current_state; in cb_data() 249 *current_state = parser->state; in cb_data() 657 enum state *current_state, size_t *parsed, in zero_content_length() argument 660 enum state p_state = *current_state; in zero_content_length() 701 *current_state = p_state; in zero_content_length()
|
/Zephyr-latest/subsys/usb/usb_c/ |
D | usbc_pe_common.c | 1166 enum usbc_pe_state current_state = pe_get_state(dev); in pe_sender_response_run() local 1179 switch (current_state) { in pe_sender_response_run()
|