/DragonOS-0.1.2/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.2/kernel/src/mm/ |
D | mmio.c | 23 if (unlikely(size > PAGE_1G_SIZE || size == 0)) in mmio_create() 58 if (unlikely(retval != 0)) in mmio_create() 65 if (unlikely(retval != 0)) in mmio_create() 92 if (unlikely(vma == NULL)) in mmio_release() 98 if (unlikely(vma->vm_start != (vaddr + i))) in mmio_release() 111 if (unlikely(retval != 0)) in mmio_release()
|
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 | mmio-buddy.c | 75 if (unlikely(x->vaddr != buddy_block_vaddr(y->vaddr, exp))) // 不是一对伙伴 in __buddy_merge_blocks() 97 if (unlikely(list_empty(&__mmio_pool.free_regions[__exp2index(exp)].list_head))) in __buddy_pop_region() 117 if (unlikely(list_empty(&__mmio_pool.free_regions[__exp2index(exp)].list_head))) in __find_buddy() 175 if (unlikely(exp > MMIO_BUDDY_MAX_EXP || exp < MMIO_BUDDY_MIN_EXP)) in mmio_buddy_query_addr_region() 187 if (unlikely( in mmio_buddy_query_addr_region()
|
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.2/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 | 72 if (unlikely(!mutex_is_locked(lock))) in mutex_unlock()
|
/DragonOS-0.1.2/kernel/src/ktest/ |
D | ktest_utils.h | 8 if (unlikely(!(__condition))) \
|
/DragonOS-0.1.2/kernel/src/filesystem/VFS/ |
D | dcache.c | 21 if (unlikely(dentry->lockref.count > 1)) in vfs_dentry_put() 62 if (unlikely(dentry != start_dentry)) in vfs_dentry_put() 66 if (unlikely(dentry != start_dentry)) in vfs_dentry_put()
|
D | VFS.c | 574 if (unlikely(name_size > VFS_MAX_PATHLEN)) in vfs_alloc_dentry() 577 if (unlikely(dentry == NULL)) in vfs_alloc_dentry() 729 if (unlikely(mnt_userns != NULL)) in vfs_unlink() 739 if (unlikely(retval != 0)) in vfs_unlink() 834 if (unlikely(retval != 0)) in do_unlink_at()
|
/DragonOS-0.1.2/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.2/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() 1033 if (unlikely(retval != 0)) in xhci_set_address() 1271 if (unlikely(retval != 0)) in xhci_control_in() 1281 if (unlikely(retval != 0)) in xhci_control_in() [all …]
|
/DragonOS-0.1.2/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.2/kernel/src/arch/x86_64/include/asm/ |
D | cmpxchg.h | 75 if (unlikely(is_success == false)) \
|
/DragonOS-0.1.2/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.2/kernel/src/process/ |
D | fork.c | 266 if (unlikely(ret == -EEXIST)) in process_copy_mm() 284 if (unlikely(ret == -EEXIST)) in process_copy_mm() 325 if (unlikely((uint64_t)newVal >= new_top || (uint64_t)newVal < (new_top - STACK_SIZE))) in process_rewrite_rbp()
|
/DragonOS-0.1.2/kernel/src/driver/video/ |
D | video.c | 85 if (unlikely(video_daemon_pcb == NULL)) in video_refresh_framebuffer()
|
/DragonOS-0.1.2/kernel/src/driver/timers/HPET/ |
D | HPET.c | 87 if (unlikely(timer_jiffies >= (video_refresh_expire_jiffies + (1 << 17)))) in HPET_handler()
|
/DragonOS-0.1.2/kernel/src/filesystem/rootfs/ |
D | rootfs.c | 177 if (unlikely(list_empty(list))) in rootfs_migrate()
|