Searched refs:unlikely (Results 1 - 25 of 184) sorted by relevance

12345678

/freebsd-11-stable/contrib/ofed/libcxgb4/
H A Dconfig.h5 #define unlikely(x) __predict_false(x) macro
/freebsd-11-stable/contrib/ofed/libmlx4/
H A Dconfig.h13 #define unlikely(x) __predict_false(x) macro
/freebsd-11-stable/contrib/jemalloc/include/jemalloc/internal/
H A Dassert.h7 if (unlikely(config_debug && !(e))) { \
40 if (unlikely(config_debug && !(e))) \
H A Dvalgrind.h17 if (unlikely(in_valgrind)) \
21 if (unlikely(in_valgrind)) \
25 if (unlikely(in_valgrind)) \
34 if (unlikely(in_valgrind && cond)) { \
42 if (unlikely(in_valgrind)) { \
78 if (unlikely(in_valgrind)) \
H A Dtcache.h233 if (unlikely(tcache == NULL) && tsd_nominal(tsd)) {
248 if (unlikely(ticker_tick(&tcache->gc_ticker)))
257 if (unlikely(tbin->ncached == 0)) {
273 if (unlikely((int)tbin->ncached < tbin->low_water))
292 if (unlikely(!tcache_success)) {
295 if (unlikely(arena == NULL))
309 if (config_prof || (slow_path && config_fill) || unlikely(zero)) {
316 if (unlikely(opt_junk_alloc)) {
319 } else if (unlikely(opt_zero))
323 if (slow_path && config_fill && unlikely(opt_junk_allo
[all...]
/freebsd-11-stable/sys/compat/linuxkpi/common/include/asm/
H A Duaccess.h59 if (unlikely(__get_user(x, ptr))) \
64 if (unlikely(__put_user(x, ptr))) \
H A Datomic-long.h112 if (unlikely(c == u))
126 if (unlikely(c == u))
/freebsd-11-stable/sys/dev/ena/
H A Dena_netmap.h41 #ifdef unlikely
42 #undef unlikely macro
43 #endif /* unlikely */
H A Dena_datapath.c75 if (unlikely((if_getdrvflags(ifp) & IFF_DRV_RUNNING) == 0))
93 if (unlikely((if_getdrvflags(ifp) & IFF_DRV_RUNNING) == 0))
131 if (unlikely((if_getdrvflags(adapter->ifp) & IFF_DRV_RUNNING) == 0))
150 if (unlikely(ret != 0)) {
250 if (unlikely(rc != 0))
254 if (unlikely(rc != 0))
280 if (unlikely(--commit == 0)) {
313 if (unlikely(!tx_ring->running && above_thresh)) {
406 if (unlikely(rx_info->mbuf == NULL)) {
449 if (unlikely(rx_inf
[all...]
H A Dena.c209 if (unlikely(dma_space_addr == 0))
224 if (unlikely(error != 0)) {
231 if (unlikely(error != 0)) {
240 if (unlikely((error != 0) || (dma->paddr == 0))) {
634 if (unlikely(tx_ring->tx_buffer_info == NULL))
639 if (unlikely(tx_ring->free_tx_ids == NULL))
645 if (unlikely(tx_ring->push_buf_intermediate_buf == NULL))
669 if (unlikely(err != 0)) {
682 if (unlikely(err != 0)) {
696 if (unlikely(tx_rin
[all...]
/freebsd-11-stable/tools/tools/netmap/
H A Dpkt_hash.h43 #define unlikely(x) __builtin_expect(!!(x), 0) macro
46 #define unlikely(x) (x) macro
/freebsd-11-stable/sys/dev/drm2/ttm/
H A Dttm_bo_vm.c91 if (unlikely(best_bo == NULL))
94 if (unlikely((best_bo->vm_node->start + best_bo->num_pages) <
127 if (unlikely(ret != 0)) {
175 if (unlikely(ret != 0)) {
183 if (unlikely(ret != 0)) {
188 if (unlikely(ret != 0)) {
226 if (unlikely(!m)) {
337 if (unlikely(bo == NULL)) {
343 if (unlikely(!driver->verify_access)) {
348 if (unlikely(re
[all...]
H A Dttm_execbuf_util.c154 if (unlikely(ret != -EAGAIN))
171 if (unlikely(ret != 0)) {
176 if (unlikely(atomic_read(&bo->cpu_writers) > 0)) {
186 if (unlikely(atomic_read(&bo->cpu_writers) > 0)) {
/freebsd-11-stable/sys/contrib/ena-com/
H A Dena_eth_com.c87 if (unlikely(!io_sq->entries_in_tx_burst_left)) {
112 if (unlikely((io_sq->tail & (io_sq->q_depth - 1)) == 0))
127 if (unlikely(io_sq->mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_HOST))
133 if (unlikely((header_offset + header_len) > llq_info->desc_list_entry_size)) {
139 if (unlikely(!bounce_buffer)) {
158 if (unlikely(!bounce_buffer)) {
177 if (unlikely(io_sq->mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_HOST))
184 if (unlikely(rc)) {
218 if (unlikely(rc)) {
230 if (unlikely(llq_inf
[all...]
H A Dena_com.c197 if (unlikely(!aenq_handlers)) {
217 if (unlikely(command_id >= admin_queue->q_depth)) {
224 if (unlikely(!admin_queue->comp_ctx)) {
230 if (unlikely(admin_queue->comp_ctx[command_id].occupied && capture)) {
276 if (unlikely(!comp_ctx))
294 if (unlikely((admin_queue->sq.tail & queue_size_mask) == 0))
312 if (unlikely(!admin_queue->comp_ctx)) {
336 if (unlikely(!admin_queue->running_state)) {
496 if (unlikely(!comp_ctx)) {
536 if (unlikely(head_maske
[all...]
/freebsd-11-stable/sys/contrib/alpine-hal/
H A Dal_hal_types.h72 #define unlikely(x) (__builtin_expect(!!(x), 0)) macro
/freebsd-11-stable/contrib/ofed/libmlx5/
H A Dconfig.h19 #define unlikely(x) __predict_false(x) macro
H A Dqp.c77 if (unlikely(!(*size)))
99 if (unlikely(qp->wq_sig))
139 if (unlikely((void *)(scat + max) > qp->sq.qend)) {
251 if (unlikely(src == qp->sq.qend))
290 if (unlikely(inl > qp->max_inline_data))
293 if (unlikely(wqe + len > qend)) {
368 if (unlikely(wr->num_sge < 1)) {
389 if (unlikely(inl_hdr_size)) {
402 if (unlikely(wr->sg_list[j].length == inl_hdr_copy_size)) {
545 if (unlikely((*se
[all...]
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Derr.h40 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
H A Dkref.h105 if (unlikely(!atomic_add_unless(&kref->refcount, -1, 1))) {
107 if (unlikely(!atomic_dec_and_test(&kref->refcount))) {
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_tx.c138 if (unlikely(mb->m_len < ETHER_HDR_LEN)) {
141 if (unlikely(mb->m_len < (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN)))
196 if (unlikely(mb->m_len < ETHER_HDR_LEN))
199 if (unlikely(mb->m_len < (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN)))
210 if (unlikely(mb->m_len < eth_hdr_len + sizeof(*ip)))
227 if (unlikely(mb->m_len < eth_hdr_len + sizeof(*ip6)))
243 if (unlikely(mb->m_len < eth_hdr_len + sizeof(*th))) {
245 if (unlikely(mb->m_len != eth_hdr_len ||
260 if (unlikely(mb->m_pkthdr.len < eth_hdr_len))
282 if (unlikely(!mlx5e_sq_has_room_fo
[all...]
/freebsd-11-stable/contrib/jemalloc/src/
H A Djemalloc.c241 if (unlikely(opt_utrace)) { \
289 if (config_fill && unlikely(opt_quarantine))
297 if (unlikely(malloc_init_state == malloc_init_uninitialized))
306 if (unlikely(!malloc_initialized()) && malloc_init_hard())
322 if (unlikely(malloc_init_a0()))
360 if (unlikely(size == 0))
372 if (unlikely(num_size == 0)) {
384 if (unlikely(ptr == NULL))
921 if (config_fill && unlikely(in_valgrind)) {
929 if (config_tcache && unlikely(in_valgrin
[all...]
H A Dhuge.c65 if (unlikely(ausize == 0 || ausize > HUGE_MAXCLASS))
82 if (unlikely(arena == NULL) || (ret = arena_chunk_alloc_huge(tsdn,
102 if (zero || (config_fill && unlikely(opt_zero))) {
105 } else if (config_fill && unlikely(opt_junk_alloc))
120 if (config_fill && have_dss && unlikely(opt_junk_free)) {
160 if (config_fill && unlikely(opt_junk_free)) {
186 if (zero || (config_fill && unlikely(opt_zero))) {
191 } else if (config_fill && unlikely(opt_junk_alloc)) {
223 if (config_fill && unlikely(opt_junk_free)) {
281 if (zero || (config_fill && unlikely(opt_zer
[all...]
/freebsd-11-stable/sys/dev/drm2/
H A Ddrm_global.c80 if (unlikely(item->object == NULL)) {
87 if (unlikely(ret != 0))
/freebsd-11-stable/sys/compat/linuxkpi/common/src/
H A Dlinux_slab.c52 if (unlikely(c->cache_flags & SLAB_TYPESAFE_BY_RCU)) {
121 if (unlikely(c->cache_flags & SLAB_TYPESAFE_BY_RCU)) {

Completed in 287 milliseconds

12345678