Home
last modified time | relevance | path

Searched refs:y (Results 1 – 25 of 26) sorted by relevance

12

/DragonOS/kernel/src/common/math/
H A Dround.c21 double y; in round() local
33 y = x + toint - toint - x; in round()
34 if (y > 0.5) in round()
35 y = y + x - 1; in round()
36 else if (y <= -0.5) in round()
37 y = y + x + 1; in round()
39 y = y + x; in round()
41 y = -y; in round()
42 return y; in round()
H A Dpow.c4 int64_t pow(int64_t x, int y) in pow() argument
6 if (y == 0) in pow()
8 if (y == 1) in pow()
10 if (y == 2) in pow()
13 while (y != 0) in pow()
15 if (y & 1) in pow()
17 y >>= 1; in pow()
/DragonOS/docs/kernel/configuration/
H A Dconfig.md15 enable = "y"
21 enable = "y"
30 - **y:** 启用,解析模块下的d.config
45 enable = "y"
50 enable = "y"
62 - **y:** 开启
78 enable = "y"
91 enable = "y"
102 init_debug = y
103 allocator_debug = y
[all …]
/DragonOS/kernel/src/common/
H A Dglib.h33 #define max(x, y) ((x > y) ? (x) : (y)) argument
34 #define min(x, y) ((x < y) ? (x) : (y)) argument
H A Dmath.h13 int64_t pow(int64_t x, int y);
H A Dmath.h13 int64_t pow(int64_t x, int y);
/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dvirtual_console.rs217 self.pos = self.cols * self.state.y + self.state.x; in init()
283 self.state.y = 0; in reset()
525 .con_putc(self, i as u16, self.state.y as u32, self.state.x as u32); in add_softcursor()
542 self.state.y as u32, in hide_softcursor()
550 fn gotoxay(&mut self, x: i32, y: i32) { in gotoxay()
552 self.gotoxy(x, self.top as i32 + y); in gotoxay()
554 self.gotoxy(x, y) in gotoxay()
559 fn gotoxy(&mut self, x: i32, y: i32) { in gotoxy()
578 if y < min_y as i32 { in gotoxy()
579 self.state.y = min_y; in gotoxy()
[all …]
/DragonOS/tools/
H A DDockerfile19 apt install -y ca-certificates curl gnupg wget sudo apt-utils && \
24 sudo apt autoremove -q -y && \
25 sudo apt clean -q -y && \
H A Dcreate_hdd_image.sh40 y
/DragonOS/kernel/src/sched/
H A Dpelt.rs249 pub fn add_positive(x: &mut isize, y: isize) { in add_positive()
250 let res = *x + y; in add_positive()
254 pub fn sub_positive(x: &mut usize, y: usize) { in sub_positive()
255 if *x > y { in sub_positive()
256 *x -= y; in sub_positive()
/DragonOS/kernel/src/debug/kprobe/
H A Dtest.rs8 fn detect_func(x: usize, y: usize) -> usize { in detect_func()
10 info!("detect_func: hart_id: {}, x: {}, y:{}", hart, x, y); in detect_func()
/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()
332 let y = pos / vc_data.cols; in con_getxy() localVariable
337 return Ok((next_line_start, x, y)); in con_getxy()
616 y: u32, in put_string()
631 y: y * vc_data.font.height, in put_string()
672 let y = fbcon_data.display.real_y(vc_data.state.y as u32); in cursor() localVariable
707 || fbcon_data.cursor_state.image.y != (vc_data.font.height * y) in cursor()
711 fbcon_data.cursor_state.image.y = vc_data.font.height * y; in cursor()
800 cursor.image.y = fbcon_data.cursor_state.image.y; in cursor()
H A Dmod.rs419 y: u32, in put_string()
/DragonOS/kernel/crates/unified-init/src/
H A Dmain.rs65 fn y() -> Result<(), SystemError> { in two_elements() function
/DragonOS/.github/workflows/
H A Ddocs.yml26 sudo apt-get install -y python3-pip
H A Ddocs-multiversion.yml28 sudo apt-get install -y python3-pip python3-setuptools
/DragonOS/user/port/binutils/2.38/
H A DDockerfile6 RUN apt-get update && apt-get install -y \
/DragonOS/kernel/crates/rbpf/src/
H A Dlib.rs625 let get_buff_len = |x: usize, y: usize| if x >= y { x + 8 } else { y + 8 }; in new()
673 let get_buff_len = |x: usize, y: usize| if x >= y { x + 8 } else { y + 8 }; in set_program()
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_device.rs115 y: i16, field
125 y: 0, in new()
156 self.y != 0 in y_moved()
171 self.y in get_y()
309 guard.current_state.y = self.get_y_movement(packet, flags); in process_packet()
/DragonOS/kernel/src/libs/lib_ui/
H A Dtextui.rs373 pub fn get_index_by_x_y(x: usize, y: usize) -> usize { in get_index_by_x_y()
374 textui_framework().metadata.read().buf_info().width() as usize * y + x in get_index_by_x_y()
384 let y: u32 = id_y * TEXTUI_CHAR_HEIGHT; in get_start_index_by_lineid_lineindex() localVariable
386 TextuiBuf::get_index_by_x_y(x as usize, y as usize) in get_start_index_by_lineid_lineindex()
465 let y: u32 = id_y * TEXTUI_CHAR_HEIGHT; in no_init_textui_render_chromatic() localVariable
485 + buf_width as usize * byte_num_of_depth * (y as usize + i as usize) in no_init_textui_render_chromatic()
/DragonOS/docs/introduction/
H A Dbuild_system.md109 sudo apt install -y autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev \
183 sudo apt install -y qemu qemu-system qemu-kvm
/DragonOS/kernel/src/driver/video/fbdev/
H A Dvesafb.rs407 for y in rect.dy..(rect.dy + rect.height) { in fb_fillrect()
409 unsafe { *base.add((y * line_offset + x) as usize) = fg }; in fb_fillrect()
416 for y in rect.dy..(rect.dy + rect.height) { in fb_fillrect()
418 unsafe { *base.add((y * line_offset + x) as usize) = 0x0000 }; in fb_fillrect()
425 for y in rect.dy..(rect.dy + rect.height) { in fb_fillrect()
427 unsafe { *base.add((y * line_offset + x) as usize) = [0, 0, 0] }; in fb_fillrect()
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dmod.rs67 let y = image.y; in generic_imageblit() localVariable
72 let mut bitstart = (y * self.current_fb_fix().line_length * 8) + (x * bit_per_pixel); in generic_imageblit()
1256 pub y: u32, field
/DragonOS/docs/kernel/debug/
H A Ddebug-kernel-with-gdb.md150 12 breakpoint keep y 0xffff8000001f8f16 in thingbuf::Core::pop_ref<u8>
152 13 watchpoint keep y slots
/DragonOS/kernel/src/libs/
H A Drbtree.rs1012 let mut y = NodePtr::null(); in insert() localVariable
1016 y = x; in insert()
1026 node.set_parent(y); in insert()
1028 if y.is_null() { in insert()
1031 match node.cmp(&y) { in insert()
1033 y.set_left(node); in insert()
1036 y.set_right(node); in insert()

12