Home
last modified time | relevance | path

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

/DragonOS-0.1.3/kernel/src/driver/mouse/
Dps2_mouse.c8 static struct ps2_mouse_input_buffer *ps2_mouse_buf_ptr = NULL; variable
20 ps2_mouse_buf_ptr->ptr_head = ps2_mouse_buf_ptr->buffer; in ps2_mouse_clear_buf()
21 ps2_mouse_buf_ptr->ptr_tail = ps2_mouse_buf_ptr->buffer; in ps2_mouse_clear_buf()
22 ps2_mouse_buf_ptr->count = 0; in ps2_mouse_clear_buf()
23 memset(ps2_mouse_buf_ptr->buffer, 0, ps2_mouse_buffer_size); in ps2_mouse_clear_buf()
34 if (ps2_mouse_buf_ptr->count == 0) in ps2_mouse_get_scancode()
35 while (!ps2_mouse_buf_ptr->count) in ps2_mouse_get_scancode()
38 if (ps2_mouse_buf_ptr->ptr_tail == ps2_mouse_buf_ptr->buffer + ps2_mouse_buffer_size) in ps2_mouse_get_scancode()
39 ps2_mouse_buf_ptr->ptr_tail = ps2_mouse_buf_ptr->buffer; in ps2_mouse_get_scancode()
41 int ret = (int)((char)(*(ps2_mouse_buf_ptr->ptr_tail))); in ps2_mouse_get_scancode()
[all …]