Home
last modified time | relevance | path

Searched refs:likely (Results 1 – 25 of 76) sorted by relevance

1234

/include/asm-generic/
Dqrwlock.h43 if (likely(!(cnts & _QW_WMASK))) { in queued_read_trylock()
45 if (likely(!(cnts & _QW_WMASK))) in queued_read_trylock()
65 return likely(atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, in queued_write_trylock()
77 if (likely(!(cnts & _QW_WMASK))) in queued_read_lock()
92 if (likely(atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, _QW_LOCKED))) in queued_write_lock()
Dqspinlock.h68 return likely(atomic_try_cmpxchg_acquire(&lock->val, &val, _Q_LOCKED_VAL)); in queued_spin_trylock()
82 if (likely(atomic_try_cmpxchg_acquire(&lock->val, &val, _Q_LOCKED_VAL))) in queued_spin_lock()
Dmmiowb.h39 if (likely(ms->nesting_count)) in mmiowb_set_pending()
/include/linux/
Dindirect_call_wrapper.h19 likely(f == f1) ? f1(__VA_ARGS__) : f(__VA_ARGS__); \
23 likely(f == f2) ? f2(__VA_ARGS__) : \
28 likely(f == f3) ? f3(__VA_ARGS__) : \
33 likely(f == f4) ? f4(__VA_ARGS__) : \
Diversion.h133 if (likely(old == cur)) in inode_set_max_iversion_raw()
223 if (likely(old == cur)) in inode_maybe_inc_iversion()
324 if (likely(old == cur)) in inode_query_iversion()
Dpercpu-rwsem.h70 if (likely(rcu_sync_is_idle(&sem->rss))) in percpu_down_read()
90 if (likely(rcu_sync_is_idle(&sem->rss))) in percpu_down_read_trylock()
116 if (likely(rcu_sync_is_idle(&sem->rss))) { in percpu_up_read()
Dcompiler.h44 # ifndef likely
45 # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x))) macro
77 # define likely(x) __builtin_expect(!!(x), 1) macro
Dcoresight.h365 if (likely(csa->io_mem)) in csdev_access_relaxed_read32()
373 if (likely(csa->io_mem)) in csdev_access_read32()
382 if (likely(csa->io_mem)) in csdev_access_relaxed_write32()
390 if (likely(csa->io_mem)) in csdev_access_write32()
401 if (likely(csa->io_mem)) in csdev_access_relaxed_read64()
409 if (likely(csa->io_mem)) in csdev_access_read64()
418 if (likely(csa->io_mem)) in csdev_access_relaxed_write64()
426 if (likely(csa->io_mem)) in csdev_access_write64()
Deventpoll.h53 if (likely(list_empty(&file->f_ep_links))) in eventpoll_release()
Djump_label.h209 if (likely(static_key_count(key) > 0)) in static_key_true()
294 if (likely(static_key_count(key) > 0)) in static_key_true()
486 likely(branch); \
503 #define static_branch_likely(x) likely(static_key_enabled(&(x)->key))
Dcookie.h35 if (likely(local_inc_return(&local->nesting) == 1)) { in gen_cookie_next()
Drcupdate_trace.h79 if (likely(!READ_ONCE(t->trc_reader_special.s)) || nesting) { in rcu_read_unlock_trace()
Dfreezer.h42 if (likely(!atomic_read(&system_freezing_cnt))) in freezing()
63 if (likely(!freezing(current))) in try_to_freeze_unsafe()
Ddevice_cgroup.h21 if (likely(!inode->i_rdev)) in devcgroup_inode_permission()
Dif_vlan.h355 if (likely(mac_len > ETH_TLEN)) in __vlan_insert_inner_tag()
362 if (likely(mac_len >= ETH_TLEN)) { in __vlan_insert_inner_tag()
507 if (likely(skb)) in __vlan_hwaccel_push_inside()
712 likely(!eth_type_vlan(skb->protocol))) in skb_vlan_tagged()
732 if (likely(!eth_type_vlan(protocol))) in skb_vlan_tagged_multi()
Duaccess.h157 if (!should_fail_usercopy() && likely(access_ok(from, n))) { in _copy_from_user()
191 if (likely(check_copy_size(to, n, false))) in copy_from_user()
199 if (likely(check_copy_size(from, n, true))) in copy_to_user()
Dradix-tree.h402 if (likely(iter->tags & 1ul)) { in radix_tree_next_slot()
422 if (likely(*slot)) in radix_tree_next_slot()
Dif_macvlan.h42 if (likely(success)) { in macvlan_count_rx()
Dptr_ring.h171 if (likely(r->size)) in __ptr_ring_peek()
196 if (likely(r->size)) in __ptr_ring_empty()
279 while (likely(head >= r->consumer_tail)) in __ptr_ring_discard_one()
528 while (likely(head >= r->consumer_tail)) in ptr_ring_unconsume()
/include/net/
Dtipc.h54 if (likely(!keepalive_msg)) in tipc_hdr_rps_key()
Dip6_tunnel.h101 if (likely(ops && ops->encap_hlen)) in ip6_encap_hlen()
122 if (likely(ops && ops->build_header)) in ip6_tnl_encap()
Dact_api.h202 if (likely(a->cpu_bstats)) { in tcf_action_update_bstats()
213 if (likely(a->cpu_qstats)) { in tcf_action_inc_drop_qstats()
224 if (likely(a->cpu_qstats)) { in tcf_action_inc_overlimit_qstats()
/include/crypto/internal/
Dacompress.h42 if (likely(req)) in __acomp_request_alloc()
/include/net/netfilter/
Dnf_conntrack_core.h69 if (likely(ret == NF_ACCEPT)) in nf_conntrack_confirm()
/include/trace/events/
Dandroid_fs.h53 if (likely(!IS_ERR(d))) { in android_fstrace_get_pathname()

1234