| /Linux-v5.4/include/asm-generic/ |
| D | bug.h | 62 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) 97 if (unlikely(__ret_warn_on)) \ 100 unlikely(__ret_warn_on); \ 114 if (unlikely(__ret_warn_on)) \ 116 unlikely(__ret_warn_on); \ 123 if (unlikely(__ret_warn_on)) \ 125 unlikely(__ret_warn_on); \ 131 if (unlikely(__ret_warn_on)) \ 133 unlikely(__ret_warn_on); \ 141 if (unlikely(__ret_warn_once && !__warned)) { \ [all …]
|
| /Linux-v5.4/lib/ |
| D | asn1_decoder.c | 66 if (unlikely(datalen - dp < 2)) { in asn1_find_indefinite_length() 86 if (unlikely((tag & 0x1f) == ASN1_LONG_TAG)) { in asn1_find_indefinite_length() 88 if (unlikely(datalen - dp < 2)) in asn1_find_indefinite_length() 99 if (unlikely(len == ASN1_INDEFINITE_LENGTH)) { in asn1_find_indefinite_length() 101 if (unlikely((tag & ASN1_CONS_BIT) == ASN1_PRIM << 5)) in asn1_find_indefinite_length() 108 if (unlikely(n > sizeof(len) - 1)) in asn1_find_indefinite_length() 110 if (unlikely(n > datalen - dp)) in asn1_find_indefinite_length() 203 if (unlikely(pc >= machlen)) in asn1_ber_decoder() 206 if (unlikely(pc + asn1_op_lengths[op] > machlen)) in asn1_ber_decoder() 227 if (unlikely(datalen - dp < 2)) in asn1_ber_decoder() [all …]
|
| D | win_minmax.c | 34 if (unlikely(dt > win)) { in minmax_subwin_update() 45 if (unlikely(val->t - m->s[0].t > win)) { in minmax_subwin_update() 50 } else if (unlikely(m->s[1].t == m->s[0].t) && dt > win/4) { in minmax_subwin_update() 56 } else if (unlikely(m->s[2].t == m->s[1].t) && dt > win/2) { in minmax_subwin_update() 71 if (unlikely(val.v >= m->s[0].v) || /* found new max? */ in minmax_running_max() 72 unlikely(val.t - m->s[2].t > win)) /* nothing left in window? */ in minmax_running_max() 75 if (unlikely(val.v >= m->s[1].v)) in minmax_running_max() 77 else if (unlikely(val.v >= m->s[2].v)) in minmax_running_max() 89 if (unlikely(val.v <= m->s[0].v) || /* found new min? */ in minmax_running_min() 90 unlikely(val.t - m->s[2].t > win)) /* nothing left in window? */ in minmax_running_min() [all …]
|
| D | iov_iter.c | 28 while (unlikely(!left && n)) { \ 31 if (unlikely(!__v.iov_len)) \ 52 while (unlikely(n)) { \ 55 if (unlikely(!__v.iov_len)) \ 80 if (unlikely(i->type & ITER_BVEC)) { \ 84 } else if (unlikely(i->type & ITER_KVEC)) { \ 88 } else if (unlikely(i->type & ITER_DISCARD)) { \ 98 if (unlikely(i->count < n)) \ 102 if (unlikely(i->type & ITER_BVEC)) { \ 110 } else if (unlikely(i->type & ITER_KVEC)) { \ [all …]
|
| /Linux-v5.4/drivers/net/ethernet/stmicro/stmmac/ |
| D | enh_desc.c | 23 if (unlikely(tdes0 & ETDES0_OWN)) in enh_desc_get_tx_status() 30 if (unlikely(tdes0 & ETDES0_ERROR_SUMMARY)) { in enh_desc_get_tx_status() 31 if (unlikely(tdes0 & ETDES0_JABBER_TIMEOUT)) in enh_desc_get_tx_status() 34 if (unlikely(tdes0 & ETDES0_FRAME_FLUSHED)) { in enh_desc_get_tx_status() 39 if (unlikely(tdes0 & ETDES0_LOSS_CARRIER)) { in enh_desc_get_tx_status() 43 if (unlikely(tdes0 & ETDES0_NO_CARRIER)) { in enh_desc_get_tx_status() 47 if (unlikely((tdes0 & ETDES0_LATE_COLLISION) || in enh_desc_get_tx_status() 52 if (unlikely(tdes0 & ETDES0_EXCESSIVE_DEFERRAL)) in enh_desc_get_tx_status() 55 if (unlikely(tdes0 & ETDES0_UNDERFLOW_ERROR)) { in enh_desc_get_tx_status() 60 if (unlikely(tdes0 & ETDES0_IP_HEADER_ERROR)) in enh_desc_get_tx_status() [all …]
|
| D | norm_desc.c | 24 if (unlikely(tdes0 & TDES0_OWN)) in ndesc_get_tx_status() 31 if (unlikely(tdes0 & TDES0_ERROR_SUMMARY)) { in ndesc_get_tx_status() 32 if (unlikely(tdes0 & TDES0_UNDERFLOW_ERROR)) { in ndesc_get_tx_status() 36 if (unlikely(tdes0 & TDES0_NO_CARRIER)) { in ndesc_get_tx_status() 40 if (unlikely(tdes0 & TDES0_LOSS_CARRIER)) { in ndesc_get_tx_status() 44 if (unlikely((tdes0 & TDES0_EXCESSIVE_DEFERRAL) || in ndesc_get_tx_status() 58 if (unlikely(tdes0 & TDES0_DEFERRED)) in ndesc_get_tx_status() 80 if (unlikely(rdes0 & RDES0_OWN)) in ndesc_get_rx_status() 83 if (unlikely(!(rdes0 & RDES0_LAST_DESCRIPTOR))) { in ndesc_get_rx_status() 88 if (unlikely(rdes0 & RDES0_ERROR_SUMMARY)) { in ndesc_get_rx_status() [all …]
|
| D | dwmac4_descs.c | 26 if (unlikely(tdes3 & TDES3_OWN)) in dwmac4_wrback_get_tx_status() 33 if (unlikely(tdes3 & TDES3_ERROR_SUMMARY)) { in dwmac4_wrback_get_tx_status() 34 if (unlikely(tdes3 & TDES3_JABBER_TIMEOUT)) in dwmac4_wrback_get_tx_status() 36 if (unlikely(tdes3 & TDES3_PACKET_FLUSHED)) in dwmac4_wrback_get_tx_status() 38 if (unlikely(tdes3 & TDES3_LOSS_CARRIER)) { in dwmac4_wrback_get_tx_status() 42 if (unlikely(tdes3 & TDES3_NO_CARRIER)) { in dwmac4_wrback_get_tx_status() 46 if (unlikely((tdes3 & TDES3_LATE_COLLISION) || in dwmac4_wrback_get_tx_status() 52 if (unlikely(tdes3 & TDES3_EXCESSIVE_DEFERRAL)) in dwmac4_wrback_get_tx_status() 55 if (unlikely(tdes3 & TDES3_UNDERFLOW_ERROR)) in dwmac4_wrback_get_tx_status() 58 if (unlikely(tdes3 & TDES3_IP_HDR_ERROR)) in dwmac4_wrback_get_tx_status() [all …]
|
| D | dwmac_lib.c | 162 if (unlikely(intr_status & DMA_STATUS_AIS)) { in dwmac_dma_interrupt() 163 if (unlikely(intr_status & DMA_STATUS_UNF)) { in dwmac_dma_interrupt() 167 if (unlikely(intr_status & DMA_STATUS_TJT)) in dwmac_dma_interrupt() 170 if (unlikely(intr_status & DMA_STATUS_OVF)) in dwmac_dma_interrupt() 173 if (unlikely(intr_status & DMA_STATUS_RU)) in dwmac_dma_interrupt() 175 if (unlikely(intr_status & DMA_STATUS_RPS)) in dwmac_dma_interrupt() 177 if (unlikely(intr_status & DMA_STATUS_RWT)) in dwmac_dma_interrupt() 179 if (unlikely(intr_status & DMA_STATUS_ETI)) in dwmac_dma_interrupt() 181 if (unlikely(intr_status & DMA_STATUS_TPS)) { in dwmac_dma_interrupt() 185 if (unlikely(intr_status & DMA_STATUS_FBI)) { in dwmac_dma_interrupt() [all …]
|
| /Linux-v5.4/tools/include/asm/ |
| D | bug.h | 12 if (unlikely(__ret_warn_on)) \ 14 unlikely(__ret_warn_on); \ 19 if (unlikely(__ret_warn_on)) \ 22 unlikely(__ret_warn_on); \ 29 if (unlikely(__ret_warn_once && !__warned)) { \ 33 unlikely(__ret_warn_once); \ 40 if (unlikely(__ret_warn_once)) \ 43 unlikely(__ret_warn_once); \
|
| /Linux-v5.4/arch/microblaze/mm/ |
| D | fault.c | 100 if (unlikely(kernel_mode(regs) && (address >= TASK_SIZE))) { in do_page_fault() 109 if (unlikely(faulthandler_disabled() || !mm)) { in do_page_fault() 140 if (unlikely(!down_read_trylock(&mm->mmap_sem))) { in do_page_fault() 149 if (unlikely(!vma)) in do_page_fault() 155 if (unlikely(!(vma->vm_flags & VM_GROWSDOWN))) in do_page_fault() 158 if (unlikely(!is_write)) in do_page_fault() 170 if (unlikely(address + 0x100000 < vma->vm_end)) { in do_page_fault() 200 if (unlikely(is_write)) { in do_page_fault() 201 if (unlikely(!(vma->vm_flags & VM_WRITE))) in do_page_fault() 207 if (unlikely(error_code & 0x08000000)) in do_page_fault() [all …]
|
| /Linux-v5.4/fs/nfs/ |
| D | callback_xdr.c | 92 if (unlikely(p == NULL)) in decode_fh() 98 if (unlikely(p == NULL)) in decode_fh() 111 if (unlikely(p == NULL)) in decode_bitmap() 115 if (unlikely(p == NULL)) in decode_bitmap() 129 if (unlikely(p == NULL)) in decode_stateid() 147 if (unlikely(status != 0)) in decode_compound_hdr_arg() 150 if (unlikely(p == NULL)) in decode_compound_hdr_arg() 170 if (unlikely(p == NULL)) in decode_op_hdr() 183 if (unlikely(status != 0)) in decode_getattr_args() 196 if (unlikely(status != 0)) in decode_recall_args() [all …]
|
| D | nfs3xdr.c | 143 if (unlikely(!p)) in decode_uint32() 154 if (unlikely(!p)) in decode_uint64() 197 if (unlikely(!p)) in decode_inline_filename3() 203 if (unlikely(!p)) in decode_inline_filename3() 232 if (unlikely(!p)) in decode_nfspath3() 235 if (unlikely(count >= xdr->buf->page_len || count > NFS3_MAXPATHLEN)) in decode_nfspath3() 238 if (unlikely(count > recvd)) in decode_nfspath3() 283 if (unlikely(!p)) in decode_cookieverf3() 307 if (unlikely(!p)) in decode_writeverf3() 338 if (unlikely(!p)) in decode_nfsstat3() [all …]
|
| /Linux-v5.4/net/caif/ |
| D | cfpkt_skbuff.c | 84 if (unlikely(skb == NULL)) in cfpkt_create_pfx() 123 if (unlikely(is_erronous(pkt))) in cfpkt_extr_head() 126 if (unlikely(len > skb->len)) { in cfpkt_extr_head() 131 if (unlikely(len > skb_headlen(skb))) { in cfpkt_extr_head() 132 if (unlikely(skb_linearize(skb) != 0)) { in cfpkt_extr_head() 150 if (unlikely(is_erronous(pkt))) in cfpkt_extr_trail() 153 if (unlikely(skb_linearize(skb) != 0)) { in cfpkt_extr_trail() 157 if (unlikely(skb->data + len > skb_tail_pointer(skb))) { in cfpkt_extr_trail() 180 if (unlikely(is_erronous(pkt))) in cfpkt_add_body() 186 if (unlikely(skb_tailroom(skb) < len)) { in cfpkt_add_body() [all …]
|
| /Linux-v5.4/drivers/infiniband/sw/rxe/ |
| D | rxe_recv.c | 42 if (unlikely(!qp->valid)) in check_type_state() 47 if (unlikely((pkt->opcode & IB_OPCODE_RC) != 0)) { in check_type_state() 53 if (unlikely(!(pkt->opcode & IB_OPCODE_UC))) { in check_type_state() 61 if (unlikely(!(pkt->opcode & IB_OPCODE_UD))) { in check_type_state() 72 if (unlikely(qp->resp.state != QP_STATE_READY)) in check_type_state() 74 } else if (unlikely(qp->req.state < QP_STATE_READY || in check_type_state() 126 if (unlikely(!pkey_match(pkey, in check_keys() 140 if (unlikely(deth_qkey(pkt) != qkey)) { in check_keys() 162 if (unlikely(pkt->port_num != qp->attr.port_num)) { in check_addr() 223 if (unlikely(bth_tver(pkt) != BTH_TVER)) { in hdr_check() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/amazon/ena/ |
| D | ena_eth_com.c | 86 if (unlikely(!io_sq->entries_in_tx_burst_left)) { in ena_com_write_bounce_buffer_to_dev() 108 if (unlikely((io_sq->tail & (io_sq->q_depth - 1)) == 0)) in ena_com_write_bounce_buffer_to_dev() 123 if (unlikely(io_sq->mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_HOST)) in ena_com_write_header_to_bounce() 129 if (unlikely((header_offset + header_len) > in ena_com_write_header_to_bounce() 135 if (unlikely(!bounce_buffer)) { in ena_com_write_header_to_bounce() 153 if (unlikely(!bounce_buffer)) { in get_sq_desc_llq() 171 if (unlikely(io_sq->mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_HOST)) in ena_com_close_bounce_buffer() 178 if (unlikely(rc)) in ena_com_close_bounce_buffer() 209 if (unlikely(rc)) in ena_com_sq_update_llq_tail() 218 if (unlikely(llq_info->desc_stride_ctrl == ENA_ADMIN_SINGLE_DESC_PER_ENTRY)) in ena_com_sq_update_llq_tail() [all …]
|
| /Linux-v5.4/lib/vdso/ |
| D | gettimeofday.c | 53 if (unlikely((s64)cycles < 0)) in do_hres() 59 } while (unlikely(vdso_read_retry(vd, seq))); in do_hres() 81 } while (unlikely(vdso_read_retry(vd, seq))); in do_coarse() 91 if (unlikely((u32) clock >= MAX_CLOCKS)) in __cvdso_clock_gettime_common() 115 if (unlikely(ret)) in __cvdso_clock_gettime() 129 if (unlikely(ret)) in __cvdso_clock_gettime32() 132 if (unlikely(ret)) in __cvdso_clock_gettime32() 158 if (unlikely(tz != NULL)) { in __cvdso_gettimeofday() 189 if (unlikely((u32) clock >= MAX_CLOCKS)) in __cvdso_clock_getres_common() 228 if (unlikely(ret)) in __cvdso_clock_getres() [all …]
|
| /Linux-v5.4/drivers/net/wireless/quantenna/qtnfmac/ |
| D | trans.c | 25 if (unlikely(!response_skb)) { in qtnf_trans_send_cmd_with_resp() 40 if (unlikely(ret)) in qtnf_trans_send_cmd_with_resp() 54 if (unlikely(status <= 0)) { in qtnf_trans_send_cmd_with_resp() 64 if (unlikely(!resp_skb || resp_not_handled)) { in qtnf_trans_send_cmd_with_resp() 75 if (unlikely(resp_skb && resp_not_handled)) in qtnf_trans_send_cmd_with_resp() 89 if (unlikely(!ctl_node->waiting_for_resp)) { in qtnf_trans_signal_cmdresp() 94 if (unlikely(recvd_seq_num != ctl_node->seq_num)) { in qtnf_trans_signal_cmdresp() 173 if (unlikely(skb->len < sizeof(*header))) { in qtnf_trans_handle_rx_ctl_packet() 179 if (unlikely(skb->len != le16_to_cpu(header->len))) { in qtnf_trans_handle_rx_ctl_packet() 188 if (unlikely(skb->len < sizeof(struct qlink_cmd))) { in qtnf_trans_handle_rx_ctl_packet() [all …]
|
| /Linux-v5.4/include/linux/ |
| D | audit.h | 299 if (unlikely(task->audit_context)) in audit_free() 306 if (unlikely(audit_context())) in audit_syscall_entry() 311 if (unlikely(audit_context())) { in audit_syscall_exit() 320 if (unlikely(!audit_dummy_context())) in audit_reusename() 326 if (unlikely(!audit_dummy_context())) in audit_getname() 332 if (unlikely(!audit_dummy_context())) in audit_inode() 337 if (unlikely(!audit_dummy_context())) in audit_file() 343 if (unlikely(!audit_dummy_context())) in audit_inode_parent_hidden() 350 if (unlikely(!audit_dummy_context())) in audit_inode_child() 357 if (unlikely(!audit_dummy_context())) in audit_ptrace() [all …]
|
| /Linux-v5.4/arch/x86/lib/ |
| D | iomem.c | 27 if (unlikely(!n)) in memcpy_fromio() 31 if (unlikely(1 & (unsigned long)from)) { in memcpy_fromio() 35 if (n > 1 && unlikely(2 & (unsigned long)from)) { in memcpy_fromio() 45 if (unlikely(!n)) in memcpy_toio() 49 if (unlikely(1 & (unsigned long)to)) { in memcpy_toio() 53 if (n > 1 && unlikely(2 & (unsigned long)to)) { in memcpy_toio()
|
| /Linux-v5.4/arch/parisc/lib/ |
| D | iomap.c | 302 if (unlikely(INDIRECT_ADDR(addr))) in ioread8() 309 if (unlikely(INDIRECT_ADDR(addr))) in ioread16() 316 if (unlikely(INDIRECT_ADDR(addr))) in ioread16be() 323 if (unlikely(INDIRECT_ADDR(addr))) in ioread32() 330 if (unlikely(INDIRECT_ADDR(addr))) in ioread32be() 337 if (unlikely(INDIRECT_ADDR(addr))) in ioread64() 344 if (unlikely(INDIRECT_ADDR(addr))) in ioread64be() 351 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite8() 360 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite16() 369 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite16be() [all …]
|
| /Linux-v5.4/arch/mips/kernel/ |
| D | ftrace.c | 85 if (unlikely(faulted)) in ftrace_modify_code() 104 if (unlikely(faulted)) in ftrace_modify_code_2() 109 if (unlikely(faulted)) in ftrace_modify_code_2() 129 if (unlikely(faulted)) in ftrace_modify_code_2r() 134 if (unlikely(faulted)) in ftrace_modify_code_2r() 289 if (unlikely(faulted)) in ftrace_get_parent_ra_addr() 307 if (unlikely(faulted)) in ftrace_get_parent_ra_addr() 329 if (unlikely(ftrace_graph_is_dead())) in prepare_ftrace_return() 332 if (unlikely(atomic_read(¤t->tracing_graph_pause))) in prepare_ftrace_return() 355 if (unlikely(faulted)) in prepare_ftrace_return() [all …]
|
| /Linux-v5.4/fs/ntfs/ |
| D | runlist.c | 71 if (unlikely(!new_rl)) in ntfs_rl_realloc() 75 if (unlikely(old_size > new_size)) in ntfs_rl_realloc() 120 if (unlikely(old_size > new_size)) in ntfs_rl_realloc_nofail() 537 if (unlikely(!srl)) in ntfs_runlists_merge() 543 if (unlikely(!drl)) { in ntfs_runlists_merge() 546 if (unlikely(drl[0].vcn)) { in ntfs_runlists_merge() 764 if (unlikely(buf < (u8*)attr || buf > attr_end)) { in ntfs_mapping_pairs_decompress() 775 if (unlikely(!rl)) in ntfs_mapping_pairs_decompress() 794 if (unlikely(!rl2)) { in ntfs_mapping_pairs_decompress() 814 if (unlikely(buf + b > attr_end)) in ntfs_mapping_pairs_decompress() [all …]
|
| /Linux-v5.4/net/llc/ |
| D | llc_input.c | 116 if (unlikely(!pskb_may_pull(skb, sizeof(*pdu)))) in llc_fixup_skb() 124 if (unlikely(!pskb_may_pull(skb, llc_len))) in llc_fixup_skb() 136 if (unlikely(pskb_trim_rcsum(skb, data_size))) in llc_fixup_skb() 172 if (unlikely(skb->pkt_type == PACKET_OTHERHOST)) { in llc_rcv() 177 if (unlikely(!skb)) in llc_rcv() 179 if (unlikely(!llc_fixup_skb(skb))) in llc_rcv() 182 if (unlikely(!pdu->dsap)) /* NULL DSAP, refer to station */ in llc_rcv() 185 if (unlikely(!sap)) {/* unknown SAP */ in llc_rcv() 197 if (unlikely(!sap_handler)) { in llc_rcv()
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
| D | umem.c | 19 if (unlikely(dma_mapping_error(dev, dma))) in mlx5e_xsk_map_umem() 54 if (unlikely(!xsk->umems)) in mlx5e_xsk_get_umems() 77 if (unlikely(err)) in mlx5e_xsk_add_umem() 110 if (unlikely(mlx5e_xsk_get_umem(&priv->channels.params, &priv->xsk, ix))) in mlx5e_xsk_enable_locked() 113 if (unlikely(!mlx5e_xsk_is_umem_sane(umem))) in mlx5e_xsk_enable_locked() 117 if (unlikely(err)) in mlx5e_xsk_enable_locked() 121 if (unlikely(err)) in mlx5e_xsk_enable_locked() 141 if (unlikely(err)) in mlx5e_xsk_enable_locked() 151 if (unlikely(err)) in mlx5e_xsk_enable_locked() 186 if (unlikely(!umem)) in mlx5e_xsk_disable_locked() [all …]
|
| /Linux-v5.4/mm/kasan/ |
| D | generic.c | 54 if (unlikely(shadow_value)) { in memory_is_poisoned_1() 56 return unlikely(last_accessible_byte >= shadow_value); in memory_is_poisoned_1() 71 if (unlikely(((addr + size - 1) & KASAN_SHADOW_MASK) < size - 1)) in memory_is_poisoned_2_4_8() 82 if (unlikely(!IS_ALIGNED(addr, KASAN_SHADOW_SCALE_SIZE))) in memory_is_poisoned_16() 92 if (unlikely(*start)) in bytes_is_nonzero() 114 if (unlikely(ret)) in memory_is_nonzero() 121 if (unlikely(*(u64 *)start)) in memory_is_nonzero() 138 if (unlikely(ret)) { in memory_is_poisoned_n() 142 if (unlikely(ret != (unsigned long)last_shadow || in memory_is_poisoned_n() 173 if (unlikely(size == 0)) in check_memory_region_inline() [all …]
|