/DragonOS-0.1.2/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.2/kernel/src/filesystem/fat32/ |
D | fat_ent.c | 37 for (int j = 0; j < ent_per_sec; ++j) in fat32_alloc_clusters() local 42 if ((buf[j] & 0x0fffffff) == 0) in fat32_alloc_clusters() 45 clusters[clus_idx] = i * ent_per_sec + j; in fat32_alloc_clusters() 355 for (int j = 8; j < 11; ++j) in fat32_fill_shortname() local 357 target->DIR_Name[j] = 'a'; in fat32_fill_shortname() 395 for (int j = 0; j < 5; ++j, ++current_name_index) in fat32_fill_longname() local 398 Ldentry->LDIR_Name1[j] = dEntry->name[current_name_index]; in fat32_fill_longname() 400 Ldentry->LDIR_Name1[j] = 0xffff; in fat32_fill_longname() 402 for (int j = 0; j < 6; ++j, ++current_name_index) in fat32_fill_longname() local 405 Ldentry->LDIR_Name2[j] = dEntry->name[current_name_index]; in fat32_fill_longname() [all …]
|
D | fat32.c | 1244 for (int j = 0; j < count_long_dentry; ++j, --long_dentry) in fat32_readdir() local 1280 for (int j = 0; j < 8; ++j, ++total_len) in fat32_readdir() local 1282 if (dentry->DIR_Name[j] == ' ') in fat32_readdir() 1286 dir_name[name_len++] = dentry->DIR_Name[j] + 32; in fat32_readdir() 1288 dir_name[name_len++] = dentry->DIR_Name[j]; in fat32_readdir() 1303 for (int j = 0; j < 3; ++j, ++total_len) in fat32_readdir() local 1305 if (dentry->DIR_Name[j] == ' ') in fat32_readdir() 1309 dir_name[name_len++] = dentry->DIR_Name[j] + 32; in fat32_readdir() 1311 dir_name[name_len++] = dentry->DIR_Name[j]; in fat32_readdir()
|
/DragonOS-0.1.2/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.2/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.2/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()
|
/DragonOS-0.1.2/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.2/kernel/src/driver/keyboard/ |
D | ps2_keyboard.c | 195 for (int j = 0; j < 1000; ++j) in ps2_keyboard_init() local
|
/DragonOS-0.1.2/docs/introduction/ |
D | build_system.md | 68 make -j 8 232 - 本地编译,不运行: `make all -j 您的CPU核心数`
|
/DragonOS-0.1.2/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()
|