/DragonOS-0.1.7/kernel/src/driver/mouse/ |
D | ps2_mouse.c | 103 for (int j = 0; j < 1000; j++) in ps2_mouse_get_mouse_ID() local 132 for (int j = 0; j < 1000; j++) in ps2_mouse_set_sample_rate() local 139 for (int j = 0; j < 1000; j++) in ps2_mouse_set_sample_rate() local 232 for (int j = 0; j < 1000; j++) in ps2_mouse_init() local 244 for (int j = 0; j < 1000; j++) in ps2_mouse_init() local 253 for (int j = 0; j < 1000; j++) in ps2_mouse_init() local
|
/DragonOS-0.1.7/kernel/src/ktest/ |
D | test-idr.c | 43 for (int j = 0; j < 64; j++) in ktest_idr_case0() local 44 if ((i >> j) & 1) in ktest_idr_case0() 46 chk_id = j; in ktest_idr_case0() 308 for (int i = N / 3, j = 2 * (N / 3), k = 0; i <= j; k++, i++) in ktest_idr_case3() local 364 for (int j = 0; j < M; j++) in ktest_idr_case4() local 367 assert(tmp == j); in ktest_idr_case4() 370 for (int j = b; j >= T; j--) in ktest_idr_case4() local 372 int *ptr = idr_find(&k_idr, j); in ktest_idr_case4() 375 idr_remove(&k_idr, j); in ktest_idr_case4() 378 for (int j = b + 1; j < M; j++) in ktest_idr_case4() local [all …]
|
/DragonOS-0.1.7/kernel/src/mm/ |
D | mm.c | 170 for (int j = 0; j < z->count_pages; ++j, ++p) in mm_init() local 173 p->addr_phys = addr_start + PAGE_2M_SIZE * j; in mm_init() 213 for (ul j = 1; j <= mms_max_page; ++j) in mm_init() local 216 tmp_page = memory_management_struct.pages_struct + j; in mm_init() 337 for (ul j = page_start; j < page_end; j += ((j % 64) ? tmp : 64)) in alloc_pages() local 341 ul *p = memory_management_struct.bmp + (j >> 6); in alloc_pages() 343 ul shift = j % 64; in alloc_pages() 351 ul start_page_num = j + k - shift; // 计算得到要开始获取的内存页的页号 in alloc_pages() 485 for (int j = 0; j < z->count_pages; ++j) in page_table_init() local 601 for (ul j = page_start; j < page_end; j += ((j % 64) ? tmp : 64)) in mm_find_page() local [all …]
|
D | slab.c | 376 for (int j = 0; j < kmalloc_cache_group[i].cache_pool_entry->bmp_count; ++j) in slab_init() local 377 *(kmalloc_cache_group[i].cache_pool_entry->bmp + (j >> 6)) ^= 1UL << (j % 64); in slab_init()
|
/DragonOS-0.1.7/kernel/src/driver/disk/ahci/ |
D | mod.rs | 94 for j in 0..32 { in ahci_rust_init() 95 if (pi >> j) & 1 > 0 { in ahci_rust_init() 97 let tp = hba_mem_list[i].ports[j].check_type(); in ahci_rust_init() 109 let fb = virt_2_phys(ahci_port_base_vaddr + (32 << 10) + (j << 8)); in ahci_rust_init() 110 let clb = virt_2_phys(ahci_port_base_vaddr + (j << 10)); in ahci_rust_init() 115 ahci_port_base_vaddr + (40 << 10) + (j << 13) + (x << 8), in ahci_rust_init() 121 hba_mem_list[i].ports[j].init(clb as u64, fb as u64, &ctbas); in ahci_rust_init() 132 j as u8, in ahci_rust_init() 148 j, in ahci_rust_init()
|
/DragonOS-0.1.7/kernel/src/libs/ |
D | cpu.c | 53 for (int j = 0; j <= 3; ++j) in cpu_init() local 55 *(uint *)&Cpu_BrandName[4 * count] = tmp_info[j]; in cpu_init()
|
D | rbtree.rs | 1490 for j in 1..i + 1 { in test_lots_of_insertions() 1491 let r = m.get(&j); in test_lots_of_insertions() 1492 assert_eq!(r, Some(&j)); in test_lots_of_insertions() 1495 for j in i + 1..101 { in test_lots_of_insertions() 1496 let r = m.get(&j); in test_lots_of_insertions() 1509 for j in 1..i + 1 { in test_lots_of_insertions() 1510 assert!(!m.contains_key(&j)); in test_lots_of_insertions() 1513 for j in i + 1..101 { in test_lots_of_insertions() 1514 assert!(m.contains_key(&j)); in test_lots_of_insertions() 1530 for j in i..101 { in test_lots_of_insertions() [all …]
|
/DragonOS-0.1.7/kernel/src/libs/libUI/ |
D | textui-render.c | 141 for (int j = 0; j < TEXTUI_CHAR_WIDTH; ++j) in __textui_render_chromatic() local
|
/DragonOS-0.1.7/kernel/src/driver/keyboard/ |
D | ps2_keyboard.c | 195 for (int j = 0; j < 1000; ++j) in ps2_keyboard_init() local
|
/DragonOS-0.1.7/user/port/binutils/2.38/ |
D | README.md | 5 这里是移植到用户态的binutils-2.38,用于DragonOS的用户态编译器。在编译这里之前,请先在项目根目录下运行`make -j $(nproc)`, 以确保编译binutils所依赖的依…
|
/DragonOS-0.1.7/docs/introduction/ |
D | build_system.md | 106 make -j 8 230 - 本地编译,不运行: `make all -j 您的CPU核心数`
|
/DragonOS-0.1.7/kernel/src/driver/usb/xhci/ |
D | xhci.c | 483 for (int j = 0; j < xhci_hc[id].port_num; ++j) in xhci_hc_pair_ports() local 485 if (unlikely(i == j)) in xhci_hc_pair_ports() 488 if ((xhci_hc[id].ports[i].offset == xhci_hc[id].ports[j].offset) && in xhci_hc_pair_ports() 490 (xhci_hc[id].ports[j].flags & XHCI_PROTOCOL_INFO))) in xhci_hc_pair_ports() 492 xhci_hc[id].ports[i].paired_port_num = j; in xhci_hc_pair_ports() 495 xhci_hc[id].ports[j].paired_port_num = i; in xhci_hc_pair_ports() 496 xhci_hc[id].ports[j].flags |= XHCI_PROTOCOL_HAS_PAIR; in xhci_hc_pair_ports()
|