/DragonOS-0.1.7/kernel/src/ktest/ |
D | test-idr.c | 40 for (uint64_t i = 1; i < 64; i++) in ktest_idr_case0() local 73 for (int i = 0; i < 128; i++) in ktest_idr_case1() local 80 for (int i = 0; i < 128; i++) in ktest_idr_case1() local 89 for (int i = 127; i >= 64; i--) in ktest_idr_case1() local 98 for (int i = 0; i <= 63; i++) in ktest_idr_case1() local 106 for (int i = 0; i < 128; i++) in ktest_idr_case1() local 112 for (int i = 0; i < 128; i++) in ktest_idr_case1() local 118 for (int i = 0; i < 128; i++) in ktest_idr_case1() local 124 for (int i = 0; i <= 31; i++) in ktest_idr_case1() local 133 for (int i = 127; i >= 96; i--) in ktest_idr_case1() local [all …]
|
D | test-kfifo.c | 31 for (int i = 1; i <= 10; ++i) in ktest_kfifo_case0_1() local 42 for (int i = 1; i <= 10; ++i) in ktest_kfifo_case0_1() local 64 for (int i = 1; i <= 31; ++i) in ktest_kfifo_case0_1() local 94 for (int i = 1; i <= 20; ++i) in ktest_kfifo_case0_1() local 110 for (int i = 1; i <= 9; ++i) in ktest_kfifo_case0_1() local 159 for (int i = 0; i < sizeof(kt_kfifo_func_table) / sizeof(ktest_case_table); ++i) in ktest_test_kfifo() local
|
/DragonOS-0.1.7/kernel/src/mm/ |
D | slab.c | 229 for (int i = 0; i < slab_obj_ptr->bmp_count; ++i) in slab_malloc() local 351 for (int i = 0; i < 16; ++i) in slab_init() local 390 for (int i = PAGE_2M_ALIGN(virt_2_phys(tmp_addr)) >> PAGE_2M_SHIFT; i <= tmp_page_mms_end; ++i) in slab_init() local 405 for (int i = 0; i < 16; ++i) in slab_init() local 486 for (int i = 0; i < slab_obj_ptr->bmp_count; ++i) in kmalloc_create_slab_obj() local 515 for (int i = 0; i < slab_obj_ptr->bmp_count; ++i) in kmalloc_create_slab_obj() local 549 for (int i = 0; i < 16; ++i) in kmalloc() local 591 for (int i = 0; i < slab_obj_ptr->bmp_count; ++i) in kmalloc() local 645 for (int i = 0; i < 16; ++i) in kfree() local
|
D | mm-stat.c | 63 for (int i = zone_start; i <= zone_end; ++i) in __count_empty_2m_pages() local 107 for (int i = zone_start; i <= zone_end; ++i) in __count_in_using_2m_pages() local 122 for (int i = 0; i < sizeof(kmalloc_cache_group) / sizeof(struct slab); ++i) in __count_kmalloc_free() local 137 for (int i = 0; i < sizeof(kmalloc_cache_group) / sizeof(struct slab); ++i) in __count_kmalloc_using() local 152 for (int i = 0; i < sizeof(kmalloc_cache_group) / sizeof(struct slab); ++i) in __count_kmalloc_total() local
|
D | mm.c | 39 for (int i = 0; i < 512; ++i, ++ptr) in mm_check_page_table() local 62 for (int i = 0; i < count; ++i) in mm_init() local 84 for (int i = 0; i < memory_management_struct.len_e820; ++i) in mm_init() local 138 for (int i = 0; i < memory_management_struct.len_e820; ++i) in mm_init() local 326 for (int i = zone_start; i < zone_end; ++i) in alloc_pages() local 452 for (int i = 0; i < number; ++i, ++page) in free_pages() local 477 for (int i = 0; i < memory_management_struct.count_zones; ++i) in page_table_init() local 503 for (int i = 256; i < 512; ++i) in page_table_init() local 589 for (int i = zone_start; i <= zone_end; ++i) in mm_find_page() local 638 for (uint64_t i = old_brk_end_addr; i < end_addr; i += PAGE_2M_SIZE) in mm_do_brk() local [all …]
|
/DragonOS-0.1.7/kernel/src/driver/mouse/ |
D | ps2_mouse.c | 102 for (int i = 0; i < 1000; i++) in ps2_mouse_get_mouse_ID() local 131 for (int i = 0; i < 1000; i++) in ps2_mouse_set_sample_rate() local 138 for (int i = 0; i < 1000; i++) in ps2_mouse_set_sample_rate() local 231 for (int i = 0; i < 1000; i++) in ps2_mouse_init() local 243 for (int i = 0; i < 1000; i++) in ps2_mouse_init() local 252 for (int i = 0; i < 1000; i++) in ps2_mouse_init() local
|
/DragonOS-0.1.7/kernel/src/smp/ |
D | smp.c | 37 for (int i = 0; i < total_processor_num; ++i) in smp_init() local 48 for (int i = 200; i < 210; ++i) in smp_init() local 63 for (int i = 0; i < total_processor_num; ++i) // i从1开始,不初始化bsp in smp_init() local 134 for (int i = 0; i < 256; ++i) in smp_init() local
|
/DragonOS-0.1.7/user/libs/libc/src/ |
D | stdlib.c | 9 int abs(int i) in abs() 14 long labs(long i) in labs() 19 long long llabs(long long i) in llabs()
|
/DragonOS-0.1.7/kernel/src/debug/ |
D | kallsyms.c | 97 for (uint64_t i = 0; i < entry_count; ++i) in read_map() local 122 for (uint64_t i = 0; i < entry_count; ++i) in generate_result() local 154 for (uint64_t i = 0; i < entry_count; ++i) in generate_result() local 177 for (uint64_t i = 0; i < entry_count; ++i) in generate_result() local
|
/DragonOS-0.1.7/kernel/src/libs/ |
D | glib.c | 19 for(uint64_t i=0;i<times;++i) in __experimental_beep() local 26 for(uint64_t i=0;i<times;++i) in __experimental_beep() local
|
/DragonOS-0.1.7/kernel/src/sched/ |
D | completion.c | 201 for (int i = 0; i < n; i++) // 对每一个completion都等一遍 in wait_for_multicompletion() local 287 for (int i = 0; i < N; i++) in __test_completion() local 294 for (int i = 0; i < N; i++) in __test_completion() local 303 for (int i = 0; i < N; i++) in __test_completion() local
|
/DragonOS-0.1.7/kernel/src/libs/libUI/ |
D | textui-render.c | 43 for (int i = start; i < window->vlines_num && count > 0; ++i, --count) in textui_refresh_vlines() local 93 for (int i = 0; i < count; ++i) in textui_refresh_characters() local 135 for (int i = 0; i < TEXTUI_CHAR_HEIGHT; ++i) in __textui_render_chromatic() local
|
/DragonOS-0.1.7/kernel/src/common/math/ |
D | libm.h | 14 } i; member 26 } i; member 43 } i; member
|
D | round.c | 17 uint64_t i; in round() member
|
D | fabs.c | 10 uint64_t i; in fabs() member
|
/DragonOS-0.1.7/user/libs/libc/src/math/ |
D | pow.c | 7 for (int i = 0; i < y; ++i) in pow() local
|
D | fabs.c | 10 uint64_t i; in fabs() member
|
D | round.c | 15 uint64_t i; in round() member
|
/DragonOS-0.1.7/user/apps/shell/ |
D | shell.c | 72 for (int i = 0; i <= count_history - 2; i++) in main_loop() local 112 for (int i = 0; i < count; i++) in clear_command() local
|
D | cmd_help.c | 18 for (int i = 0; i < help_table_num; ++i) in shell_help() local
|
/DragonOS-0.1.7/kernel/src/driver/usb/ |
D | usb.c | 36 for (volatile int i = 0; i < usb_pdevs_count; ++i) in usb_init() local
|
/DragonOS-0.1.7/kernel/src/driver/disk/ahci/ |
D | ahci.c | 22 for (int i = 0; i < *count_ahci_devices; i++) in ahci_cpp_init() local
|
/DragonOS-0.1.7/kernel/src/driver/interrupt/8259A/ |
D | 8259A.c | 12 for(int i=32;i<=55;++i) in init_8259A() local
|
/DragonOS-0.1.7/kernel/src/debug/traceback/ |
D | traceback.c | 52 for (int i = 0; i < 10; ++i) in traceback() local
|
/DragonOS-0.1.7/kernel/src/driver/disk/ |
D | ata.c | 28 for(int i = 0;i<10;i++) in ata_disk_handler() local
|