/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-cmd-queue.h | 335 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/drivers/scsi/qedi/ |
H A D | qedi_dbg.c | 22 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/drivers/scsi/qedf/ |
H A D | qedf_dbg.c | 21 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/include/asm-generic/ |
H A D | qrwlock.h | 49 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/fs/bcachefs/ |
H A D | varint.c | 27 if (likely(bytes < 9)) { in bch2_varint_encode() 51 unsigned bytes = likely(in < end) in bch2_varint_decode() 59 if (likely(bytes < 9)) { in bch2_varint_decode() 87 if (likely(bytes < 9)) { in bch2_varint_encode_fast() 121 if (likely(bytes < 9)) { in bch2_varint_decode_fast()
|
/linux/kernel/locking/ |
H A D | semaphore.c | 60 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 D | mcs_spinlock.h | 80 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/lib/lzo/ |
H A D | lzo1x_decompress_safe.c | 58 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/arch/x86/entry/ |
H A D | entry_fred.c | 81 if (likely(regs->fred_ss.vector == FRED_SYSCALL && regs->fred_ss.lm)) { in fred_other() 87 likely(regs->fred_ss.vector == FRED_SYSENTER && !regs->fred_ss.lm)) { in fred_other() 168 if (likely(vector >= FIRST_SYSTEM_VECTOR)) { in fred_extint() 183 if (likely(regs->fred_ss.vector == X86_TRAP_PF)) in fred_hwexc() 235 if (likely(regs->fred_ss.vector == X86_TRAP_NMI)) in fred_entry_from_user() 243 if (likely(regs->fred_ss.vector == X86_TRAP_DB)) in fred_entry_from_user() 267 if (likely(regs->fred_ss.vector == X86_TRAP_NMI)) in fred_entry_from_kernel() 273 if (likely(regs->fred_ss.vector == X86_TRAP_DB)) in fred_entry_from_kernel()
|
/linux/include/linux/ |
H A 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__) : \
|
H A D | coresight.h | 422 if (likely(csa->io_mem)) 488 if (likely(csa->io_mem)) { in csdev_access_relaxed_read_pair() 499 if (likely(csa->io_mem)) { in csdev_access_relaxed_write_pair() 510 if (likely(csa->io_mem)) 519 if (likely(csa->io_mem)) 527 if (likely(csa->io_mem)) 538 if (likely(csa->io_mem)) 546 if (likely(csa->io_mem)) 555 if (likely(csa->io_mem)) 563 if (likely(cs in csdev_access_write64() [all...] |
H A D | compiler.h | 43 # 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)
|
H A D | percpu-rwsem.h | 62 if (likely(rcu_sync_is_idle(&sem->rss))) in percpu_down_read() 81 if (likely(rcu_sync_is_idle(&sem->rss))) in percpu_down_read_trylock() 105 if (likely(rcu_sync_is_idle(&sem->rss))) { in percpu_up_read()
|
/linux/net/mptcp/ |
H A D | mib.h | 95 if (likely(net->mib.mptcp_statistics)) in MPTCP_ADD_STATS() 102 if (likely(net->mib.mptcp_statistics)) in MPTCP_INC_STATS() 109 if (likely(net->mib.mptcp_statistics)) in __MPTCP_INC_STATS() 116 if (likely(net->mib.mptcp_statistics)) in MPTCP_DEC_STATS()
|
/linux/drivers/spi/ |
H A D | spi-bitbang-txrx.h | 57 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/net/core/ |
H A D | lwtunnel.c | 130 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/fs/hpfs/ |
H A D | buffer.c | 135 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/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_debug.c | 22 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/drivers/misc/cb710/ |
H A D | sgbuf2.c | 63 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()
|
/linux/drivers/sh/clk/ |
H A D | core.c | 245 if (likely(allow_disable && clk->ops && clk->ops->disable)) in __clk_disable() 247 if (likely(clk->parent)) in __clk_disable() 490 if (likely(clk->ops && clk->ops->set_rate)) { in clk_set_rate() 557 if (likely(clk->ops && clk->ops->round_rate)) { in clk_round_rate() 577 if (likely(clkp->usecount && clkp->ops)) { in clks_core_resume() 580 if (likely(clkp->ops->set_parent)) in clks_core_resume() 583 if (likely(clkp->ops->set_rate)) in clks_core_resume() 585 else if (likely(clkp->ops->recalc)) in clks_core_resume()
|
/linux/drivers/gpu/drm/ |
H A D | drm_vma_manager.c | 151 while (likely(iter)) { in drm_vma_offset_lookup_locked() 261 while (likely(*iter)) { in vma_node_allow() 366 while (likely(iter)) { in drm_vma_node_revoke() 407 while (likely(iter)) { in drm_vma_node_is_allowed()
|
/linux/drivers/net/usb/ |
H A D | rndis_host.c | 109 if (likely(msg_type != RNDIS_MSG_HALT && msg_type != RNDIS_MSG_RESET)) { in rndis_command() 150 if (likely(retval >= 8)) { in rndis_command() 155 if (likely(msg_type == rsp)) { in rndis_command() 156 if (likely(request_id == xid)) { in rndis_command() 159 if (likely(RNDIS_STATUS_SUCCESS == in rndis_command() 505 while (likely(skb->len)) { in rndis_rx_fixup() 527 if (likely((data_len - skb->len) <= sizeof *hdr)) { in rndis_rx_fixup() 560 if (likely(!skb_cloned(skb))) { in rndis_tx_fixup() 569 if (likely((sizeof *hdr) <= room)) { in rndis_tx_fixup()
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | base.c | 52 if (likely(nvbios_addr(bios, &addr, 0))) in nvbios_pointer() 60 if (likely(nvbios_addr(bios, &addr, 1))) in nvbios_rd08() 68 if (likely(nvbios_addr(bios, &addr, 2))) in nvbios_rd16() 76 if (likely(nvbios_addr(bios, &addr, 4))) in nvbios_rd32()
|
/linux/arch/arm64/mm/ |
H A D | mem_encrypt.c | 36 if (likely(!crypt_ops) || WARN_ON(!PAGE_ALIGNED(addr))) in set_memory_encrypted() 45 if (likely(!crypt_ops) || WARN_ON(!PAGE_ALIGNED(addr))) in set_memory_decrypted()
|
/linux/drivers/staging/octeon/ |
H A D | ethernet-rx.c | 261 if (likely(skb_in_hw)) { in cvm_oct_poll() 285 if (likely(skb_in_hw)) { in cvm_oct_poll() 310 if (likely(!work->word2.s.not_IP)) { in cvm_oct_poll() 327 if (likely((port < TOTAL_NUMBER_OF_PORTS) && in cvm_oct_poll() 335 if (likely(dev->flags & IFF_UP)) { in cvm_oct_poll() 374 if (likely(packet_not_copied)) { in cvm_oct_poll()
|