Home
last modified time | relevance | path

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

12345678910>>...79

/linux-6.1.9/arch/mips/include/asm/octeon/
Dcvmx-cmd-queue.h335 if (likely(use_locking)) in cvmx_cmd_queue_write()
346 if (likely(use_locking)) in cvmx_cmd_queue_write()
356 if (likely(qptr->index + cmd_count < qptr->pool_size_m1)) { 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()
454 if (likely(qptr->index + 2 < qptr->pool_size_m1)) { in cvmx_cmd_queue_write2()
477 if (likely(use_locking)) in cvmx_cmd_queue_write2()
487 if (likely(count)) in cvmx_cmd_queue_write2()
[all …]
/linux-6.1.9/drivers/scsi/qedi/
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()
/linux-6.1.9/drivers/scsi/qedf/
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()
/linux-6.1.9/include/asm-generic/
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()
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/core/
Dobject.c90 if (likely(object->func->mthd)) in nvkm_object_mthd()
99 if (likely(object->func->ntfy)) in nvkm_object_ntfy()
108 if (likely(object->func->map)) in nvkm_object_map()
116 if (likely(object->func->unmap)) in nvkm_object_unmap()
124 if (likely(object->func->rd08)) in nvkm_object_rd08()
132 if (likely(object->func->rd16)) in nvkm_object_rd16()
140 if (likely(object->func->rd32)) in nvkm_object_rd32()
148 if (likely(object->func->wr08)) in nvkm_object_wr08()
156 if (likely(object->func->wr16)) in nvkm_object_wr16()
164 if (likely(object->func->wr32)) in nvkm_object_wr32()
/linux-6.1.9/kernel/locking/
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()
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()
/linux-6.1.9/lib/lzo/
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()
/linux-6.1.9/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__) : \
Dcoresight.h369 if (likely(csa->io_mem)) in csdev_access_relaxed_read32()
378 if (likely(csa->io_mem)) { in csdev_access_relaxed_read_pair()
389 if (likely(csa->io_mem)) { in csdev_access_relaxed_write_pair()
400 if (likely(csa->io_mem)) in csdev_access_read32()
409 if (likely(csa->io_mem)) in csdev_access_relaxed_write32()
417 if (likely(csa->io_mem)) in csdev_access_write32()
428 if (likely(csa->io_mem)) in csdev_access_relaxed_read64()
436 if (likely(csa->io_mem)) in csdev_access_read64()
445 if (likely(csa->io_mem)) in csdev_access_relaxed_write64()
453 if (likely(csa->io_mem)) in csdev_access_write64()
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
79 # define likely_notrace(x) likely(x)
/linux-6.1.9/net/llc/
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()
169 if (likely(!rc)) in llc_sap_action_send_test_r()
/linux-6.1.9/drivers/spi/
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()
/linux-6.1.9/net/core/
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()
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()
/linux-6.1.9/fs/ntfs/
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()
548 for (dend = 0; likely(drl[dend].length); dend++) in ntfs_runlists_merge()
1007 for (i = 0; likely(rl[i].length); i++) { in ntfs_rl_vcn_to_lcn()
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()
1046 if (likely(rl->lcn >= LCN_HOLE)) in ntfs_rl_find_vcn_nolock()
[all …]
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 …]
Daops.c58 if (likely(uptodate)) { in ntfs_end_buffer_async_read()
103 if (likely(buffer_locked(tmp))) in ntfs_end_buffer_async_read()
120 if (likely(page_uptodate && !PageError(page))) in ntfs_end_buffer_async_read()
137 if (likely(page_uptodate && !PageError(page))) in ntfs_end_buffer_async_read()
251 if (likely(rl != NULL)) { in ntfs_read_block()
284 if (likely(!err)) in ntfs_read_block()
322 if (likely(!err)) in ntfs_read_block()
344 if (likely(!buffer_uptodate(tbh))) in ntfs_read_block()
352 if (likely(!PageError(page))) in ntfs_read_block()
709 if (likely(rl != NULL)) { in ntfs_write_block()
[all …]
/linux-6.1.9/fs/hpfs/
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()
/linux-6.1.9/kernel/entry/
Dsyscall_user_dispatch.c39 if (likely(instruction_pointer(regs) - sd->offset < sd->len)) in syscall_user_dispatch()
45 if (likely(sd->selector)) { in syscall_user_dispatch()
55 if (likely(state == SYSCALL_DISPATCH_FILTER_ALLOW)) in syscall_user_dispatch()
/linux-6.1.9/arch/openrisc/mm/
Dioremap.c55 if (likely(mem_init_done)) { in ioremap()
69 if (likely(mem_init_done)) in ioremap()
120 if (likely(mem_init_done)) { in pte_alloc_one_kernel()
/linux-6.1.9/drivers/scsi/bnx2fc/
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()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Drx.c44 if (likely(rq->mpwqe.umr_mode == MLX5E_MPWRQ_UMR_MODE_ALIGNED)) { in mlx5e_xsk_alloc_rx_mpwqe()
61 } else if (likely(rq->mpwqe.umr_mode == MLX5E_MPWRQ_UMR_MODE_TRIPLE)) { in mlx5e_xsk_alloc_rx_mpwqe()
113 if (likely(rq->mpwqe.umr_mode == MLX5E_MPWRQ_UMR_MODE_ALIGNED)) in mlx5e_xsk_alloc_rx_mpwqe()
161 if (likely(alloc == contig)) in mlx5e_xsk_alloc_rx_wqes_batched()
272 if (likely(prog && mlx5e_xdp_handle(rq, NULL, prog, xdp))) { in mlx5e_xsk_skb_from_cqe_mpwrq_linear()
273 if (likely(__test_and_clear_bit(MLX5E_RQ_FLAG_XDP_XMIT, rq->flags))) in mlx5e_xsk_skb_from_cqe_mpwrq_linear()
303 if (likely(prog && mlx5e_xdp_handle(rq, NULL, prog, xdp))) in mlx5e_xsk_skb_from_cqe_linear()
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/mc/
Dbase.c33 if (likely(mc) && mc->func->unk260) in nvkm_mc_unk260()
42 if (likely(mc) && mc->func->intr_mask) { in nvkm_mc_intr_mask()
56 if (likely(mc)) in nvkm_mc_intr_unarm()
64 if (likely(mc)) in nvkm_mc_intr_rearm()
126 if (likely(mc)) { in nvkm_mc_reset_mask()
/linux-6.1.9/drivers/misc/cb710/
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>>...79