Searched refs:cnt (Results 1 – 6 of 6) sorted by relevance
/DragonOS-0.1.2/kernel/src/driver/disk/ahci/ |
D | ahci.c | 120 int cnt = 0; in ahci_init_gendisk() local 128 ahci_gendisk0.partition[cnt].bd_disk = &ahci_gendisk0; in ahci_init_gendisk() 129 ahci_gendisk0.partition[cnt].bd_partno = cnt; in ahci_init_gendisk() 130 ahci_gendisk0.partition[cnt].bd_queue = &ahci_req_queue; in ahci_init_gendisk() 131 ahci_gendisk0.partition[cnt].bd_sectors_num = ptable->DPTE[i].total_sectors; in ahci_init_gendisk() 132 ahci_gendisk0.partition[cnt].bd_start_sector = ptable->DPTE[i].starting_sector; in ahci_init_gendisk() 133 ahci_gendisk0.partition[cnt].bd_superblock = NULL; // 挂载文件系统时才会初始化superblock in ahci_init_gendisk() 134 ahci_gendisk0.partition[cnt].bd_start_LBA = ptable->DPTE[i].starting_LBA; in ahci_init_gendisk() 135 ++cnt; in ahci_init_gendisk()
|
/DragonOS-0.1.2/kernel/src/driver/interrupt/apic/ |
D | apic.c | 593 uint cnt = 0; in apic_get_ics() local 600 ret_vaddr[cnt++] = (ul)ent; in apic_get_ics() 606 *total = cnt; in apic_get_ics()
|
/DragonOS-0.1.2/kernel/src/filesystem/VFS/ |
D | VFS.c | 309 … for (int i = last_slash + 1, cnt = 0; i < pathlen && cnt < subdir_dentry->name_length; ++i, ++cnt) in vfs_mkdir() local 310 subdir_dentry->name[cnt] = path[i]; in vfs_mkdir()
|
/DragonOS-0.1.2/kernel/src/driver/usb/xhci/ |
D | xhci.c | 436 uint32_t offset, cnt; in xhci_hc_pair_ports() local 443 next_off = xhci_hc_get_protocol_offset(id, next_off, 2, &offset, &cnt, &protocol_flags); in xhci_hc_pair_ports() 446 if (cnt) in xhci_hc_pair_ports() 448 for (int i = 0; i < cnt; ++i) in xhci_hc_pair_ports() 466 next_off = xhci_hc_get_protocol_offset(id, next_off, 3, &offset, &cnt, &protocol_flags); in xhci_hc_pair_ports() 469 if (cnt) in xhci_hc_pair_ports() 471 for (int i = 0; i < cnt; ++i) in xhci_hc_pair_ports() 1630 int cnt = 0; in xhci_hc_start_ports() local 1651 ++cnt; in xhci_hc_start_ports() 1657 kdebug("Active usb3 ports:%d", cnt); in xhci_hc_start_ports() [all …]
|
/DragonOS-0.1.2/kernel/src/driver/hid/ |
D | hidparse.c | 48 char *__spaces(uint8_t cnt) in __spaces() argument 51 if (cnt > 32) in __spaces() 57 __spaces_buf[cnt] = '\0'; in __spaces()
|
/DragonOS-0.1.2/kernel/src/libs/libUI/ |
D | textui.c | 329 int cnt = chars_per_vline * total_vlines; in textui_init() local
|