Home
last modified time | relevance | path

Searched refs:start (Results 1 – 19 of 19) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/libUI/
Dtextui-render.c39 int textui_refresh_vlines(struct textui_window_t *window, uint16_t start, uint16_t count) in textui_refresh_vlines() argument
43 for (int i = start; i < window->vlines_num && count > 0; ++i, --count) in textui_refresh_vlines()
49 start = 0; in textui_refresh_vlines()
56 textui_refresh_vline(window, start); in textui_refresh_vlines()
57 ++start; in textui_refresh_vlines()
73 int textui_refresh_characters(struct textui_window_t *window, uint16_t vline_id, uint16_t start, ui… in textui_refresh_characters() argument
78 if (unlikely(vline_id >= window->vlines_num && (start + count) > window->chars_per_line)) in textui_refresh_characters()
96 __textui_render_chromatic(actual_line_id, start + i, &vline->chars[start + i]); in textui_refresh_characters()
Dtextui.h130 int textui_refresh_vlines(struct textui_window_t *window, uint16_t start, uint16_t count);
141 int textui_refresh_characters(struct textui_window_t *window, uint16_t vline_id, uint16_t start, ui…
/DragonOS-0.1.8/kernel/src/mm/
Dmod.rs468 start: VirtAddr, field
475 pub fn new(start: VirtAddr, size: usize) -> Self { in new()
476 VirtRegion { start, size } in new()
481 pub fn start(&self) -> VirtAddr { in start() method
482 self.start in start()
488 return self.start().add(self.size); in end()
494 pub fn between(start: VirtAddr, end: VirtAddr) -> Option<Self> { in between()
495 if unlikely(end.data() <= start.data()) { in between()
498 let size = end.data() - start.data(); in between()
499 return Some(VirtRegion::new(start, size)); in between()
[all …]
Ducontext.rs171 VirtPageFrame::new(vma_guard.region.start()), in try_clone()
328 let page = VirtPageFrame::new(region.start()); in mmap()
704 self.vm_holes.range_mut(..region.start()).next_back(); in reserve_hole()
709 if prev_hole_end > region.start() { in reserve_hole()
711 *prev_hole_size = region.start().data() - prev_hole_vaddr.data(); in reserve_hole()
730 .range_mut(..region.start()) in unreserve_hole()
732 .filter(|(offset, size)| offset.data() + **size == region.start().data()) in unreserve_hole()
737 .insert(region.start(), region.size() + next_hole_size.unwrap_or(0)); in unreserve_hole()
885 assert!(region.start().check_aligned(MMArch::PAGE_SIZE)); in extract()
891 if unlikely(region.start() < guard.region.start() || region.end() > guard.region.end()) in extract()
[all …]
/DragonOS-0.1.8/kernel/src/ipc/
Dpipe.rs106 let start = inode.read_pos as usize; in read_at() localVariable
117 if end < start { in read_at()
118 buf[0..(PIPE_BUFF_SIZE - start)].copy_from_slice(&inode.data[start..PIPE_BUFF_SIZE]); in read_at()
119 buf[(PIPE_BUFF_SIZE - start)..num].copy_from_slice(&inode.data[0..end]); in read_at()
121 buf[0..num].copy_from_slice(&inode.data[start..end]); in read_at()
185 let start = inode.write_pos as usize; in write_at() localVariable
189 if end < start { in write_at()
190 inode.data[start..PIPE_BUFF_SIZE].copy_from_slice(&buf[0..(PIPE_BUFF_SIZE - start)]); in write_at()
191 inode.data[0..end].copy_from_slice(&buf[(PIPE_BUFF_SIZE - start)..len]); in write_at()
193 inode.data[start..end].copy_from_slice(&buf[0..len]); in write_at()
/DragonOS-0.1.8/tools/
Dbatch_delete_loop.py3 start = int(input("Start from: ")) variable
6 for i in range(start, end+1):
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dpage_frame.rs42 pub fn iter_range(start: Self, end: Self) -> PhysPageFrameIter { in iter_range()
43 return PhysPageFrameIter::new(start, end); in iter_range()
56 pub fn new(start: PhysPageFrame, end: PhysPageFrame) -> Self { in new()
58 current: start, in new()
106 pub fn iter_range(start: Self, end: Self) -> VirtPageFrameIter { in iter_range()
108 current: start, in iter_range()
130 pub fn new(start: VirtPageFrame, end: VirtPageFrame) -> Self { in new()
132 current: start, in new()
/DragonOS-0.1.8/kernel/src/libs/
Delf.rs90 start: VirtAddr, in set_elf_brk()
94 let start = self.elf_page_start(start); in set_elf_brk() localVariable
96 if end > start { in set_elf_brk()
98 start, in set_elf_brk()
99 end - start, in set_elf_brk()
777 let start = range.start; in get_bytes() localVariable
780 .ok_or(elf::ParseError::SliceReadError((start, end))) in get_bytes()
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/
Dstdio.md46 ``#define SEEK_SET 0 /* Seek relative to start-of-file */``
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs204 let start = _pdata.data.len().min(offset); in read_status() localVariable
208 if buf.len() < (end - start) { in read_status()
213 let src = &_pdata.data[start..end]; in read_status()
398 let start = inode.data.len().min(offset); in read_at() localVariable
402 if buf.len() < (end - start) { in read_at()
407 let src = &inode.data[start..end]; in read_at()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs108 let mut start = 0; in read() localVariable
136 &mut buf[start..start + end_len], in read()
141 start += r; in read()
179 let mut start: usize = 0; in write() localVariable
204 &buf[start..start + end_len], in write()
209 start += w; in write()
758 let start: (Cluster, u64) = offsets[0]; localVariable
764 return Ok(short_dentry.to_dir_entry_with_long_name(long_name.to_string(), (start, end)));
2301 start: (Cluster, u64), in new()
2306 current_offset: start, in new()
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dhba.rs146 pub fn start(&mut self) { in start() method
245 self.start(); // 重新开启端口 in init()
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/
Dmod.rs135 let start = inode.data.len().min(offset); in read_at() localVariable
139 if buf.len() < (end - start) { in read_at()
144 let src = &inode.data[start..end]; in read_at()
/DragonOS-0.1.8/user/apps/test_bind/
Dlink.lds123 /* gcc uses crtbegin.o to find the start of
/DragonOS-0.1.8/user/apps/test_fstat/
Dlink.lds123 /* gcc uses crtbegin.o to find the start of
/DragonOS-0.1.8/user/apps/test_gettimeofday/
Dlink.lds123 /* gcc uses crtbegin.o to find the start of
/DragonOS-0.1.8/user/apps/http_server/
Dlink.lds123 /* gcc uses crtbegin.o to find the start of
/DragonOS-0.1.8/user/apps/test_relibc/
Dlink.lds123 /* gcc uses crtbegin.o to find the start of
/DragonOS-0.1.8/
DLICENSE289 to attach them to the start of each source file to most effectively