Home
last modified time | relevance | path

Searched refs:unlikely (Results 1 – 200 of 2908) sorted by relevance

12345678910>>...15

/linux-4.1.27/include/asm-generic/
Dbug.h55 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
87 if (unlikely(__ret_warn_on)) \
89 unlikely(__ret_warn_on); \
96 if (unlikely(__ret_warn_on)) \
98 unlikely(__ret_warn_on); \
104 if (unlikely(__ret_warn_on)) \
106 unlikely(__ret_warn_on); \
110 static bool __section(.data.unlikely) __warned; \
113 if (unlikely(__ret_warn_once)) \
116 unlikely(__ret_warn_once); \
[all …]
Dmutex-xchg.h28 if (unlikely(atomic_xchg(count, 0) != 1)) in __mutex_fastpath_lock()
49 if (unlikely(atomic_xchg(count, 0) != 1)) in __mutex_fastpath_lock_retval()
70 if (unlikely(atomic_xchg(count, 1) != 0)) in __mutex_fastpath_unlock()
96 if (unlikely(prev < 0)) { in __mutex_fastpath_trylock()
Dmutex-dec.h23 if (unlikely(atomic_dec_return(count) < 0)) in __mutex_fastpath_lock()
38 if (unlikely(atomic_dec_return(count) < 0)) in __mutex_fastpath_lock_retval()
59 if (unlikely(atomic_inc_return(count) <= 0)) in __mutex_fastpath_unlock()
Drwsem.h36 if (unlikely(atomic_long_inc_return((atomic_long_t *)&sem->count) <= 0)) in __down_read()
62 if (unlikely(tmp != RWSEM_ACTIVE_WRITE_BIAS)) in __down_write_nested()
88 if (unlikely(tmp < -1 && (tmp & RWSEM_ACTIVE_MASK) == 0)) in __up_read()
97 if (unlikely(atomic_long_sub_return(RWSEM_ACTIVE_WRITE_BIAS, in __up_write()
Dfutex.h44 if (unlikely(get_user(oldval, uaddr) != 0)) in futex_atomic_op_inuser()
70 if (ret == 0 && unlikely(put_user(tmp, uaddr) != 0)) in futex_atomic_op_inuser()
109 if (unlikely(get_user(val, uaddr) != 0)) in futex_atomic_cmpxchg_inatomic()
112 if (val == oldval && unlikely(put_user(newval, uaddr) != 0)) in futex_atomic_cmpxchg_inatomic()
/linux-4.1.27/lib/
Dasn1_decoder.c64 if (unlikely(datalen - dp < 2)) { in asn1_find_indefinite_length()
84 if (unlikely((tag & 0x1f) == ASN1_LONG_TAG)) { in asn1_find_indefinite_length()
86 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(size_t) - 1)) in asn1_find_indefinite_length()
110 if (unlikely(n > datalen - dp)) in asn1_find_indefinite_length()
198 if (unlikely(pc >= machlen)) in asn1_ber_decoder()
201 if (unlikely(pc + asn1_op_lengths[op] > machlen)) in asn1_ber_decoder()
222 if (unlikely(dp >= datalen - 1)) in asn1_ber_decoder()
[all …]
Dsyscall.c11 if (unlikely(!regs)) in collect_syscall()
57 if (unlikely(maxargs > 6)) in task_current_syscall()
64 if (unlikely(!state)) in task_current_syscall()
68 if (unlikely(!ncsw) || in task_current_syscall()
69 unlikely(collect_syscall(target, callno, args, maxargs, sp, pc)) || in task_current_syscall()
70 unlikely(wait_task_inactive(target, state) != ncsw)) in task_current_syscall()
Diov_iter.c22 while (unlikely(!left && n)) { \
25 if (unlikely(!__v.iov_len)) \
46 while (unlikely(n)) { \
49 if (unlikely(!__v.iov_len)) \
70 while (unlikely(n)) { \
73 if (unlikely(!__v.bv_len)) \
86 if (unlikely(i->type & ITER_BVEC)) { \
90 } else if (unlikely(i->type & ITER_KVEC)) { \
103 if (unlikely(i->type & ITER_BVEC)) { \
113 } else if (unlikely(i->type & ITER_KVEC)) { \
[all …]
Dstmp_device.c49 if (unlikely(ret)) in stmp_reset_block()
62 if (unlikely(!timeout)) in stmp_reset_block()
67 if (unlikely(ret)) in stmp_reset_block()
72 if (unlikely(ret)) in stmp_reset_block()
Dstrnlen_user.c48 if (unlikely(__get_user(c,(unsigned long __user *)src))) in do_strnlen_user()
61 if (unlikely(max <= sizeof(unsigned long))) in do_strnlen_user()
64 if (unlikely(__get_user(c,(unsigned long __user *)(src+res)))) in do_strnlen_user()
107 if (unlikely(count <= 0)) in strnlen_user()
Dis_single_threaded.c34 if (unlikely(p->flags & PF_KTHREAD)) in current_is_single_threaded()
36 if (unlikely(p == task->group_leader)) in current_is_single_threaded()
41 if (unlikely(t->mm == mm)) in current_is_single_threaded()
Dstrncpy_from_user.c42 if (unlikely(__get_user(c,(unsigned long __user *)(src+res)))) in do_strncpy_from_user()
58 if (unlikely(__get_user(c,src+res))) in do_strncpy_from_user()
103 if (unlikely(count <= 0)) in strncpy_from_user()
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
Denh_desc.c35 if (unlikely(p->des01.etx.error_summary)) { in enh_desc_get_tx_status()
36 if (unlikely(p->des01.etx.jabber_timeout)) in enh_desc_get_tx_status()
39 if (unlikely(p->des01.etx.frame_flushed)) { in enh_desc_get_tx_status()
44 if (unlikely(p->des01.etx.loss_carrier)) { in enh_desc_get_tx_status()
48 if (unlikely(p->des01.etx.no_carrier)) { in enh_desc_get_tx_status()
52 if (unlikely(p->des01.etx.late_collision)) in enh_desc_get_tx_status()
55 if (unlikely(p->des01.etx.excessive_collisions)) in enh_desc_get_tx_status()
58 if (unlikely(p->des01.etx.excessive_deferral)) in enh_desc_get_tx_status()
61 if (unlikely(p->des01.etx.underflow_error)) { in enh_desc_get_tx_status()
66 if (unlikely(p->des01.etx.ip_header_error)) in enh_desc_get_tx_status()
[all …]
Dnorm_desc.c35 if (unlikely(p->des01.tx.error_summary)) { in ndesc_get_tx_status()
36 if (unlikely(p->des01.tx.underflow_error)) { in ndesc_get_tx_status()
40 if (unlikely(p->des01.tx.no_carrier)) { in ndesc_get_tx_status()
44 if (unlikely(p->des01.tx.loss_carrier)) { in ndesc_get_tx_status()
48 if (unlikely((p->des01.tx.excessive_deferral) || in ndesc_get_tx_status()
58 if (unlikely(p->des01.tx.deferred)) in ndesc_get_tx_status()
79 if (unlikely(p->des01.rx.last_descriptor == 0)) { in ndesc_get_rx_status()
86 if (unlikely(p->des01.rx.error_summary)) { in ndesc_get_rx_status()
87 if (unlikely(p->des01.rx.descriptor_error)) in ndesc_get_rx_status()
89 if (unlikely(p->des01.rx.sa_filter_fail)) in ndesc_get_rx_status()
[all …]
Ddwmac_lib.c157 if (unlikely(intr_status & DMA_STATUS_AIS)) { in dwmac_dma_interrupt()
158 if (unlikely(intr_status & DMA_STATUS_UNF)) { in dwmac_dma_interrupt()
162 if (unlikely(intr_status & DMA_STATUS_TJT)) in dwmac_dma_interrupt()
165 if (unlikely(intr_status & DMA_STATUS_OVF)) in dwmac_dma_interrupt()
168 if (unlikely(intr_status & DMA_STATUS_RU)) in dwmac_dma_interrupt()
170 if (unlikely(intr_status & DMA_STATUS_RPS)) in dwmac_dma_interrupt()
172 if (unlikely(intr_status & DMA_STATUS_RWT)) in dwmac_dma_interrupt()
174 if (unlikely(intr_status & DMA_STATUS_ETI)) in dwmac_dma_interrupt()
176 if (unlikely(intr_status & DMA_STATUS_TPS)) { in dwmac_dma_interrupt()
180 if (unlikely(intr_status & DMA_STATUS_FBI)) { in dwmac_dma_interrupt()
[all …]
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_execbuf.c116 if (unlikely(val->staged_bindings)) { in vmw_resource_list_unreserve()
152 if (unlikely(p_node != NULL)) in vmw_resource_val_add()
158 if (unlikely(node == NULL)) { in vmw_resource_val_add()
166 if (unlikely(ret != 0)) { in vmw_resource_val_add()
176 if (unlikely(p_node != NULL)) in vmw_resource_val_add()
207 if (unlikely(res == NULL)) in vmw_resource_context_res_add()
212 if (unlikely(ret != 0)) in vmw_resource_context_res_add()
235 if (unlikely(rel == NULL)) { in vmw_resource_relocation_add()
325 if (unlikely(vval_buf->validate_as_mob != validate_as_mob)) { in vmw_bo_to_validate_list()
333 if (unlikely(val_node >= VMWGFX_MAX_VALIDATIONS)) { in vmw_bo_to_validate_list()
[all …]
Dvmwgfx_shader.c110 if (unlikely(ret != 0)) { in vmw_gb_shader_init()
144 if (unlikely(ret != 0)) { in vmw_gb_shader_create()
149 if (unlikely(res->id >= VMWGFX_NUM_GB_SHADER)) { in vmw_gb_shader_create()
155 if (unlikely(cmd == NULL)) { in vmw_gb_shader_create()
191 if (unlikely(cmd == NULL)) { in vmw_gb_shader_bind()
222 if (unlikely(cmd == NULL)) { in vmw_gb_shader_unbind()
265 if (unlikely(cmd == NULL)) { in vmw_gb_shader_destroy()
355 if (unlikely(vmw_user_shader_size == 0)) in vmw_user_shader_alloc()
362 if (unlikely(ret != 0)) { in vmw_user_shader_alloc()
370 if (unlikely(ushader == NULL)) { in vmw_user_shader_alloc()
[all …]
Dvmwgfx_resource.c276 if (unlikely(res == NULL)) in vmw_resource_lookup()
308 if (unlikely(base == NULL)) in vmw_user_resource_lookup_handle()
311 if (unlikely(ttm_base_object_type(base) != converter->object_type)) in vmw_user_resource_lookup_handle()
381 if (unlikely(struct_size == 0)) { in vmw_dmabuf_acc_size()
445 if (unlikely(base == NULL)) in vmw_user_dmabuf_release()
494 if (unlikely(user_bo == NULL)) { in vmw_user_dmabuf_alloc()
504 if (unlikely(ret != 0)) in vmw_user_dmabuf_alloc()
515 if (unlikely(ret != 0)) { in vmw_user_dmabuf_alloc()
543 if (unlikely(bo->destroy != vmw_user_dmabuf_destroy)) in vmw_user_dmabuf_verify_access()
592 if (unlikely(ret != 0)) in vmw_user_dmabuf_synccpu_grab()
[all …]
Dvmwgfx_surface.c324 if (unlikely(cmd == NULL)) { in vmw_hw_surface_destroy()
372 if (unlikely(dev_priv->used_memory_size + res->backup_size >= in vmw_legacy_srf_create()
381 if (unlikely(ret != 0)) { in vmw_legacy_srf_create()
386 if (unlikely(res->id >= SVGA3D_MAX_SURFACE_IDS)) { in vmw_legacy_srf_create()
397 if (unlikely(cmd == NULL)) { in vmw_legacy_srf_create()
450 if (unlikely(cmd == NULL)) { in vmw_legacy_srf_dma()
512 if (unlikely(readback)) in vmw_legacy_srf_unbind()
538 if (unlikely(cmd == NULL)) { in vmw_legacy_srf_destroy()
585 if (unlikely(ret != 0)) { in vmw_surface_init()
709 if (unlikely(vmw_user_surface_size == 0)) in vmw_surface_define_ioctl()
[all …]
Dvmwgfx_mob.c114 if (unlikely(mob == NULL)) { in vmw_setup_otable_base()
127 if (unlikely(ret != 0)) in vmw_setup_otable_base()
135 if (unlikely(cmd == NULL)) { in vmw_setup_otable_base()
191 if (unlikely(cmd == NULL)) { in vmw_takedown_otable_base()
241 if (unlikely(otables == NULL)) { in vmw_otables_setup()
272 if (unlikely(ret != 0)) in vmw_otables_setup()
278 if (unlikely(ret != 0)) in vmw_otables_setup()
281 if (unlikely(ret != 0)) in vmw_otables_setup()
290 if (unlikely(ret != 0)) in vmw_otables_setup()
369 if (unlikely(mob == NULL)) in vmw_mob_create()
[all …]
Dvmwgfx_context.c132 if (unlikely(cmd == NULL)) { in vmw_hw_context_destroy()
157 if (unlikely(ret != 0)) in vmw_gb_context_init()
162 if (unlikely(IS_ERR(uctx->man))) { in vmw_gb_context_init()
200 if (unlikely(ret != 0)) { in vmw_context_init()
205 if (unlikely(res->id >= SVGA3D_MAX_CONTEXT_IDS)) { in vmw_context_init()
212 if (unlikely(cmd == NULL)) { in vmw_context_init()
240 if (unlikely(res == NULL)) in vmw_context_alloc()
262 if (unlikely(ret != 0)) { in vmw_gb_context_create()
267 if (unlikely(res->id >= VMWGFX_NUM_GB_CONTEXT)) { in vmw_gb_context_create()
273 if (unlikely(cmd == NULL)) { in vmw_gb_context_create()
[all …]
Dvmwgfx_scrn.c123 if (unlikely(cmd == NULL)) { in vmw_sou_fifo_create()
172 if (unlikely(!sou->defined)) in vmw_sou_fifo_destroy()
178 if (unlikely(cmd == NULL)) { in vmw_sou_fifo_destroy()
191 if (unlikely(ret != 0)) in vmw_sou_fifo_destroy()
207 if (unlikely(sou->buffer == NULL)) in vmw_sou_backing_free()
232 if (unlikely(sou->buffer == NULL)) in vmw_sou_backing_alloc()
244 if (unlikely(ret != 0)) in vmw_sou_backing_alloc()
306 if (unlikely(ret != 0)) in vmw_sou_crtc_set_config()
344 if (unlikely(ret != 0)) in vmw_sou_crtc_set_config()
354 if (unlikely(ret != 0)) in vmw_sou_crtc_set_config()
[all …]
Dvmwgfx_drv.c317 if (unlikely(ret != 0)) in vmw_dummy_query_bo_create()
334 if (unlikely(ret != 0)) { in vmw_dummy_query_bo_create()
348 if (unlikely(ret != 0)) { in vmw_request_device()
355 if (unlikely(ret != 0)) { in vmw_request_device()
362 if (unlikely(ret != 0)) in vmw_request_device()
405 if (unlikely(dev_priv->num_3d_resources++ == 0)) { in vmw_3d_resource_inc()
407 if (unlikely(ret != 0)) in vmw_3d_resource_inc()
433 if (unlikely(--dev_priv->num_3d_resources == 0)) in vmw_3d_resource_dec()
589 if (unlikely(dev_priv == NULL)) { in vmw_driver_load()
637 if (unlikely(ret != 0)) { in vmw_driver_load()
[all …]
Dvmwgfx_dmabuf.c59 if (unlikely(ret != 0)) in vmw_dmabuf_to_placement()
65 if (unlikely(ret != 0)) in vmw_dmabuf_to_placement()
102 if (unlikely(ret != 0)) in vmw_dmabuf_to_vram_or_gmr()
109 if (unlikely(ret != 0)) in vmw_dmabuf_to_vram_or_gmr()
216 if (unlikely(ret != 0)) in vmw_dmabuf_to_start_of_vram()
222 if (unlikely(ret != 0)) in vmw_dmabuf_to_start_of_vram()
Dvmwgfx_fence.c288 if (unlikely(fman == NULL)) in vmw_fence_manager_init()
336 if (unlikely(fman->fifo_down)) { in vmw_fence_obj_init()
479 if (unlikely(needs_rerun)) { in __vmw_fences_update()
545 if (unlikely(fence == NULL)) in vmw_fence_create()
550 if (unlikely(ret != 0)) in vmw_fence_create()
606 if (unlikely(ret != 0)) in vmw_user_fence_create()
610 if (unlikely(ufence == NULL)) { in vmw_user_fence_create()
617 if (unlikely(ret != 0)) { in vmw_user_fence_create()
632 if (unlikely(ret != 0)) { in vmw_user_fence_create()
679 if (unlikely(ret != 0)) { in vmw_fence_fifo_down()
[all …]
Dvmwgfx_gmr.c55 if (unlikely(cmd == NULL)) in vmw_gmr2_bind()
114 if (unlikely(cmd == NULL)) { in vmw_gmr2_unbind()
137 if (unlikely(!vmw_piter_next(&data_iter))) in vmw_gmr_bind()
140 if (unlikely(!(dev_priv->capabilities & SVGA_CAP_GMR2))) in vmw_gmr_bind()
Dvmwgfx_gmrid_manager.c63 if (unlikely(gman->used_gmr_pages > gman->max_gmr_pages)) in vmw_gmrid_man_get_node()
69 if (unlikely(ida_pre_get(&gman->gmr_ida, GFP_KERNEL) == 0)) { in vmw_gmrid_man_get_node()
76 if (unlikely(ret == 0 && id >= gman->max_gmr_ids)) { in vmw_gmrid_man_get_node()
124 if (unlikely(gman == NULL)) in vmw_gmrid_man_init()
Dvmwgfx_ioctl.c164 if (unlikely(arg->pad64 != 0)) { in vmw_get_cap_3d_ioctl()
181 if (unlikely(bounce == NULL)) { in vmw_get_cap_3d_ioctl()
202 if (unlikely(ret != 0)) in vmw_get_cap_3d_ioctl()
215 if (unlikely(ret != 0)) in vmw_get_cap_3d_ioctl()
240 if (unlikely(num_clips == 0)) in vmw_present_ioctl()
274 if (unlikely(ret != 0)) in vmw_present_ioctl()
323 if (unlikely(num_clips == 0)) in vmw_present_readback_ioctl()
363 if (unlikely(ret != 0)) in vmw_present_readback_ioctl()
Dvmwgfx_ttm_glue.c36 if (unlikely(vma->vm_pgoff < VMWGFX_FILE_PAGE_OFFSET)) { in vmw_mmap()
69 if (unlikely(ret != 0)) { in vmw_ttm_global_init()
83 if (unlikely(ret != 0)) { in vmw_ttm_global_init()
Dvmwgfx_buffer.c361 if (unlikely(ret == 0)) in vmw_ttm_map_for_dma()
402 if (unlikely(!sgl_size)) { in vmw_ttm_map_dma()
409 if (unlikely(ret != 0)) in vmw_ttm_map_dma()
417 if (unlikely(ret != 0)) in vmw_ttm_map_dma()
430 if (unlikely(ret != 0)) in vmw_ttm_map_dma()
554 if (unlikely(ret != 0)) in vmw_ttm_bind()
565 if (unlikely(vmw_be->mob == NULL)) { in vmw_ttm_bind()
568 if (unlikely(vmw_be->mob == NULL)) in vmw_ttm_bind()
637 if (unlikely(ret != 0)) in vmw_ttm_populate()
641 if (unlikely(ret != 0)) in vmw_ttm_populate()
[all …]
Dvmwgfx_fifo.c105 if (unlikely(fifo->static_buffer == NULL)) in vmw_fifo_init()
172 if (unlikely(ioread32(fifo_mem + SVGA_FIFO_BUSY) == 0)) { in vmw_fifo_ping_host()
288 if (unlikely(ret == 0)) in vmw_fifo_wait()
330 if (unlikely(bytes >= (max - min))) in vmw_fifo_reserve()
351 if (unlikely(ret != 0)) in vmw_fifo_reserve()
363 if (unlikely(ret != 0)) in vmw_fifo_reserve()
430 if (unlikely(next_cmd == max)) in vmw_fifo_slow_copy()
494 if (unlikely(fm == NULL)) { in vmw_fifo_send_fence()
556 if (unlikely(cmd == NULL)) { in vmw_fifo_emit_dummy_legacy_query()
605 if (unlikely(cmd == NULL)) { in vmw_fifo_emit_dummy_gb_query()
Dvmwgfx_cmdbuf_res.c94 if (unlikely(ret != 0)) in vmw_cmdbuf_res_lookup()
210 if (unlikely(cres == NULL)) in vmw_cmdbuf_res_add()
215 if (unlikely(ret != 0)) in vmw_cmdbuf_res_add()
335 if (unlikely(res_man_size == 0)) in vmw_cmdbuf_res_man_size()
/linux-4.1.27/arch/microblaze/mm/
Dfault.c101 if (unlikely(kernel_mode(regs) && (address >= TASK_SIZE))) { in do_page_fault()
110 if (unlikely(in_atomic() || !mm)) { in do_page_fault()
141 if (unlikely(!down_read_trylock(&mm->mmap_sem))) { in do_page_fault()
150 if (unlikely(!vma)) in do_page_fault()
156 if (unlikely(!(vma->vm_flags & VM_GROWSDOWN))) in do_page_fault()
159 if (unlikely(!is_write)) in do_page_fault()
171 if (unlikely(address + 0x100000 < vma->vm_end)) { in do_page_fault()
201 if (unlikely(is_write)) { in do_page_fault()
202 if (unlikely(!(vma->vm_flags & VM_WRITE))) in do_page_fault()
208 if (unlikely(error_code & 0x08000000)) in do_page_fault()
[all …]
/linux-4.1.27/net/caif/
Dcfpkt_skbuff.c89 if (unlikely(skb == NULL)) in cfpkt_create_pfx()
128 if (unlikely(is_erronous(pkt))) in cfpkt_extr_head()
131 if (unlikely(len > skb->len)) { in cfpkt_extr_head()
136 if (unlikely(len > skb_headlen(skb))) { in cfpkt_extr_head()
137 if (unlikely(skb_linearize(skb) != 0)) { in cfpkt_extr_head()
155 if (unlikely(is_erronous(pkt))) in cfpkt_extr_trail()
158 if (unlikely(skb_linearize(skb) != 0)) { in cfpkt_extr_trail()
162 if (unlikely(skb->data + len > skb_tail_pointer(skb))) { in cfpkt_extr_trail()
185 if (unlikely(is_erronous(pkt))) in cfpkt_add_body()
191 if (unlikely(skb_tailroom(skb) < len)) { in cfpkt_add_body()
[all …]
/linux-4.1.27/mm/kasan/
Dkasan.c73 if (unlikely(shadow_value)) { in memory_is_poisoned_1()
75 return unlikely(last_accessible_byte >= shadow_value); in memory_is_poisoned_1()
85 if (unlikely(*shadow_addr)) { in memory_is_poisoned_2()
92 return unlikely(*(u8 *)shadow_addr); in memory_is_poisoned_2()
102 if (unlikely(*shadow_addr)) { in memory_is_poisoned_4()
109 return unlikely(*(u8 *)shadow_addr); in memory_is_poisoned_4()
119 if (unlikely(*shadow_addr)) { in memory_is_poisoned_8()
126 return unlikely(*(u8 *)shadow_addr); in memory_is_poisoned_8()
136 if (unlikely(*shadow_addr)) { in memory_is_poisoned_16()
140 if (unlikely(shadow_first_bytes)) in memory_is_poisoned_16()
[all …]
/linux-4.1.27/fs/nfs/
Dcallback_xdr.c78 if (unlikely(p == NULL)) in read_buf()
88 if (unlikely(p == NULL)) in decode_string()
94 if (unlikely(p == NULL)) in decode_string()
108 if (unlikely(p == NULL)) in decode_fh()
114 if (unlikely(p == NULL)) in decode_fh()
127 if (unlikely(p == NULL)) in decode_bitmap()
131 if (unlikely(p == NULL)) in decode_bitmap()
145 if (unlikely(p == NULL)) in decode_stateid()
157 if (unlikely(status != 0)) in decode_compound_hdr_arg()
166 if (unlikely(p == NULL)) in decode_compound_hdr_arg()
[all …]
Dnfs3xdr.c153 if (unlikely(p == NULL)) in decode_uint32()
167 if (unlikely(p == NULL)) in decode_uint64()
213 if (unlikely(p == NULL)) in decode_inline_filename3()
219 if (unlikely(p == NULL)) in decode_inline_filename3()
251 if (unlikely(p == NULL)) in decode_nfspath3()
254 if (unlikely(count >= xdr->buf->page_len || count > NFS3_MAXPATHLEN)) in decode_nfspath3()
257 if (unlikely(count > recvd)) in decode_nfspath3()
305 if (unlikely(p == NULL)) in decode_cookieverf3()
332 if (unlikely(p == NULL)) in decode_writeverf3()
366 if (unlikely(p == NULL)) in decode_nfsstat3()
[all …]
Dnfs2xdr.c112 if (unlikely(p == NULL)) in decode_nfsdata()
116 if (unlikely(count > recvd)) in decode_nfsdata()
159 if (unlikely(p == NULL)) in decode_stat()
184 if (unlikely(*type > NF2FIFO)) in xdr_decode_ftype()
207 if (unlikely(p == NULL)) in decode_fhandle()
284 if (unlikely(p == NULL)) in decode_fattr()
413 if (unlikely(p == NULL)) in decode_filename_inline()
419 if (unlikely(p == NULL)) in decode_filename_inline()
452 if (unlikely(p == NULL)) in decode_path()
455 if (unlikely(length >= xdr->buf->page_len || length > NFS_MAXPATHLEN)) in decode_path()
[all …]
Dnfs4xdr.c3014 if (unlikely(!p)) in decode_opaque_inline()
3018 if (unlikely(!p)) in decode_opaque_inline()
3032 if (unlikely(!p)) in decode_compound_hdr()
3038 if (unlikely(!p)) in decode_compound_hdr()
3043 if (unlikely(hdr->nops < 1)) in decode_compound_hdr()
3059 if (unlikely(!p)) in __decode_op_hdr()
3062 if (unlikely(opnum != expected)) in __decode_op_hdr()
3110 if (unlikely(!p)) in decode_attr_bitmap()
3116 if (unlikely(!p)) in decode_attr_bitmap()
3137 if (unlikely(!p)) in decode_attr_length()
[all …]
Dmount_clnt.c281 if (unlikely(status < 0)) in nfs_umount()
330 if (unlikely(p == NULL)) in decode_status()
352 if (unlikely(p == NULL)) in decode_fhandle()
367 if (unlikely(status != 0 || res->errno != 0)) in mnt_xdr_dec_mountres()
379 if (unlikely(p == NULL)) in decode_fhs_status()
402 if (unlikely(p == NULL)) in decode_fhandle3()
410 if (unlikely(p == NULL)) in decode_fhandle3()
429 if (unlikely(p == NULL)) in decode_auth_flavors()
437 if (unlikely(p == NULL)) in decode_auth_flavors()
459 if (unlikely(status != 0 || res->errno != 0)) in mnt_xdr_dec_mountres3()
[all …]
/linux-4.1.27/include/linux/
Daudit.h149 if (unlikely(task->audit_context)) in audit_free()
156 if (unlikely(current->audit_context)) in audit_syscall_entry()
161 if (unlikely(current->audit_context)) { in audit_syscall_exit()
170 if (unlikely(!audit_dummy_context())) in audit_reusename()
176 if (unlikely(!audit_dummy_context())) in audit_getname()
182 if (unlikely(!audit_dummy_context())) { in audit_inode()
191 if (unlikely(!audit_dummy_context())) in audit_file()
197 if (unlikely(!audit_dummy_context())) in audit_inode_parent_hidden()
204 if (unlikely(!audit_dummy_context())) in audit_inode_child()
212 if (signr || unlikely(!audit_dummy_context())) in audit_seccomp()
[all …]
Ddynamic_debug.h77 if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT)) \
85 if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT)) \
93 if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT)) \
103 if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT)) \
Dpagemap.h32 if (unlikely(error)) { in mapping_set_error()
164 if (unlikely(!get_page_unless_zero(page))) { in page_cache_get_speculative()
193 if (unlikely(!atomic_add_unless(&page->_count, count, 0))) in page_cache_add_speculative()
390 if (unlikely(PageHeadHuge(page))) in page_to_pgoff()
416 if (unlikely(is_vm_hugetlb_page(vma))) in linear_page_index()
546 if (unlikely(size == 0)) in fault_in_pages_writeable()
573 if (unlikely(size == 0)) in fault_in_pages_readable()
600 if (unlikely(size == 0)) in fault_in_multipages_writeable()
629 if (unlikely(size == 0)) in fault_in_multipages_readable()
668 if (unlikely(error)) in add_to_page_cache()
Dmmdebug.h20 if (unlikely(cond)) { \
27 if (unlikely(cond)) { \
34 if (unlikely(cond)) { \
/linux-4.1.27/drivers/gpu/drm/ttm/
Dttm_bo_vm.c78 if (unlikely(ret != 0)) in ttm_bo_vm_fault_idle()
111 if (unlikely(ret != 0)) { in ttm_bo_vm_fault()
161 if (unlikely(ret != 0)) { in ttm_bo_vm_fault()
167 if (unlikely(ret != 0)) { in ttm_bo_vm_fault()
172 if (unlikely(ret != 0)) { in ttm_bo_vm_fault()
182 if (unlikely(page_offset >= bo->num_pages)) { in ttm_bo_vm_fault()
219 if (unlikely(!page && i == 0)) { in ttm_bo_vm_fault()
222 } else if (unlikely(!page)) { in ttm_bo_vm_fault()
241 if (unlikely((ret == -EBUSY) || (ret != 0 && i > 0))) in ttm_bo_vm_fault()
243 else if (unlikely(ret != 0)) { in ttm_bo_vm_fault()
[all …]
Dttm_memory.c228 if (unlikely(ret != 0)) in ttm_shrink()
252 if (unlikely(!zone)) in ttm_mem_init_kernel_zone()
268 if (unlikely(ret != 0)) { in ttm_mem_init_kernel_zone()
288 if (unlikely(!zone)) in ttm_mem_init_highmem_zone()
305 if (unlikely(ret != 0)) { in ttm_mem_init_highmem_zone()
320 if (unlikely(!zone)) in ttm_mem_init_dma32_zone()
352 if (unlikely(ret != 0)) { in ttm_mem_init_dma32_zone()
373 if (unlikely(ret != 0)) { in ttm_mem_global_init()
381 if (unlikely(ret != 0)) in ttm_mem_global_init()
385 if (unlikely(ret != 0)) in ttm_mem_global_init()
[all …]
Dttm_object.c179 if (unlikely(ret != 0)) in ttm_base_object_init()
183 if (unlikely(ret != 0)) in ttm_base_object_init()
291 if (unlikely(drm_ht_find_item_rcu(ht, base->hash.key, &hash) != 0)) in ttm_ref_object_exists()
300 if (unlikely(base != ref->obj)) in ttm_ref_object_exists()
307 if (unlikely(atomic_read(&ref->kref.refcount) == 0)) in ttm_ref_object_exists()
350 if (unlikely(ret != 0)) in ttm_ref_object_add()
353 if (unlikely(ref == NULL)) { in ttm_ref_object_add()
420 if (unlikely(ret != 0)) { in ttm_ref_object_base_unref()
468 if (unlikely(tfile == NULL)) in ttm_object_file_init()
503 if (unlikely(tdev == NULL)) in ttm_object_device_init()
[all …]
Dttm_lock.c70 if (unlikely(lock->kill_takers)) { in __ttm_read_lock()
103 if (unlikely(lock->kill_takers)) { in __ttm_read_trylock()
131 if (unlikely(ret != 0)) { in ttm_read_trylock()
153 if (unlikely(lock->kill_takers)) { in __ttm_write_lock()
176 if (unlikely(ret != 0)) { in ttm_write_lock()
194 if (unlikely(!(lock->flags & TTM_VT_LOCK))) in __ttm_vt_unlock()
239 if (unlikely(ret != 0)) { in ttm_vt_lock()
Dttm_tt.c131 if (unlikely(ret != 0)) in ttm_tt_set_caching()
169 if (unlikely(ttm == NULL)) in ttm_tt_destroy()
280 if (unlikely(ret != 0)) in ttm_tt_bind()
310 if (unlikely(to_page == NULL)) in ttm_tt_swapin()
343 if (unlikely(IS_ERR(swap_storage))) { in ttm_tt_swapout()
354 if (unlikely(from_page == NULL)) in ttm_tt_swapout()
357 if (unlikely(IS_ERR(to_page))) { in ttm_tt_swapout()
/linux-4.1.27/net/llc/
Dllc_input.c116 if (unlikely(!pskb_may_pull(skb, sizeof(*pdu)))) in llc_fixup_skb()
124 if (unlikely(!pskb_may_pull(skb, llc_len))) in llc_fixup_skb()
136 if (unlikely(pskb_trim_rcsum(skb, data_size))) in llc_fixup_skb()
172 if (unlikely(skb->pkt_type == PACKET_OTHERHOST)) { in llc_rcv()
177 if (unlikely(!skb)) in llc_rcv()
179 if (unlikely(!llc_fixup_skb(skb))) in llc_rcv()
182 if (unlikely(!pdu->dsap)) /* NULL DSAP, refer to station */ in llc_rcv()
185 if (unlikely(!sap)) {/* unknown SAP */ in llc_rcv()
197 if (unlikely(!sap_handler)) { in llc_rcv()
Daf_llc.c120 if (unlikely(llc_data_accept_state(llc->state) || in llc_ui_send_data()
127 if (unlikely(!rc)) in llc_ui_send_data()
191 if (unlikely(sk == NULL)) in llc_ui_release()
312 if (unlikely(!sock_flag(sk, SOCK_ZAPPED) || addrlen != sizeof(*addr))) in llc_ui_bind()
315 if (unlikely(addr->sllc_family != AF_LLC)) in llc_ui_bind()
403 if (unlikely(sk->sk_state != TCP_ESTABLISHED)) in llc_ui_shutdown()
441 if (unlikely(addrlen != sizeof(*addr))) in llc_ui_connect()
444 if (unlikely(addr->sllc_family != AF_LLC)) in llc_ui_connect()
446 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_connect()
449 if (unlikely(sock->state == SS_CONNECTING)) in llc_ui_connect()
[all …]
/linux-4.1.27/net/tipc/
Dmsg.c97 if (unlikely(!buf)) in tipc_msg_create()
139 if (unlikely(head)) in tipc_buf_append()
141 if (unlikely(skb_unclone(frag, GFP_ATOMIC))) in tipc_buf_append()
175 if (unlikely(!tipc_msg_validate(head))) in tipc_buf_append()
208 if (unlikely(TIPC_SKB_CB(skb)->validated)) in tipc_msg_validate()
210 if (unlikely(!pskb_may_pull(skb, MIN_H_SIZE))) in tipc_msg_validate()
214 if (unlikely(hsz < MIN_H_SIZE) || (hsz > MAX_H_SIZE)) in tipc_msg_validate()
216 if (unlikely(!pskb_may_pull(skb, hsz))) in tipc_msg_validate()
220 if (unlikely(msg_version(msg) != TIPC_VERSION)) in tipc_msg_validate()
224 if (unlikely(msz < hsz)) in tipc_msg_validate()
[all …]
/linux-4.1.27/fs/ntfs/
Drunlist.c85 if (unlikely(!new_rl)) in ntfs_rl_realloc()
89 if (unlikely(old_size > new_size)) in ntfs_rl_realloc()
134 if (unlikely(old_size > new_size)) in ntfs_rl_realloc_nofail()
551 if (unlikely(!srl)) in ntfs_runlists_merge()
557 if (unlikely(!drl)) { in ntfs_runlists_merge()
560 if (unlikely(drl[0].vcn)) { in ntfs_runlists_merge()
778 if (unlikely(buf < (u8*)attr || buf > attr_end)) { in ntfs_mapping_pairs_decompress()
789 if (unlikely(!rl)) in ntfs_mapping_pairs_decompress()
808 if (unlikely(!rl2)) { in ntfs_mapping_pairs_decompress()
828 if (unlikely(buf + b > attr_end)) in ntfs_mapping_pairs_decompress()
[all …]
Daops.c83 if (unlikely(init_size > i_size)) { in ntfs_end_buffer_async_read()
88 if (unlikely(file_ofs + bh->b_size > init_size)) { in ntfs_end_buffer_async_read()
213 if (unlikely(!page_has_buffers(page))) { in ntfs_read_block()
238 if (unlikely(init_size > i_size)) { in ntfs_read_block()
250 if (unlikely(buffer_uptodate(bh))) in ntfs_read_block()
252 if (unlikely(buffer_mapped(bh))) { in ntfs_read_block()
415 if (unlikely(page->index >= (i_size + PAGE_CACHE_SIZE - 1) >> in ntfs_readpage()
465 if (unlikely(page->index > 0)) { in ntfs_readpage()
483 if (unlikely(NInoNonResident(ni))) { in ntfs_readpage()
488 if (unlikely(!ctx)) { in ntfs_readpage()
[all …]
Dmft.c72 if (unlikely(index >= end_index)) { in map_mft_record_page()
305 if (unlikely(!ni)) { in map_extent_mft_record()
336 if (unlikely(!tmp)) { in map_extent_mft_record()
481 if (unlikely(!vol->mftmirr_ino)) { in ntfs_sync_mft_mirror()
506 if (unlikely(!page_has_buffers(page))) { in ntfs_sync_mft_mirror()
530 if (unlikely(block_start >= m_end)) in ntfs_sync_mft_mirror()
533 if (unlikely(!buffer_mapped(bh))) { in ntfs_sync_mft_mirror()
582 if (unlikely(rl)) in ntfs_sync_mft_mirror()
602 if (unlikely(!buffer_uptodate(tbh))) { in ntfs_sync_mft_mirror()
706 if (unlikely(block_start >= m_end)) in write_mft_record_nolock()
[all …]
Dfile.c152 if (unlikely(!ctx)) { in ntfs_attr_extend_initialized()
158 if (unlikely(err)) { in ntfs_attr_extend_initialized()
196 if (unlikely(!ctx)) { in ntfs_attr_extend_initialized()
202 if (unlikely(err)) { in ntfs_attr_extend_initialized()
235 if (unlikely(PageError(page))) { in ntfs_attr_extend_initialized()
293 if (unlikely(!ctx)) { in ntfs_attr_extend_initialized()
299 if (unlikely(err)) { in ntfs_attr_extend_initialized()
349 if (unlikely(err <= 0)) in ntfs_prepare_file_for_write()
386 if (unlikely(err)) in ntfs_prepare_file_for_write()
481 if (unlikely(err < 0)) in ntfs_prepare_file_for_write()
[all …]
Ddir.c109 if (unlikely(!ctx)) { in ntfs_lookup_inode_by_name()
116 if (unlikely(err)) { in ntfs_lookup_inode_by_name()
342 if (unlikely(!ntfs_is_indx_record(ia->magic))) { in ntfs_lookup_inode_by_name()
667 if (unlikely(err)) {
820 if (unlikely(!ntfs_is_indx_record(ia->magic))) {
1135 if (unlikely(!name)) { in ntfs_readdir()
1150 if (unlikely(!ctx)) { in ntfs_readdir()
1159 if (unlikely(err)) { in ntfs_readdir()
1176 if (unlikely(!ir)) { in ntfs_readdir()
1199 if (unlikely((u8*)ie < (u8*)ir || (u8*)ie + in ntfs_readdir()
[all …]
Dnamei.c207 if (unlikely(!ctx)) { in ntfs_lookup()
217 if (unlikely(err)) { in ntfs_lookup()
318 if (unlikely(!ctx)) { in ntfs_get_parent()
325 if (unlikely(err)) { in ntfs_get_parent()
335 if (unlikely(attr->non_resident)) in ntfs_get_parent()
339 if (unlikely((u8 *)fn + le32_to_cpu(attr->data.resident.value_length) > in ntfs_get_parent()
Dinode.c70 if (unlikely(na->type != AT_UNUSED)) in ntfs_test_inode()
183 if (unlikely(!vi)) in ntfs_iget()
197 if (unlikely(err == -ENOMEM)) { in ntfs_iget()
244 if (unlikely(!vi)) in ntfs_attr_iget()
259 if (unlikely(err)) { in ntfs_attr_iget()
299 if (unlikely(!vi)) in ntfs_index_iget()
314 if (unlikely(err)) { in ntfs_index_iget()
512 if (unlikely(err != -ENOENT)) in ntfs_is_extended_system_file()
514 if (unlikely(nr_links)) { in ntfs_is_extended_system_file()
650 if (unlikely(err)) { in ntfs_read_locked_inode()
[all …]
Dattrib.c109 if (unlikely(!ctx)) { in ntfs_map_runlist_nolock()
168 if (unlikely(err)) { in ntfs_map_runlist_nolock()
183 if (unlikely(vcn && vcn >= end_vcn)) { in ntfs_map_runlist_nolock()
378 if (unlikely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) != in ntfs_attr_vcn_to_lcn_nolock()
489 if (unlikely(vcn < rl[1].vcn)) { in ntfs_attr_find_vcn_nolock()
613 if (unlikely(le32_to_cpu(a->type) > le32_to_cpu(type) || in ntfs_attr_find()
616 if (unlikely(!a->length)) in ntfs_attr_find()
1352 if (unlikely(type == AT_ATTRIBUTE_LIST && size > 256 * 1024)) in ntfs_attr_size_bounds_check()
1356 if (unlikely(!ad)) in ntfs_attr_size_bounds_check()
1384 if (unlikely(!ad)) in ntfs_attr_can_be_non_resident()
[all …]
/linux-4.1.27/arch/mips/kernel/
Dftrace.c98 if (unlikely(faulted)) in ftrace_modify_code()
117 if (unlikely(faulted)) in ftrace_modify_code_2()
122 if (unlikely(faulted)) in ftrace_modify_code_2()
142 if (unlikely(faulted)) in ftrace_modify_code_2r()
147 if (unlikely(faulted)) in ftrace_modify_code_2r()
302 if (unlikely(faulted)) in ftrace_get_parent_ra_addr()
320 if (unlikely(faulted)) in ftrace_get_parent_ra_addr()
343 if (unlikely(ftrace_graph_is_dead())) in prepare_ftrace_return()
346 if (unlikely(atomic_read(&current->tracing_graph_pause))) in prepare_ftrace_return()
368 if (unlikely(faulted)) in prepare_ftrace_return()
[all …]
/linux-4.1.27/drivers/mtd/tests/
Dsubpagetest.c64 if (unlikely(err || written != subpgsize)) { in write_eraseblock()
78 if (unlikely(err || written != subpgsize)) { in write_eraseblock()
102 if (unlikely(err || written != subpgsize * k)) { in write_eraseblock2()
139 if (unlikely(err || read != subpgsize)) { in verify_eraseblock()
150 if (unlikely(memcmp(readbuf, writebuf, subpgsize))) { in verify_eraseblock()
166 if (unlikely(err || read != subpgsize)) { in verify_eraseblock()
177 if (unlikely(memcmp(readbuf, writebuf, subpgsize))) { in verify_eraseblock()
203 if (unlikely(err || read != subpgsize * k)) { in verify_eraseblock2()
214 if (unlikely(memcmp(readbuf, writebuf, subpgsize * k))) { in verify_eraseblock2()
236 if (unlikely(err || read != subpgsize)) { in verify_eraseblock_ff()
[all …]
/linux-4.1.27/arch/parisc/lib/
Diomap.c273 if (unlikely(INDIRECT_ADDR(addr))) in ioread8()
280 if (unlikely(INDIRECT_ADDR(addr))) in ioread16()
287 if (unlikely(INDIRECT_ADDR(addr))) in ioread16be()
294 if (unlikely(INDIRECT_ADDR(addr))) in ioread32()
301 if (unlikely(INDIRECT_ADDR(addr))) in ioread32be()
308 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite8()
317 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite16()
326 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite16be()
335 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite32()
344 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite32be()
[all …]
/linux-4.1.27/lib/lzo/
Dlzo1x_decompress_safe.c52 if (unlikely(in_len < 3)) in lzo1x_decompress_safe()
67 if (unlikely(t == 0)) { in lzo1x_decompress_safe()
71 while (unlikely(*ip == 0)) { in lzo1x_decompress_safe()
76 if (unlikely(offset > MAX_255_COUNT)) in lzo1x_decompress_safe()
135 if (unlikely(t == 2)) { in lzo1x_decompress_safe()
139 while (unlikely(*ip == 0)) { in lzo1x_decompress_safe()
144 if (unlikely(offset > MAX_255_COUNT)) in lzo1x_decompress_safe()
160 if (unlikely(t == 2)) { in lzo1x_decompress_safe()
164 while (unlikely(*ip == 0)) { in lzo1x_decompress_safe()
169 if (unlikely(offset > MAX_255_COUNT)) in lzo1x_decompress_safe()
Dlzo1x_compress.c44 if (unlikely(ip >= ip_end)) in lzo1x_1_do_compress()
50 if (unlikely(dv != get_unaligned_le32(m_pos))) in lzo1x_1_do_compress()
72 while (unlikely(tt > 255)) { in lzo1x_1_do_compress()
97 if (unlikely(v == 0)) { in lzo1x_1_do_compress()
102 if (unlikely(ip + m_len >= ip_end)) in lzo1x_1_do_compress()
117 if (unlikely(v == 0)) { in lzo1x_1_do_compress()
127 if (unlikely(ip + m_len >= ip_end)) in lzo1x_1_do_compress()
139 if (unlikely(ip[m_len] == m_pos[m_len])) { in lzo1x_1_do_compress()
163 if (unlikely(ip + m_len >= ip_end)) in lzo1x_1_do_compress()
185 while (unlikely(m_len > 255)) { in lzo1x_1_do_compress()
[all …]
/linux-4.1.27/arch/mips/lantiq/
Dclk.c69 if (unlikely(!clk_good(clk))) in clk_get_rate()
84 if (unlikely(!clk_good(clk))) in clk_set_rate()
104 if (unlikely(!clk_good(clk))) in clk_round_rate()
121 if (unlikely(!clk_good(clk))) in clk_enable()
133 if (unlikely(!clk_good(clk))) in clk_disable()
143 if (unlikely(!clk_good(clk))) in clk_activate()
155 if (unlikely(!clk_good(clk))) in clk_deactivate()
/linux-4.1.27/fs/nilfs2/
Drecovery.c152 if (unlikely(!bh_sr)) { in nilfs_read_super_root_block()
229 if (unlikely(nblock == 0 || nblock > nilfs->ns_blocks_per_segment)) in nilfs_validate_log()
267 if (unlikely(!*pbh)) in nilfs_read_summary_info()
334 if (unlikely(!bh)) in nilfs_scan_dsync_log()
344 if (unlikely(!finfo)) in nilfs_scan_dsync_log()
358 if (unlikely(!binfo)) in nilfs_scan_dsync_log()
362 if (unlikely(!rb)) { in nilfs_scan_dsync_log()
378 if (unlikely(!bh)) in nilfs_scan_dsync_log()
407 if (unlikely(!ent)) in nilfs_segment_list_add()
448 if (unlikely(err)) in nilfs_prepare_segment_for_recovery()
[all …]
Dsegment.c188 if (unlikely(ret < 0)) in nilfs_transaction_begin()
345 if (unlikely(ssp->offset + bytes > blocksize)) { in nilfs_segctor_map_segsum_entry()
371 if (unlikely(err)) in nilfs_segctor_reset_segment_buffer()
491 if (unlikely(required)) { in nilfs_segctor_add_file_block()
493 if (unlikely(err)) in nilfs_segctor_add_file_block()
635 if (unlikely(start != 0 || end != LLONG_MAX)) { in nilfs_lookup_dirty_data_buffers()
646 if (unlikely(index > last) || in nilfs_lookup_dirty_data_buffers()
656 if (unlikely(page->index > last)) in nilfs_lookup_dirty_data_buffers()
671 if (unlikely(ndirties >= nlimit)) { in nilfs_lookup_dirty_data_buffers()
726 if (unlikely(ii->i_bh)) { in nilfs_dispose_list()
[all …]
Dbtnode.c50 if (unlikely(!bh)) in nilfs_btnode_create_block()
53 if (unlikely(buffer_mapped(bh) || buffer_uptodate(bh) || in nilfs_btnode_create_block()
79 if (unlikely(!bh)) in nilfs_btnode_submit_block()
96 if (unlikely(err)) { in nilfs_btnode_submit_block()
195 if (unlikely(oldkey != obh->b_page->index)) in nilfs_btnode_prepare_change_key()
252 if (unlikely(oldkey != opage->index)) in nilfs_btnode_commit_change_key()
Dinode.c107 if (unlikely(err)) in nilfs_get_block()
111 if (unlikely(err != 0)) { in nilfs_get_block()
215 if (unlikely(err)) in nilfs_writepage()
277 if (unlikely(err)) in nilfs_write_begin()
282 if (unlikely(err)) { in nilfs_write_begin()
326 if (unlikely(iov_iter_rw(iter) == WRITE && size < 0)) { in nilfs_direct_IO()
373 if (unlikely(!inode)) in nilfs_new_inode()
385 if (unlikely(err)) in nilfs_new_inode()
419 if (unlikely(err)) in nilfs_new_inode()
512 if (unlikely(err)) in __nilfs_read_inode()
[all …]
Dmdt.c56 if (unlikely(ret)) in nilfs_mdt_insert_new_block()
89 if (unlikely(!bh)) in nilfs_mdt_create_block()
130 if (unlikely(!bh)) in nilfs_mdt_submit_block()
151 if (unlikely(ret)) { in nilfs_mdt_submit_block()
185 if (unlikely(err)) in nilfs_mdt_read_block()
256 if (unlikely(ret == -EEXIST)) { in nilfs_mdt_get_block()
292 if (unlikely(start > end)) in nilfs_mdt_find_block()
300 if (unlikely(ret != -ENOENT || start == ULONG_MAX)) in nilfs_mdt_find_block()
410 if (unlikely(err)) in nilfs_mdt_mark_block_dirty()
Dsegbuf.c52 if (unlikely(!segbuf)) in nilfs_segbuf_new()
114 if (unlikely(!bh)) in nilfs_segbuf_extend_segsum()
128 if (unlikely(!bh)) in nilfs_segbuf_extend_payload()
143 if (unlikely(err)) in nilfs_segbuf_reset()
368 if (unlikely(atomic_read(&segbuf->sb_err))) { in nilfs_segbuf_submit_bio()
447 if (unlikely(!wi->bio)) in nilfs_segbuf_submit_bh()
488 if (unlikely(res)) in nilfs_segbuf_write()
494 if (unlikely(res)) in nilfs_segbuf_write()
531 if (unlikely(atomic_read(&segbuf->sb_err) > 0)) { in nilfs_segbuf_wait()
/linux-4.1.27/sound/sh/
Daica.c257 if (unlikely(err < 0)) { in aica_dma_transfer()
282 if (unlikely(dreamcastcard->dma_check == 0)) { in run_spu_dma()
299 if (unlikely(dreamcastcard->clicks >= AICA_PERIOD_NUMBER)) in run_spu_dma()
328 if (unlikely(dreamcastcard->dma_check == 0)) in aica_period_elapsed()
342 if (unlikely(dreamcastcard->timer.data)) { in spu_begin_dma()
463 if (unlikely(err < 0)) in snd_aicapcmchip()
515 if (unlikely(!dreamcastcard->channel)) in aica_pcmvolume_get()
527 if (unlikely(!dreamcastcard->channel)) in aica_pcmvolume_put()
532 if (unlikely(dreamcastcard->channel->vol == vol)) in aica_pcmvolume_put()
565 if (unlikely(err)) in load_aica_firmware()
[all …]
/linux-4.1.27/drivers/rtc/
Drtc-mc13xxx.c107 if (unlikely(ret)) in mc13xxx_rtc_set_mmss()
113 if (unlikely(ret)) in mc13xxx_rtc_set_mmss()
122 if (unlikely(ret)) in mc13xxx_rtc_set_mmss()
126 if (unlikely(ret)) in mc13xxx_rtc_set_mmss()
130 if (unlikely(ret)) in mc13xxx_rtc_set_mmss()
137 if (unlikely(ret)) in mc13xxx_rtc_set_mmss()
143 if (unlikely(ret)) in mc13xxx_rtc_set_mmss()
168 if (unlikely(ret)) in mc13xxx_rtc_read_alarm()
176 if (unlikely(ret)) in mc13xxx_rtc_read_alarm()
210 if (unlikely(ret)) in mc13xxx_rtc_set_alarm()
[all …]
/linux-4.1.27/tools/include/asm/
Dbug.h10 if (unlikely(__ret_warn_on)) \
12 unlikely(__ret_warn_on); \
19 if (unlikely(__ret_warn_once)) \
22 unlikely(__ret_warn_once); \
/linux-4.1.27/arch/tile/kernel/vdso/
Dvgettimeofday.c28 while (unlikely(high != high2)) { in get_cycles_inline()
75 } while (unlikely(read_seqcount_retry(&vdso->tb_seq, count))); in do_realtime()
94 } while (unlikely(read_seqcount_retry(&vdso->tb_seq, count))); in do_monotonic()
111 } while (unlikely(read_seqcount_retry(&vdso->tb_seq, count))); in do_realtime_coarse()
125 } while (unlikely(read_seqcount_retry(&vdso->tb_seq, count))); in do_monotonic_coarse()
138 if (unlikely(tz != NULL)) { in __vdso_gettimeofday()
143 } while (unlikely(read_seqcount_retry(&vdso->tz_seq, count))); in __vdso_gettimeofday()
146 if (unlikely(tv == NULL)) in __vdso_gettimeofday()
/linux-4.1.27/arch/arm/lib/
Duaccess_with_memcpy.c36 if (unlikely(pgd_none(*pgd) || pgd_bad(*pgd))) in pin_page_for_write()
40 if (unlikely(pud_none(*pud) || pud_bad(*pud))) in pin_page_for_write()
44 if (unlikely(pmd_none(*pmd))) in pin_page_for_write()
57 if (unlikely(pmd_thp_or_huge(*pmd))) { in pin_page_for_write()
60 if (unlikely(!pmd_thp_or_huge(*pmd) in pin_page_for_write()
72 if (unlikely(pmd_bad(*pmd))) in pin_page_for_write()
76 if (unlikely(!pte_present(*pte) || !pte_young(*pte) || in pin_page_for_write()
93 if (unlikely(segment_eq(get_fs(), KERNEL_DS))) { in __copy_to_user_memcpy()
156 if (unlikely(segment_eq(get_fs(), KERNEL_DS))) { in __clear_user_memset()
/linux-4.1.27/arch/sh/mm/
Dfault.c66 if (unlikely(!pgd)) in show_pte()
369 if (unlikely(!(vma->vm_flags & VM_WRITE))) in access_error()
375 if (unlikely((error_code & FAULT_CODE_ITLB) && in access_error()
380 if (unlikely(!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE)))) in access_error()
420 if (unlikely(fault_in_kernel_space(address))) { in do_page_fault()
430 if (unlikely(notify_page_fault(regs, vec))) in do_page_fault()
443 if (unlikely(in_atomic() || !mm)) { in do_page_fault()
452 if (unlikely(!vma)) { in do_page_fault()
458 if (unlikely(!(vma->vm_flags & VM_GROWSDOWN))) { in do_page_fault()
462 if (unlikely(expand_stack(vma, address))) { in do_page_fault()
[all …]
Dtlbex_32.c39 if (unlikely(address >= TASK_SIZE || !current->mm)) in handle_tlbmiss()
53 if (unlikely(pte_none(entry) || pte_not_present(entry))) in handle_tlbmiss()
55 if (unlikely(error_code && !pte_write(entry))) in handle_tlbmiss()
/linux-4.1.27/arch/mips/include/asm/octeon/
Dcvmx-cmd-queue.h343 if (CVMX_CMD_QUEUE_ENABLE_MAX_DEPTH && unlikely(qptr->max_depth)) { in cvmx_cmd_queue_write()
344 if (unlikely in cvmx_cmd_queue_write()
373 if (unlikely(new_buffer == NULL)) { in cvmx_cmd_queue_write()
441 if (CVMX_CMD_QUEUE_ENABLE_MAX_DEPTH && unlikely(qptr->max_depth)) { in cvmx_cmd_queue_write2()
442 if (unlikely in cvmx_cmd_queue_write2()
476 if (unlikely(new_buffer == NULL)) { in cvmx_cmd_queue_write2()
497 if (unlikely(count == 0)) { in cvmx_cmd_queue_write2()
542 if (CVMX_CMD_QUEUE_ENABLE_MAX_DEPTH && unlikely(qptr->max_depth)) { in cvmx_cmd_queue_write3()
543 if (unlikely in cvmx_cmd_queue_write3()
578 if (unlikely(new_buffer == NULL)) { in cvmx_cmd_queue_write3()
/linux-4.1.27/fs/exofs/
Dsuper.c104 if (unlikely(!opts->dev_name)) { in parse_options()
232 if (unlikely(!or)) { in exofs_read_kern()
237 if (unlikely(ret)) { in exofs_read_kern()
243 if (unlikely(ret)) { in exofs_read_kern()
249 if (unlikely(ret)) in exofs_read_kern()
275 if (unlikely(ret)) { in __sbi_read_stats()
284 if (unlikely(ret)) { in __sbi_read_stats()
297 if (unlikely(attrs[0].len != sizeof(*ess))) { in __sbi_read_stats()
330 if (unlikely(ret)) { in exofs_sbi_write_stats()
346 if (unlikely(ret)) { in exofs_sbi_write_stats()
[all …]
Dinode.c140 if (unlikely(pcol->nr_pages >= pcol->alloc_pages)) in pcol_add_page()
182 if (unlikely(ret == PAGE_WAS_NOT_IN_IO)) in update_write_page()
293 if (unlikely(ret)) in _maybe_not_all_in_one_io()
349 if (unlikely(ret)) in read_exec()
356 if (unlikely(ret)) in read_exec()
428 if (unlikely(pcol->pg_first == -1)) { in readpage_strip()
430 } else if (unlikely((pcol->pg_first + pcol->nr_pages) != in readpage_strip()
434 if (unlikely(ret)) in readpage_strip()
441 if (unlikely(ret)) in readpage_strip()
459 if (unlikely(ret)) in readpage_strip()
[all …]
Dore.c162 if (unlikely(!_aios)) { in _ore_get_io_state()
182 if (unlikely(!_aio_small)) { in _ore_get_io_state()
189 if (unlikely(!extra_part)) { in _ore_get_io_state()
284 if (unlikely(ret)) in ore_get_rw_state()
373 if (unlikely(!or)) in ore_io_execute()
377 if (unlikely(ret)) { in ore_io_execute()
388 if (unlikely(!or)) in ore_io_execute()
432 if (unlikely(!or)) in ore_check_io()
616 if (unlikely(!per_dev->bio)) { in _ore_add_stripe_unit()
632 if (unlikely(pglen != added_len)) { in _ore_add_stripe_unit()
[all …]
Dore_raid.c103 if (unlikely(!_aab)) { in _sp2d_alloc()
115 if (unlikely(__a1pa >= __a1pa_end)) { in _sp2d_alloc()
120 if (unlikely(!__a1pa)) { in _sp2d_alloc()
351 if (unlikely(ret)) in _add_to_r4w()
362 if (unlikely(!per_dev->bio)) { in _add_to_r4w()
377 if (unlikely(added_len != pg_len)) { in _add_to_r4w()
504 if (unlikely(!*pp)) in _read_4_write_first_stripe()
564 if (unlikely(!page)) in _read_4_write_last_stripe()
607 if (unlikely(ret)) in _read_4_write_execute()
612 if (unlikely(ret)) { in _read_4_write_execute()
[all …]
/linux-4.1.27/net/openvswitch/
Dflow.c81 if (node == 0 && unlikely(flow->stats_last_writer != node)) in ovs_flow_stats_update()
90 if (unlikely(flow->stats_last_writer != node)) { in ovs_flow_stats_update()
182 if (unlikely(skb->len < len)) in check_header()
184 if (unlikely(!pskb_may_pull(skb, len))) in check_header()
202 if (unlikely(err)) in check_iphdr()
206 if (unlikely(ip_len < sizeof(struct iphdr) || in check_iphdr()
219 if (unlikely(!pskb_may_pull(skb, th_ofs + sizeof(struct tcphdr)))) in tcphdr_ok()
223 if (unlikely(tcp_len < sizeof(struct tcphdr) || in tcphdr_ok()
259 if (unlikely(err)) in parse_ipv6hdr()
274 if (unlikely(payload_ofs < 0)) in parse_ipv6hdr()
[all …]
Dvport-netdev.c41 if (unlikely(!vport)) in netdev_port_receive()
44 if (unlikely(skb_warn_if_lro(skb))) in netdev_port_receive()
51 if (unlikely(!skb)) in netdev_port_receive()
70 if (unlikely(skb->pkt_type == PACKET_LOOPBACK)) in netdev_frame_hook()
202 if (unlikely(packet_length(skb) > mtu && !skb_is_gso(skb))) { in netdev_send()
Dactions.c165 if (unlikely(err)) in pop_mpls()
200 if (unlikely(err)) in set_mpls()
259 if (unlikely(err)) in set_eth_addr()
377 if (unlikely(err)) in set_ipv4()
389 if (unlikely(new_addr != nh->saddr)) { in set_ipv4()
397 if (unlikely(new_addr != nh->daddr)) { in set_ipv4()
428 if (unlikely(err)) in set_ipv6()
443 if (unlikely(memcmp(saddr, masked, sizeof(masked)))) { in set_ipv6()
459 if (unlikely(memcmp(daddr, masked, sizeof(masked)))) { in set_ipv6()
507 if (unlikely(err)) in set_udp()
[all …]
/linux-4.1.27/drivers/net/irda/
Dmcs7780.c165 if (unlikely(ret != 2)) { in mcs_setup_transceiver_vishay()
179 if (unlikely(ret)) in mcs_setup_transceiver_vishay()
184 if (unlikely(ret)) in mcs_setup_transceiver_vishay()
189 if (unlikely(ret)) in mcs_setup_transceiver_vishay()
224 if(unlikely(ret != 2)) in mcs_setup_transceiver()
228 if(unlikely(ret)) in mcs_setup_transceiver()
233 if(unlikely(ret)) in mcs_setup_transceiver()
237 if(unlikely(ret != 2)) in mcs_setup_transceiver()
261 if(unlikely(ret)) in mcs_setup_transceiver()
283 if (unlikely(ret)) in mcs_setup_transceiver()
[all …]
Dsir_dev.c325 if (unlikely(atomic_read(&dev->enable_rx))) in sirdev_enable_rx()
351 if (unlikely(err)) in sirdev_set_dongle()
367 if (unlikely(len > dev->tx_buff.truesize)) in sirdev_raw_write()
454 else if (unlikely(actual<0)) { in sirdev_write_complete()
470 if (unlikely(dev->raw_tx != 0)) { in sirdev_write_complete()
504 if (unlikely(dev->new_speed > 0)) { in sirdev_write_complete()
507 if (unlikely(err)) { in sirdev_write_complete()
575 if (unlikely(dev->rx_buff.len == dev->rx_buff.truesize)) in sirdev_receive()
607 if (unlikely(err == -EWOULDBLOCK)) { in sirdev_hard_xmit()
616 else if (unlikely(err)) { in sirdev_hard_xmit()
[all …]
/linux-4.1.27/drivers/staging/android/
Dashmem.c171 if (unlikely(!range)) in range_alloc()
239 if (unlikely(ret)) in ashmem_open()
243 if (unlikely(!asma)) in ashmem_open()
369 if (unlikely(!asma->size)) { in ashmem_mmap()
375 if (unlikely((vma->vm_flags & ~calc_vm_prot_bits(asma->prot_mask)) & in ashmem_mmap()
391 if (unlikely(IS_ERR(vmfile))) { in ashmem_mmap()
491 if (unlikely((asma->prot_mask & prot) != prot)) { in set_prot_mask()
529 if (unlikely(asma->file)) in set_name()
568 if (unlikely(copy_to_user(name, local_name, len))) in get_name()
705 if (unlikely(!asma->file)) in ashmem_pin_unpin()
[all …]
/linux-4.1.27/drivers/media/platform/omap3isp/
Disph3a_aewb.c120 if (unlikely(user_cfg->saturation_limit > in h3a_aewb_validate_params()
124 if (unlikely(user_cfg->win_height < OMAP3ISP_AEWB_MIN_WIN_H || in h3a_aewb_validate_params()
129 if (unlikely(user_cfg->win_width < OMAP3ISP_AEWB_MIN_WIN_W || in h3a_aewb_validate_params()
134 if (unlikely(user_cfg->ver_win_count < OMAP3ISP_AEWB_MIN_WINVC || in h3a_aewb_validate_params()
138 if (unlikely(user_cfg->hor_win_count < OMAP3ISP_AEWB_MIN_WINHC || in h3a_aewb_validate_params()
142 if (unlikely(user_cfg->ver_win_start > OMAP3ISP_AEWB_MAX_WINSTART)) in h3a_aewb_validate_params()
145 if (unlikely(user_cfg->hor_win_start > OMAP3ISP_AEWB_MAX_WINSTART)) in h3a_aewb_validate_params()
148 if (unlikely(user_cfg->blk_ver_win_start > OMAP3ISP_AEWB_MAX_WINSTART)) in h3a_aewb_validate_params()
151 if (unlikely(user_cfg->blk_win_height < OMAP3ISP_AEWB_MIN_WIN_H || in h3a_aewb_validate_params()
156 if (unlikely(user_cfg->subsample_ver_inc < OMAP3ISP_AEWB_MIN_SUB_INC || in h3a_aewb_validate_params()
[all …]
/linux-4.1.27/include/linux/netfilter/ipset/
Dip_set_comment.h25 if (unlikely(comment->str)) { in ip_set_init_comment()
31 if (unlikely(len > IPSET_MAX_COMMENT_SIZE)) in ip_set_init_comment()
34 if (unlikely(!comment->str)) in ip_set_init_comment()
50 if (unlikely(!comment->str)) in ip_set_comment_free()
/linux-4.1.27/kernel/trace/
Dtrace_seq.c40 if (unlikely(!s->seq.size)) in __trace_seq_init()
98 if (unlikely(seq_buf_has_overflowed(&s->seq))) { in trace_seq_printf()
125 if (unlikely(seq_buf_has_overflowed(&s->seq))) { in trace_seq_bitmask()
155 if (unlikely(seq_buf_has_overflowed(&s->seq))) { in trace_seq_vprintf()
189 if (unlikely(seq_buf_has_overflowed(&s->seq))) { in trace_seq_bprintf()
306 if (unlikely(seq_buf_has_overflowed(&s->seq))) { in trace_seq_putmem_hex()
342 if (unlikely(seq_buf_has_overflowed(&s->seq))) { in trace_seq_path()
/linux-4.1.27/drivers/i2c/busses/
Di2c-ibm_iic.c234 if (unlikely(time_after(jiffies, x))) in iic_dc_wait()
249 if (unlikely(p->flags & I2C_M_TEN)){ in iic_smbus_quick()
262 if (unlikely(iic_dc_wait(iic, DIRCNTL_MSDA | DIRCNTL_MSC))) in iic_smbus_quick()
281 if (unlikely(iic_dc_wait(iic, DIRCNTL_MSC))) in iic_smbus_quick()
292 if (unlikely(iic_dc_wait(iic, DIRCNTL_MSC))) in iic_smbus_quick()
301 if (unlikely(iic_dc_wait(iic, DIRCNTL_MSC))) in iic_smbus_quick()
349 if (unlikely(in_8(&iic->sts) & STS_ERR)){ in iic_xfer_result()
420 if (unlikely(ret < 0)) in iic_wait_for_tc()
422 else if (unlikely(in_8(&iic->sts) & STS_PT)){ in iic_wait_for_tc()
432 if (unlikely(time_after(jiffies, x))){ in iic_wait_for_tc()
[all …]
/linux-4.1.27/arch/sh/kernel/cpu/sh4/
Dsq.c155 if (unlikely(!size || end < phys)) in sq_remap()
158 if (unlikely(phys < virt_to_phys(high_memory))) in sq_remap()
165 if (unlikely(!map)) in sq_remap()
174 if (unlikely(page < 0)) { in sq_remap()
182 if (unlikely(ret != 0)) in sq_remap()
218 if (unlikely(!map)) { in sq_unmap()
347 if (unlikely(!sq_kobject[cpu])) in sq_dev_add()
384 if (unlikely(!sq_cache)) in sq_api_init()
388 if (unlikely(!sq_bitmap)) in sq_api_init()
392 if (unlikely(ret != 0)) in sq_api_init()
/linux-4.1.27/arch/mips/include/asm/
Dbitops.h93 } while (unlikely(!temp)); in set_bit()
105 } while (unlikely(!temp)); in set_bit()
145 } while (unlikely(!temp)); in clear_bit()
157 } while (unlikely(!temp)); in clear_bit()
215 } while (unlikely(!temp)); in change_bit()
265 } while (unlikely(!res)); in test_and_set_bit()
319 } while (unlikely(!res)); in test_and_set_bit_lock()
375 } while (unlikely(!temp)); in test_and_clear_bit()
392 } while (unlikely(!res)); in test_and_clear_bit()
448 } while (unlikely(!res)); in test_and_change_bit()
Dspinlock.h251 } while (unlikely(!tmp)); in arch_read_lock()
281 } while (unlikely(!tmp)); in arch_read_unlock()
312 } while (unlikely(!tmp)); in arch_write_lock()
410 } while (unlikely(!tmp)); in arch_write_trylock()
/linux-4.1.27/arch/sh/include/asm/
Dbug.h72 if (unlikely(__ret_warn_on)) \
75 unlikely(__ret_warn_on); \
97 if (unlikely(__ret_unwinder_on)) \
100 unlikely(__ret_unwinder_on); \
Dmutex-llsc.h35 if (unlikely(!__done || __res != 0)) in __mutex_fastpath_lock()
53 if (unlikely(!__done || __res != 0)) in __mutex_fastpath_lock_retval()
73 if (unlikely(!__done || __res <= 0)) in __mutex_fastpath_unlock()
/linux-4.1.27/drivers/md/
Ddm-switch.c168 if (unlikely(path_nr >= sctx->nr_paths)) in switch_get_path_nr()
387 if (unlikely(*string == ',')) { in process_set_region_mappings()
392 if (unlikely(*string != ',')) { in process_set_region_mappings()
397 if (unlikely(!*string)) { in process_set_region_mappings()
402 if (unlikely(*string)) { in process_set_region_mappings()
407 if (unlikely(!cycle_length) || unlikely(cycle_length - 1 > region_index)) { in process_set_region_mappings()
412 if (unlikely(region_index + num_write < region_index) || in process_set_region_mappings()
413 unlikely(region_index + num_write >= sctx->nr_regions)) { in process_set_region_mappings()
432 if (unlikely(*string != ':')) { in process_set_region_mappings()
439 if (unlikely(!*string)) { in process_set_region_mappings()
[all …]
/linux-4.1.27/drivers/infiniband/hw/ehca/
Dehca_uverbs.c123 if (unlikely(ret)) { in ehca_mmap_fw()
148 if (unlikely(ret)) { in ehca_mmap_queue()
170 if (unlikely(ret)) { in ehca_mmap_cq()
181 if (unlikely(ret)) { in ehca_mmap_cq()
207 if (unlikely(ret)) { in ehca_mmap_qp()
219 if (unlikely(ret)) { in ehca_mmap_qp()
231 if (unlikely(ret)) { in ehca_mmap_qp()
273 if (unlikely(ret)) { in ehca_mmap()
295 if (unlikely(ret)) { in ehca_mmap()
Dehca_reqs.c76 if (unlikely((recv_wr->num_sge < 0) || in ehca_write_rwqe()
166 if (unlikely((send_wr->num_sge < 0) || in ehca_write_swqe()
231 if (unlikely(!send_wr->wr.ud.ah)) { in ehca_write_swqe()
235 if (unlikely(send_wr->wr.ud.remote_qpn == 0)) { in ehca_write_swqe()
318 if (unlikely(cqe_status & WC_STATUS_ERROR_BIT)) { in map_ib_wc_status()
411 if (unlikely(!wqe_p)) { in post_one_send()
430 if (unlikely(ret)) { in post_one_send()
450 if (unlikely(my_qp->state < IB_QPS_RTS)) { in ehca_post_send()
466 if (unlikely(my_qp->unsol_ack_circ && in ehca_post_send()
482 if (unlikely(ret)) { in ehca_post_send()
[all …]
/linux-4.1.27/lib/lz4/
Dlz4_decompress.c76 if (unlikely(length > (size_t)(length + len))) in lz4_uncompress()
83 if (unlikely(cpy > oend - COPYLENGTH)) { in lz4_uncompress()
104 if (unlikely(ref < (BYTE *const) dest)) in lz4_uncompress()
112 if (unlikely(length > (size_t)(length + *ip))) in lz4_uncompress()
118 if (unlikely((op - ref) < STEPSIZE)) { in lz4_uncompress()
194 if (unlikely(length > (size_t)(length + s))) in lz4_uncompress_unknownoutputsize()
236 if (unlikely(length > (size_t)(length + s))) in lz4_uncompress_unknownoutputsize()
246 if (unlikely((op - ref) < STEPSIZE)) { in lz4_uncompress_unknownoutputsize()
/linux-4.1.27/arch/parisc/kernel/
Dftrace.c55 if (unlikely(index < 0)) { in pop_return_trace()
88 if (unlikely(!ret)) { in ftrace_return_to_handler()
115 if (unlikely(ftrace_graph_is_dead())) in prepare_ftrace_return()
118 if (unlikely(atomic_read(&current->tracing_graph_pause))) in prepare_ftrace_return()
125 if (unlikely(!__kernel_text_address(old))) { in prepare_ftrace_return()
/linux-4.1.27/arch/powerpc/kernel/
Dio.c36 if (unlikely(count <= 0)) in _insb()
52 if (unlikely(count <= 0)) in _outsb()
67 if (unlikely(count <= 0)) in _insw_ns()
83 if (unlikely(count <= 0)) in _outsw_ns()
98 if (unlikely(count <= 0)) in _insl_ns()
114 if (unlikely(count <= 0)) in _outsl_ns()
/linux-4.1.27/security/
Dsecurity.c371 if (unlikely(IS_PRIVATE(inode))) in security_inode_init_security()
402 if (unlikely(IS_PRIVATE(inode))) in security_old_inode_init_security()
413 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry)))) in security_path_mknod()
421 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry)))) in security_path_mkdir()
429 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry)))) in security_path_rmdir()
436 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry)))) in security_path_unlink()
445 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry)))) in security_path_symlink()
453 if (unlikely(IS_PRIVATE(d_backing_inode(old_dentry)))) in security_path_link()
462 if (unlikely(IS_PRIVATE(d_backing_inode(old_dentry)) || in security_path_rename()
480 if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry)))) in security_path_truncate()
[all …]
/linux-4.1.27/arch/x86/vdso/
Dvclock_gettime.c116 } while (unlikely(cpu != cpu1 || in vread_pvclock()
120 if (unlikely(!(flags & PVCLOCK_TSC_STABLE_BIT))) in vread_pvclock()
243 } while (unlikely(gtod_read_retry(gtod, seq))); in do_realtime()
264 } while (unlikely(gtod_read_retry(gtod, seq))); in do_monotonic()
279 } while (unlikely(gtod_read_retry(gtod, seq))); in do_realtime_coarse()
289 } while (unlikely(gtod_read_retry(gtod, seq))); in do_monotonic_coarse()
323 if (unlikely(do_realtime((struct timespec *)tv) == VCLOCK_NONE)) in __vdso_gettimeofday()
327 if (unlikely(tz != NULL)) { in __vdso_gettimeofday()
/linux-4.1.27/drivers/usb/gadget/function/
Df_fs.c228 if (unlikely(ret < 0)) in __ffs_ep0_queue_wait()
232 if (unlikely(ret)) { in __ffs_ep0_queue_wait()
269 if (unlikely(ret < 0)) in ffs_ep0_write()
277 if (unlikely(len < 16)) { in ffs_ep0_write()
292 if (unlikely(ret < 0)) in ffs_ep0_write()
300 if (unlikely(ret < 0)) in ffs_ep0_write()
304 if (unlikely(ret)) { in ffs_ep0_write()
313 if (unlikely(ret < 0)) { in ffs_ep0_write()
426 return unlikely(__copy_to_user(buf, events, size)) ? -EFAULT : size; in __ffs_ep0_read_events()
445 if (unlikely(ret < 0)) in ffs_ep0_read()
[all …]
/linux-4.1.27/arch/arm/plat-omap/
Ddmtimer.c323 if (unlikely(!timer)) in omap_dm_timer_free()
426 if (unlikely(!timer || pm_runtime_suspended(&timer->pdev->dev))) { in omap_dm_timer_trigger()
440 if (unlikely(!timer)) in omap_dm_timer_start()
461 if (unlikely(!timer)) in omap_dm_timer_stop()
488 if (unlikely(!timer)) in omap_dm_timer_set_source()
543 if (unlikely(!timer)) in omap_dm_timer_set_load()
570 if (unlikely(!timer)) in omap_dm_timer_set_load_start()
599 if (unlikely(!timer)) in omap_dm_timer_set_match()
624 if (unlikely(!timer)) in omap_dm_timer_set_pwm()
649 if (unlikely(!timer)) in omap_dm_timer_set_prescaler()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_dma.c143 if (unlikely(ret)) in nv50_dma_wait()
148 if (unlikely(get < 0)) { in nv50_dma_wait()
163 if (unlikely(get < 0)) { in nv50_dma_wait()
190 if (unlikely(get == -EBUSY)) in nouveau_dma_wait()
202 if (unlikely(get == -EINVAL) || get < NOUVEAU_DMA_SKIPS) in nouveau_dma_wait()
236 if (unlikely(get == -EBUSY)) in nouveau_dma_wait()
238 if (unlikely(get == -EINVAL)) in nouveau_dma_wait()
Dnouveau_gem.c343 if (unlikely(nvbo->validate_mapped)) { in validate_fini_no_ticket()
416 if (unlikely(ret == -EDEADLK)) { in validate_init()
422 if (unlikely(ret)) { in validate_init()
479 if (unlikely(ret)) { in validate_list()
485 if (unlikely(ret)) { in validate_list()
492 if (unlikely(ret)) { in validate_list()
539 if (unlikely(ret)) { in nouveau_gem_pushbuf_validate()
546 if (unlikely(ret < 0)) { in nouveau_gem_pushbuf_validate()
606 if (unlikely(r->bo_index > req->nr_buffers)) { in nouveau_gem_pushbuf_reloc_apply()
616 if (unlikely(r->reloc_bo_index > req->nr_buffers)) { in nouveau_gem_pushbuf_reloc_apply()
[all …]
/linux-4.1.27/arch/powerpc/lib/
Dchecksum_wrappers_64.c40 if (unlikely((len < 0) || !access_ok(VERIFY_READ, src, len))) { in csum_and_copy_from_user()
49 if (unlikely(*err_ptr)) { in csum_and_copy_from_user()
81 if (unlikely((len < 0) || !access_ok(VERIFY_WRITE, dst, len))) { in csum_and_copy_to_user()
90 if (unlikely(*err_ptr)) { in csum_and_copy_to_user()
/linux-4.1.27/arch/ia64/include/asm/
Dmutex.h24 if (unlikely(ia64_fetchadd4_acq(count, -1) != 1)) in __mutex_fastpath_lock()
39 if (unlikely(ia64_fetchadd4_acq(count, -1) != 1)) in __mutex_fastpath_lock_retval()
61 if (unlikely(ret < 0)) in __mutex_fastpath_unlock()
/linux-4.1.27/arch/blackfin/kernel/cplb-nompu/
Dcplbmgr.c104 if (unlikely(status & FAULT_USERSUPV)) in icplb_miss()
116 if (unlikely(idx == icplb_nr_bounds)) in icplb_miss()
120 if (unlikely(i_data == 0)) in icplb_miss()
151 if (unlikely(status & FAULT_USERSUPV)) in dcplb_miss()
163 if (unlikely(idx == dcplb_nr_bounds)) in dcplb_miss()
167 if (unlikely(d_data == 0)) in dcplb_miss()
/linux-4.1.27/net/sunrpc/
Dsocklib.c33 if (unlikely(skb_copy_bits(desc->skb, desc->offset, to, len))) in xdr_skb_read_bits()
90 if (unlikely(pglen == 0)) in xdr_partial_copy_from_skb()
92 if (unlikely(base >= pglen)) { in xdr_partial_copy_from_skb()
107 if (unlikely(*ppage == NULL)) { in xdr_partial_copy_from_skb()
109 if (unlikely(*ppage == NULL)) { in xdr_partial_copy_from_skb()
176 if (unlikely(skb->ip_summed == CHECKSUM_COMPLETE) && in csum_partial_copy_to_xdr()
Daddr.c74 if (unlikely(len == 0)) in rpc_ntop6()
84 if (unlikely((size_t)rc > sizeof(scopebuf))) in rpc_ntop6()
88 if (unlikely(len > buflen)) in rpc_ntop6()
328 if (unlikely(c == NULL)) in rpc_uaddr2sockaddr()
330 if (unlikely(kstrtou8(c + 1, 10, &portlo) != 0)) in rpc_uaddr2sockaddr()
335 if (unlikely(c == NULL)) in rpc_uaddr2sockaddr()
337 if (unlikely(kstrtou8(c + 1, 10, &porthi) != 0)) in rpc_uaddr2sockaddr()
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_uc.c254 if (unlikely(be16_to_cpu(hdr->lrh[3]) != qp->remote_ah_attr.dlid)) in ipath_uc_rcv()
288 if (unlikely(ipath_cmp24(psn, qp->r_psn) != 0)) { in ipath_uc_rcv()
365 if (unlikely(tlen != (hdrsize + pmtu + 4))) { in ipath_uc_rcv()
371 if (unlikely(qp->r_rcv_len > qp->r_len)) { in ipath_uc_rcv()
397 if (unlikely(tlen < (hdrsize + pad + 4))) { in ipath_uc_rcv()
405 if (unlikely(wc.byte_len > qp->r_len)) { in ipath_uc_rcv()
448 if (unlikely(!ok)) { in ipath_uc_rcv()
459 if (unlikely(!(qp->qp_access_flags & in ipath_uc_rcv()
471 if (unlikely(tlen != (hdrsize + pmtu + 4))) { in ipath_uc_rcv()
476 if (unlikely(qp->r_rcv_len > qp->r_len)) { in ipath_uc_rcv()
[all …]
Dipath_rc.c657 if (unlikely(qp->remote_ah_attr.ah_flags & IB_AH_GRH)) { in send_rc_ack()
1145 if (unlikely(diff <= 0)) { in ipath_rc_rcv_resp()
1160 if (unlikely(qp->s_last == qp->s_tail)) in ipath_rc_rcv_resp()
1190 if (unlikely(wqe->wr.opcode != IB_WR_RDMA_READ)) in ipath_rc_rcv_resp()
1204 if (unlikely(ipath_cmp24(psn, qp->s_last_psn + 1))) { in ipath_rc_rcv_resp()
1212 if (unlikely(wqe->wr.opcode != IB_WR_RDMA_READ)) in ipath_rc_rcv_resp()
1215 if (unlikely(tlen != (hdrsize + pmtu + 4))) in ipath_rc_rcv_resp()
1217 if (unlikely(pmtu >= qp->s_rdma_read_len)) in ipath_rc_rcv_resp()
1254 if (unlikely(tlen < (hdrsize + pad + 8))) in ipath_rc_rcv_resp()
1268 if (unlikely(ipath_cmp24(psn, qp->s_last_psn + 1))) { in ipath_rc_rcv_resp()
[all …]
/linux-4.1.27/drivers/scsi/csiostor/
Dcsio_isr.c51 if (unlikely(!hw)) in csio_nondata_isr()
54 if (unlikely(pci_channel_offline(hw->pdev))) { in csio_nondata_isr()
112 if (unlikely(!hw)) in csio_fwevt_isr()
115 if (unlikely(pci_channel_offline(hw->pdev))) { in csio_fwevt_isr()
157 if (unlikely(*scsiwr == FW_SCSI_ABRT_CLS_WR)) { in csio_process_scsi_cmpl()
185 if (unlikely(cmnd == NULL)) in csio_process_scsi_cmpl()
190 if (unlikely(cmnd == NULL)) in csio_process_scsi_cmpl()
223 if (unlikely(csio_wr_process_iq(hw, iq, csio_process_scsi_cmpl, in csio_scsi_isr_handler()
233 if (unlikely(ioreq->dcopy)) in csio_scsi_isr_handler()
261 if (unlikely(!iq)) in csio_scsi_isr()
[all …]
/linux-4.1.27/arch/sparc/include/asm/
Drwsem.h28 if (unlikely(atomic64_inc_return((atomic64_t *)(&sem->count)) <= 0L)) in __down_read()
54 if (unlikely(tmp != RWSEM_ACTIVE_WRITE_BIAS)) in __down_write_nested()
80 if (unlikely(tmp < -1L && (tmp & RWSEM_ACTIVE_MASK) == 0L)) in __up_read()
89 if (unlikely(atomic64_sub_return(RWSEM_ACTIVE_WRITE_BIAS, in __up_write()
/linux-4.1.27/arch/x86/pci/
Dnumachip.c36 if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) { in pci_mmcfg_read_numachip()
42 if (unlikely(bus == 0 && devfn >= limit)) { in pci_mmcfg_read_numachip()
76 if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) in pci_mmcfg_write_numachip()
80 if (unlikely(bus == 0 && devfn >= limit)) in pci_mmcfg_write_numachip()
/linux-4.1.27/fs/lockd/
Dclntxdr.c131 if (unlikely(p == NULL)) in decode_netobj()
134 if (unlikely(length > XDR_MAX_NETOBJ)) in decode_netobj()
163 if (unlikely(p == NULL)) in decode_cookie()
172 if (unlikely(p == NULL)) in decode_cookie()
232 if (unlikely(p == NULL)) in decode_nlm_stat()
234 if (unlikely(ntohl(*p) > ntohl(nlm_lck_denied_grace_period))) in decode_nlm_stat()
286 if (unlikely(p == NULL)) in decode_nlm_holder()
293 if (unlikely(error)) in decode_nlm_holder()
297 if (unlikely(p == NULL)) in decode_nlm_holder()
516 if (unlikely(error)) in decode_nlm_testrply()
[all …]
Dclnt4xdr.c134 if (unlikely(p == NULL)) in decode_netobj()
137 if (unlikely(length > XDR_MAX_NETOBJ)) in decode_netobj()
166 if (unlikely(p == NULL)) in decode_cookie()
175 if (unlikely(p == NULL)) in decode_cookie()
237 if (unlikely(p == NULL)) in decode_nlm4_stat()
239 if (unlikely(ntohl(*p) > ntohl(nlm4_failed))) in decode_nlm4_stat()
292 if (unlikely(p == NULL)) in decode_nlm4_holder()
299 if (unlikely(error)) in decode_nlm4_holder()
303 if (unlikely(p == NULL)) in decode_nlm4_holder()
518 if (unlikely(error)) in decode_nlm4_testrply()
[all …]
/linux-4.1.27/arch/alpha/include/asm/
Drwsem.h44 if (unlikely(oldcount < 0)) in __down_read()
86 if (unlikely(oldcount)) in __down_write()
122 if (unlikely(oldcount < 0)) in __up_read()
148 if (unlikely(count)) in __up_write()
176 if (unlikely(oldcount < 0)) in __downgrade_write()
/linux-4.1.27/fs/nfs/objlayout/
Dobjio_osd.c127 if (unlikely(IS_ERR(od))) { in objio_alloc_deviceid_node()
195 if (unlikely(!lseg)) { in __alloc_objio_seg()
225 if (unlikely(err)) in objio_alloc_lseg()
229 if (unlikely(err)) in objio_alloc_lseg()
240 if (unlikely(err)) in objio_alloc_lseg()
263 if (unlikely(err)) in objio_alloc_lseg()
308 if (unlikely(!aos)) in objio_alloc_io_state()
316 if (unlikely(ret)) { in objio_alloc_io_state()
419 if (unlikely(ret)) in objio_read_pagelist()
426 if (unlikely(ret)) in objio_read_pagelist()
[all …]
/linux-4.1.27/arch/sh/boards/mach-se/7722/
Dirq.c54 if (unlikely(!se7722_irq_domain)) { in se7722_domain_init()
62 if (unlikely(irq == 0)) { in se7722_domain_init()
79 if (unlikely(!gc)) in se7722_gc_init()
105 if (unlikely(!se7722_irq_regs)) { in init_se7722_IRQ()
/linux-4.1.27/mm/
Dfilemap.c576 if (unlikely(error)) in __add_to_page_cache_locked()
621 if (unlikely(ret)) in add_to_page_cache_lru()
974 if (unlikely(!page)) in find_get_entry()
994 if (unlikely(page != *pagep)) { in find_get_entry()
1031 if (unlikely(page->mapping != mapping)) { in find_lock_entry()
1088 if (unlikely(page->mapping != mapping)) { in pagecache_get_page()
1120 if (unlikely(err)) { in pagecache_get_page()
1172 if (unlikely(!page)) in find_get_entries()
1188 if (unlikely(page != *slot)) { in find_get_entries()
1225 if (unlikely(!nr_pages)) in find_get_pages()
[all …]
Dmemory.c165 if (unlikely(task != current)) in check_sync_rss_stat()
167 if (unlikely(task->rss_stat.events++ > TASK_RSS_EVENTS_THRESH)) in check_sync_rss_stat()
593 } else if (unlikely(pmd_trans_splitting(*pmd))) in __pte_alloc()
768 if (unlikely(vma->vm_flags & (VM_PFNMAP|VM_MIXEDMAP))) { in vm_normal_page()
786 if (unlikely(pfn > highest_memmap_pfn)) { in vm_normal_page()
815 if (unlikely(!pte_present(pte))) { in copy_one_pte()
823 if (unlikely(list_empty(&dst_mm->mmlist))) { in copy_one_pte()
1030 if (unlikely(vma->vm_flags & VM_PFNMAP)) { in copy_page_range()
1060 if (unlikely(copy_pud_range(dst_mm, src_mm, dst_pgd, src_pgd, in copy_page_range()
1100 if (unlikely(details) && page) { in zap_pte_range()
[all …]
Dhuge_memory.c152 if (unlikely(IS_ERR(khugepaged_thread))) { in start_stop_khugepaged()
580 if (unlikely(!*hugepage_kobj)) { in hugepage_init_sysfs()
732 if (unlikely(!pgtable)) { in __do_huge_pmd_anonymous_page()
746 if (unlikely(!pmd_none(*pmd))) { in __do_huge_pmd_anonymous_page()
799 if (unlikely(anon_vma_prepare(vma))) in do_huge_pmd_anonymous_page()
801 if (unlikely(khugepaged_enter(vma, vma->vm_flags))) in do_huge_pmd_anonymous_page()
810 if (unlikely(!pgtable)) in do_huge_pmd_anonymous_page()
813 if (unlikely(!zero_page)) { in do_huge_pmd_anonymous_page()
830 if (unlikely(!page)) { in do_huge_pmd_anonymous_page()
834 if (unlikely(__do_huge_pmd_anonymous_page(mm, vma, haddr, pmd, page, gfp))) { in do_huge_pmd_anonymous_page()
[all …]
Dgup.c44 if (unlikely(pmd_bad(*pmd))) in follow_page_pte()
75 if (unlikely(!page)) { in follow_page_pte()
163 if (pgd_none(*pgd) || unlikely(pgd_bad(*pgd))) in follow_page_mask()
175 if (unlikely(pud_bad(*pud))) in follow_page_mask()
196 if (unlikely(pmd_trans_splitting(*pmd))) { in follow_page_mask()
471 if (unlikely(fatal_signal_pending(current))) in __get_user_pages()
1039 if (unlikely(pte_val(pte) != pte_val(*ptep))) { in gup_pte_range()
1099 if (unlikely(pmd_val(orig) != pmd_val(*pmdp))) { in gup_huge_pmd()
1146 if (unlikely(pud_val(orig) != pud_val(*pudp))) { in gup_huge_pud()
1189 if (unlikely(pgd_val(orig) != pgd_val(*pgdp))) { in gup_huge_pgd()
[all …]
/linux-4.1.27/arch/sh/boards/mach-se/7343/
Dirq.c55 if (unlikely(!se7343_irq_domain)) { in se7343_domain_init()
63 if (unlikely(irq == 0)) { in se7343_domain_init()
80 if (unlikely(!gc)) in se7343_gc_init()
112 if (unlikely(!se7343_irq_regs)) { in init_7343se_IRQ()
/linux-4.1.27/arch/x86/mm/
Dfault.c51 if (unlikely(is_kmmio_active())) in kmmio_fault()
786 if (unlikely((error_code & PF_INSTR) && in __bad_area_nosemaphore()
1013 if (unlikely(!(vma->vm_flags & VM_WRITE))) in access_error()
1019 if (unlikely(error_code & PF_PROT)) in access_error()
1023 if (unlikely(!(vma->vm_flags & (VM_READ | VM_EXEC | VM_WRITE)))) in access_error()
1081 if (unlikely(kmmio_fault(regs, address))) in __do_page_fault()
1097 if (unlikely(fault_in_kernel_space(address))) { in __do_page_fault()
1123 if (unlikely(kprobes_fault(regs))) in __do_page_fault()
1126 if (unlikely(error_code & PF_RSVD)) in __do_page_fault()
1129 if (unlikely(smap_violation(error_code, regs))) { in __do_page_fault()
[all …]
/linux-4.1.27/arch/sh/boards/mach-sdk7786/
Dsram.c38 if (unlikely(area == LCLASR_AREA_MASK)) { in fpga_sram_init()
54 if (unlikely(!vaddr)) { in fpga_sram_init()
64 if (unlikely(ret < 0)) { in fpga_sram_init()
/linux-4.1.27/arch/powerpc/mm/
Dhugepage-hash64.c40 if (unlikely(old_pmd & _PAGE_BUSY)) in __hash_page_thp()
43 if (unlikely(old_pmd & _PAGE_SPLITTING)) in __hash_page_thp()
46 if (unlikely(access & ~old_pmd)) in __hash_page_thp()
150 if (unlikely(slot == -1)) { in __hash_page_thp()
169 if (unlikely(slot == -2)) { in __hash_page_thp()
Dhugetlbpage-hash64.c50 if (unlikely(old_pte & _PAGE_BUSY)) in __hash_page_huge()
53 if (unlikely(access & ~old_pte)) in __hash_page_huge()
73 if (unlikely(old_pte & _PAGE_HASHPTE)) { in __hash_page_huge()
114 if (unlikely(slot == -2)) { in __hash_page_huge()
/linux-4.1.27/drivers/scsi/aacraid/
Drx.c61 if (unlikely(bellbits & DoorBellPrintfReady)) { in aac_rx_intr_producer()
66 else if (unlikely(bellbits & DoorBellAdapterNormCmdReady)) { in aac_rx_intr_producer()
74 else if (unlikely(bellbits & DoorBellAdapterNormCmdNotFull)) { in aac_rx_intr_producer()
77 else if (unlikely(bellbits & DoorBellAdapterNormRespNotFull)) { in aac_rx_intr_producer()
91 if (unlikely(Index == 0xFFFFFFFFL)) in aac_rx_intr_message()
107 if (unlikely(aac_intr_normal(dev, in aac_rx_intr_message()
226 if (unlikely(ok != 1)) { in rx_sync_cmd()
341 if (unlikely(status & SELF_TEST_FAILED)) in aac_rx_check_health()
346 if (unlikely(status & KERNEL_PANIC)) { in aac_rx_check_health()
359 if (unlikely(buffer == NULL)) in aac_rx_check_health()
[all …]
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_uc.c272 if (unlikely(qib_cmp24(psn, qp->r_psn) != 0)) { in qib_uc_rcv()
371 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_uc_rcv()
374 if (unlikely(qp->r_rcv_len > qp->r_len)) in qib_uc_rcv()
394 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_uc_rcv()
399 if (unlikely(wc.byte_len > qp->r_len)) in qib_uc_rcv()
426 if (unlikely(!(qp->qp_access_flags & in qib_uc_rcv()
443 if (unlikely(!ok)) in qib_uc_rcv()
462 if (unlikely(tlen != (hdrsize + pmtu + 4))) in qib_uc_rcv()
465 if (unlikely(qp->r_rcv_len > qp->r_len)) in qib_uc_rcv()
480 if (unlikely(tlen < (hdrsize + pad + 4))) in qib_uc_rcv()
[all …]
Dqib_keys.c175 if (unlikely(!atomic_inc_not_zero(&mr->refcount))) in qib_lkey_ok()
189 if (unlikely(!mr || mr->lkey != sge->lkey || mr->pd != &pd->ibpd)) in qib_lkey_ok()
193 if (unlikely(sge->addr < mr->user_base || in qib_lkey_ok()
197 if (unlikely(!atomic_inc_not_zero(&mr->refcount))) in qib_lkey_ok()
274 if (unlikely(!atomic_inc_not_zero(&mr->refcount))) in qib_rkey_ok()
289 if (unlikely(!mr || mr->lkey != rkey || qp->ibqp.pd != mr->pd)) in qib_rkey_ok()
293 if (unlikely(vaddr < mr->iova || off + len > mr->length || in qib_rkey_ok()
296 if (unlikely(!atomic_inc_not_zero(&mr->refcount))) in qib_rkey_ok()
360 if (unlikely(mr == NULL || qp->ibqp.pd != mr->pd)) in qib_fast_reg_mr()
/linux-4.1.27/drivers/ssb/
Dsdio.c115 if (unlikely(error)) { in ssb_sdio_writeb()
130 if (unlikely(error)) {
175 if (unlikely(error)) { in ssb_sdio_scan_read32()
210 if (unlikely(bus->sdio_sbaddr != sbaddr)) { in ssb_sdio_switch_core()
236 if (unlikely(ssb_sdio_switch_core(bus, dev))) in ssb_sdio_read8()
258 if (unlikely(ssb_sdio_switch_core(bus, dev))) in ssb_sdio_read16()
280 if (unlikely(ssb_sdio_switch_core(bus, dev))) in ssb_sdio_read32()
305 if (unlikely(ssb_sdio_switch_core(bus, dev))) { in ssb_sdio_block_read()
349 if (unlikely(ssb_sdio_switch_core(bus, dev))) in ssb_sdio_write8()
368 if (unlikely(ssb_sdio_switch_core(bus, dev))) in ssb_sdio_write16()
[all …]
Dpci.c975 if (unlikely(ssb_pci_assert_buspower(bus))) in ssb_pci_read8()
977 if (unlikely(bus->mapped_device != dev)) { in ssb_pci_read8()
978 if (unlikely(ssb_pci_switch_core(bus, dev))) in ssb_pci_read8()
988 if (unlikely(ssb_pci_assert_buspower(bus))) in ssb_pci_read16()
990 if (unlikely(bus->mapped_device != dev)) { in ssb_pci_read16()
991 if (unlikely(ssb_pci_switch_core(bus, dev))) in ssb_pci_read16()
1001 if (unlikely(ssb_pci_assert_buspower(bus))) in ssb_pci_read32()
1003 if (unlikely(bus->mapped_device != dev)) { in ssb_pci_read32()
1004 if (unlikely(ssb_pci_switch_core(bus, dev))) in ssb_pci_read32()
1017 if (unlikely(ssb_pci_assert_buspower(bus))) in ssb_pci_block_read()
[all …]
/linux-4.1.27/net/xfrm/
Dxfrm_input.c28 if (unlikely(afinfo == NULL)) in xfrm_input_register_afinfo()
30 if (unlikely(afinfo->family >= NPROTO)) in xfrm_input_register_afinfo()
33 if (unlikely(xfrm_input_afinfo[afinfo->family] != NULL)) in xfrm_input_register_afinfo()
46 if (unlikely(afinfo == NULL)) in xfrm_input_unregister_afinfo()
48 if (unlikely(afinfo->family >= NPROTO)) in xfrm_input_unregister_afinfo()
52 if (unlikely(xfrm_input_afinfo[afinfo->family] != afinfo)) in xfrm_input_unregister_afinfo()
67 if (unlikely(family >= NPROTO)) in xfrm_input_get_afinfo()
71 if (unlikely(!afinfo)) in xfrm_input_get_afinfo()
257 if (unlikely(x->km.state == XFRM_STATE_ACQ)) { in xfrm_input()
262 if (unlikely(x->km.state != XFRM_STATE_VALID)) { in xfrm_input()
/linux-4.1.27/security/keys/
Dgc.c226 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_1)) { in key_garbage_collector()
243 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_2)) in key_garbage_collector()
248 unlikely(gc_state & KEY_GC_REAPING_DEAD_2)) { in key_garbage_collector()
253 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_3)) in key_garbage_collector()
283 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_2) || in key_garbage_collector()
299 if (unlikely(gc_state & (KEY_GC_REAPING_DEAD_1 | in key_garbage_collector()
313 if (unlikely(gc_state & KEY_GC_REAPING_DEAD_3)) { in key_garbage_collector()
/linux-4.1.27/arch/x86/kernel/
Djump_label.c54 if (unlikely(memcmp((void *)entry->code, default_nop, 5) in __jump_label_transform()
62 if (unlikely(memcmp((void *)entry->code, ideal_nop, 5) in __jump_label_transform()
78 if (unlikely(memcmp((void *)entry->code, default_nop, 5) != 0)) in __jump_label_transform()
84 if (unlikely(memcmp((void *)entry->code, &code, 5) != 0)) in __jump_label_transform()
Dirq_32.c92 if (unlikely(curstk == irqstk)) in execute_on_irq_stack()
101 if (unlikely(overflow)) in execute_on_irq_stack()
165 if (unlikely(!desc)) in handle_irq()
169 if (unlikely(overflow)) in handle_irq()
/linux-4.1.27/drivers/md/persistent-data/
Ddm-block-manager.c426 if (unlikely(!aux->validator)) { in dm_bm_validate_buffer()
431 if (unlikely(r)) { in dm_bm_validate_buffer()
438 if (unlikely(aux->validator != v)) { in dm_bm_validate_buffer()
457 if (unlikely(IS_ERR(p))) in dm_bm_read_lock()
462 if (unlikely(r)) { in dm_bm_read_lock()
471 if (unlikely(r)) { in dm_bm_read_lock()
493 if (unlikely(IS_ERR(p))) in dm_bm_write_lock()
507 if (unlikely(r)) { in dm_bm_write_lock()
526 if (unlikely(IS_ERR(p))) in dm_bm_read_try_lock()
528 if (unlikely(!p)) in dm_bm_read_try_lock()
[all …]
/linux-4.1.27/drivers/sh/intc/
Duserimask.c64 if (unlikely(!uimask)) in userimask_sysdev_init()
73 if (unlikely(uimask)) in register_intc_userimask()
77 if (unlikely(!uimask)) in register_intc_userimask()
/linux-4.1.27/drivers/xen/xen-pciback/
Dconf_space_header.c69 if (unlikely(verbose_request)) in command_write()
78 if (unlikely(verbose_request)) in command_write()
87 if (unlikely(verbose_request)) in command_write()
92 if (unlikely(verbose_request)) in command_write()
100 if (unlikely(verbose_request)) in command_write()
112 if (unlikely(verbose_request)) in command_write()
139 if (unlikely(!bar)) { in rom_write()
173 if (unlikely(!bar)) { in bar_write()
201 if (unlikely(!bar)) { in bar_read()
Dpciback_ops.c144 if (unlikely(verbose_request)) in xen_pcibk_enable_msi()
161 if (unlikely(verbose_request)) in xen_pcibk_enable_msi()
178 if (unlikely(verbose_request)) in xen_pcibk_disable_msi()
184 if (unlikely(verbose_request)) in xen_pcibk_disable_msi()
202 if (unlikely(verbose_request)) in xen_pcibk_enable_msix()
237 if (unlikely(verbose_request)) in xen_pcibk_enable_msix()
263 if (unlikely(verbose_request)) in xen_pcibk_disable_msix()
273 if (unlikely(verbose_request)) in xen_pcibk_disable_msix()
/linux-4.1.27/drivers/staging/octeon/
Dethernet-tx.c220 if (unlikely(skb_shinfo(skb)->nr_frags > 5)) { in cvm_oct_xmit()
221 if (unlikely(__skb_linearize(skb))) { in cvm_oct_xmit()
327 if (unlikely(skb->data < fpa_head)) { in cvm_oct_xmit()
334 if (unlikely in cvm_oct_xmit()
341 if (unlikely(skb_shared(skb))) { in cvm_oct_xmit()
347 if (unlikely(skb_cloned(skb))) { in cvm_oct_xmit()
353 if (unlikely(skb_header_cloned(skb))) { in cvm_oct_xmit()
359 if (unlikely(skb->destructor)) { in cvm_oct_xmit()
365 if (unlikely(skb_shinfo(skb)->nr_frags)) { in cvm_oct_xmit()
371 if (unlikely in cvm_oct_xmit()
[all …]
/linux-4.1.27/arch/powerpc/include/asm/
Dspinlock.h47 if (unlikely(get_paca()->io_sync)) { \
133 } while (unlikely(lock->slock != 0)); in arch_spin_lock()
153 } while (unlikely(lock->slock != 0)); in arch_spin_lock_flags()
253 } while (unlikely(rw->lock < 0)); in arch_read_lock()
267 } while (unlikely(rw->lock != 0)); in arch_write_lock()
Dmutex.h77 if (unlikely(__mutex_dec_return_lock(count) < 0)) in __mutex_fastpath_lock()
92 if (unlikely(__mutex_dec_return_lock(count) < 0)) in __mutex_fastpath_lock_retval()
109 if (unlikely(__mutex_inc_return_unlock(count) <= 0)) in __mutex_fastpath_unlock()
/linux-4.1.27/arch/x86/lib/
Dcsum-wrappers_64.c40 if (unlikely((unsigned long)src & 6)) { in csum_partial_copy_from_user()
59 if (unlikely(*errp)) in csum_partial_copy_from_user()
91 if (unlikely(!access_ok(VERIFY_WRITE, dst, len))) { in csum_partial_copy_to_user()
96 if (unlikely((unsigned long)dst & 6)) { in csum_partial_copy_to_user()
Dcsum-partial_64.c39 if (unlikely(len == 0)) in do_csum()
42 if (unlikely(odd)) { in do_csum()
114 if (unlikely(odd)) { in do_csum()
/linux-4.1.27/drivers/vhost/
Dnet.c141 if (unlikely(!r)) in vhost_net_ubuf_put()
230 return unlikely(experimental_zcopytx) && in vhost_sock_zcopy()
331 if (unlikely((nvq->upend_idx + vq->num - VHOST_MAX_PEND) in handle_tx()
340 if (unlikely(head < 0)) in handle_tx()
344 if (unlikely(vhost_enable_notify(&net->dev, vq))) { in handle_tx()
394 if (unlikely(err < 0)) { in handle_tx()
412 if (unlikely(total_len >= VHOST_NET_WEIGHT)) { in handle_tx()
468 if (unlikely(seg >= UIO_MAXIOV)) { in get_rx_bufs()
475 if (unlikely(r < 0)) in get_rx_bufs()
483 if (unlikely(out || in <= 0)) { in get_rx_bufs()
[all …]
Dvhost.c1011 if (unlikely(vq->log_used)) { in vhost_update_used_flags()
1029 if (unlikely(vq->log_used)) { in vhost_update_avail_event()
1077 if (unlikely(ret >= iov_size)) { in translate_desc()
1082 if (unlikely(!reg)) { in translate_desc()
1133 if (unlikely(len % sizeof desc)) { in get_indirect()
1143 if (unlikely(ret < 0)) { in get_indirect()
1156 if (unlikely(count > USHRT_MAX + 1)) { in get_indirect()
1164 if (unlikely(++found > count)) { in get_indirect()
1170 if (unlikely(copy_from_iter(&desc, sizeof(desc), &from) != in get_indirect()
1176 if (unlikely(desc.flags & cpu_to_vhost16(vq, VRING_DESC_F_INDIRECT))) { in get_indirect()
[all …]
/linux-4.1.27/arch/sparc/kernel/
Dpci_sun4v.c75 if (unlikely(num < 0)) { in iommu_batch_flush()
144 if (unlikely(order >= MAX_ORDER)) in dma_4v_alloc_coherent()
151 if (unlikely(!page)) in dma_4v_alloc_coherent()
162 if (unlikely(entry == DMA_ERROR_CODE)) in dma_4v_alloc_coherent()
178 if (unlikely(err < 0L)) in dma_4v_alloc_coherent()
182 if (unlikely(iommu_batch_end() < 0L)) in dma_4v_alloc_coherent()
249 if (unlikely(direction == DMA_NONE)) in dma_4v_map_page()
259 if (unlikely(entry == DMA_ERROR_CODE)) in dma_4v_map_page()
275 if (unlikely(err < 0L)) in dma_4v_map_page()
278 if (unlikely(iommu_batch_end() < 0L)) in dma_4v_map_page()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dacl.c104 if (unlikely(old_count <= new_count)) in lustre_posix_acl_xattr_reduce_space()
108 if (unlikely(new == NULL)) in lustre_posix_acl_xattr_reduce_space()
126 if (unlikely(old_count <= ext_count)) in lustre_ext_acl_xattr_reduce_space()
130 if (unlikely(new == NULL)) in lustre_ext_acl_xattr_reduce_space()
148 if (unlikely(size < 0)) in lustre_posix_acl_xattr_2ext()
156 if (unlikely(new == NULL)) in lustre_posix_acl_xattr_2ext()
187 if (unlikely(new == NULL)) in lustre_posix_acl_xattr_filter()
313 if (unlikely(new == NULL)) in lustre_acl_xattr_merge2posix()
353 if (unlikely(size < 0)) in lustre_acl_xattr_merge2posix()
364 if (unlikely(new == NULL)) in lustre_acl_xattr_merge2posix()
[all …]
/linux-4.1.27/tools/perf/util/
Dcpumap.h60 if (unlikely(!max_node_num)) in cpu__max_node()
68 if (unlikely(!max_cpu_num)) in cpu__max_cpu()
76 if (unlikely(cpunode_map == NULL)) { in cpu__get_node()
/linux-4.1.27/fs/hfsplus/
Dposix_acl.c37 if (unlikely(!value)) in hfsplus_get_posix_acl()
90 if (unlikely(size > HFSPLUS_MAX_INLINE_DATA_SIZE)) in hfsplus_set_posix_acl()
93 if (unlikely(!value)) in hfsplus_set_posix_acl()
96 if (unlikely(err < 0)) in hfsplus_set_posix_acl()
/linux-4.1.27/net/ipv4/
Dgre_offload.c31 if (unlikely(skb_shinfo(skb)->gso_type & in gre_gso_segment()
46 if (unlikely(!pskb_may_pull(skb, sizeof(*greh)))) in gre_gso_segment()
52 if (unlikely(ghl < sizeof(*greh))) in gre_gso_segment()
63 if (unlikely(!pskb_may_pull(skb, ghl))) in gre_gso_segment()
136 if (unlikely(!greh)) in gre_gro_receive()
167 if (unlikely(!greh)) in gre_gro_receive()
Dip_tunnel_core.c81 if (unlikely(net_xmit_eval(err))) in iptunnel_xmit()
89 if (unlikely(!pskb_may_pull(skb, hdr_len))) in iptunnel_pull_header()
97 if (unlikely(!pskb_may_pull(skb, ETH_HLEN))) in iptunnel_pull_header()
134 if (unlikely(err)) in iptunnel_handle_offloads()
150 if (unlikely(err)) in iptunnel_handle_offloads()
/linux-4.1.27/arch/sparc/mm/
Dfault_64.c101 if (pgd_none(*pgdp) || unlikely(pgd_bad(*pgdp))) in get_user_insn()
104 if (pud_none(*pudp) || unlikely(pud_bad(*pudp))) in get_user_insn()
111 if (pmd_none(*pmdp) || unlikely(pmd_bad(*pmdp))) in get_user_insn()
194 if (unlikely(show_unhandled_signals)) in do_fault_siginfo()
306 if (unlikely((regs->tpc >> 32) != 0)) { in do_sparc64_fault()
311 if (unlikely((address >> 32) != 0)) in do_sparc64_fault()
446 if (unlikely(fault & VM_FAULT_ERROR)) { in do_sparc64_fault()
484 if (unlikely(mm_rss > in do_sparc64_fault()
489 if (unlikely(mm_rss > in do_sparc64_fault()
/linux-4.1.27/drivers/net/usb/
Drndis_host.c135 if (unlikely(retval < 0 || xid == 0)) in rndis_command()
147 if (unlikely(retval < 0)) in rndis_command()
169 if (unlikely(rsp == RNDIS_MSG_RESET_C)) in rndis_command()
200 if (unlikely(retval < 0)) in rndis_command()
262 if (unlikely(retval < 0)) { in rndis_query()
270 if (unlikely((8 + off + len) > CONTROL_BUFFER_SIZE)) in rndis_query()
362 if (unlikely(retval < 0)) { in generic_rndis_bind()
427 if (unlikely(retval< 0)) { in generic_rndis_bind()
443 if (unlikely(retval < 0)) { in generic_rndis_bind()
511 if (unlikely(msg_type != RNDIS_MSG_PACKET || skb->len < msg_len in rndis_rx_fixup()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dtxrx.c227 if (unlikely(!skb)) in wil_vring_alloc_skb()
234 if (unlikely(dma_mapping_error(dev, pa))) { in wil_vring_alloc_skb()
387 if (unlikely(wil_vring_is_empty(vring))) in wil_vring_reap_rx()
391 if (unlikely(!(_d->dma.status & RX_DMA_STATUS_DU))) { in wil_vring_reap_rx()
415 if (unlikely(dmalen > sz)) { in wil_vring_reap_rx()
444 if (unlikely(ftype != IEEE80211_FTYPE_DATA)) { in wil_vring_reap_rx()
451 if (unlikely(skb->len < ETH_HLEN + snaplen)) { in wil_vring_reap_rx()
504 if (unlikely(rc)) { in wil_rx_refill()
586 if (unlikely(rc == GRO_DROP)) { in wil_netif_rx_any()
611 if (unlikely(!v->va)) { in wil_rx_handle()
[all …]
Dinterrupt.c229 if (unlikely(!isr)) { in wil6210_irq_rx()
246 if (unlikely(isr & BIT_DMA_EP_RX_ICR_RX_HTRSH)) in wil6210_irq_rx()
266 if (unlikely(isr)) in wil6210_irq_rx()
273 if (unlikely(need_unmask)) in wil6210_irq_rx()
290 if (unlikely(!isr)) { in wil6210_irq_tx()
311 if (unlikely(isr)) in wil6210_irq_tx()
318 if (unlikely(need_unmask)) in wil6210_irq_tx()
500 if (unlikely((pseudo_cause == 0) || ((pseudo_cause & 0xff) == 0xff))) in wil6210_hardirq()
504 if (unlikely(wil6210_debug_irq_mask(wil, pseudo_cause))) in wil6210_hardirq()
/linux-4.1.27/drivers/usb/host/
Dehci-q.c108 if (unlikely(!usb_gettoggle(qh->ps.udev, epnum, is_out))) { in qh_update()
206 if (unlikely(urb->unlinked)) in qtd_copy_status()
210 if (unlikely (IS_SHORT_READ (token))) in qtd_copy_status()
256 if (unlikely(urb->unlinked)) { in ehci_urb_done()
468 if (unlikely(last_status != -EINPROGRESS && in qh_completions()
509 if (unlikely(qh->dequeue_during_giveback)) { in qh_completions()
591 if (unlikely (!qtd)) in qh_urb_transaction()
612 if (unlikely (!qtd)) in qh_urb_transaction()
683 if (unlikely (!qtd)) in qh_urb_transaction()
719 if (unlikely (!qtd)) in qh_urb_transaction()
[all …]
/linux-4.1.27/arch/nios2/mm/
Dmmu_context.c65 if (unlikely(CTX_PID(next_mmu_context) == 0)) { in get_new_context()
74 if (unlikely(CTX_VERSION(next_mmu_context) == 0)) in get_new_context()
89 if (unlikely(CTX_VERSION(next->context) != in switch_mm()
/linux-4.1.27/fs/
Dnamei.c136 if (unlikely(!result)) in getname_flags()
147 if (unlikely(len < 0)) { in getname_flags()
158 if (unlikely(len == EMBEDDED_NAME_MAX)) { in getname_flags()
168 if (unlikely(!result)) { in getname_flags()
174 if (unlikely(len < 0)) { in getname_flags()
179 if (unlikely(len == PATH_MAX)) { in getname_flags()
188 if (unlikely(!len)) { in getname_flags()
216 if (unlikely(!result)) in getname_kernel()
225 if (unlikely(!tmp)) { in getname_kernel()
378 if (unlikely(!(inode->i_opflags & IOP_FASTPERM))) { in do_inode_permission()
[all …]
Dsplice.c366 if (unlikely(error)) { in __generic_file_splice_read()
442 if (unlikely(error)) { in __generic_file_splice_read()
461 if (unlikely(!isize || index > end_index)) in __generic_file_splice_read()
533 if (unlikely(*ppos >= isize)) in generic_file_splice_read()
537 if (unlikely(left < len)) in generic_file_splice_read()
768 if (unlikely(ret)) { in splice_from_pipe_feed()
961 if (unlikely(!array)) in iter_file_splice_write()
976 if (unlikely(nbufs < pipe->buffers)) { in iter_file_splice_write()
1000 if (unlikely(ret)) { in iter_file_splice_write()
1132 if (unlikely(!(in->f_mode & FMODE_READ))) in do_splice_to()
[all …]
Daio.c482 if (unlikely(i != nr_pages)) { in aio_setup_ring()
999 if (unlikely(!req)) in aio_get_req()
1212 if (unlikely(copy_ret)) { in aio_read_events_ring()
1242 if (unlikely(atomic_read(&ctx->dead))) in aio_read_events()
1261 if (unlikely(copy_from_user(&ts, timeout, sizeof(ts)))) in read_events()
1314 if (unlikely(ret)) in SYSCALL_DEFINE2()
1318 if (unlikely(ctx || nr_events == 0)) { in SYSCALL_DEFINE2()
1420 if (unlikely(!(file->f_mode & mode))) in aio_run_iocb()
1477 if (unlikely(ret == -ERESTARTSYS || ret == -ERESTARTNOINTR || in aio_run_iocb()
1494 if (unlikely(iocb->aio_reserved1 || iocb->aio_reserved2)) { in io_submit_one()
[all …]
Ddcache.c188 if (unlikely(a != b)) in dentry_string_cmp()
197 return unlikely(!!((a ^ b) & mask)); in dentry_string_cmp()
297 if (unlikely(dname_external(dentry))) { in dentry_free()
449 if (unlikely(!(dentry->d_flags & DCACHE_LRU_LIST))) in dentry_lru_add()
477 if (unlikely(IS_ROOT(dentry))) in __d_drop()
564 if (inode && unlikely(!spin_trylock(&inode->i_lock))) in dentry_kill()
569 if (unlikely(!spin_trylock(&parent->d_lock))) { in dentry_kill()
590 if (unlikely(dentry->d_lockref.count < 0)) in lock_parent()
607 if (unlikely(parent != dentry->d_parent)) { in lock_parent()
636 if (unlikely(dentry->d_flags & DCACHE_OP_DELETE)) in fast_dput()
[all …]
/linux-4.1.27/kernel/
Dexit.c106 if (unlikely(has_group_leader_pid(tsk))) in __exit_signal()
210 if (unlikely(zap_leader)) in release_task()
470 if (unlikely(pid_ns == &init_pid_ns)) { in find_child_reaper()
525 if (unlikely(p->exit_state == EXIT_DEAD)) in reparent_leader()
556 if (unlikely(!list_empty(&father->ptraced))) in forget_original_parent()
601 if (unlikely(tsk->ptrace)) { in exit_notify()
619 if (unlikely(tsk->signal->notify_count < 0)) in exit_notify()
663 if (unlikely(in_interrupt())) in do_exit()
665 if (unlikely(!tsk->pid)) in do_exit()
685 if (unlikely(tsk->flags & PF_EXITING)) { in do_exit()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
Ddesc.c99 if (unlikely(tx_tries0 == 0)) { in ath5k_hw_setup_2word_tx_desc()
104 if (unlikely(tx_rate0 == 0)) { in ath5k_hw_setup_2word_tx_desc()
270 if (unlikely(tx_tries0 == 0)) { in ath5k_hw_setup_4word_tx_desc()
275 if (unlikely(tx_rate0 == 0)) { in ath5k_hw_setup_4word_tx_desc()
397 if (unlikely((tx_rate1 == 0 && tx_tries1 != 0) || in ath5k_hw_setup_mrr_tx_desc()
451 if (unlikely((tx_status->tx_status_1 & AR5K_DESC_TX_STATUS1_DONE) == 0)) in ath5k_hw_proc_2word_tx_status()
506 if (unlikely(!(txstat1 & AR5K_DESC_TX_STATUS1_DONE))) in ath5k_hw_proc_4word_tx_status()
576 if (unlikely(size & ~AR5K_DESC_RX_CTL1_BUF_LEN)) in ath5k_hw_setup_rx_desc()
610 if (unlikely(!(rx_status->rx_status_1 & in ath5k_hw_proc_5210_rx_status()
706 if (unlikely(!(rxstat1 & AR5K_5212_RX_DESC_STATUS1_DONE))) in ath5k_hw_proc_5212_rx_status()
Ddma.c540 if (unlikely(isr == AR5K_INT_NOCARD)) { in ath5k_hw_get_isr()
552 if (unlikely(isr & (AR5K_ISR_SSERR | AR5K_ISR_MCABT in ath5k_hw_get_isr()
576 if (unlikely(pisr == AR5K_INT_NOCARD)) { in ath5k_hw_get_isr()
704 if (unlikely(pisr & (AR5K_ISR_HIUERR))) in ath5k_hw_get_isr()
708 if (unlikely(pisr & (AR5K_ISR_BNR))) in ath5k_hw_get_isr()
712 if (unlikely(pisr & (AR5K_ISR_QCBRORN))) { in ath5k_hw_get_isr()
719 if (unlikely(pisr & (AR5K_ISR_QCBRURN))) { in ath5k_hw_get_isr()
726 if (unlikely(pisr & (AR5K_ISR_QTRIG))) { in ath5k_hw_get_isr()
739 if (unlikely(*interrupt_mask == 0 && net_ratelimit())) in ath5k_hw_get_isr()
/linux-4.1.27/arch/microblaze/kernel/
Dftrace.c30 if (unlikely(ftrace_graph_is_dead())) in prepare_ftrace_return()
33 if (unlikely(atomic_read(&current->tracing_graph_pause))) in prepare_ftrace_return()
60 if (unlikely(faulted)) { in prepare_ftrace_return()
101 if (unlikely(faulted)) in ftrace_modify_code()
/linux-4.1.27/arch/sh/drivers/
Dpush-switch.c53 if (unlikely(!psw)) in switch_drv_probe()
57 if (unlikely(irq < 0)) { in switch_drv_probe()
68 if (unlikely(ret < 0)) in switch_drv_probe()
73 if (unlikely(ret)) { in switch_drv_probe()
Dheartbeat.c83 if (unlikely(pdev->num_resources != 1)) { in heartbeat_drv_probe()
89 if (unlikely(res == NULL)) { in heartbeat_drv_probe()
98 if (unlikely(!hd)) in heartbeat_drv_probe()
103 if (unlikely(!hd->base)) { in heartbeat_drv_probe()
/linux-4.1.27/net/ipv6/
Dip6_offload.c33 if (unlikely(!ops)) in ipv6_gso_pull_exthdrs()
40 if (unlikely(!pskb_may_pull(skb, 8))) in ipv6_gso_pull_exthdrs()
46 if (unlikely(!pskb_may_pull(skb, len))) in ipv6_gso_pull_exthdrs()
71 if (unlikely(skb_shinfo(skb)->gso_type & in ipv6_gso_segment()
89 if (unlikely(!pskb_may_pull(skb, sizeof(*ipv6h)))) in ipv6_gso_segment()
153 if (unlikely(!(*opps))) in ipv6_exthdrs_len()
184 if (unlikely(!iph)) in ipv6_gro_receive()
/linux-4.1.27/arch/tile/lib/
Dspinlock_64.c37 if (unlikely(my_ticket & __ARCH_SPIN_NEXT_OVERFLOW)) { in arch_spin_lock_slow()
58 if (unlikely(arch_spin_current(val) != arch_spin_next(val))) in arch_spin_trylock()
84 } while (unlikely(arch_write_val_locked(val))); in __read_lock_failed()
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
Dtx.c51 if (unlikely(modparam_noht)) { in __carl9170_get_queue()
122 if (unlikely(!vif)) in __carl9170_get_tx_sta()
145 if (unlikely(!sta)) in carl9170_tx_ps_unblock()
199 if (unlikely(atomic_sub_return(chunks, &ar->mem_free_blocks) < 0)) { in carl9170_alloc_dev_space()
208 if (unlikely(cookie < 0)) { in carl9170_alloc_dev_space()
249 if (unlikely(WARN_ON_ONCE(cookie == 0) || in carl9170_release_dev_space()
394 if (unlikely(!sta)) in carl9170_tx_status_process_ampdu()
452 if (unlikely(ieee80211_is_back_req(bar->frame_control)) && in carl9170_tx_bar_status()
1002 if (unlikely(info->flags & IEEE80211_TX_CTL_SEND_AFTER_DTIM)) in carl9170_tx_prepare()
1005 if (unlikely(info->flags & IEEE80211_TX_CTL_ASSIGN_SEQ)) in carl9170_tx_prepare()
[all …]
/linux-4.1.27/arch/blackfin/kernel/
Dbfin_gpio.c675 if (unlikely(!check_gpio(ident) && is_reserved(gpio, ident, 1))) { in peripheral_request()
685 if (unlikely(is_reserved(peri, ident, 1))) { in peripheral_request()
711 if (unlikely(portmux_group_check(per))) { in peripheral_request()
762 if (unlikely(!is_reserved(peri, ident, 0))) { in peripheral_free()
821 if (unlikely(is_reserved(gpio, gpio, 1))) { in bfin_gpio_request()
829 if (unlikely(is_reserved(peri, gpio, 1))) { in bfin_gpio_request()
838 if (unlikely(is_reserved(gpio_irq, gpio, 1))) { in bfin_gpio_request()
867 if (unlikely(!is_reserved(gpio, gpio, 0))) { in bfin_gpio_free()
903 if (unlikely(is_reserved(special_gpio, gpio, 1))) { in bfin_special_gpio_request()
910 if (unlikely(is_reserved(peri, gpio, 1))) { in bfin_special_gpio_request()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
Dbase.c52 if (unlikely(end >= max)) in nvkm_vm_map_at()
60 if (unlikely(end >= max)) { in nvkm_vm_map_at()
96 if (unlikely(end >= max)) in nvkm_vm_map_sg_table()
110 if (unlikely(end >= max)) { in nvkm_vm_map_sg_table()
151 if (unlikely(end >= max)) in nvkm_vm_map_sg()
160 if (unlikely(end >= max)) { in nvkm_vm_map_sg()
199 if (unlikely(end >= max)) in nvkm_vm_unmap_at()
207 if (unlikely(end >= max)) { in nvkm_vm_unmap_at()
267 if (unlikely(ret)) in nvkm_vm_map_pgt()
271 if (unlikely(vpgt->refcount[big]++)) { in nvkm_vm_map_pgt()
[all …]
/linux-4.1.27/net/sunrpc/auth_gss/
Dgss_rpc_xdr.c29 if (unlikely(p == NULL)) in gssx_enc_bool()
40 if (unlikely(p == NULL)) in gssx_dec_bool()
82 if (unlikely(p == NULL)) in gssx_dec_buffer()
87 if (unlikely(p == NULL)) in gssx_dec_buffer()
156 if (unlikely(p == NULL)) in dummy_dec_opt_array()
191 if (unlikely(p == NULL)) in gssx_dec_linux_creds()
250 if (unlikely(p == NULL)) in gssx_dec_option_array()
280 if (unlikely(p == NULL)) in gssx_dec_option_array()
285 if (unlikely(p == NULL)) in gssx_dec_option_array()
313 if (unlikely(p == NULL)) in gssx_dec_status()
[all …]
/linux-4.1.27/drivers/scsi/esas2r/
Desas2r_io.c52 if (unlikely(test_bit(AF_DEGRADED_MODE, &a->flags) || in esas2r_start_request()
61 if (unlikely(t >= a->targetdb_end in esas2r_start_request()
73 if (unlikely(t->target_state != TS_PRESENT && in esas2r_start_request()
79 if (unlikely(rq->req_stat != RS_PENDING)) { in esas2r_start_request()
127 if (unlikely(rq->vrq->scsi.function == VDA_FUNC_FLASH in esas2r_local_start_request()
200 if (unlikely(len == 0)) in esas2r_build_sg_list_sge()
204 if (unlikely(len > sgc->length)) in esas2r_build_sg_list_sge()
222 if (unlikely(sgc->sge.a64.curr > sgc->sge.a64.limit)) { in esas2r_build_sg_list_sge()
233 if (unlikely(sgl == NULL)) in esas2r_build_sg_list_sge()
385 if (unlikely(len == 0)) in esas2r_build_prd_iblk()
[all …]
/linux-4.1.27/fs/f2fs/
Dcheckpoint.c72 if (unlikely(page->mapping != mapping)) { in get_meta_page()
87 if (unlikely(blkaddr >= SIT_BLK_CNT(sbi))) in is_valid_blkaddr()
91 if (unlikely(blkaddr >= MAIN_BLKADDR(sbi) || in is_valid_blkaddr()
96 if (unlikely(blkaddr >= SIT_I(sbi)->sit_base_addr || in is_valid_blkaddr()
101 if (unlikely(blkaddr >= MAX_BLKADDR(sbi) || in is_valid_blkaddr()
132 if (unlikely(blkno >= in ra_meta_pages()
193 if (unlikely(is_sbi_flag_set(sbi, SBI_POR_DOING))) in f2fs_write_meta_page()
197 if (unlikely(f2fs_cp_error(sbi))) in f2fs_write_meta_page()
258 if (unlikely(nr_pages == 0)) in sync_meta_pages()
266 if (unlikely(page->mapping != mapping)) { in sync_meta_pages()
[all …]
/linux-4.1.27/arch/sh/kernel/cpu/
Dclock.c28 if (unlikely(ret)) { in clk_init()
35 if (unlikely(ret)) { in clk_init()
/linux-4.1.27/fs/notify/inotify/
Dinotify_user.c442 if (unlikely(!found_i_mark)) { in inotify_remove_from_idr()
454 if (unlikely(found_i_mark != i_mark)) { in inotify_remove_from_idr()
470 if (unlikely(atomic_read(&i_mark->fsn_mark.refcnt) < 3)) { in inotify_remove_from_idr()
580 if (unlikely(!tmp_i_mark)) in inotify_new_watch()
642 if (unlikely(!oevent)) { in inotify_new_group()
710 if (unlikely(!(mask & ALL_INOTIFY_BITS))) in SYSCALL_DEFINE3()
714 if (unlikely(!f.file)) in SYSCALL_DEFINE3()
718 if (unlikely(f.file->f_op != &inotify_fops)) { in SYSCALL_DEFINE3()
752 if (unlikely(!f.file)) in SYSCALL_DEFINE2()
757 if (unlikely(f.file->f_op != &inotify_fops)) in SYSCALL_DEFINE2()
[all …]
/linux-4.1.27/arch/powerpc/kvm/
Dtiming.c66 if (unlikely(old > vcpu->arch.timing_sum_duration[type])) { in add_exit_timing()
76 if (unlikely(old > vcpu->arch.timing_sum_quad_duration[type])) { in add_exit_timing()
85 if (unlikely(duration < vcpu->arch.timing_min_duration[type])) in add_exit_timing()
87 if (unlikely(duration > vcpu->arch.timing_max_duration[type])) in add_exit_timing()
101 if (unlikely(vcpu->arch.last_exit_type == 0xDEAD || exit == 0)) in kvmppc_update_timing_stats()
/linux-4.1.27/drivers/watchdog/
Dshwdt.c167 if (unlikely(t < 1 || t > 3600)) /* arbitrary upper limit */ in sh_wdt_set_heartbeat()
234 if (unlikely(!wdt)) in sh_wdt_probe()
259 if (unlikely(rc)) { in sh_wdt_probe()
272 if (unlikely(rc)) { in sh_wdt_probe()
315 if (unlikely(clock_division_ratio < 0x5 || in sh_wdt_init()
/linux-4.1.27/arch/blackfin/include/asm/
Dbug.h61 if (unlikely(__ret_warn_on)) \
63 unlikely(__ret_warn_on); \
/linux-4.1.27/drivers/s390/scsi/
Dzfcp_fc.h217 if (unlikely(tm_flags)) { in zfcp_fc_scsi_to_fcp()
256 if (unlikely(rsp_flags & FCP_RSP_LEN_VAL)) { in zfcp_fc_eval_fcp_rsp()
266 if (unlikely(rsp_flags & FCP_SNS_LEN_VAL)) { in zfcp_fc_eval_fcp_rsp()
275 if (unlikely(rsp_flags & FCP_RESID_UNDER)) { in zfcp_fc_eval_fcp_rsp()
/linux-4.1.27/arch/arm/mach-mmp/
Dgplugd.c146 if (unlikely(gpio_request(104, "ETH_RESET_N"))) { in gplugd_eth_init()
168 if (unlikely(gpio_request(35, "DISP_FREQ_SEL"))) { in select_disp_freq()
176 if (unlikely(gpio_request(85, "DISP_FREQ_SEL_2"))) { in select_disp_freq()
/linux-4.1.27/arch/sh/boards/mach-x3proto/
Dgpio.c107 if (unlikely(ilsel < 0)) in x3proto_gpio_setup()
111 if (unlikely(ret)) in x3proto_gpio_setup()
116 if (unlikely(!x3proto_irq_domain)) in x3proto_gpio_setup()
/linux-4.1.27/drivers/net/ethernet/sfc/
Drx.c81 if (unlikely(rx_buf == efx_rx_buffer(rx_queue, rx_queue->ptr_mask))) in efx_rx_buf_next()
169 if (unlikely(page == NULL)) in efx_init_rx_buffers()
175 if (unlikely(dma_mapping_error(&efx->pci_dev->dev, in efx_init_rx_buffers()
343 if (unlikely(fill_level < rx_queue->min_fill)) { in efx_fast_push_rx_descriptors()
361 if (unlikely(rc)) { in efx_fast_push_rx_descriptors()
435 if (unlikely(!skb)) { in efx_rx_packet_gro()
485 if (unlikely(skb == NULL)) { in efx_rx_mk_skb()
546 } else if (unlikely(n_frags > EFX_RX_MAX_FRAGS) || in efx_rx_packet()
547 unlikely(len <= (n_frags - 1) * efx->rx_dma_len) || in efx_rx_packet()
548 unlikely(len > n_frags * efx->rx_dma_len) || in efx_rx_packet()
[all …]
/linux-4.1.27/arch/s390/include/asm/
Dbug.h59 if (unlikely(__ret_warn_on)) \
62 unlikely(__ret_warn_on); \
/linux-4.1.27/tools/include/linux/
Dcompiler.h34 #ifndef unlikely
35 # define unlikely(x) __builtin_expect(!!(x), 0) macro
/linux-4.1.27/drivers/net/wireless/p54/
Dtxrx.c98 if (unlikely(skb_queue_len(&priv->tx_queue) == 32)) { in p54_assign_address()
122 if (unlikely(!target_skb)) { in p54_assign_address()
142 unlikely(GET_HW_QUEUE(skb) == P54_QUEUE_BEACON)) in p54_assign_address()
156 if (unlikely(!skb)) in p54_tx_pending()
160 if (unlikely(ret)) in p54_tx_pending()
171 if (unlikely(priv->mode == NL80211_IFTYPE_UNSPECIFIED)) in p54_wake_queues()
198 if (unlikely(queue->len >= queue->limit && IS_QOS_QUEUE(p54_queue))) { in p54_tx_qos_accounting_alloc()
206 if (unlikely(queue->len == queue->limit && IS_QOS_QUEUE(p54_queue))) { in p54_tx_qos_accounting_alloc()
225 if (unlikely(GET_HW_QUEUE(skb) == P54_QUEUE_BEACON)) { in p54_tx_qos_accounting_free()
239 if (unlikely(!skb)) in p54_free_skb()
[all …]
/linux-4.1.27/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c114 if (unlikely(ret)) { in ipoib_ib_post_receive()
134 if (unlikely(!skb)) in ipoib_alloc_rx_skb()
147 if (unlikely(ib_dma_mapping_error(priv->ca, mapping[0]))) in ipoib_alloc_rx_skb()
187 if (unlikely(wr_id >= ipoib_recvq_size)) { in ipoib_ib_handle_rx_wc()
195 if (unlikely(wc->status != IB_WC_SUCCESS)) { in ipoib_ib_handle_rx_wc()
220 if (unlikely(!ipoib_alloc_rx_skb(dev, wr_id))) { in ipoib_ib_handle_rx_wc()
261 if (unlikely(ipoib_ib_post_receive(dev, wr_id))) in ipoib_ib_handle_rx_wc()
277 if (unlikely(ib_dma_mapping_error(ca, mapping[0]))) in ipoib_dma_map_tx()
290 if (unlikely(ib_dma_mapping_error(ca, mapping[i + off]))) in ipoib_dma_map_tx()
384 if (unlikely(wr_id >= ipoib_sendq_size)) { in ipoib_ib_handle_tx_wc()
[all …]
/linux-4.1.27/drivers/scsi/bnx2fc/
Dbnx2fc_debug.h29 if (unlikely(bnx2fc_debug_level & LOG_ELS)) \
35 if (unlikely(bnx2fc_debug_level & LOG_MISC)) \
/linux-4.1.27/kernel/sched/
Dstats.h66 if (unlikely(sched_info_on())) in sched_info_dequeued()
101 if (unlikely(sched_info_on())) in sched_info_queued()
149 if (unlikely(sched_info_on())) in sched_info_switch()
194 if (unlikely(!tsk->sighand)) in cputimer_running()

12345678910>>...15