Home
last modified time | relevance | path

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

12345678910>>...177

/linux-6.12.1/include/linux/sunrpc/xdrgen/
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-6.12.1/fs/btrfs/
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-6.12.1/fs/nfs/
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 …]
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-6.12.1/net/caif/
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-6.12.1/drivers/net/wireguard/
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-6.12.1/drivers/net/ethernet/stmicro/stmmac/
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 …]
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 …]
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-6.12.1/drivers/infiniband/sw/rxe/
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 …]
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-6.12.1/include/linux/
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 …]
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-6.12.1/tools/include/asm/
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-6.12.1/lib/
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 …]
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-6.12.1/drivers/net/ethernet/amazon/ena/
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-6.12.1/drivers/net/ethernet/aquantia/atlantic/macsec/
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-6.12.1/drivers/net/wireless/quantenna/qtnfmac/
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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
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-6.12.1/include/asm-generic/
Dbug.h71 #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); \
166 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
[all …]
/linux-6.12.1/arch/parisc/lib/
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-6.12.1/lib/vdso/
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-6.12.1/drivers/rtc/
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-6.12.1/drivers/md/
Ddm-integrity.c469 if (unlikely(*sec_ptr >= ic->journal_sections)) in wraparound_section()
507 if (unlikely(r < 0)) { in sb_mac()
515 if (unlikely(r < 0)) { in sb_mac()
549 if (unlikely(r)) in sync_rw_sb()
555 if (unlikely(r)) in sync_rw_sb()
561 if (unlikely(r)) in sync_rw_sb()
580 if (unlikely(((sector | n_sectors) & ((1 << ic->sb->log2_sectors_per_block) - 1)) != 0)) { in block_bitmap_op()
590 if (unlikely(!n_sectors)) in block_bitmap_op()
671 if (unlikely(page < end_page)) { in block_bitmap_op()
708 if (unlikely(section >= ic->journal_sections) || in access_journal_check()
[all …]

12345678910>>...177