/DragonOS-0.1.5/kernel/src/debug/ |
D | bug.h | 14 if (unlikely(__ret_bug_on)) \ 16 unlikely(__ret_bug_on); \ 25 if (unlikely(__ret_warn_on)) \ 27 unlikely(__ret_warn_on); \ 38 if (unlikely(__ret_warn_once && !__warned)) \ 43 unlikely(__ret_warn_once); \ 48 if (unlikely(__ret_warn_on)) \ 50 unlikely(__ret_warn_on); \
|
/DragonOS-0.1.5/kernel/src/mm/ |
D | mmap.c | 137 if (unlikely(use4k)) in mm_map_proc_page_table() 147 else if (unlikely(*pde_ptr & (1 << 7))) in mm_map_proc_page_table() 162 if (unlikely(*pte_ptr != 0)) in mm_map_proc_page_table() 172 if (unlikely((*pde_ptr != 0) && user == true)) in mm_map_proc_page_table() 278 if (unlikely(mm_check_page_table(pt_ptr)) == 0) in mm_unmap_proc_table() 293 if (unlikely(mm_check_page_table(pd_ptr)) == 0) in mm_unmap_proc_table() 300 if (unlikely(mm_check_page_table(pdpt_ptr)) == 0) in mm_unmap_proc_table() 324 if (unlikely(vaddr & (PAGE_4K_SIZE - 1))) in mm_create_vma() 328 if (unlikely(vma == NULL)) in mm_create_vma() 372 if (unlikely(vma->anon_vma == NULL || vma->anon_vma->page == NULL)) in mm_map_vma() [all …]
|
D | vma.c | 185 if (unlikely(anon_vma == NULL)) in __anon_vma_create_alloc() 262 if (unlikely(atomic_read(&vma->anon_vma->ref_count) == 0)) // 应当释放该anon_vma in __anon_vma_del()
|
D | slab.c | 563 if (unlikely(kmalloc_cache_group[index].count_total_free == 0)) in kmalloc() 569 if (unlikely(slab_obj_ptr == NULL)) in kmalloc() 636 if (unlikely(address == NULL)) in kfree()
|
/DragonOS-0.1.5/kernel/src/libs/ |
D | kfifo.c | 54 if (unlikely(fifo->size + size > fifo->total_size)) in kfifo_in() 56 if (unlikely(from == NULL)) in kfifo_in() 88 if (unlikely(to == NULL)) // 判断目标地址是否为空 in kfifo_out() 90 if (unlikely(size > fifo->size)) // 判断队列中是否有这么多数据 in kfifo_out() 122 if (unlikely(to == NULL)) // 判断目标地址是否为空 in kfifo_out_peek() 124 if (unlikely(size > fifo->size)) // 判断队列中是否有这么多数据 in kfifo_out_peek()
|
D | idr.c | 102 if (unlikely(new_one == NULL)) in idr_preload() 177 if (unlikely(pos < 0)) in __idr_get_empty_slot() 216 if (unlikely(NULL == stk[0] || NULL == idp->top)) in __idr_mark_full() 251 if (unlikely(idp->top == NULL || __id < 0)) in __idr_get_path() 261 if (unlikely((__id >> ((layer + 1ull) * IDR_BITS)) > 0)) in __idr_get_path() 273 if (unlikely(((cur_layer->bitmap >> layer_id) & 1) == 0)) in __idr_get_path() 297 if (unlikely(NULL == stk[0] || NULL == idp->top)) in __idr_erase_full() 403 if (unlikely(idp->top == NULL || __id < 0)) in idr_remove() 425 if (unlikely(NULL == idp->top)) in __idr_remove_all_with_free() 492 if (unlikely(NULL == idp->top)) in idr_remove_all() [all …]
|
D | lz4.c | 180 #ifndef unlikely 181 #define unlikely(expr) expect((expr) != 0, 0) macro 1249 if (unlikely(forwardIp > mflimitPlusOne)) in LZ4_compress_generic_validated() 1276 if (unlikely(forwardIp > mflimitPlusOne)) in LZ4_compress_generic_validated() 1343 while (((ip > anchor) & (match > lowLimit)) && (unlikely(ip[-1] == match[-1]))) in LZ4_compress_generic_validated() 1354 (unlikely(op + litLength + (2 + 1 + LASTLITERALS) + (litLength / 255) > olimit))) in LZ4_compress_generic_validated() 1359 …(unlikely(op + (litLength + 240) / 255 /* litlen */ + litLength /* literals */ + 2 /* offset */ + … in LZ4_compress_generic_validated() 1443 (unlikely(op + (1 + LASTLITERALS) + (matchCode + 240) / 255 > olimit))) in LZ4_compress_generic_validated() 1452 if (unlikely(ip <= filledIp)) in LZ4_compress_generic_validated() 2190 if (initial_check && unlikely((*ip) >= lencheck)) in read_variable_length() [all …]
|
D | mutex.c | 73 if (unlikely(!mutex_is_locked(lock))) in mutex_unlock()
|
D | bitree.c | 85 if (unlikely(last_node == NULL)) in bt_insert()
|
/DragonOS-0.1.5/kernel/src/ktest/ |
D | ktest_utils.h | 8 if (unlikely(!(__condition))) \
|
/DragonOS-0.1.5/kernel/src/driver/usb/xhci/ |
D | xhci.c | 92 if (unlikely(xhci_ctrl_count >= XHCI_MAX_HOST_CONTROLLERS)) in xhci_hc_find_available_id() 208 if (unlikely(ptr->TRB_type == TRB_TYPE_LINK)) in __xhci_write_trb() 239 if (unlikely((xhci_read_op_reg32(id, XHCI_OPS_USBSTS) & (1 << 0)) == 1)) in xhci_hc_stop() 273 if (unlikely(retval)) in xhci_hc_reset() 485 if (unlikely(i == j)) in xhci_hc_pair_ports() 567 if (unlikely(table_vaddr == NULL)) in xhci_create_event_ring() 574 if (unlikely(seg_vaddr == NULL)) in xhci_create_event_ring() 1035 if (unlikely(retval != 0)) in xhci_set_address() 1273 if (unlikely(retval != 0)) in xhci_control_in() 1283 if (unlikely(retval != 0)) in xhci_control_in() [all …]
|
/DragonOS-0.1.5/kernel/src/libs/libUI/ |
D | screen_manager.c | 29 if (unlikely(__scm_double_buffer_enabled == false)) in __create_buffer() 66 if (unlikely(buf == &video_frame_buffer_info || buf == NULL)) in __destroy_buffer() 68 if (unlikely(buf->vaddr == NULL)) in __destroy_buffer() 70 if (unlikely(verify_area(buf->vaddr, buf->size) == true)) in __destroy_buffer() 129 if (unlikely(__scm_alloc_enabled == false)) in scm_register_alloc()
|
D | textui.c | 141 if (unlikely(window->vline_operating == window->vlines_num)) in __textui_new_line() 152 if (unlikely(window->top_vline >= window->vlines_num)) in __textui_new_line() 210 if (unlikely(character == '\0')) in textui_putchar_window() 218 if (unlikely(character == '\n')) in textui_putchar_window() 256 if (unlikely(window->vline_operating < 0)) in textui_putchar_window() 263 if (unlikely(window->top_vline < 0)) in textui_putchar_window()
|
D | textui-render.c | 78 if (unlikely(vline_id >= window->vlines_num && (start + count) > window->chars_per_line)) in textui_refresh_characters() 86 if (unlikely(actual_line_id < 0 || actual_line_id >= __textui_get_actual_lines())) in textui_refresh_characters()
|
/DragonOS-0.1.5/kernel/src/common/ |
D | err.h | 6 #define IS_ERR_VALUE(x) unlikely((x) >= (uint64_t)-MAX_ERRNO)
|
D | compiler.h | 6 #define unlikely(x) __builtin_expect(!!(x), 0) macro
|
/DragonOS-0.1.5/kernel/src/arch/x86_64/include/asm/ |
D | cmpxchg.h | 75 if (unlikely(is_success == false)) \
|
/DragonOS-0.1.5/kernel/src/driver/hid/ |
D | hidparse.c | 246 if (unlikely(offset_ptr == NULL)) in hid_parse() 395 if (unlikely(upage == NULL || upage->types == NULL)) in hid_get_usage_type() 421 if (unlikely(upage == NULL)) in hid_get_usage_page_str() 439 if (unlikely(upage == NULL)) in hid_get_usage_type_str() 463 if (unlikely(usage_type == NULL)) in hid_get_usage_type_str()
|
/DragonOS-0.1.5/kernel/src/process/ |
D | fork.c | 241 if (unlikely(ret == -EEXIST)) in process_copy_mm() 259 if (unlikely(ret == -EEXIST)) in process_copy_mm() 300 if (unlikely((uint64_t)newVal >= new_top || (uint64_t)newVal < (new_top - STACK_SIZE))) in process_rewrite_rbp()
|
D | process.c | 847 if (unlikely(pcb->mm->vmas != NULL)) in process_exit_mm()
|
/DragonOS-0.1.5/kernel/src/driver/video/ |
D | video.c | 86 if (unlikely(video_daemon_pcb == NULL)) in video_refresh_framebuffer()
|
/DragonOS-0.1.5/kernel/src/driver/timers/HPET/ |
D | HPET.c | 87 if (unlikely(timer_jiffies >= (video_refresh_expire_jiffies + (1 << 17)))) in HPET_handler()
|