Home
last modified time | relevance | path

Searched full:unlikely (Results 1 – 25 of 3233) sorted by relevance

12345678910>>...130

/linux/include/linux/sunrpc/xdrgen/
H A D_builtins.h32 if (unlikely(!p)) in xdrgen_decode_bool()
43 if (unlikely(!p)) in xdrgen_encode_bool()
54 if (unlikely(!p)) in xdrgen_decode_int()
65 if (unlikely(!p)) in xdrgen_encode_int()
76 if (unlikely(!p)) in xdrgen_decode_unsigned_int()
87 if (unlikely(!p)) in xdrgen_encode_unsigned_int()
98 if (unlikely(!p)) in xdrgen_decode_long()
109 if (unlikely(!p)) in xdrgen_encode_long()
120 if (unlikely(!p)) in xdrgen_decode_unsigned_long()
131 if (unlikely(!p)) in xdrgen_encode_unsigned_long()
[all …]
/linux/fs/btrfs/
H A Dtree-checker.c111 if (unlikely(!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), \
216 if (unlikely(!IS_ALIGNED(key->offset, sectorsize))) { in check_extent_data_item()
229 if (unlikely(!check_prev_ino(leaf, key, slot, prev_key))) in check_extent_data_item()
238 if (unlikely(item_size < BTRFS_FILE_EXTENT_INLINE_DATA_START)) { in check_extent_data_item()
245 if (unlikely(btrfs_file_extent_type(leaf, fi) >= in check_extent_data_item()
258 if (unlikely(btrfs_file_extent_compression(leaf, fi) >= in check_extent_data_item()
266 if (unlikely(btrfs_file_extent_encryption(leaf, fi))) { in check_extent_data_item()
274 if (unlikely(key->offset)) { in check_extent_data_item()
287 if (unlikely(item_size != BTRFS_FILE_EXTENT_INLINE_DATA_START + in check_extent_data_item()
299 if (unlikely(item_size != sizeof(*fi))) { in check_extent_data_item()
[all …]
/linux/fs/nfs/
H A Dcallback_xdr.c93 if (unlikely(p == NULL)) in decode_fh()
99 if (unlikely(p == NULL)) in decode_fh()
112 if (unlikely(p == NULL)) in decode_bitmap()
116 if (unlikely(p == NULL)) in decode_bitmap()
132 if (unlikely(p == NULL)) in decode_stateid()
150 if (unlikely(status != 0)) in decode_compound_hdr_arg()
153 if (unlikely(p == NULL)) in decode_compound_hdr_arg()
173 if (unlikely(p == NULL)) in decode_op_hdr()
186 if (unlikely(status != 0)) in decode_getattr_args()
199 if (unlikely(status != 0)) in decode_recall_args()
[all …]
H A Dnfs3xdr.c143 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/net/caif/
H A Dcfpkt_skbuff.c77 if (unlikely(skb == NULL)) in cfpkt_create_pfx()
116 if (unlikely(is_erronous(pkt))) in cfpkt_extr_head()
119 if (unlikely(len > skb->len)) { in cfpkt_extr_head()
124 if (unlikely(len > skb_headlen(skb))) { in cfpkt_extr_head()
125 if (unlikely(skb_linearize(skb) != 0)) { in cfpkt_extr_head()
143 if (unlikely(is_erronous(pkt))) in cfpkt_extr_trail()
146 if (unlikely(skb_linearize(skb) != 0)) { in cfpkt_extr_trail()
150 if (unlikely(skb->data + len > skb_tail_pointer(skb))) { in cfpkt_extr_trail()
173 if (unlikely(is_erronous(pkt))) in cfpkt_add_body()
179 if (unlikely(skb_tailroom(skb) < len)) { in cfpkt_add_body()
[all …]
/linux/drivers/net/wireguard/
H A Dreceive.c30 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 …]
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Denh_desc.c22 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 Dnorm_desc.c23 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 Ddwmac4_descs.c26 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 …]
/linux/drivers/infiniband/sw/rxe/
H A Drxe_recv.c19 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 Drxe_mw.c54 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 …]
/linux/include/linux/
H A Dmmdebug.h22 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 Daudit.h326 if (unlikely(task->audit_context)) in audit_free()
336 if (unlikely(audit_context() && audit_enabled)) in audit_uring_entry()
341 if (unlikely(audit_context())) in audit_uring_exit()
348 if (unlikely(audit_context())) in audit_syscall_entry()
353 if (unlikely(audit_context())) { in audit_syscall_exit()
362 if (unlikely(!audit_dummy_context())) in audit_reusename()
368 if (unlikely(!audit_dummy_context())) in audit_getname()
374 if (unlikely(!audit_dummy_context())) in audit_inode()
379 if (unlikely(!audit_dummy_context())) in audit_file()
385 if (unlikely(!audit_dummy_context())) in audit_inode_parent_hidden()
[all …]
/linux/tools/include/asm/
H A Dbug.h12 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/lib/
H A Dasn1_decoder.c66 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 Dwin_minmax.c34 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 …]
/linux/drivers/net/ethernet/amazon/ena/
H A Dena_eth_com.c59 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 …]
/linux/drivers/net/ethernet/aquantia/atlantic/macsec/
H A Dmacsec_api.c17 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 …]
/linux/drivers/net/wireless/quantenna/qtnfmac/
H A Dtrans.c25 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/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dmlx5hws_bwc.c233 if (unlikely(ret < 0)) { in hws_bwc_queue_poll()
242 if (unlikely(comp[i].status != MLX5HWS_FLOW_OP_SUCCESS)) { in hws_bwc_queue_poll()
285 if (unlikely(!bwc_rule)) in mlx5hws_bwc_rule_alloc()
289 if (unlikely(!bwc_rule->rule)) in mlx5hws_bwc_rule_alloc()
341 if (unlikely(ret)) in hws_bwc_rule_destroy_hws_sync()
348 if (unlikely(completion.status != MLX5HWS_FLOW_OP_SUCCESS || in hws_bwc_rule_destroy_hws_sync()
423 if (unlikely(ret)) in hws_bwc_rule_create_sync()
446 if (unlikely(ret)) in hws_bwc_rule_update_sync()
450 if (unlikely(ret)) in hws_bwc_rule_update_sync()
469 if (unlikely(hws_bwc_matcher_size_maxed_out(bwc_matcher))) in hws_bwc_matcher_rehash_size_needed()
[all …]
/linux/arch/parisc/lib/
H A Diomap.c314 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 …]
/linux/lib/vdso/
H A Dgettimeofday.c93 if (unlikely(!vdso_clocksource_ok(vd))) in do_hres_timens()
97 if (unlikely(!vdso_cycles_ok(cycles))) in do_hres_timens()
101 } while (unlikely(vdso_read_retry(vd, seq))); in do_hres_timens()
153 while (unlikely((seq = READ_ONCE(vd->seq)) & 1)) { in do_hres()
161 if (unlikely(!vdso_clocksource_ok(vd))) in do_hres()
165 if (unlikely(!vdso_cycles_ok(cycles))) in do_hres()
169 } while (unlikely(vdso_read_retry(vd, seq))); in do_hres()
196 } while (unlikely(vdso_read_retry(vd, seq))); in do_coarse_timens()
239 } while (unlikely(vdso_read_retry(vd, seq))); in do_coarse()
251 if (unlikely((u32) clock >= MAX_CLOCKS)) in __cvdso_clock_gettime_common()
[all …]
/linux/drivers/rtc/
H A Drtc-mc13xxx.c105 if (unlikely(ret)) in mc13xxx_rtc_set_time()
111 if (unlikely(ret)) in mc13xxx_rtc_set_time()
120 if (unlikely(ret)) in mc13xxx_rtc_set_time()
124 if (unlikely(ret)) in mc13xxx_rtc_set_time()
128 if (unlikely(ret)) in mc13xxx_rtc_set_time()
135 if (unlikely(ret)) in mc13xxx_rtc_set_time()
141 if (unlikely(ret)) in mc13xxx_rtc_set_time()
166 if (unlikely(ret)) in mc13xxx_rtc_read_alarm()
174 if (unlikely(ret)) in mc13xxx_rtc_read_alarm()
208 if (unlikely(ret)) in mc13xxx_rtc_set_alarm()
[all …]
/linux/arch/microblaze/mm/
H A Dfault.c100 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 …]
/linux/drivers/gpu/drm/xe/
H A Dxe_gt_sriov_vf.c55 if (unlikely(err)) in vf_reset_guc_state()
79 if (unlikely(ret < 0)) in guc_action_match_version()
82 if (unlikely(FIELD_GET(VF2GUC_MATCH_VERSION_RESPONSE_MSG_0_MBZ, response[0]))) in guc_action_match_version()
141 if (unlikely(err)) in vf_handshake_with_guc()
216 if (unlikely(err)) in xe_gt_sriov_vf_bootstrap()
220 if (unlikely(err)) in xe_gt_sriov_vf_bootstrap()
242 if (unlikely(ret < 0)) in guc_action_query_single_klv()
245 if (unlikely(FIELD_GET(VF2GUC_QUERY_SINGLE_KLV_RESPONSE_MSG_0_MBZ, response[0]))) in guc_action_query_single_klv()
249 if (unlikely(length > value_len)) in guc_action_query_single_klv()
251 if (unlikely(length < value_len)) in guc_action_query_single_klv()
[all …]

12345678910>>...130