Lines Matching refs:ps2_mouse_buf_ptr
8 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()
42 --(ps2_mouse_buf_ptr->count); in ps2_mouse_get_scancode()
43 ++(ps2_mouse_buf_ptr->ptr_tail); in ps2_mouse_get_scancode()
62 if (ps2_mouse_buf_ptr->ptr_head == ps2_mouse_buf_ptr->buffer + ps2_mouse_buffer_size) in ps2_mouse_handler()
63 ps2_mouse_buf_ptr->ptr_head = ps2_mouse_buf_ptr->buffer; in ps2_mouse_handler()
65 if (ps2_mouse_buf_ptr->count >= ps2_mouse_buffer_size) in ps2_mouse_handler()
71 *ps2_mouse_buf_ptr->ptr_head = x; in ps2_mouse_handler()
72 ++(ps2_mouse_buf_ptr->count); in ps2_mouse_handler()
73 ++(ps2_mouse_buf_ptr->ptr_head); in ps2_mouse_handler()
204 …ps2_mouse_buf_ptr = (struct ps2_mouse_input_buffer *)kzalloc(sizeof(struct ps2_mouse_input_buffer)… in ps2_mouse_init()
205 ps2_mouse_buf_ptr->ptr_head = ps2_mouse_buf_ptr->buffer; in ps2_mouse_init()
206 ps2_mouse_buf_ptr->ptr_tail = ps2_mouse_buf_ptr->buffer; in ps2_mouse_init()
207 ps2_mouse_buf_ptr->count = 0; in ps2_mouse_init()
208 memset(ps2_mouse_buf_ptr->buffer, 0, ps2_mouse_buffer_size); in ps2_mouse_init()
227 …irq_register(PS2_MOUSE_INTR_VECTOR, &ps2_mouse_entry, &ps2_mouse_handler, (ul)ps2_mouse_buf_ptr, &… in ps2_mouse_init()
272 kfree((ul *)ps2_mouse_buf_ptr); in ps2_mouse_exit()
289 if (ps2_mouse_buf_ptr->count < 4) in ps2_mouse_get_packet()
314 if (ps2_mouse_buf_ptr->count < 5) in ps2_mouse_get_packet()
353 if(!ps2_mouse_buf_ptr->count) in analyze_mousecode()
355 else printk_color(ORANGE, BLACK, "COUNT=%d\n", ps2_mouse_buf_ptr->count); in analyze_mousecode()
378 …2x,X:%3d,Y:%3d)\tcount=%d\n", pak.byte0, pak.movement_x, pak.movement_y, ps2_mouse_buf_ptr->count); in analyze_mousecode()