Home
last modified time | relevance | path

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

12345678910>>...108

/linux/fs/btrfs/
H A Dtree-checker.c111 if (unlikely(!IS_ALIGNED(btrfs_file_extent_##name((leaf), (fi)), \
217 if (unlikely(!IS_ALIGNED(key->offset, sectorsize))) { in check_extent_data_item()
230 if (unlikely(!check_prev_ino(leaf, key, slot, prev_key))) in check_extent_data_item()
239 if (unlikely(item_size < BTRFS_FILE_EXTENT_INLINE_DATA_START)) { in check_extent_data_item()
246 if (unlikely(btrfs_file_extent_type(leaf, fi) >= in check_extent_data_item()
259 if (unlikely(btrfs_file_extent_compression(leaf, fi) >= in check_extent_data_item()
267 if (unlikely(btrfs_file_extent_encryption(leaf, fi))) { in check_extent_data_item()
275 if (unlikely(key->offset)) { in check_extent_data_item()
288 if (unlikely(item_size != BTRFS_FILE_EXTENT_INLINE_DATA_START + in check_extent_data_item()
300 if (unlikely(item_size != sizeof(*fi))) { in check_extent_data_item()
[all …]
/linux/fs/nfs/
H A Dcallback_xdr.c91 if (unlikely(p == NULL)) in decode_fh()
97 if (unlikely(p == NULL)) in decode_fh()
109 if (unlikely(p == NULL)) in decode_bitmap()
113 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 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 …]
H A Dnfs2xdr.c99 if (unlikely(!p)) in decode_nfsdata()
103 if (unlikely(count > recvd)) in decode_nfsdata()
143 if (unlikely(!p)) in decode_stat()
145 if (unlikely(*p != cpu_to_be32(NFS_OK))) in decode_stat()
171 if (unlikely(*type > NF2FIFO)) in xdr_decode_ftype()
194 if (unlikely(!p)) in decode_fhandle()
269 if (unlikely(!p)) in decode_fattr()
396 if (unlikely(!p)) in decode_filename_inline()
402 if (unlikely(!p)) in decode_filename_inline()
432 if (unlikely(!p)) in decode_path()
[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 …]
H A Dsend.c68 unlikely(READ_ONCE(peer->is_dead))) in wg_packet_send_queued_handshake_initiation()
137 if (unlikely(send)) in keep_key_fresh()
145 if (unlikely(!PACKET_CB(skb)->mtu)) in calculate_skb_padding()
154 if (unlikely(last_unit > PACKET_CB(skb)->mtu)) in calculate_skb_padding()
182 if (unlikely(num_frags < 0 || num_frags > ARRAY_SIZE(sg))) in encrypt_packet()
193 if (unlikely(skb_cow_head(skb, DATA_PACKET_HEAD_ROOM) < 0)) in encrypt_packet()
197 if (unlikely(skb->ip_summed == CHECKSUM_PARTIAL && in encrypt_packet()
228 if (unlikely(!skb)) in wg_packet_send_keepalive()
317 if (unlikely(READ_ONCE(peer->is_dead))) in wg_packet_create_data()
322 if (unlikely(ret == -EPIPE)) in wg_packet_create_data()
[all …]
/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 …]
/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/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 …]
H A Dena_com.c166 if (unlikely(!aenq_handlers)) { in ena_com_admin_init_aenq()
186 if (unlikely(command_id >= admin_queue->q_depth)) { in get_comp_ctxt()
193 if (unlikely(!admin_queue->comp_ctx)) { in get_comp_ctxt()
198 if (unlikely(admin_queue->comp_ctx[command_id].occupied && capture)) { in get_comp_ctxt()
243 if (unlikely(!comp_ctx)) in __ena_com_submit_admin_cmd()
261 if (unlikely((admin_queue->sq.tail & queue_size_mask) == 0)) in __ena_com_submit_admin_cmd()
277 if (unlikely(!admin_queue->comp_ctx)) { in ena_com_init_comp_ctxt()
301 if (unlikely(!admin_queue->running_state)) { in ena_com_submit_admin_cmd()
439 if (unlikely(!comp_ctx)) { in ena_com_handle_single_admin_completion()
479 if (unlikely(head_masked == admin_queue->q_depth)) { in ena_com_handle_admin_completion()
[all …]
/linux/drivers/net/ovpn/
H A Dio.c121 if (unlikely(ret == -EINPROGRESS)) in ovpn_decrypt_post()
131 if (unlikely(ret < 0)) in ovpn_decrypt_post()
137 if (unlikely(ret < 0)) { in ovpn_decrypt_post()
162 if (unlikely(!proto)) { in ovpn_decrypt_post()
164 if (unlikely(!pskb_may_pull(skb, 1))) { in ovpn_decrypt_post()
187 if (unlikely(!ovpn_peer_check_by_src(peer->ovpn, skb, peer))) { in ovpn_decrypt_post()
203 if (unlikely(skb)) in ovpn_decrypt_post()
224 if (unlikely(!ks)) { in ovpn_recv()
249 if (unlikely(ret == -EINPROGRESS)) in ovpn_encrypt_post()
258 if (unlikely(ret == -ERANGE)) { in ovpn_encrypt_post()
[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/infiniband/sw/rxe/
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/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 Dbwc.c97 if (unlikely(ret)) { in hws_bwc_matcher_move_all_simple()
115 if (unlikely(ret)) { in hws_bwc_matcher_move_all_simple()
138 if (unlikely(ret)) { in hws_bwc_matcher_move_all_simple()
156 if (unlikely(move_error)) in hws_bwc_matcher_move_all_simple()
158 if (unlikely(poll_error)) in hws_bwc_matcher_move_all_simple()
160 if (unlikely(drain_error)) in hws_bwc_matcher_move_all_simple()
428 if (unlikely(ret < 0)) { in mlx5hws_bwc_queue_poll()
437 if (unlikely(comp[i].status != MLX5HWS_FLOW_OP_SUCCESS)) { in mlx5hws_bwc_queue_poll()
449 if (unlikely(!got_comp && time_after(jiffies, timeout))) { in mlx5hws_bwc_queue_poll()
485 if (unlikely(!bwc_rule)) in mlx5hws_bwc_rule_alloc()
[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/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/net/ethernet/qlogic/qede/
H A Dqede_fp.c45 if (unlikely(!data)) in qede_alloc_rx_buffer()
53 if (unlikely(dma_mapping_error(rxq->dev, mapping))) { in qede_alloc_rx_buffer()
88 if (unlikely(!skb)) { in qede_free_tx_pkt()
252 if (unlikely(dma_mapping_error(txq->dev, mapping))) in map_frag_to_bd()
312 if (unlikely(qed_chain_get_elem_used(&txq->tx_pbl) >= in qede_xdp_xmit()
351 if (unlikely(flags & ~XDP_XMIT_FLAGS_MASK)) in qede_xdp_transmit()
354 if (unlikely(!netif_running(dev))) in qede_xdp_transmit()
367 if (unlikely(dma_mapping_error(dmadev, mapping))) in qede_xdp_transmit()
370 if (unlikely(qede_xdp_xmit(xdp_tx, mapping, 0, xdpf->len, in qede_xdp_transmit()
475 if (unlikely(netif_tx_queue_stopped(netdev_txq))) { in qede_tx_int()
[all …]
/linux/fs/nilfs2/
H A Drecovery.c147 if (unlikely(!bh_sr)) { in nilfs_read_super_root_block()
233 if (unlikely(nblock == 0 || nblock > nilfs->ns_blocks_per_segment)) in nilfs_validate_log()
274 if (unlikely(!*pbh)) in nilfs_read_summary_info()
346 if (unlikely(!bh)) in nilfs_scan_dsync_log()
356 if (unlikely(!finfo)) in nilfs_scan_dsync_log()
370 if (unlikely(!binfo)) in nilfs_scan_dsync_log()
374 if (unlikely(!rb)) { in nilfs_scan_dsync_log()
390 if (unlikely(!bh)) in nilfs_scan_dsync_log()
419 if (unlikely(!ent)) in nilfs_segment_list_add()
460 if (unlikely(err)) { in nilfs_prepare_segment_for_recovery()
[all …]
/linux/arch/powerpc/mm/book3s64/
H A Dhash_64k.c58 if (unlikely(old_pte & H_PAGE_BUSY)) in __hash_page_4K()
61 if (unlikely(!check_pte_access(access, old_pte))) in __hash_page_4K()
167 if (unlikely(slot == -1)) { in __hash_page_4K()
177 if (unlikely(soft_invalid)) { in __hash_page_4K()
190 if (unlikely(slot == -1 || soft_invalid)) { in __hash_page_4K()
211 if (unlikely(slot == -2)) { in __hash_page_4K()
247 if (unlikely(old_pte & H_PAGE_BUSY)) in __hash_page_64K()
250 if (unlikely(!check_pte_access(access, old_pte))) in __hash_page_64K()
257 unlikely(pte_ci(pte))) in __hash_page_64K()
276 if (unlikely(old_pte & H_PAGE_HASHPTE)) { in __hash_page_64K()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_rxtx.c57 if (unlikely(ret)) in mlx5e_ipsec_remove_trailer()
63 if (unlikely(ret)) in mlx5e_ipsec_remove_trailer()
162 if (unlikely(skb_is_gso(skb) && oseq < MLX5E_IPSEC_ESN_SCOPE_MID && in mlx5e_ipsec_set_iv_esn()
229 if (unlikely(sp->len != 1)) in mlx5e_ipsec_tx_build_eseg()
233 if (unlikely(!x)) in mlx5e_ipsec_tx_build_eseg()
236 if (unlikely(!x->xso.offload_handle || in mlx5e_ipsec_tx_build_eseg()
272 if (unlikely(sp->len != 1)) { in mlx5e_ipsec_handle_tx_skb()
278 if (unlikely(!x)) { in mlx5e_ipsec_handle_tx_skb()
283 if (unlikely(!x->xso.offload_handle || in mlx5e_ipsec_handle_tx_skb()
291 if (unlikely(mlx5e_ipsec_remove_trailer(skb, x))) { in mlx5e_ipsec_handle_tx_skb()
[all …]
H A Dktls_rx.c111 if (unlikely(test_bit(MLX5E_PRIV_RX_FLAG_DELETING, priv_rx->flags))) in accel_rule_handle_work()
144 if (unlikely(!mlx5e_icosq_can_post_wqe(sq, num_wqebbs))) in post_static_params()
175 if (unlikely(!mlx5e_icosq_can_post_wqe(sq, num_wqebbs))) in post_progress_params()
265 if (unlikely(!buf)) { in resync_post_get_progress_params()
273 if (unlikely(dma_mapping_error(pdev, buf->dma_addr))) { in resync_post_get_progress_params()
282 if (unlikely(!mlx5e_icosq_can_post_wqe(sq, MLX5E_KTLS_GET_PROGRESS_WQEBBS))) { in resync_post_get_progress_params()
339 if (unlikely(test_bit(MLX5E_PRIV_RX_FLAG_DELETING, priv_rx->flags))) { in resync_handle_work()
442 if (unlikely(test_bit(MLX5E_PRIV_RX_FLAG_DELETING, priv_rx->flags))) { in mlx5e_ktls_handle_get_psv_completion()
480 if (unlikely(!priv_rx)) in resync_queue_get_psv()
483 if (unlikely(test_bit(MLX5E_PRIV_RX_FLAG_DELETING, priv_rx->flags))) in resync_queue_get_psv()
[all …]
/linux/net/tipc/
H A Dmsg.c105 if (unlikely(!buf)) in tipc_msg_create()
143 if (unlikely(head)) in tipc_buf_append()
149 if (unlikely(!frag)) in tipc_buf_append()
188 if (unlikely(!tipc_msg_validate(&head))) { in tipc_buf_append()
232 if (unlikely(!skb)) in tipc_msg_append()
275 if (unlikely(skb->truesize / buf_roundup_len(skb) >= 4)) { in tipc_msg_validate()
283 if (unlikely(TIPC_SKB_CB(skb)->validated)) in tipc_msg_validate()
286 if (unlikely(!pskb_may_pull(skb, MIN_H_SIZE))) in tipc_msg_validate()
290 if (unlikely(hsz < MIN_H_SIZE) || (hsz > MAX_H_SIZE)) in tipc_msg_validate()
292 if (unlikely(!pskb_may_pul in tipc_msg_validate()
[all...]
/linux/drivers/media/platform/ti/omap3isp/
H A Disph3a_aewb.c117 if (unlikely(user_cfg->saturation_limit > in h3a_aewb_validate_params()
121 if (unlikely(user_cfg->win_height < OMAP3ISP_AEWB_MIN_WIN_H || in h3a_aewb_validate_params()
126 if (unlikely(user_cfg->win_width < OMAP3ISP_AEWB_MIN_WIN_W || in h3a_aewb_validate_params()
131 if (unlikely(user_cfg->ver_win_count < OMAP3ISP_AEWB_MIN_WINVC || in h3a_aewb_validate_params()
135 if (unlikely(user_cfg->hor_win_count < OMAP3ISP_AEWB_MIN_WINHC || in h3a_aewb_validate_params()
139 if (unlikely(user_cfg->ver_win_start > OMAP3ISP_AEWB_MAX_WINSTART)) in h3a_aewb_validate_params()
142 if (unlikely(user_cfg->hor_win_start > OMAP3ISP_AEWB_MAX_WINSTART)) in h3a_aewb_validate_params()
145 if (unlikely(user_cfg->blk_ver_win_start > OMAP3ISP_AEWB_MAX_WINSTART)) in h3a_aewb_validate_params()
148 if (unlikely(user_cfg->blk_win_height < OMAP3ISP_AEWB_MIN_WIN_H || in h3a_aewb_validate_params()
153 if (unlikely(user_cfg->subsample_ver_inc < OMAP3ISP_AEWB_MIN_SUB_INC || in h3a_aewb_validate_params()
[all …]
/linux/sound/sh/
H A Daica.c236 if (unlikely(err < 0)) { in aica_dma_transfer()
261 if (unlikely(dreamcastcard->dma_check == 0)) { in run_spu_dma()
278 if (unlikely(dreamcastcard->clicks >= AICA_PERIOD_NUMBER)) in run_spu_dma()
310 if (unlikely(dreamcastcard->dma_check == 0)) in aica_period_elapsed()
424 if (unlikely(err < 0)) in snd_aicapcmchip()
474 if (unlikely(!dreamcastcard->channel)) in aica_pcmvolume_get()
486 if (unlikely(!dreamcastcard->channel)) in aica_pcmvolume_put()
491 if (unlikely(dreamcastcard->channel->vol == vol)) in aica_pcmvolume_put()
524 if (unlikely(err)) in load_aica_firmware()
540 if (unlikely(err < 0)) in add_aicamixer_controls()
[all …]

12345678910>>...108