Searched refs:likely (Results 1 – 25 of 76) sorted by relevance
1234
/include/asm-generic/ |
D | qrwlock.h | 43 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()
|
D | qspinlock.h | 68 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()
|
D | mmiowb.h | 39 if (likely(ms->nesting_count)) in mmiowb_set_pending()
|
/include/linux/ |
D | indirect_call_wrapper.h | 19 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__) : \
|
D | iversion.h | 133 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()
|
D | percpu-rwsem.h | 70 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()
|
D | compiler.h | 44 # ifndef likely 45 # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x))) macro 77 # define likely(x) __builtin_expect(!!(x), 1) macro
|
D | coresight.h | 365 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()
|
D | eventpoll.h | 53 if (likely(list_empty(&file->f_ep_links))) in eventpoll_release()
|
D | jump_label.h | 209 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))
|
D | cookie.h | 35 if (likely(local_inc_return(&local->nesting) == 1)) { in gen_cookie_next()
|
D | rcupdate_trace.h | 79 if (likely(!READ_ONCE(t->trc_reader_special.s)) || nesting) { in rcu_read_unlock_trace()
|
D | freezer.h | 42 if (likely(!atomic_read(&system_freezing_cnt))) in freezing() 63 if (likely(!freezing(current))) in try_to_freeze_unsafe()
|
D | device_cgroup.h | 21 if (likely(!inode->i_rdev)) in devcgroup_inode_permission()
|
D | if_vlan.h | 355 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()
|
D | uaccess.h | 157 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()
|
D | radix-tree.h | 402 if (likely(iter->tags & 1ul)) { in radix_tree_next_slot() 422 if (likely(*slot)) in radix_tree_next_slot()
|
D | if_macvlan.h | 42 if (likely(success)) { in macvlan_count_rx()
|
D | ptr_ring.h | 171 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/ |
D | tipc.h | 54 if (likely(!keepalive_msg)) in tipc_hdr_rps_key()
|
D | ip6_tunnel.h | 101 if (likely(ops && ops->encap_hlen)) in ip6_encap_hlen() 122 if (likely(ops && ops->build_header)) in ip6_tnl_encap()
|
D | act_api.h | 202 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/ |
D | acompress.h | 42 if (likely(req)) in __acomp_request_alloc()
|
/include/net/netfilter/ |
D | nf_conntrack_core.h | 69 if (likely(ret == NF_ACCEPT)) in nf_conntrack_confirm()
|
/include/trace/events/ |
D | android_fs.h | 53 if (likely(!IS_ERR(d))) { in android_fstrace_get_pathname()
|
1234