Searched refs:cnt (Results 1 – 6 of 6) sorted by relevance
/DragonOS-0.1.7/kernel/src/driver/tty/ |
D | mod.rs | 155 let mut cnt = 0; in read_stdin() localVariable 156 while cnt < buf.len() { in read_stdin() 165 return Ok(cnt); in read_stdin() 171 buf[cnt] = *val.unwrap(); in read_stdin() 172 cnt += 1; in read_stdin() 175 return Ok(cnt); in read_stdin() 188 let mut cnt = 0; in write_stdin() localVariable 189 while cnt < buf.len() { in write_stdin() 198 return Err(TtyError::BufferFull(cnt)); in write_stdin() 204 *r.unwrap() = buf[cnt]; in write_stdin() [all …]
|
/DragonOS-0.1.7/kernel/src/process/ |
D | process.rs | 216 let mut cnt = 0; in alloc_fd() localVariable 220 return Ok(cnt); in alloc_fd() 222 cnt += 1; in alloc_fd()
|
/DragonOS-0.1.7/kernel/src/driver/interrupt/apic/ |
D | apic.c | 602 uint cnt = 0; in apic_get_ics() local 609 ret_vaddr[cnt++] = (ul)ent; in apic_get_ics() 615 *total = cnt; in apic_get_ics()
|
/DragonOS-0.1.7/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() 1632 int cnt = 0; in xhci_hc_start_ports() local 1653 ++cnt; in xhci_hc_start_ports() 1659 kdebug("Active usb3 ports:%d", cnt); in xhci_hc_start_ports() [all …]
|
/DragonOS-0.1.7/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.7/kernel/src/libs/libUI/ |
D | textui.c | 329 int cnt = chars_per_vline * total_vlines; in textui_init() local
|