Home
last modified time | relevance | path

Searched refs:likely (Results 1 – 15 of 15) sorted by relevance

/DragonOS-0.1.3/kernel/src/ktest/
Dktest_utils.h12 likely(__condition); \
Dtest-idr.c293 if (likely(i < N)) in ktest_idr_case3()
325 if (likely(i < N)) in ktest_idr_case3()
/DragonOS-0.1.3/kernel/src/libs/
Dlockref.c13 … while (likely(!spin_is_locked(&old.lock))) \
17 … if (likely(arch_try_cmpxchg(&__lock_ref->lock_count, &old.lock_count, new.lock_count))) \
Dmutex.c39 if (likely(mutex_is_locked(lock))) in mutex_lock()
Dlz4.c177 #ifndef likely
178 #define likely(expr) expect((expr) != 0, 1) macro
792 if (likely(pIn < pInLimit - (STEPSIZE - 1))) in LZ4_count()
806 while (likely(pIn < pInLimit - (STEPSIZE - 1))) in LZ4_count()
2514 && likely((endOnInput ? ip < shortiend : 1) & (op <= shortoend))) in LZ4_decompress_generic()
Didr.c477 if (likely(idp->top)) in __idr_destroy_with_free()
/DragonOS-0.1.3/kernel/src/mm/
Dutils.c105 if (likely((paddr >> PAGE_2M_SHIFT) < mm_total_2M_pages)) in mm_is_2M_page()
Dmmap.c175 …if (likely((((ul)phys_addr_start + length_mapped) >> PAGE_2M_SHIFT) < mm_total_2M_pages)) // 校验是否为… in mm_map_proc_page_table()
187 if (likely(flush)) in mm_map_proc_page_table()
424 if (likely(len_2m > 0)) in mm_map_vma()
438 if (likely(len_4k > 0)) in mm_map_vma()
Dslab.c652 if (likely(slab_obj_ptr->vaddr != page_base_addr)) in kfree()
/DragonOS-0.1.3/kernel/src/arch/x86_64/include/asm/
Dcmpxchg.h77 likely(is_success); \
/DragonOS-0.1.3/kernel/src/common/
Dcompiler.h5 #define likely(x) __builtin_expect(!!(x), 1) macro
/DragonOS-0.1.3/kernel/src/driver/video/
Dvideo.c63 if (likely(video_refresh_target != NULL)) in video_refresh_daemon()
/DragonOS-0.1.3/kernel/src/libs/libUI/
Dtextui.c147 if (likely(window->vlines_used == window->vlines_num)) // 需要滚动屏幕 in __textui_new_line()
260 if (likely(window->vlines_used > __private_info.actual_line)) in textui_putchar_window()
/DragonOS-0.1.3/kernel/src/syscall/
Dsyscall.c552 if (likely(status != NULL)) in sys_wait4()
/DragonOS-0.1.3/kernel/src/driver/usb/xhci/
Dxhci.c1643 if (likely(rst_ret == 0)) // 如果端口reset成功,就获取它的描述符 in xhci_hc_start_ports()
1667 if (likely(xhci_reset_port(id, i) == in xhci_hc_start_ports()