Home
last modified time | relevance | path

Searched refs:unlikely (Results 1 – 25 of 79) sorted by relevance

1234

/Zephyr-latest/lib/utils/
Dring_buffer.c19 if (unlikely(wrap_size >= buf->size)) { in ring_buf_put_claim()
41 if (unlikely(size > finish_space)) { in ring_buf_put_finish()
49 if (unlikely(wrap_size >= buf->size)) { in ring_buf_put_finish()
86 if (unlikely(wrap_size >= buf->size)) { in ring_buf_get_claim()
108 if (unlikely(size > finish_space)) { in ring_buf_get_finish()
116 if (unlikely(wrap_size >= buf->size)) { in ring_buf_get_finish()
/Zephyr-latest/arch/posix/include/
Dposix_arch_internal.h21 if (unlikely(test)) { in pc_safe_call()
/Zephyr-latest/drivers/sensor/st/lis2dh/
Dlis2dh_trigger.c92 if (unlikely(status < 0)) { in lis2dh_start_trigger_int1()
98 if (unlikely(status < 0)) { in lis2dh_start_trigger_int1()
107 if (unlikely(status < 0)) { in lis2dh_start_trigger_int1()
115 if (unlikely(status < 0)) { in lis2dh_start_trigger_int1()
427 unlikely(atomic_test_and_clear_bit(&lis2dh->trig_flags, in lis2dh_thread_cb()
431 if (unlikely(status < 0)) { in lis2dh_thread_cb()
438 unlikely(atomic_test_and_clear_bit(&lis2dh->trig_flags, in lis2dh_thread_cb()
442 if (unlikely(status < 0)) { in lis2dh_thread_cb()
/Zephyr-latest/drivers/flash/
Dsoc_flash_nrf_mram.c42 if (unlikely(offset < 0 || offset >= MRAM_SIZE || len > MRAM_SIZE - offset)) { in validate_and_map_addr()
50 unlikely((addr % WRITE_BLOCK_SIZE) != 0 || (len % WRITE_BLOCK_SIZE) != 0)) { in validate_and_map_addr()
/Zephyr-latest/subsys/random/
Drandom_ctr_drbg.c71 if (unlikely(!ctr_initialised)) { in z_impl_sys_csrand_get()
Drandom_entropy_device.c25 if (unlikely(ret < 0)) { in rand_get()
Drandom_xoshiro128.c101 if (unlikely(!initialized)) { in z_impl_sys_rand_get()
/Zephyr-latest/include/zephyr/drivers/
Dentropy.h114 if (unlikely(!api->get_entropy_isr)) { in entropy_get_entropy_isr()
/Zephyr-latest/tests/drivers/uart/uart_mix_fifo_poll/
DKconfig12 test and therefore the higher likelihood an unlikely race/event will be triggered.
/Zephyr-latest/kernel/
Dsem.c106 if (unlikely(thread != NULL)) { in z_impl_k_sem_give()
114 if (unlikely(resched)) { in z_impl_k_sem_give()
Dmutex.c137 if (unlikely(K_TIMEOUT_EQ(timeout, K_NO_WAIT))) { in z_impl_k_mutex_lock()
264 if (unlikely(new_owner != NULL)) { in z_impl_k_mutex_unlock()
Duserspace.c736 if (unlikely((ko == NULL) || in k_object_validate()
744 if (unlikely(thread_perms_test(ko) == 0)) { in k_object_validate()
751 if (unlikely((ko->flags & K_OBJ_FLAG_INITIALIZED) == 0U)) { in k_object_validate()
756 if (unlikely((ko->flags & K_OBJ_FLAG_INITIALIZED) != 0U)) { in k_object_validate()
Dcondvar.c52 if (unlikely(thread != NULL)) { in z_impl_k_condvar_signal()
Dmem_slab.c281 if (unlikely(slab->free_list == NULL) && IS_ENABLED(CONFIG_MULTITHREADING)) { in k_mem_slab_free()
284 if (unlikely(pending_thread != NULL)) { in k_mem_slab_free()
/Zephyr-latest/drivers/usb/uhc/
Duhc_max3421e.c93 if (unlikely(update_hirq)) { in max3421e_read_hirq()
678 if (unlikely(err)) { in uhc_max3421e_thread()
696 if (unlikely(err)) { in uhc_max3421e_thread()
703 if (unlikely(err)) { in uhc_max3421e_thread()
709 if (unlikely(err)) { in uhc_max3421e_thread()
847 if (unlikely(ret)) { in max3421e_pinctl_setup()
852 if (unlikely(ret)) { in max3421e_pinctl_setup()
856 if (unlikely(tmp != pinctl)) { in max3421e_pinctl_setup()
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_scan_aux.c139 if (unlikely(!pdu->len || !pri_com_hdr->ext_hdr_len)) { in lll_scan_aux_setup()
172 if (unlikely(!pri_hdr->aux_ptr || !PDU_ADV_AUX_PTR_OFFSET_GET(aux_ptr) || in lll_scan_aux_setup()
189 if (unlikely(!AUX_OFFSET_IS_VALID(aux_offset_us, window_size_us, pdu_us))) { in lll_scan_aux_setup()
398 if (unlikely(!ext_hdr->adv_addr)) { in lll_scan_aux_addr_match_get()
469 if (unlikely(lll->is_stop || in prepare_cb()
811 if (unlikely(!trx_done || !crc_ok)) { in isr_rx()
827 if (unlikely((pdu->type != PDU_ADV_TYPE_EXT_IND) || !pdu->len)) { in isr_rx()
1551 if (unlikely(!trx_done)) {
1643 if (unlikely(pdu_rx->type != PDU_ADV_TYPE_AUX_CONNECT_RSP)) {
1647 if (unlikely(pdu_rx->len != (offsetof(struct pdu_adv_com_ext_adv, ext_hdr_adv_data) +
[all …]
Dlll_central.c112 if (unlikely(lll->handle == 0xFFFF)) { in prepare_cb()
/Zephyr-latest/drivers/bluetooth/hci/
Dhci_da1469x.c103 if (unlikely(ret < 0)) { in h4_read_hdr()
271 if (unlikely(err < 0)) { in h4_discard()
315 if (unlikely(read < 0)) { in read_payload()
Dh4.c115 if (unlikely(ret < 0)) { in h4_read_hdr()
280 if (unlikely(err < 0)) { in h4_discard()
327 if (unlikely(read < 0)) { in read_payload()
437 if (unlikely(bytes < 0)) { in process_tx()
/Zephyr-latest/subsys/logging/backends/
Dlog_backend_adsp_mtrace.c136 if (unlikely(mtrace_panic_mode)) { in char_out()
/Zephyr-latest/drivers/sensor/nxp/fxas21002/
DKconfig23 pre-production devices can have a different value. It is unlikely you
/Zephyr-latest/drivers/timer/
Dmcux_gpt_timer.c70 if (unlikely(((int32_t)(next - now)) <= 1)) { in gpt_set_safe()
/Zephyr-latest/include/zephyr/logging/
Dlog.h89 if (unlikely(__warned == 0)) { \
/Zephyr-latest/kernel/include/
Dksched.h183 if (unlikely(thread != NULL)) { in z_unpend_first_thread()
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_scan_aux.c601 if (unlikely(!AUX_OFFSET_IS_VALID(aux_offset_us, window_size_us, pdu_us))) { in ull_scan_aux_setup()
812 if (unlikely(scan->is_stop)) { in ull_scan_aux_setup()
823 if (unlikely(sync_set->is_stop)) { in ull_scan_aux_setup()
936 if (unlikely(scan->is_stop)) { in ull_scan_aux_setup()
962 if (unlikely(sync_set->is_stop && sync_lll->lll_aux)) { in ull_scan_aux_setup()
998 if (unlikely(sync->is_stop) || !sync->lll.lll_aux) { in ull_scan_aux_done()
1015 if (unlikely(scan->is_stop)) { in ull_scan_aux_done()
1931 if (unlikely(!AUX_OFFSET_IS_VALID(aux_offset_us, window_size_us, pdu_us))) { in ull_scan_aux_setup()
2097 if (unlikely(scan->is_stop)) { in ull_scan_aux_setup()
2115 if (unlikely(sync_set->is_stop)) { in ull_scan_aux_setup()

1234