Home
last modified time | relevance | path

Searched refs:unlikely (Results 1 – 25 of 2159) sorted by relevance

12345678910>>...87

/linux-2.6.39/include/asm-generic/
Dbug.h53 #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while(0)
86 if (unlikely(__ret_warn_on)) \
88 unlikely(__ret_warn_on); \
95 if (unlikely(__ret_warn_on)) \
97 unlikely(__ret_warn_on); \
103 if (unlikely(__ret_warn_on)) \
105 unlikely(__ret_warn_on); \
120 unlikely(__ret_warn_on); \
127 unlikely(__ret_warn_on); \
139 if (unlikely(__ret_warn_once)) \
[all …]
/linux-2.6.39/drivers/net/stmmac/
Denh_desc.c33 if (unlikely(p->des01.etx.error_summary)) { in enh_desc_get_tx_status()
35 if (unlikely(p->des01.etx.jabber_timeout)) { in enh_desc_get_tx_status()
40 if (unlikely(p->des01.etx.frame_flushed)) { in enh_desc_get_tx_status()
46 if (unlikely(p->des01.etx.loss_carrier)) { in enh_desc_get_tx_status()
51 if (unlikely(p->des01.etx.no_carrier)) { in enh_desc_get_tx_status()
56 if (unlikely(p->des01.etx.late_collision)) { in enh_desc_get_tx_status()
60 if (unlikely(p->des01.etx.excessive_collisions)) { in enh_desc_get_tx_status()
64 if (unlikely(p->des01.etx.excessive_deferral)) { in enh_desc_get_tx_status()
69 if (unlikely(p->des01.etx.underflow_error)) { in enh_desc_get_tx_status()
75 if (unlikely(p->des01.etx.ip_header_error)) { in enh_desc_get_tx_status()
[all …]
Dnorm_desc.c33 if (unlikely(p->des01.tx.error_summary)) { in ndesc_get_tx_status()
34 if (unlikely(p->des01.tx.underflow_error)) { in ndesc_get_tx_status()
38 if (unlikely(p->des01.tx.no_carrier)) { in ndesc_get_tx_status()
42 if (unlikely(p->des01.tx.loss_carrier)) { in ndesc_get_tx_status()
46 if (unlikely((p->des01.tx.excessive_deferral) || in ndesc_get_tx_status()
52 if (unlikely(p->des01.tx.heartbeat_fail)) { in ndesc_get_tx_status()
57 if (unlikely(p->des01.tx.deferred)) in ndesc_get_tx_status()
78 if (unlikely(p->des01.rx.last_descriptor == 0)) { in ndesc_get_rx_status()
85 if (unlikely(p->des01.rx.error_summary)) { in ndesc_get_rx_status()
86 if (unlikely(p->des01.rx.descriptor_error)) in ndesc_get_rx_status()
[all …]
Ddwmac_lib.c162 if (unlikely(intr_status & DMA_STATUS_AIS)) { in dwmac_dma_interrupt()
164 if (unlikely(intr_status & DMA_STATUS_UNF)) { in dwmac_dma_interrupt()
169 if (unlikely(intr_status & DMA_STATUS_TJT)) { in dwmac_dma_interrupt()
173 if (unlikely(intr_status & DMA_STATUS_OVF)) { in dwmac_dma_interrupt()
177 if (unlikely(intr_status & DMA_STATUS_RU)) { in dwmac_dma_interrupt()
181 if (unlikely(intr_status & DMA_STATUS_RPS)) { in dwmac_dma_interrupt()
185 if (unlikely(intr_status & DMA_STATUS_RWT)) { in dwmac_dma_interrupt()
189 if (unlikely(intr_status & DMA_STATUS_ETI)) { in dwmac_dma_interrupt()
193 if (unlikely(intr_status & DMA_STATUS_TPS)) { in dwmac_dma_interrupt()
198 if (unlikely(intr_status & DMA_STATUS_FBI)) { in dwmac_dma_interrupt()
[all …]
/linux-2.6.39/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()
138 if (unlikely(!down_read_trylock(&mm->mmap_sem))) { in do_page_fault()
146 if (unlikely(!vma)) in do_page_fault()
152 if (unlikely(!(vma->vm_flags & VM_GROWSDOWN))) in do_page_fault()
155 if (unlikely(!is_write)) in do_page_fault()
167 if (unlikely(address + 0x100000 < vma->vm_end)) { in do_page_fault()
197 if (unlikely(is_write)) { in do_page_fault()
198 if (unlikely(!(vma->vm_flags & VM_WRITE))) in do_page_fault()
203 if (unlikely(error_code & 0x08000000)) in do_page_fault()
[all …]
/linux-2.6.39/drivers/staging/gma500/
Dpsb_ttm_placement_user.c56 if (unlikely(pl_bo_size == 0)) { in ttm_pl_size()
70 if (unlikely(base == NULL)) { in ttm_bo_user_lookup()
76 if (unlikely(base->object_type != ttm_buffer_type)) { in ttm_bo_user_lookup()
93 if (unlikely(user_bo == NULL)) in ttm_buffer_object_lookup()
119 if (unlikely(base == NULL)) in ttm_bo_user_release()
186 if (unlikely(ret != 0)) in ttm_bo_create_private()
191 if (unlikely(bo == NULL)) { in ttm_bo_create_private()
281 if (unlikely(ret != 0)) in ttm_pl_create_ioctl()
286 if (unlikely(user_bo == NULL)) { in ttm_pl_create_ioctl()
293 if (unlikely(ret != 0)) { in ttm_pl_create_ioctl()
[all …]
Dpsb_ttm_fence_user.c53 if (unlikely(base == NULL)) { in ttm_fence_user_object_lookup()
59 if (unlikely(base->object_type != ttm_fence_type)) { in ttm_fence_user_object_lookup()
95 if (unlikely(base == NULL)) in ttm_fence_user_release()
120 if (unlikely(ret != 0)) in ttm_fence_user_create()
124 if (unlikely(ufence == NULL)) { in ttm_fence_user_create()
134 if (unlikely(ret != 0)) in ttm_fence_user_create()
149 if (unlikely(ret != 0)) in ttm_fence_user_create()
178 if (unlikely(ufence == NULL)) in ttm_fence_signaled_ioctl()
185 if (unlikely(ret != 0)) in ttm_fence_signaled_ioctl()
209 if (unlikely(ufence == NULL)) in ttm_fence_finish_ioctl()
/linux-2.6.39/fs/nfs/
Dcallback_xdr.c74 if (unlikely(p == NULL)) in read_buf()
84 if (unlikely(p == NULL)) in decode_string()
90 if (unlikely(p == NULL)) in decode_string()
104 if (unlikely(p == NULL)) in decode_fh()
110 if (unlikely(p == NULL)) in decode_fh()
123 if (unlikely(p == NULL)) in decode_bitmap()
127 if (unlikely(p == NULL)) in decode_bitmap()
141 if (unlikely(p == NULL)) in decode_stateid()
153 if (unlikely(status != 0)) in decode_compound_hdr_arg()
162 if (unlikely(p == NULL)) in decode_compound_hdr_arg()
[all …]
Dnfs3xdr.c151 if (unlikely(p == NULL)) in decode_uint32()
165 if (unlikely(p == NULL)) in decode_uint64()
211 if (unlikely(p == NULL)) in decode_inline_filename3()
217 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()
258 if (unlikely(count > recvd)) in decode_nfspath3()
308 if (unlikely(p == NULL)) in decode_cookieverf3()
335 if (unlikely(p == NULL)) in decode_writeverf3()
369 if (unlikely(p == NULL)) in decode_nfsstat3()
[all …]
/linux-2.6.39/drivers/gpu/drm/ttm/
Dttm_bo_vm.c62 if (unlikely(best_bo == NULL)) in ttm_bo_vm_lookup_rb()
65 if (unlikely((best_bo->vm_node->start + best_bo->num_pages) < in ttm_bo_vm_lookup_rb()
96 if (unlikely(ret != 0)) { in ttm_bo_vm_fault()
127 if (unlikely(ret != 0)) { in ttm_bo_vm_fault()
136 if (unlikely(ret != 0)) { in ttm_bo_vm_fault()
141 if (unlikely(ret != 0)) { in ttm_bo_vm_fault()
151 if (unlikely(page_offset >= bo->num_pages)) { in ttm_bo_vm_fault()
189 if (unlikely(!page && i == 0)) { in ttm_bo_vm_fault()
192 } else if (unlikely(!page)) { in ttm_bo_vm_fault()
204 if (unlikely((ret == -EBUSY) || (ret != 0 && i > 0))) in ttm_bo_vm_fault()
[all …]
/linux-2.6.39/net/caif/
Dcfpkt_skbuff.c89 if (unlikely(skb == NULL)) in cfpkt_create_pfx()
132 if (unlikely(is_erronous(pkt))) in cfpkt_extr_head()
135 if (unlikely(len > skb->len)) { in cfpkt_extr_head()
140 if (unlikely(len > skb_headlen(skb))) { in cfpkt_extr_head()
141 if (unlikely(skb_linearize(skb) != 0)) { in cfpkt_extr_head()
158 if (unlikely(is_erronous(pkt))) in cfpkt_extr_trail()
161 if (unlikely(skb_linearize(skb) != 0)) { in cfpkt_extr_trail()
165 if (unlikely(skb->data + len > skb_tail_pointer(skb))) { in cfpkt_extr_trail()
190 if (unlikely(is_erronous(pkt))) in cfpkt_add_body()
196 if (unlikely(skb_tailroom(skb) < len)) { in cfpkt_add_body()
[all …]
/linux-2.6.39/drivers/gpu/drm/vmwgfx/
Dvmwgfx_execbuf.c62 if (unlikely(ret != 0)) { in vmw_cmd_cid_check()
81 if (unlikely((!sw_context->sid_valid || in vmw_cmd_sid_check()
87 if (unlikely(ret != 0)) { in vmw_cmd_sid_check()
117 if (unlikely(ret != 0)) in vmw_cmd_set_render_target_check()
137 if (unlikely(ret != 0)) in vmw_cmd_surface_copy_check()
154 if (unlikely(ret != 0)) in vmw_cmd_stretch_blt_check()
199 if (unlikely(ret != 0)) { in vmw_translate_guest_ptr()
205 if (unlikely(sw_context->cur_reloc >= VMWGFX_MAX_RELOCATIONS)) { in vmw_translate_guest_ptr()
216 if (unlikely(cur_validate_node >= VMWGFX_MAX_GMRS)) { in vmw_translate_guest_ptr()
224 if (unlikely(cur_validate_node == sw_context->cur_val_buf)) { in vmw_translate_guest_ptr()
[all …]
Dvmwgfx_resource.c135 if (unlikely(idr_pre_get(idr, GFP_KERNEL) == 0)) in vmw_resource_init()
184 if (unlikely(res == NULL)) in vmw_resource_lookup()
203 if (unlikely(cmd == NULL)) { in vmw_hw_context_destroy()
231 if (unlikely(ret != 0)) { in vmw_context_init()
240 if (unlikely(cmd == NULL)) { in vmw_context_init()
261 if (unlikely(res == NULL)) in vmw_context_alloc()
307 if (unlikely(res == NULL)) in vmw_context_destroy_ioctl()
338 if (unlikely(ctx == NULL)) in vmw_context_define_ioctl()
346 if (unlikely(ret != 0)) in vmw_context_define_ioctl()
353 if (unlikely(ret != 0)) { in vmw_context_define_ioctl()
[all …]
/linux-2.6.39/lib/
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()
/linux-2.6.39/net/llc/
Dllc_input.c106 if (unlikely(!pskb_may_pull(skb, sizeof(*pdu)))) in llc_fixup_skb()
114 if (unlikely(!pskb_may_pull(skb, llc_len))) in llc_fixup_skb()
126 if (unlikely(pskb_trim_rcsum(skb, data_size))) in llc_fixup_skb()
160 if (unlikely(skb->pkt_type == PACKET_OTHERHOST)) { in llc_rcv()
165 if (unlikely(!skb)) in llc_rcv()
167 if (unlikely(!llc_fixup_skb(skb))) in llc_rcv()
170 if (unlikely(!pdu->dsap)) /* NULL DSAP, refer to station */ in llc_rcv()
173 if (unlikely(!sap)) {/* unknown SAP */ in llc_rcv()
184 if (unlikely(!dest || !llc_type_handlers[dest - 1])) { in llc_rcv()
/linux-2.6.39/drivers/usb/gadget/
Df_fs.c382 if (unlikely(ret < 0)) in __ffs_ep0_queue_wait()
386 if (unlikely(ret)) { in __ffs_ep0_queue_wait()
423 if (unlikely(ret < 0)) in ffs_ep0_write()
431 if (unlikely(len < 16)) { in ffs_ep0_write()
446 if (unlikely(ret < 0)) in ffs_ep0_write()
454 if (unlikely(ret < 0)) in ffs_ep0_write()
458 if (unlikely(ret)) { in ffs_ep0_write()
467 if (unlikely(ret < 0)) { in ffs_ep0_write()
580 return unlikely(__copy_to_user(buf, events, sizeof events)) in __ffs_ep0_read_events()
600 if (unlikely(ret < 0)) in ffs_ep0_read()
[all …]
/linux-2.6.39/drivers/rtc/
Drtc-mc13xxx.c75 if (unlikely(ret)) in mc13xxx_rtc_read_time()
79 if (unlikely(ret)) in mc13xxx_rtc_read_time()
123 if (unlikely(ret)) in mc13xxx_rtc_set_mmss()
129 if (unlikely(ret)) in mc13xxx_rtc_set_mmss()
138 if (unlikely(ret)) in mc13xxx_rtc_set_mmss()
142 if (unlikely(ret)) in mc13xxx_rtc_set_mmss()
146 if (unlikely(ret)) in mc13xxx_rtc_set_mmss()
153 if (unlikely(ret)) in mc13xxx_rtc_set_mmss()
158 if (unlikely(ret)) in mc13xxx_rtc_set_mmss()
181 if (unlikely(ret)) in mc13xxx_rtc_read_alarm()
[all …]
/linux-2.6.39/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.c84 if (unlikely(init_size > i_size)) { in ntfs_end_buffer_async_read()
89 if (unlikely(file_ofs + bh->b_size > init_size)) { in ntfs_end_buffer_async_read()
214 if (unlikely(!page_has_buffers(page))) { in ntfs_read_block()
239 if (unlikely(init_size > i_size)) { in ntfs_read_block()
251 if (unlikely(buffer_uptodate(bh))) in ntfs_read_block()
253 if (unlikely(buffer_mapped(bh))) { in ntfs_read_block()
416 if (unlikely(page->index >= (i_size + PAGE_CACHE_SIZE - 1) >> in ntfs_readpage()
466 if (unlikely(page->index > 0)) { in ntfs_readpage()
484 if (unlikely(NInoNonResident(ni))) { in ntfs_readpage()
489 if (unlikely(!ctx)) { in ntfs_readpage()
[all …]
/linux-2.6.39/fs/exofs/
Dios.c46 if (unlikely(!or)) { in exofs_read_kern()
51 if (unlikely(ret)) { in exofs_read_kern()
57 if (unlikely(ret)) { in exofs_read_kern()
63 if (unlikely(ret)) in exofs_read_kern()
81 if (unlikely(!ios)) { in exofs_get_io_state()
170 if (unlikely(!or)) in exofs_io_execute()
174 if (unlikely(ret)) { in exofs_io_execute()
185 if (unlikely(!or)) in exofs_io_execute()
228 if (unlikely(!or)) in exofs_check_io()
363 if (unlikely(!per_dev->bio)) { in _add_stripe_unit()
[all …]
/linux-2.6.39/arch/parisc/lib/
Diomap.c272 if (unlikely(INDIRECT_ADDR(addr))) in ioread8()
279 if (unlikely(INDIRECT_ADDR(addr))) in ioread16()
286 if (unlikely(INDIRECT_ADDR(addr))) in ioread16be()
293 if (unlikely(INDIRECT_ADDR(addr))) in ioread32()
300 if (unlikely(INDIRECT_ADDR(addr))) in ioread32be()
307 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite8()
316 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite16()
325 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite16be()
334 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite32()
343 if (unlikely(INDIRECT_ADDR(addr))) { in iowrite32be()
[all …]
/linux-2.6.39/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 …]
/linux-2.6.39/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()
465 if (unlikely(err < 0)) in snd_aicapcmchip()
517 if (unlikely(!dreamcastcard->channel)) in aica_pcmvolume_get()
529 if (unlikely(!dreamcastcard->channel)) in aica_pcmvolume_put()
534 if (unlikely(dreamcastcard->channel->vol == vol)) in aica_pcmvolume_put()
567 if (unlikely(err)) in load_aica_firmware()
[all …]
/linux-2.6.39/tools/perf/util/include/asm/
Dbug.h8 if (unlikely(__ret_warn_on)) \
10 unlikely(__ret_warn_on); \
17 if (unlikely(__ret_warn_once)) \
20 unlikely(__ret_warn_once); \
/linux-2.6.39/drivers/staging/brcm80211/brcmfmac/
Dwl_cfg80211.c336 if (unlikely(!(wl_cfg80211_dev && \
347 if (unlikely(!test_bit(WL_STATUS_READY, &wl->status))) { \
633 if (unlikely(err)) { in wl_cfg80211_change_iface()
638 if (unlikely(err)) { in wl_cfg80211_change_iface()
702 if (unlikely(!params)) in wl_run_iscan()
715 if (unlikely(err)) { in wl_run_iscan()
742 if (unlikely(err)) { in wl_do_iscan()
768 if (unlikely(test_bit(WL_STATUS_SCANNING, &wl->status))) { in __wl_cfg80211_scan()
772 if (unlikely(test_bit(WL_STATUS_SCAN_ABORTING, &wl->status))) { in __wl_cfg80211_scan()
824 if (unlikely(err)) { in __wl_cfg80211_scan()
[all …]

12345678910>>...87