Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 5 of 5) sorted by relevance

/DragonOS-0.1.8/kernel/src/driver/tty/
Dmod.rs157 let mut cnt = 0; in read_stdin() localVariable
158 while cnt < buf.len() { in read_stdin()
167 return Ok(cnt); in read_stdin()
174 buf[cnt] = x; in read_stdin()
175 cnt += 1; in read_stdin()
178 return Ok(cnt); in read_stdin()
182 return Ok(cnt); in read_stdin()
200 let mut cnt = 0; in write_stdin() localVariable
201 while cnt < buf.len() { in write_stdin()
210 return Err(TtyError::BufferFull(cnt)); in write_stdin()
[all …]
/DragonOS-0.1.8/kernel/src/process/
Dprocess.rs218 let mut cnt = 0; in alloc_fd() localVariable
222 return Ok(cnt); in alloc_fd()
224 cnt += 1; in alloc_fd()
/DragonOS-0.1.8/kernel/src/driver/interrupt/apic/
Dapic.c607 uint cnt = 0; in apic_get_ics() local
614 ret_vaddr[cnt++] = (ul)ent; in apic_get_ics()
620 *total = cnt; in apic_get_ics()
/DragonOS-0.1.8/kernel/src/driver/hid/
Dhidparse.c48 char *__spaces(uint8_t cnt) in __spaces() argument
51 if (cnt > 32) in __spaces()
57 __spaces_buf[cnt] = '\0'; in __spaces()
/DragonOS-0.1.8/kernel/src/libs/libUI/
Dtextui.c342 int cnt = chars_per_vline * total_vlines; in textui_init() local