Home
last modified time | relevance | path

Searched defs:i (Results 1 – 25 of 61) sorted by relevance

123

/DragonOS-0.1.2/kernel/src/ktest/
Dtest-idr.c40 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 …]
Dtest-kfifo.c31 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.2/kernel/src/mm/
Dslab.c229 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
Dmm-stat.c63 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
Dmm.c39 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 …]
Dmmio.c54 for (uint32_t i = 0; i < len_2m; i += PAGE_2M_SIZE) in mmio_create() local
62 for (uint32_t i = len_2m; i < size; i += PAGE_4K_SIZE) in mmio_create() local
89 for (uint64_t i = 0; i < length;) in mmio_release() local
/DragonOS-0.1.2/kernel/src/smp/
Dsmp.c33 for (int i = 0; i < total_processor_num; ++i) in smp_init() local
44 for (int i = 200; i < 210; ++i) in smp_init() local
58 for (int i = 0; i < total_processor_num; ++i) // i从1开始,不初始化bsp in smp_init() local
128 for (int i = 0; i < 256; ++i) in smp_init() local
/DragonOS-0.1.2/user/libs/libc/src/
Dstdlib.c6 int abs(int i) in abs()
11 long labs(long i) in labs()
16 long long llabs(long long i) in llabs()
/DragonOS-0.1.2/kernel/src/driver/mouse/
Dps2_mouse.c102 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.2/kernel/src/debug/
Dkallsyms.c97 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.2/kernel/src/libs/
Dglib.c19 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.2/kernel/src/driver/disk/ahci/
Dahci.c110 for (int i = 0; i < 4; ++i) in ahci_init_gendisk() local
122 for (int i = 0; i < 4; ++i) in ahci_init_gendisk() local
164 for (int i = 0; i < count_ahci_devices; ++i) in ahci_init() local
223 for (int i = 0; i < 32; ++i, (pi >>= 1)) in ahci_probe_port() local
315 for (int i = 0; i < 32; ++i) in port_rebase() local
358 int i; in ahci_read() local
454 int i = 0; in ahci_write() local
518 for (int i = 0; i < num_of_cmd_clots; i++) in ahci_find_cmdslot() local
/DragonOS-0.1.2/kernel/src/sched/
Dcompletion.c201 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.2/user/libs/libc/src/math/
Dpow.c7 for (int i = 0; i < y; ++i) in pow() local
Dlibm.h14 } i; member
26 } i; member
43 } i; member
Dfabs.c9 uint64_t i; in fabs() member
/DragonOS-0.1.2/kernel/src/libs/libUI/
Dtextui-render.c43 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.2/kernel/src/common/math/
Dlibm.h14 } i; member
26 } i; member
43 } i; member
/DragonOS-0.1.2/kernel/src/driver/usb/
Dusb.c36 for (volatile int i = 0; i < usb_pdevs_count; ++i) in usb_init() local
/DragonOS-0.1.2/kernel/src/driver/interrupt/8259A/
D8259A.c12 for(int i=32;i<=55;++i) in init_8259A() local
/DragonOS-0.1.2/kernel/src/filesystem/fat32/
Dfat_ent.c30 for (int i = 0; i < sec_per_fat; ++i) in fat32_alloc_clusters() local
84 for (int i = idx; i < num_clusters; ++i) in fat32_alloc_clusters() local
216 for (int i = 0; (i < fsbi->bytes_per_clus) && count_continuity < num; i += 32, ++tmp_dEntry) in fat32_find_empty_dentry() local
306 for (int i = 0; i < sizeof(unavailable_character_in_short_name) / sizeof(char); ++i) in fat32_check_char_available_in_short_name() local
389 for (int i = 1; i <= cnt_longname; ++i) in fat32_fill_longname() local
/DragonOS-0.1.2/user/apps/shell/
Dshell.c72 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
Dcmd_help.c17 for (int i = 0; i < help_table_num; ++i) in shell_help() local
/DragonOS-0.1.2/kernel/src/debug/traceback/
Dtraceback.c52 for (int i = 0; i < 10; ++i) in traceback() local
/DragonOS-0.1.2/kernel/src/driver/disk/
Data.c28 for(int i = 0;i<10;i++) in ata_disk_handler() local

123