/openbmc/linux/fs/btrfs/ |
H A D | tree-checker.c | 109 if (unlikely(!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), \ 213 if (unlikely(!IS_ALIGNED(key->offset, sectorsize))) { in check_extent_data_item() 226 if (unlikely(!check_prev_ino(leaf, key, slot, prev_key))) in check_extent_data_item() 235 if (unlikely(item_size < BTRFS_FILE_EXTENT_INLINE_DATA_START)) { in check_extent_data_item() 242 if (unlikely(btrfs_file_extent_type(leaf, fi) >= in check_extent_data_item() 255 if (unlikely(btrfs_file_extent_compression(leaf, fi) >= in check_extent_data_item() 263 if (unlikely(btrfs_file_extent_encryption(leaf, fi))) { in check_extent_data_item() 271 if (unlikely(key->offset)) { in check_extent_data_item() 284 if (unlikely(item_size != BTRFS_FILE_EXTENT_INLINE_DATA_START + in check_extent_data_item() 296 if (unlikely(item_siz in check_extent_data_item() [all...] |
/openbmc/linux/lib/ |
H A 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 …]
|
H A 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 …]
|
/openbmc/u-boot/include/linux/ |
H A D | bug.h | 14 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) 18 if (unlikely(__ret_warn_on)) \ 20 unlikely(__ret_warn_on); \ 25 if (unlikely(__ret_warn_on)) \ 27 unlikely(__ret_warn_on); \ 34 if (unlikely(__ret_warn_once && !__warned)) { \ 38 unlikely(__ret_warn_once); \ 45 if (unlikely(__ret_warn_once && !__warned)) { \ 49 unlikely(__ret_warn_once); \
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | enh_desc.c | 22 if (unlikely(tdes0 & ETDES0_OWN)) in enh_desc_get_tx_status() 29 if (unlikely(tdes0 & ETDES0_ERROR_SUMMARY)) { in enh_desc_get_tx_status() 30 if (unlikely(tdes0 & ETDES0_JABBER_TIMEOUT)) in enh_desc_get_tx_status() 33 if (unlikely(tdes0 & ETDES0_FRAME_FLUSHED)) { in enh_desc_get_tx_status() 38 if (unlikely(tdes0 & ETDES0_LOSS_CARRIER)) { in enh_desc_get_tx_status() 41 if (unlikely(tdes0 & ETDES0_NO_CARRIER)) { in enh_desc_get_tx_status() 44 if (unlikely((tdes0 & ETDES0_LATE_COLLISION) || in enh_desc_get_tx_status() 49 if (unlikely(tdes0 & ETDES0_EXCESSIVE_DEFERRAL)) in enh_desc_get_tx_status() 52 if (unlikely(tdes0 & ETDES0_UNDERFLOW_ERROR)) { in enh_desc_get_tx_status() 57 if (unlikely(tdes0 & ETDES0_IP_HEADER_ERROR)) in enh_desc_get_tx_status() [all …]
|
H A D | norm_desc.c | 23 if (unlikely(tdes0 & TDES0_OWN)) in ndesc_get_tx_status() 30 if (unlikely(tdes0 & TDES0_ERROR_SUMMARY)) { in ndesc_get_tx_status() 31 if (unlikely(tdes0 & TDES0_UNDERFLOW_ERROR)) { in ndesc_get_tx_status() 34 if (unlikely(tdes0 & TDES0_NO_CARRIER)) { in ndesc_get_tx_status() 37 if (unlikely(tdes0 & TDES0_LOSS_CARRIER)) { in ndesc_get_tx_status() 40 if (unlikely((tdes0 & TDES0_EXCESSIVE_DEFERRAL) || in ndesc_get_tx_status() 54 if (unlikely(tdes0 & TDES0_DEFERRED)) in ndesc_get_tx_status() 75 if (unlikely(rdes0 & RDES0_OWN)) in ndesc_get_rx_status() 78 if (unlikely(!(rdes0 & RDES0_LAST_DESCRIPTOR))) { in ndesc_get_rx_status() 83 if (unlikely(rdes0 & RDES0_ERROR_SUMMARY)) { in ndesc_get_rx_status() [all …]
|
H A 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() 36 if (unlikely(tdes3 & TDES3_JABBER_TIMEOUT)) in dwmac4_wrback_get_tx_status() 38 if (unlikely(tdes3 & TDES3_PACKET_FLUSHED)) in dwmac4_wrback_get_tx_status() 40 if (unlikely(tdes3 & TDES3_LOSS_CARRIER)) { in dwmac4_wrback_get_tx_status() 43 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() 60 if (unlikely(tdes3 & TDES3_IP_HDR_ERROR)) in dwmac4_wrback_get_tx_status() [all …]
|
/openbmc/linux/fs/nfs/ |
H A 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 …]
|
H A D | nfs3xdr.c | 146 if (unlikely(!p)) in decode_uint32() 157 if (unlikely(!p)) in decode_uint64() 200 if (unlikely(!p)) in decode_inline_filename3() 206 if (unlikely(!p)) in decode_inline_filename3() 235 if (unlikely(!p)) in decode_nfspath3() 238 if (unlikely(count >= xdr->buf->page_len || count > NFS3_MAXPATHLEN)) in decode_nfspath3() 241 if (unlikely(count > recvd)) in decode_nfspath3() 286 if (unlikely(!p)) in decode_cookieverf3() 310 if (unlikely(!p)) in decode_writeverf3() 341 if (unlikely(!p)) in decode_nfsstat3() [all …]
|
/openbmc/linux/tools/include/asm/ |
H A 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); \
|
/openbmc/linux/drivers/net/wireguard/ |
H A D | receive.c | 30 if (unlikely(skb->len < sizeof(struct message_header))) in validate_header_len() 52 if (unlikely(!wg_check_packet_protocol(skb) || in prepare_skb_header() 59 if (unlikely(data_offset > U16_MAX || in prepare_skb_header() 66 if (unlikely(data_len < sizeof(struct udphdr) || in prepare_skb_header() 74 if (unlikely(!pskb_may_pull(skb, in prepare_skb_header() 79 if (unlikely(skb->len != data_len)) in prepare_skb_header() 83 if (unlikely(!header_len)) in prepare_skb_header() 86 if (unlikely(!pskb_may_pull(skb, data_offset + header_len))) in prepare_skb_header() 145 if (unlikely(!peer)) { in wg_receive_handshake_packet() 167 if (unlikely(!peer)) { in wg_receive_handshake_packet() [all …]
|
/openbmc/linux/drivers/infiniband/sw/rxe/ |
H A D | rxe_recv.c | 19 if (unlikely(!qp->valid)) in check_type_state() 26 if (unlikely(pkt_type != IB_OPCODE_RC)) in check_type_state() 30 if (unlikely(pkt_type != IB_OPCODE_UC)) in check_type_state() 35 if (unlikely(pkt_type != IB_OPCODE_UD)) in check_type_state() 44 if (unlikely(qp_state(qp) < IB_QPS_RTR)) { in check_type_state() 49 if (unlikely(qp_state(qp) < IB_QPS_RTS)) { in check_type_state() 91 if (unlikely(deth_qkey(pkt) != qkey)) { in check_keys() 108 if (unlikely(pkt->port_num != qp->attr.port_num)) in check_addr() 144 if (unlikely(bth_tver(pkt) != BTH_TVER)) in hdr_check() 147 if (unlikely(qpn == 0)) in hdr_check() [all …]
|
H A D | rxe_mw.c | 54 if (unlikely(mw->state != RXE_MW_STATE_VALID)) { in rxe_check_bind_mw() 61 if (unlikely((access & IB_ZERO_BASED))) { in rxe_check_bind_mw() 69 if (unlikely(mw->state != RXE_MW_STATE_FREE)) { in rxe_check_bind_mw() 76 if (unlikely(qp->pd != to_rpd(mw->ibmw.pd))) { in rxe_check_bind_mw() 83 if (unlikely(!mr || wqe->wr.wr.mw.length == 0)) { in rxe_check_bind_mw() 94 if (unlikely(mr->access & IB_ZERO_BASED)) { in rxe_check_bind_mw() 100 if (unlikely(!(mr->access & IB_ACCESS_MW_BIND))) { in rxe_check_bind_mw() 107 if (unlikely((access & in rxe_check_bind_mw() 117 if (unlikely(wqe->wr.wr.mw.length > mr->ibmr.length)) { in rxe_check_bind_mw() 123 if (unlikely((wqe->wr.wr.mw.addr < mr->ibmr.iova) || in rxe_check_bind_mw() [all …]
|
/openbmc/linux/include/asm-generic/ |
H A D | bug.h | 71 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) 112 if (unlikely(__ret_warn_on)) \ 115 unlikely(__ret_warn_on); \ 124 if (unlikely(__ret_warn_on)) \ 126 unlikely(__ret_warn_on); \ 133 if (unlikely(__ret_warn_on)) \ 135 unlikely(__ret_warn_on); \ 141 if (unlikely(__ret_warn_on)) \ 143 unlikely(__ret_warn_on); \ 163 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) [all …]
|
/openbmc/linux/net/caif/ |
H A 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 …]
|
/openbmc/linux/include/linux/ |
H A D | mmdebug.h | 22 if (unlikely(cond)) { \ 29 if (unlikely(cond)) { \ 36 if (unlikely(cond)) { \ 43 if (unlikely(cond)) { \ 52 if (unlikely(__ret_warn_once && !__warned)) { \ 57 unlikely(__ret_warn_once); \ 62 if (unlikely(__ret_warn)) { \ 66 unlikely(__ret_warn); \ 72 if (unlikely(__ret_warn_once && !__warned)) { \ 77 unlikely(__ret_warn_once); \ [all …]
|
H A D | audit.h | 325 if (unlikely(task->audit_context)) in audit_free() 335 if (unlikely(audit_context() && audit_enabled)) in audit_uring_entry() 340 if (unlikely(audit_context())) in audit_uring_exit() 347 if (unlikely(audit_context())) in audit_syscall_entry() 352 if (unlikely(audit_context())) { in audit_syscall_exit() 361 if (unlikely(!audit_dummy_context())) in audit_reusename() 367 if (unlikely(!audit_dummy_context())) in audit_getname() 373 if (unlikely(!audit_dummy_context())) in audit_inode() 378 if (unlikely(!audit_dummy_context())) in audit_file() 384 if (unlikely(!audit_dummy_context())) in audit_inode_parent_hidden() [all …]
|
/openbmc/linux/arch/microblaze/mm/ |
H A 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() 142 if (unlikely(!mmap_read_trylock(mm))) { in do_page_fault() 151 if (unlikely(!vma)) in do_page_fault() 157 if (unlikely(!(vma->vm_flags & VM_GROWSDOWN))) in do_page_fault() 160 if (unlikely(!is_write)) in do_page_fault() 172 if (unlikely(address + 0x100000 < vma->vm_end)) { in do_page_fault() 203 if (unlikely(is_write)) { in do_page_fault() 204 if (unlikely(!(vma->vm_flags & VM_WRITE))) in do_page_fault() 210 if (unlikely(error_code & 0x08000000)) in do_page_fault() [all …]
|
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/macsec/ |
H A D | macsec_api.c | 17 if (unlikely(ret)) \ 140 if (unlikely(ret)) in get_raw_ingress_record() 145 if (unlikely(ret)) in get_raw_ingress_record() 155 if (unlikely(ret)) in get_raw_ingress_record() 161 if (unlikely(ret)) in get_raw_ingress_record() 233 if (unlikely(ret)) in get_raw_egress_record() 238 if (unlikely(ret)) in get_raw_egress_record() 248 if (unlikely(ret)) in get_raw_egress_record() 254 if (unlikely(ret)) in get_raw_egress_record() 314 if (unlikely(ret)) in get_ingress_prectlf_record() [all …]
|
/openbmc/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_eth_com.c | 59 if (unlikely(!io_sq->entries_in_tx_burst_left)) { in ena_com_write_bounce_buffer_to_dev() 83 if (unlikely((io_sq->tail & (io_sq->q_depth - 1)) == 0)) in ena_com_write_bounce_buffer_to_dev() 98 if (unlikely(io_sq->mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_HOST)) in ena_com_write_header_to_bounce() 104 if (unlikely((header_offset + header_len) > llq_info->desc_list_entry_size)) { in ena_com_write_header_to_bounce() 110 if (unlikely(!bounce_buffer)) { in ena_com_write_header_to_bounce() 128 if (unlikely(!bounce_buffer)) { in get_sq_desc_llq() 146 if (unlikely(io_sq->mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_HOST)) in ena_com_close_bounce_buffer() 153 if (unlikely(rc)) { in ena_com_close_bounce_buffer() 187 if (unlikely(rc)) { in ena_com_sq_update_llq_tail() 199 if (unlikely(llq_info->desc_stride_ctrl == ENA_ADMIN_SINGLE_DESC_PER_ENTRY)) in ena_com_sq_update_llq_tail() [all …]
|
/openbmc/linux/arch/mips/kernel/ |
H A D | ftrace.c | 80 if (unlikely(faulted)) in ftrace_modify_code() 95 if (unlikely(faulted)) in ftrace_modify_code_2() 100 if (unlikely(faulted)) in ftrace_modify_code_2() 116 if (unlikely(faulted)) in ftrace_modify_code_2r() 121 if (unlikely(faulted)) in ftrace_modify_code_2r() 273 if (unlikely(faulted)) in ftrace_get_parent_ra_addr() 291 if (unlikely(faulted)) in ftrace_get_parent_ra_addr() 313 if (unlikely(ftrace_graph_is_dead())) in prepare_ftrace_return() 316 if (unlikely(atomic_read(¤t->tracing_graph_pause))) in prepare_ftrace_return() 339 if (unlikely(faulted)) in prepare_ftrace_return() [all …]
|
/openbmc/linux/drivers/net/wireless/quantenna/qtnfmac/ |
H A 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 …]
|
/openbmc/linux/fs/ntfs/ |
H A 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 …]
|
/openbmc/linux/arch/parisc/lib/ |
H A D | iomap.c | 314 if (unlikely(INDIRECT_ADDR(addr))) in ioread8() 321 if (unlikely(INDIRECT_ADDR(addr))) in ioread16() 328 if (unlikely(INDIRECT_ADDR(addr))) in ioread16be() 335 if (unlikely(INDIRECT_ADDR(addr))) in ioread32() 342 if (unlikely(INDIRECT_ADDR(addr))) in ioread32be() 350 if (unlikely(INDIRECT_ADDR(addr))) in ioread64() 357 if (unlikely(INDIRECT_ADDR(addr))) in ioread64be() 365 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite8() 374 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite16() 383 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite16be() [all …]
|
/openbmc/qemu/net/ |
H A D | vhost-vdpa.c | 340 if (unlikely(r < 0)) { in vhost_vdpa_net_log_global_enable() 452 if (unlikely(r < 0)) { in vhost_vdpa_get_vring_group() 474 if (unlikely(r < 0)) { in vhost_vdpa_set_address_space_id() 494 if (unlikely(!map)) { in vhost_vdpa_cvq_unmap_buf() 501 if (unlikely(r != 0)) { in vhost_vdpa_cvq_unmap_buf() 519 if (unlikely(r != IOVA_OK)) { in vhost_vdpa_cvq_map_buf() 526 if (unlikely(r < 0)) { in vhost_vdpa_cvq_map_buf() 574 if (unlikely(cvq_group < 0)) { in vhost_vdpa_net_cvq_start() 580 if (unlikely(r < 0)) { in vhost_vdpa_net_cvq_start() 612 if (unlikely(r < 0)) { in vhost_vdpa_net_cvq_start() [all …]
|