Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 28) sorted by relevance

12

/hal_nordic-latest/drivers/nrf_802154/serialization/spinel_base/
Dspinel.c154 size_t ret; in spinel_strnlen() local
156 for (ret = 0; (ret < maxlen) && (s[ret] != 0); ret++) in spinel_strnlen()
161 return ret; in spinel_strnlen()
179 bool ret = true; in spinel_validate_utf8() local
195 ret = false; in spinel_validate_utf8()
212 ret = false; in spinel_validate_utf8()
223 ret = false; in spinel_validate_utf8()
230 return ret; in spinel_validate_utf8()
238 spinel_ssize_t ret = 0; in spinel_packed_uint_decode() local
247 ret = -1; in spinel_packed_uint_decode()
[all …]
/hal_nordic-latest/nrfx/haly/
Dnrfy_qdec.h261 uint32_t ret = nrf_qdec_enable_get(p_reg); in nrfy_qdec_enable_get() local
263 return ret; in nrfy_qdec_enable_get()
284 uint32_t ret = nrf_qdec_int_enable_check(p_reg, mask); in nrfy_qdec_int_enable_check() local
286 return ret; in nrfy_qdec_int_enable_check()
307 uint32_t ret = nrf_qdec_dbfen_get(p_reg); in nrfy_qdec_dbfen_get() local
309 return ret; in nrfy_qdec_dbfen_get()
316 uint32_t ret = nrf_qdec_phase_a_pin_get(p_reg); in nrfy_qdec_a_pin_get() local
318 return ret; in nrfy_qdec_a_pin_get()
325 uint32_t ret = nrf_qdec_phase_b_pin_get(p_reg); in nrfy_qdec_b_pin_get() local
327 return ret; in nrfy_qdec_b_pin_get()
[all …]
Dnrfy_vpr.h82 bool ret = nrf_vpr_event_check(p_reg, event); in nrfy_vpr_event_check() local
85 return ret; in nrfy_vpr_event_check()
122 uint32_t ret = nrf_vpr_int_enable_check(p_reg, mask); in nrfy_vpr_int_enable_check() local
125 return ret; in nrfy_vpr_int_enable_check()
140 bool ret = nrf_vpr_cpurun_get(p_reg); in nrfy_vpr_cpurun_get() local
143 return ret; in nrfy_vpr_cpurun_get()
158 uint32_t ret = nrf_vpr_initpc_get(p_reg); in nrfy_vpr_initpc_get() local
161 return ret; in nrfy_vpr_initpc_get()
178 bool ret = nrf_vpr_debugif_dmcontrol_get(p_reg, signal); in nrfy_vpr_debugif_dmcontrol_get() local
181 return ret; in nrfy_vpr_debugif_dmcontrol_get()
Dnrfy_bellboard.h162 bool ret = nrf_bellboard_event_check(p_reg, event); in nrfy_bellboard_event_check() local
165 return ret; in nrfy_bellboard_event_check()
198 uint32_t ret = nrf_bellboard_int_enable_check(p_reg, group_idx, mask); in nrfy_bellboard_int_enable_check() local
201 return ret; in nrfy_bellboard_int_enable_check()
Dnrfy_pwm.h236 bool ret = nrf_pwm_event_check(p_reg, event); in nrfy_pwm_event_check() local
238 return ret; in nrfy_pwm_event_check()
300 uint32_t ret = nrf_pwm_int_enable_check(p_reg, mask); in nrfy_pwm_int_enable_check() local
302 return ret; in nrfy_pwm_int_enable_check()
376 uint32_t ret = nrf_pwm_pin_get(p_reg, channel); in nrfy_pwm_pin_get() local
378 return ret; in nrfy_pwm_pin_get()
Dnrfy_wdt.h270 uint32_t ret = nrf_wdt_request_status_get(p_reg); in nrfy_wdt_request_status_get() local
272 return ret; in nrfy_wdt_request_status_get()
286 uint32_t ret = nrf_wdt_reload_value_get(p_reg); in nrfy_wdt_reload_value_get() local
288 return ret; in nrfy_wdt_reload_value_get()
Dnrfy_uarte.h363 uint32_t ret = nrf_uarte_shorts_get(p_reg, mask); in nrfy_uarte_shorts_get() local
366 return ret; in nrfy_uarte_shorts_get()
470 bool ret = nrf_uarte_enable_check(p_reg); in nrfy_uarte_enable_check() local
472 return ret; in nrfy_uarte_enable_check()
/hal_nordic-latest/drivers/nrf_802154/driver/src/mac_features/
Dnrf_802154_precise_ack_timeout.c104 nrf_802154_sl_timer_ret_t ret; in timeout_timer_retry() local
106 ret = nrf_802154_sl_timer_add(&m_timer); in timeout_timer_retry()
107 NRF_802154_ASSERT(ret == NRF_802154_SL_TIMER_RET_SUCCESS); in timeout_timer_retry()
108 (void)ret; in timeout_timer_retry()
114 nrf_802154_sl_timer_ret_t ret; in timeout_timer_start() local
136 ret = nrf_802154_sl_timer_add(&m_timer); in timeout_timer_start()
137 NRF_802154_ASSERT(ret == NRF_802154_SL_TIMER_RET_SUCCESS); in timeout_timer_start()
138 (void)ret; in timeout_timer_start()
Dnrf_802154_delayed_trx.c453 nrf_802154_sl_timer_ret_t ret; in notify_rx_timeout() local
455 ret = nrf_802154_sl_timer_add(&p_dly_op_data->rx.timeout_timer); in notify_rx_timeout()
456 NRF_802154_ASSERT(ret == NRF_802154_SL_TIMER_RET_SUCCESS); in notify_rx_timeout()
457 (void)ret; in notify_rx_timeout()
518 nrf_802154_sl_timer_ret_t ret; in dly_rx_all_ongoing_abort() local
526 ret = nrf_802154_sl_timer_remove(&p_dly_op_data->rx.timeout_timer); in dly_rx_all_ongoing_abort()
528 if (ret != NRF_802154_SL_TIMER_RET_SUCCESS) in dly_rx_all_ongoing_abort()
588 nrf_802154_sl_timer_ret_t ret; in dly_rx_result_notify() local
590 ret = nrf_802154_sl_timer_add(&p_dly_op_data->rx.timeout_timer); in dly_rx_result_notify()
591 NRF_802154_ASSERT(ret == NRF_802154_SL_TIMER_RET_SUCCESS); in dly_rx_result_notify()
[all …]
Dnrf_802154_csma_ca.c334 bool ret = csma_ca_state_set(CSMA_CA_STATE_BACKOFF, CSMA_CA_STATE_IDLE); in channel_busy() local
336 NRF_802154_ASSERT(ret); in channel_busy()
337 (void)ret; in channel_busy()
/hal_nordic-latest/drivers/nrf_802154/sl/sl_opensource/src/
Dnrf_802154_sl_timer.c110 nrf_802154_sl_timer_ret_t ret; in nrf_802154_sl_timer_remove() local
115 ret = NRF_802154_SL_TIMER_RET_INACTIVE; in nrf_802154_sl_timer_remove()
120 ret = NRF_802154_SL_TIMER_RET_INACTIVE; in nrf_802154_sl_timer_remove()
127 ret = NRF_802154_SL_TIMER_RET_SUCCESS; in nrf_802154_sl_timer_remove()
130 return ret; in nrf_802154_sl_timer_remove()
/hal_nordic-latest/nrfx/drivers/src/
Dnrfx_cracen.c223 int ret = TRNG_RESET_NEEDED; in trng_entropy_get() local
227 if (ret == TRNG_RESET_NEEDED) in trng_entropy_get()
231 ret = trng_get(p_buf, size); in trng_entropy_get()
232 if (ret == OK) in trng_entropy_get()
253 uint32_t ret; in cm_done_check() local
256 ret = nrf_cracen_cm_int_pending_get(NRF_CRACENCORE); in cm_done_check()
258 if (ret & (NRF_CRACEN_CM_INT_FETCH_ERROR_MASK | NRF_CRACEN_CM_INT_PUSH_ERROR_MASK)) in cm_done_check()
300 cracen_ret_t ret; in cm_aes_ecb() local
360 ret = cm_done_check(); in cm_aes_ecb()
361 } while (ret == HW_PROCESSING); in cm_aes_ecb()
[all …]
Dnrfx_usbd.c2048 nrfx_err_t ret; in nrfx_usbd_ep_transfer() local
2060 ret = NRFX_ERROR_INVALID_ADDR; in nrfx_usbd_ep_transfer()
2065 ret = NRFX_ERROR_BUSY; in nrfx_usbd_ep_transfer()
2136 ret = NRFX_SUCCESS; in nrfx_usbd_ep_transfer()
2141 if ((ret == NRFX_SUCCESS) && in nrfx_usbd_ep_transfer()
2151 if (ret == NRFX_ERROR_BUSY) in nrfx_usbd_ep_transfer()
2155 else if (ret == NRFX_ERROR_INVALID_ADDR) in nrfx_usbd_ep_transfer()
2161 return ret; in nrfx_usbd_ep_transfer()
2168 nrfx_err_t ret; in nrfx_usbd_ep_handled_transfer() local
2176 ret = NRFX_ERROR_INVALID_ADDR; in nrfx_usbd_ep_handled_transfer()
[all …]
Dnrfx_twis.c682 uint32_t ret; in nrfx_twis_error_get_and_clear_internal() local
692 [ret]"=&l"(ret), in nrfx_twis_error_get_and_clear_internal()
699 return ret; in nrfx_twis_error_get_and_clear_internal()
711 uint32_t ret; in nrfx_twis_error_get_and_clear_internal() local
720 [ret]"=&l"(ret), in nrfx_twis_error_get_and_clear_internal()
727 return ret; in nrfx_twis_error_get_and_clear_internal()
Dnrfx_twi.c119 nrfx_err_t ret = NRFX_ERROR_INTERNAL; in twi_process_error() local
123 ret = NRFX_ERROR_DRV_TWI_ERR_OVERRUN; in twi_process_error()
128 ret = NRFX_ERROR_DRV_TWI_ERR_ANACK; in twi_process_error()
133 ret = NRFX_ERROR_DRV_TWI_ERR_DNACK; in twi_process_error()
136 return ret; in twi_process_error()
Dnrfx_twim.c114 nrfx_err_t ret = NRFX_ERROR_INTERNAL; in twi_process_error() local
118 ret = NRFX_ERROR_DRV_TWI_ERR_OVERRUN; in twi_process_error()
123 ret = NRFX_ERROR_DRV_TWI_ERR_ANACK; in twi_process_error()
128 ret = NRFX_ERROR_DRV_TWI_ERR_DNACK; in twi_process_error()
131 return ret; in twi_process_error()
Dnrfx_qspi.c366 nrfx_err_t ret = qspi_ready_wait(); in qspi_activate() local
368 if (ret == NRFX_SUCCESS) in qspi_activate()
372 return ret; in qspi_activate()
/hal_nordic-latest/nrfx/hal/
Dnrf_usbd.h347 bool ret = nrf_usbd_event_check(p_reg, event); in nrf_usbd_event_get_and_clear() local
348 if (ret) in nrf_usbd_event_get_and_clear()
352 return ret; in nrf_usbd_event_get_and_clear()
1117 uint32_t ret; in nrf_usbd_eventcause_get_and_clear() local
1118 ret = nrf_usbd_eventcause_get(p_reg); in nrf_usbd_eventcause_get_and_clear()
1119 nrf_usbd_eventcause_clear(p_reg, ret); in nrf_usbd_eventcause_get_and_clear()
1120 return ret; in nrf_usbd_eventcause_get_and_clear()
1155 uint32_t ret; in nrf_usbd_epstatus_get_and_clear() local
1156 ret = nrf_usbd_epstatus_get(p_reg); in nrf_usbd_epstatus_get_and_clear()
1157 nrf_usbd_epstatus_clear(p_reg, ret); in nrf_usbd_epstatus_get_and_clear()
[all …]
Dnrf_mpc.h804 nrf_mpc_region_config_t ret; in nrf_mpc_region_config_get() local
806 ret.slave_number = (p_reg->REGION[index].CONFIG & MPC_REGION_CONFIG_SLAVENUMBER_Msk) in nrf_mpc_region_config_get()
809 ret.lock = ((p_reg->REGION[index].CONFIG & MPC_REGION_CONFIG_LOCK_Msk) in nrf_mpc_region_config_get()
812 ret.enable = ((p_reg->REGION[index].CONFIG & MPC_REGION_CONFIG_ENABLE_Msk) in nrf_mpc_region_config_get()
815 ret.permissions = (p_reg->REGION[index].CONFIG & in nrf_mpc_region_config_get()
820 ret.owner = (nrf_owner_t)((p_reg->REGION[index].CONFIG & MPC_REGION_CONFIG_OWNERID_Msk) in nrf_mpc_region_config_get()
823 return ret; in nrf_mpc_region_config_get()
908 nrf_mpc_override_config_t ret; in nrf_mpc_override_config_get() local
911 ret.slave_number = (p_reg->OVERRIDE[index].CONFIG & MPC_OVERRIDE_CONFIG_SLAVENUMBER_Msk) in nrf_mpc_override_config_get()
915 ret.lock = ((p_reg->OVERRIDE[index].CONFIG & MPC_OVERRIDE_CONFIG_LOCK_Msk) in nrf_mpc_override_config_get()
[all …]
Dnrf_usbhs.h205 bool ret = nrf_usbhs_event_check(p_reg, event); in nrf_usbhs_event_get_and_clear() local
206 if (ret) in nrf_usbhs_event_get_and_clear()
210 return ret; in nrf_usbhs_event_get_and_clear()
Dnrf_twis.h675 bool ret = nrf_twis_event_check(p_reg, event); in nrf_twis_event_get_and_clear() local
676 if (ret) in nrf_twis_event_get_and_clear()
680 return ret; in nrf_twis_event_get_and_clear()
757 uint32_t ret = p_reg->ERRORSRC; in nrf_twis_error_source_get_and_clear() local
758 p_reg->ERRORSRC = ret; in nrf_twis_error_source_get_and_clear()
759 return ret; in nrf_twis_error_source_get_and_clear()
/hal_nordic-latest/drivers/nrf_802154/driver/src/mac_features/ack_generator/
Dnrf_802154_ack_data.c365 bool ret = false; in addr_match_zigbee() local
386 ret = !addr_index_find(p_src_addr, in addr_match_zigbee()
393 ret = true; in addr_match_zigbee()
397 return ret; in addr_match_zigbee()
743 bool ret; in nrf_802154_ack_data_pending_bit_should_be_set() local
748 ret = addr_match_thread(p_frame_data); in nrf_802154_ack_data_pending_bit_should_be_set()
752 ret = addr_match_zigbee(p_frame_data); in nrf_802154_ack_data_pending_bit_should_be_set()
756 ret = addr_match_standard_compliant(p_frame_data); in nrf_802154_ack_data_pending_bit_should_be_set()
760 ret = false; in nrf_802154_ack_data_pending_bit_should_be_set()
764 return ret; in nrf_802154_ack_data_pending_bit_should_be_set()
/hal_nordic-latest/drivers/nrf_802154/serialization/src/
Dnrf_802154_spinel.c82 nrf_802154_ser_err_t ret = nrf_802154_backend_init(); in nrf_802154_serialization_init() local
84 SERIALIZATION_ERROR_CHECK(ret, error, bail); in nrf_802154_serialization_init()
/hal_nordic-latest/drivers/nrf_802154/sl/include/
Dnrf_802154_sl_rsch.h147 nrf_802154_sl_rsch_ret_t ret; member
177 nrf_802154_sl_rsch_ret_t ret; member
/hal_nordic-latest/nrfx/drivers/include/
Dnrfx_clock.h390 bool ret = nrfx_clock_is_running(NRF_CLOCK_DOMAIN_HFCLK, &clk_src); in nrfx_clock_hfclk_is_running() local
391 return (ret && (clk_src == NRF_CLOCK_HFCLK_HIGH_ACCURACY)); in nrfx_clock_hfclk_is_running()

12