Home
last modified time | relevance | path

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

12345678910>>...75

/openbmc/linux/arch/mips/include/asm/octeon/
H A Dcvmx-cmd-queue.h335 if (likely(use_locking)) in cvmx_cmd_queue_write()
346 if (likely(use_locking)) in cvmx_cmd_queue_write()
374 if (likely(use_locking)) in cvmx_cmd_queue_write()
405 if (likely(use_locking)) in cvmx_cmd_queue_write()
433 if (likely(use_locking)) in cvmx_cmd_queue_write2()
444 if (likely(use_locking)) in cvmx_cmd_queue_write2()
477 if (likely(use_locking)) in cvmx_cmd_queue_write2()
487 if (likely(count)) in cvmx_cmd_queue_write2()
504 if (likely(use_locking)) in cvmx_cmd_queue_write2()
534 if (likely(use_locking)) in cvmx_cmd_queue_write3()
[all …]
/openbmc/linux/drivers/scsi/qedi/
H A Dqedi_dbg.c22 if (likely(qedi) && likely(qedi->pdev)) in qedi_dbg_err()
46 if (likely(qedi) && likely(qedi->pdev)) in qedi_dbg_warn()
71 if (likely(qedi) && likely(qedi->pdev)) in qedi_dbg_notice()
97 if (likely(qedi) && likely(qedi->pdev)) in qedi_dbg_info()
/openbmc/qemu/target/i386/tcg/
H A Daccess.c70 if (likely(offset <= ac->size1 - len)) { in access_ptr()
79 if (likely(offset >= ac->size1)) { in access_ptr()
90 if (likely(p)) { in access_ldb()
100 if (likely(p)) { in access_ldw()
110 if (likely(p)) { in access_ldl()
120 if (likely(p)) { in access_ldq()
130 if (likely(p)) { in access_stb()
141 if (likely(p)) { in access_stw()
152 if (likely(p)) { in access_stl()
163 if (likely(p)) { in access_stq()
/openbmc/linux/drivers/scsi/qedf/
H A Dqedf_dbg.c21 if (likely(qedf) && likely(qedf->pdev)) in qedf_dbg_err()
45 if (likely(qedf) && likely(qedf->pdev)) in qedf_dbg_warn()
70 if (likely(qedf) && likely(qedf->pdev)) in qedf_dbg_notice()
96 if (likely(qedf) && likely(qedf->pdev)) in qedf_dbg_info()
/openbmc/linux/include/asm-generic/
H A Dqrwlock.h49 if (likely(!(cnts & _QW_WMASK))) { in queued_read_trylock()
51 if (likely(!(cnts & _QW_WMASK))) in queued_read_trylock()
71 return likely(atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, in queued_write_trylock()
83 if (likely(!(cnts & _QW_WMASK))) in queued_read_lock()
98 if (likely(atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, _QW_LOCKED))) in queued_write_lock()
/openbmc/linux/kernel/locking/
H A Dsemaphore.c60 if (likely(sem->count > 0)) in down()
84 if (likely(sem->count > 0)) in down_interruptible()
111 if (likely(sem->count > 0)) in down_killable()
141 if (likely(count >= 0)) in down_trylock()
166 if (likely(sem->count > 0)) in down_timeout()
188 if (likely(list_empty(&sem->wait_list))) in up()
H A Dmcs_spinlock.h80 if (likely(prev == NULL)) { in mcs_spin_lock()
106 if (likely(!next)) { in mcs_spin_unlock()
110 if (likely(cmpxchg_release(lock, node, NULL) == node)) in mcs_spin_unlock()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/core/
H A Dobject.c104 if (likely(object->func->mthd)) in nvkm_object_mthd()
113 if (likely(object->func->ntfy)) in nvkm_object_ntfy()
122 if (likely(object->func->map)) in nvkm_object_map()
130 if (likely(object->func->unmap)) in nvkm_object_unmap()
138 if (likely(object->func->rd08)) in nvkm_object_rd08()
146 if (likely(object->func->rd16)) in nvkm_object_rd16()
154 if (likely(object->func->rd32)) in nvkm_object_rd32()
162 if (likely(object->func->wr08)) in nvkm_object_wr08()
170 if (likely(object->func->wr16)) in nvkm_object_wr16()
178 if (likely(object->func->wr32)) in nvkm_object_wr32()
/openbmc/linux/net/mptcp/
H A Dmib.h86 if (likely(net->mib.mptcp_statistics)) in MPTCP_ADD_STATS()
93 if (likely(net->mib.mptcp_statistics)) in MPTCP_INC_STATS()
100 if (likely(net->mib.mptcp_statistics)) in __MPTCP_INC_STATS()
107 if (likely(net->mib.mptcp_statistics)) in MPTCP_DEC_STATS()
/openbmc/linux/lib/lzo/
H A Dlzo1x_decompress_safe.c58 if (likely(in_len >= 5) && likely(*ip == 17)) { in lzo1x_decompress_safe()
77 if (likely(state == 0)) { in lzo1x_decompress_safe()
96 if (likely(HAVE_IP(t + 15) && HAVE_OP(t + 15))) { in lzo1x_decompress_safe()
172 likely(bitstream_version)) { in lzo1x_decompress_safe()
216 if (likely(HAVE_OP(t + 15))) { in lzo1x_decompress_safe()
256 if (likely(HAVE_IP(6) && HAVE_OP(4))) { in lzo1x_decompress_safe()
/openbmc/linux/include/linux/
H A 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__) : \
H A Dcoresight.h385 if (likely(csa->io_mem)) in csdev_access_relaxed_read32()
451 if (likely(csa->io_mem)) { in csdev_access_relaxed_read_pair()
462 if (likely(csa->io_mem)) { in csdev_access_relaxed_write_pair()
473 if (likely(csa->io_mem)) in csdev_access_read32()
482 if (likely(csa->io_mem)) in csdev_access_relaxed_write32()
490 if (likely(csa->io_mem)) in csdev_access_write32()
501 if (likely(csa->io_mem)) in csdev_access_relaxed_read64()
509 if (likely(csa->io_mem)) in csdev_access_read64()
518 if (likely(csa->io_mem)) in csdev_access_relaxed_write64()
526 if (likely(csa->io_mem)) in csdev_access_write64()
H A Dcompiler.h43 # ifndef likely
44 # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x))) macro
76 # define likely(x) __builtin_expect(!!(x), 1) macro
78 # define likely_notrace(x) likely(x)
/openbmc/linux/net/llc/
H A Dllc_s_ac.c61 if (likely(!rc)) { in llc_sap_action_send_ui()
86 if (likely(!rc)) { in llc_sap_action_send_xid_c()
118 if (likely(!rc)) in llc_sap_action_send_xid_r()
142 if (likely(!rc)) { in llc_sap_action_send_test_c()
172 if (likely(!rc)) in llc_sap_action_send_test_r()
/openbmc/linux/net/core/
H A Dtimestamping.c15 if (likely(skb->dev && skb->dev->phydev && in classify()
36 if (likely(mii_ts->txtstamp)) { in skb_clone_tx_timestamp()
66 if (likely(mii_ts->rxtstamp)) in skb_defer_rx_timestamp()
H A Dlwtunnel.c130 if (likely(ops && ops->build_state && try_module_get(ops->owner))) in lwtunnel_build_state()
256 if (likely(ops && ops->fill_encap)) in lwtunnel_fill_encap()
290 if (likely(ops && ops->get_encap_size)) in lwtunnel_get_encap_size()
318 if (likely(ops && ops->cmp_encap)) in lwtunnel_cmp_encap()
344 if (likely(ops && ops->output)) in lwtunnel_output()
379 if (likely(ops && ops->xmit)) in lwtunnel_xmit()
413 if (likely(ops && ops->input)) in lwtunnel_input()
/openbmc/qemu/crypto/
H A Drandom-platform.c79 if (likely(fd < 0)) { in qcrypto_random_bytes()
82 if (likely(got == buflen)) { in qcrypto_random_bytes()
98 if (likely(got == buflen)) { in qcrypto_random_bytes()
/openbmc/linux/drivers/spi/
H A Dspi-bitbang-txrx.h57 for (word <<= (32 - bits); likely(bits); bits--) { in bitbang_txrx_be_cpha0()
89 for (word <<= (32 - bits); likely(bits); bits--) { in bitbang_txrx_be_cpha1()
122 for (; likely(bits); bits--) { in bitbang_txrx_le_cpha0()
155 for (; likely(bits); bits--) { in bitbang_txrx_le_cpha1()
/openbmc/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_debug.c22 if (likely(!(bnx2fc_debug_level & LOG_IO))) in BNX2FC_IO_DBG()
46 if (likely(!(bnx2fc_debug_level & LOG_TGT))) in BNX2FC_TGT_DBG()
70 if (likely(!(bnx2fc_debug_level & LOG_HBA))) in BNX2FC_HBA_DBG()
/openbmc/linux/fs/ntfs/
H A Drunlist.c23 if (likely((dst != src) && (size > 0))) in ntfs_rl_mm()
36 if (likely(size > 0)) in ntfs_rl_mc()
74 if (likely(rl != NULL)) { in ntfs_rl_realloc()
119 if (likely(rl != NULL)) { in ntfs_rl_realloc_nofail()
1009 if (likely(rl[i].lcn >= (LCN)0)) in ntfs_rl_vcn_to_lcn()
1018 if (likely(rl[i].lcn < (LCN)0)) in ntfs_rl_vcn_to_lcn()
1044 while (likely(rl->length)) { in ntfs_rl_find_vcn_nolock()
1171 if (likely(rl->lcn >= 0)) in ntfs_get_size_for_mapping_pairs()
1378 if (likely(rl->lcn >= 0)) in ntfs_mapping_pairs_build()
1535 while (likely(trl->length)) in ntfs_rl_truncate_nolock()
[all …]
H A Dlcnalloc.c262 if (likely(page)) { in ntfs_cluster_alloc()
380 if (likely(rlpos)) { in ntfs_cluster_alloc()
725 if (likely(rl)) { in ntfs_cluster_alloc()
730 if (likely(page && !IS_ERR(page))) { in ntfs_cluster_alloc()
739 if (likely(!err)) { in ntfs_cluster_alloc()
861 if (likely(!is_rollback)) in __ntfs_cluster_free()
890 if (likely(rl->lcn >= 0)) { in __ntfs_cluster_free()
893 to_free, likely(!is_rollback) ? 0 : 1); in __ntfs_cluster_free()
947 if (likely(rl->lcn >= 0)) { in __ntfs_cluster_free()
950 to_free, likely(!is_rollback) ? 0 : 1); in __ntfs_cluster_free()
[all …]
/openbmc/linux/fs/hpfs/
H A Dbuffer.c135 if (likely(qbh->bh[1]->b_data == qbh->bh[0]->b_data + 1 * 512) && in hpfs_map_4sectors()
136 likely(qbh->bh[2]->b_data == qbh->bh[0]->b_data + 2 * 512) && in hpfs_map_4sectors()
137 likely(qbh->bh[3]->b_data == qbh->bh[0]->b_data + 3 * 512)) { in hpfs_map_4sectors()
185 if (likely(qbh->bh[1]->b_data == qbh->bh[0]->b_data + 1 * 512) && in hpfs_get_4sectors()
186 likely(qbh->bh[2]->b_data == qbh->bh[0]->b_data + 2 * 512) && in hpfs_get_4sectors()
187 likely(qbh->bh[3]->b_data == qbh->bh[0]->b_data + 3 * 512)) { in hpfs_get_4sectors()
/openbmc/qemu/include/exec/
H A Dmemory_ldst_cached.h.inc32 if (likely(cache->ptr)) {
44 if (likely(cache->ptr)) {
56 if (likely(cache->ptr)) {
78 if (likely(cache->ptr)) {
89 if (likely(cache->ptr)) {
100 if (likely(cache->ptr)) {
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
H A Drx.c54 if (likely(rq->mpwqe.umr_mode == MLX5E_MPWRQ_UMR_MODE_ALIGNED)) { in mlx5e_xsk_alloc_rx_mpwqe()
75 } else if (likely(rq->mpwqe.umr_mode == MLX5E_MPWRQ_UMR_MODE_TRIPLE)) { in mlx5e_xsk_alloc_rx_mpwqe()
131 if (likely(rq->mpwqe.umr_mode == MLX5E_MPWRQ_UMR_MODE_ALIGNED)) in mlx5e_xsk_alloc_rx_mpwqe()
176 if (likely(alloc == contig)) in mlx5e_xsk_alloc_rx_wqes_batched()
292 if (likely(prog && mlx5e_xdp_handle(rq, prog, mxbuf))) { in mlx5e_xsk_skb_from_cqe_mpwrq_linear()
293 if (likely(__test_and_clear_bit(MLX5E_RQ_FLAG_XDP_XMIT, rq->flags))) in mlx5e_xsk_skb_from_cqe_mpwrq_linear()
326 if (likely(prog && mlx5e_xdp_handle(rq, prog, mxbuf))) { in mlx5e_xsk_skb_from_cqe_linear()
327 if (likely(__test_and_clear_bit(MLX5E_RQ_FLAG_XDP_XMIT, rq->flags))) in mlx5e_xsk_skb_from_cqe_linear()
/openbmc/linux/drivers/misc/cb710/
H A Dsgbuf2.c63 if (likely(len >= 4 && !needs_unaligned_copy( in sg_dwiter_get_next_block()
94 if (likely(sg_dwiter_get_next_block(miter, &ptr))) in cb710_sg_dwiter_read_next_block()
135 if (likely(sg_dwiter_get_next_block(miter, &ptr))) { in cb710_sg_dwiter_write_next_block()

12345678910>>...75