Home
last modified time | relevance | path

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

12345678910>>...106

/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()
60 if (unlikely(!p)) in xdrgen_decode_short()
77 if (unlikely(!p)) in xdrgen_encode_short()
92 if (unlikely(!p)) in xdrgen_decode_unsigned_short()
103 if (unlikely(!p)) in xdrgen_encode_unsigned_short()
114 if (unlikely(!p)) in xdrgen_decode_int()
125 if (unlikely(!p)) in xdrgen_encode_int()
136 if (unlikely(!p)) in xdrgen_decode_unsigned_int()
147 if (unlikely(!p)) in xdrgen_encode_unsigned_int()
[all …]
/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()
314 if (unlikely(btrfs_header_owner(leaf) == BTRFS_DATA_RELOC_TREE_OBJECTID && 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 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 …]
H A Dnfs4xdr.c3227 if (unlikely(ret < 0)) in decode_opaque_inline()
3252 if (unlikely(hdr->nops < 1)) in decode_compound_hdr()
3265 if (unlikely(!p)) in __decode_op_hdr()
3268 if (unlikely(opnum != expected)) in __decode_op_hdr()
3270 if (unlikely(*p != cpu_to_be32(NFS_OK))) in __decode_op_hdr()
3304 if (unlikely(!p)) in decode_ace()
3334 if (unlikely(!p)) in decode_attr_length()
3346 if (unlikely(ret < 0)) in decode_attr_supported()
3362 if (unlikely(bitmap[0] & (FATTR4_WORD0_TYPE - 1U))) in decode_attr_type()
3366 if (unlikely(!p)) in decode_attr_type()
[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()
183 if (unlikely(skb_cow_head(skb, DATA_PACKET_HEAD_ROOM) < 0)) in encrypt_packet()
187 if (unlikely(skb->ip_summed == CHECKSUM_PARTIAL && in encrypt_packet()
193 if (unlikely(num_frags < 0 || num_frags > ARRAY_SIZE(sg))) 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/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 …]
/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/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/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()
426 if (unlikely(ctx->mdev->state == MLX5_DEVICE_STATE_INTERNAL_ERROR)) { in mlx5hws_bwc_queue_poll()
441 if (unlikely(ret < 0)) { in mlx5hws_bwc_queue_poll()
450 if (unlikely(comp[i].status != MLX5HWS_FLOW_OP_SUCCESS)) { in mlx5hws_bwc_queue_poll()
462 if (unlikely(!got_comp && time_after(jiffies, timeout))) { in mlx5hws_bwc_queue_poll()
[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/io_uring/
H A Dfs.c58 if (unlikely(req->flags & REQ_F_FIXED_FILE)) in io_renameat_prep()
68 if (unlikely(err)) in io_renameat_prep()
72 if (unlikely(err)) { in io_renameat_prep()
116 if (unlikely(req->flags & REQ_F_FIXED_FILE)) in io_unlinkat_prep()
127 if (unlikely(err)) in io_unlinkat_prep()
168 if (unlikely(req->flags & REQ_F_FIXED_FILE)) in io_mkdirat_prep()
176 if (unlikely(err)) in io_mkdirat_prep()
214 if (unlikely(req->flags & REQ_F_FIXED_FILE)) in io_symlinkat_prep()
222 if (unlikely(err)) in io_symlinkat_prep()
226 if (unlikely(err)) { in io_symlinkat_prep()
[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/rtc/
H A Drtc-mc13xxx.c104 if (unlikely(ret)) in mc13xxx_rtc_set_time()
110 if (unlikely(ret)) in mc13xxx_rtc_set_time()
119 if (unlikely(ret)) in mc13xxx_rtc_set_time()
123 if (unlikely(ret)) in mc13xxx_rtc_set_time()
127 if (unlikely(ret)) in mc13xxx_rtc_set_time()
134 if (unlikely(ret)) in mc13xxx_rtc_set_time()
161 if (unlikely(ret)) in mc13xxx_rtc_read_alarm()
169 if (unlikely(ret)) in mc13xxx_rtc_read_alarm()
203 if (unlikely(ret)) in mc13xxx_rtc_set_alarm()
213 if (unlikely(ret)) in mc13xxx_rtc_set_alarm()
[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 …]
/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/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/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()
525 if (unlikely(err)) in load_aica_firmware()
540 if (unlikely(err < 0)) in add_aicamixer_controls()
[all …]
/linux/net/psample/
H A Dpsample.c412 if (unlikely(!nl_skb)) in psample_sample_packet()
417 if (unlikely(!data)) in psample_sample_packet()
422 if (unlikely(ret < 0)) in psample_sample_packet()
428 if (unlikely(ret < 0)) in psample_sample_packet()
433 if (unlikely(ret < 0)) in psample_sample_packet()
437 if (unlikely(ret < 0)) in psample_sample_packet()
441 if (unlikely(ret < 0)) in psample_sample_packet()
445 if (unlikely(ret < 0)) in psample_sample_packet()
450 if (unlikely(ret < 0)) in psample_sample_packet()
457 if (unlikely(ret < 0)) in psample_sample_packet()
[all …]
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_pfvf_vf_proto.c171 if (unlikely(type != ADF_PF2VF_BLKMSG_RESP_TYPE_DATA)) { in adf_vf2pf_blkmsg_get_byte()
197 if (unlikely(type != ADF_PF2VF_BLKMSG_RESP_TYPE_CRC)) { in adf_vf2pf_blkmsg_get_crc()
232 if (unlikely(type > ADF_VF2PF_LARGE_BLOCK_TYPE_MAX)) { in adf_send_vf2pf_blkmsg_req()
238 if (unlikely(*buffer_len < ADF_PFVF_BLKMSG_HEADER_SIZE)) { in adf_send_vf2pf_blkmsg_req()
247 if (unlikely(ret)) in adf_send_vf2pf_blkmsg_req()
250 if (unlikely(!buffer[ADF_PFVF_BLKMSG_VER_BYTE])) { in adf_send_vf2pf_blkmsg_req()
259 if (unlikely(ret)) in adf_send_vf2pf_blkmsg_req()
262 if (unlikely(!buffer[ADF_PFVF_BLKMSG_LEN_BYTE])) { in adf_send_vf2pf_blkmsg_req()
282 if (unlikely(ret)) in adf_send_vf2pf_blkmsg_req()
287 if (unlikely(ret)) in adf_send_vf2pf_blkmsg_req()
[all …]

12345678910>>...106