Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 14 of 14) sorted by relevance

/DragonOS/kernel/src/libs/
H A Dvec_cursor.rs16 pos: usize, field
22 return Self { data, pos: 0 }; in new()
29 pos: 0, in zerod()
47 if self.pos >= self.data.len() { in read_u8()
50 self.pos += 1; in read_u8()
51 return Ok(self.data[self.pos - 1]); in read_u8()
56 if self.pos + 2 > self.data.len() { in read_u16()
60 res |= (self.data[self.pos] as u16) & 0xff; in read_u16()
61 self.pos += 1; in read_u16()
62 res |= ((self.data[self.pos] as u16) & 0xff) << 8; in read_u16()
[all …]
/DragonOS/docs/kernel/core_api/
H A Dkernel_api.md190 ### `list_next_entry(pos, member)`
198 **pos**
206 ### `list_prev_entry(pos, member)`
279 ### `list_for_each_entry(pos, head, member)`
287 **pos**
297 &emsp;&emsp;struct List在pos的结构体中的成员变量名
299 ### `list_for_each_entry_reverse(pos, head, member)`
309 ### `list_for_each_entry_safe(pos, n, head, member)`
317 **pos**
323 &emsp;&emsp;用于存储临时值的,和pos相同类型的指针
[all …]
/DragonOS/kernel/src/init/
H A Dboot.rs77 let mut pos: Option<usize> = None; in boot_cmdline_append() localVariable
81 pos = Some(i); in boot_cmdline_append()
85 let pos = pos.unwrap_or(self.boot_command_line.len() - 1) as isize; in boot_cmdline_append() localVariable
87 let avail = self.boot_command_line.len() as isize - pos - 1; in boot_cmdline_append()
93 let pos = pos as usize; in boot_cmdline_append() localVariable
94 self.boot_command_line[pos..pos + len].copy_from_slice(&data[0..len]); in boot_cmdline_append()
96 self.boot_command_line[pos + len] = 0; in boot_cmdline_append()
/DragonOS/kernel/src/libs/lib_ui/font/
H A Dmod.rs50 let pos = index * self.bytes_per_char; in char_map() localVariable
52 return &self.bitmap.data[pos..pos + self.bytes_per_char]; in char_map()
/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dvirtual_console.rs64 pub pos: usize, field
174 pos: Default::default(), in new()
217 self.pos = self.cols * self.state.y + self.state.x; in init()
284 self.pos = 0; in reset()
491 let mut i = self.screen_buf[self.pos] as u32; in add_softcursor()
521 self.screen_buf[self.pos] = i as u16; in add_softcursor()
538 self.screen_buf[self.pos] = softcursor.unwrap().bits as u16; in hide_softcursor()
586 self.pos = self.state.y * self.cols + self.state.x; in gotoxy()
625 self.pos -= 1; in backspace()
639 self.pos += self.cols; in line_feed()
[all …]
/DragonOS/kernel/src/time/
H A Dclocksource.rs411 for (pos, ele) in list_guard.iter().enumerate() { in clocksource_enqueue()
413 spilt_pos = pos; in clocksource_enqueue()
530 for (pos, ele) in list.iter().enumerate() { in clocksource_dequeue_watchdog()
534 del_pos = pos; in clocksource_dequeue_watchdog()
563 for (pos, ele) in clocksource_list.iter().enumerate() { in clocksource_dequeue_watchdog()
580 replace_pos = pos; in clocksource_dequeue_watchdog()
617 for (pos, ele) in list.iter().enumerate() { in clocksource_dequeue()
621 del_pos = pos; in clocksource_dequeue()
922 for (pos, ele) in wd_list.iter().enumerate() { in __clocksource_watchdog_kthread()
925 del_vec.push(pos); in __clocksource_watchdog_kthread()
[all …]
H A Dtimer.rs161 for (pos, elt) in timer_list.iter().enumerate() { in activate()
166 split_pos = pos; in activate()
/DragonOS/kernel/src/driver/video/fbdev/
H A Dvesafb.rs336 fn fb_read(&self, buf: &mut [u8], pos: usize) -> Result<usize, SystemError> { in fb_read()
342 if pos >= size { in fb_read()
346 let pos = pos as i64; in fb_read() localVariable
349 let len = core::cmp::min(size - pos, buf.len() as i64) as usize; in fb_read()
352 buf[..len].copy_from_slice(&slice[pos as usize..(pos as usize + len)]); in fb_read()
357 fn fb_write(&self, buf: &[u8], pos: usize) -> Result<usize, SystemError> { in fb_write()
363 if pos >= size { in fb_write()
367 let pos = pos as i64; in fb_write() localVariable
370 let len = core::cmp::min(size - pos, buf.len() as i64) as usize; in fb_write()
373 slice[pos as usize..(pos as usize + len)].copy_from_slice(&buf[..len]); in fb_write()
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dframebuffer_console.rs228 vc_data.pos = vc_data.state.x + vc_data.state.y * vc_data.cols; in con_init()
328 pos: usize, in con_getxy()
330 if pos < vc_data.screen_buf.len() { in con_getxy()
331 let x = pos % vc_data.cols; in con_getxy()
332 let y = pos / vc_data.cols; in con_getxy()
333 let mut next_line_start = pos + (vc_data.cols - x); in con_getxy()
351 let c = vc_data.screen_buf[vc_data.pos]; in con_cursor()
674 let c = vc_data.screen_buf[vc_data.pos]; in cursor()
/DragonOS/kernel/src/common/
H A Dhid.h130 int pos; // report_desc中,当前正在处理的位置 member
/DragonOS/kernel/src/filesystem/vfs/
H A Dfile.rs396 let pos: i64 = match origin { in lseek() localVariable
409 if pos < 0 { in lseek()
412 self.offset.store(pos as usize, Ordering::SeqCst); in lseek()
413 return Ok(pos as usize); in lseek()
H A Dmod.rs663 Some(pos) => { in do_lookup_follow_symlink()
664 name = String::from(&rest_path[0..pos]); in do_lookup_follow_symlink()
665 rest_path = String::from(&rest_path[pos + 1..]); in do_lookup_follow_symlink()
/DragonOS/kernel/src/filesystem/fat/
H A Dentry.rs2191 let pos: usize = ((index - 1) as usize) * LongDirEntry::LONG_NAME_STR_LEN; in process() localVariable
2194 .copy_name_to_slice(&mut self.name[pos..pos + LongDirEntry::LONG_NAME_STR_LEN])?; in process()
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.9.md352 * 修改一处因为vc的pos和x计算错误导致的溢出