tag | line | file | source code |
mouse | 63 | drivers/char/atixlmouse.c | } mouse; |
mouse | 69 | drivers/char/atixlmouse.c | mouse.dx += inb( ATIXL_MSE_DATA_PORT); |
mouse | 71 | drivers/char/atixlmouse.c | mouse.dy += inb( ATIXL_MSE_DATA_PORT); |
mouse | 73 | drivers/char/atixlmouse.c | mouse.latch_buttons |= inb(ATIXL_MSE_DATA_PORT); |
mouse | 75 | drivers/char/atixlmouse.c | mouse.ready = 1; |
mouse | 76 | drivers/char/atixlmouse.c | wake_up_interruptible(&mouse.wait); |
mouse | 82 | drivers/char/atixlmouse.c | mouse.active = 0; |
mouse | 83 | drivers/char/atixlmouse.c | mouse.ready = 0; |
mouse | 90 | drivers/char/atixlmouse.c | if (!mouse.present) |
mouse | 92 | drivers/char/atixlmouse.c | if (mouse.active) |
mouse | 94 | drivers/char/atixlmouse.c | mouse.active = 1; |
mouse | 95 | drivers/char/atixlmouse.c | mouse.ready = 0; |
mouse | 96 | drivers/char/atixlmouse.c | mouse.dx = 0; |
mouse | 97 | drivers/char/atixlmouse.c | mouse.dy = 0; |
mouse | 98 | drivers/char/atixlmouse.c | mouse.buttons = mouse.latch_buttons = 0; |
mouse | 100 | drivers/char/atixlmouse.c | mouse.active = 0; |
mouse | 117 | drivers/char/atixlmouse.c | if (!mouse.ready) |
mouse | 121 | drivers/char/atixlmouse.c | put_fs_byte((~mouse.latch_buttons & 7) | 0x80 , buffer); |
mouse | 122 | drivers/char/atixlmouse.c | put_fs_byte(mouse.dx, buffer + 1); |
mouse | 123 | drivers/char/atixlmouse.c | put_fs_byte(-mouse.dy, buffer + 2); |
mouse | 124 | drivers/char/atixlmouse.c | mouse.dx = 0; |
mouse | 125 | drivers/char/atixlmouse.c | mouse.dy = 0; |
mouse | 126 | drivers/char/atixlmouse.c | mouse.latch_buttons = mouse.buttons; |
mouse | 127 | drivers/char/atixlmouse.c | mouse.ready = 0; |
mouse | 136 | drivers/char/atixlmouse.c | if (mouse.ready) |
mouse | 138 | drivers/char/atixlmouse.c | select_wait(&mouse.wait,wait); |
mouse | 164 | drivers/char/atixlmouse.c | mouse.present = 0; |
mouse | 170 | drivers/char/atixlmouse.c | mouse.present = 1; |
mouse | 171 | drivers/char/atixlmouse.c | mouse.active = 0; |
mouse | 172 | drivers/char/atixlmouse.c | mouse.ready = 0; |
mouse | 173 | drivers/char/atixlmouse.c | mouse.buttons = mouse.latch_buttons = 0; |
mouse | 174 | drivers/char/atixlmouse.c | mouse.dx = mouse.dy = 0; |
mouse | 175 | drivers/char/atixlmouse.c | mouse.wait = NULL; |
mouse | 38 | drivers/char/busmouse.c | static struct mouse_status mouse; |
mouse | 63 | drivers/char/busmouse.c | if (dx != 0 || dy != 0 || buttons != mouse.buttons) { |
mouse | 64 | drivers/char/busmouse.c | mouse.buttons = buttons; |
mouse | 65 | drivers/char/busmouse.c | mouse.dx += dx; |
mouse | 66 | drivers/char/busmouse.c | mouse.dy -= dy; |
mouse | 67 | drivers/char/busmouse.c | mouse.ready = 1; |
mouse | 68 | drivers/char/busmouse.c | wake_up_interruptible(&mouse.wait); |
mouse | 75 | drivers/char/busmouse.c | if (mouse.dx < -2048) |
mouse | 76 | drivers/char/busmouse.c | mouse.dx = -2048; |
mouse | 77 | drivers/char/busmouse.c | if (mouse.dx > 2048) |
mouse | 78 | drivers/char/busmouse.c | mouse.dx = 2048; |
mouse | 80 | drivers/char/busmouse.c | if (mouse.dy < -2048) |
mouse | 81 | drivers/char/busmouse.c | mouse.dy = -2048; |
mouse | 82 | drivers/char/busmouse.c | if (mouse.dy > 2048) |
mouse | 83 | drivers/char/busmouse.c | mouse.dy = 2048; |
mouse | 95 | drivers/char/busmouse.c | if (--mouse.active == 0) { |
mouse | 108 | drivers/char/busmouse.c | if (!mouse.present) |
mouse | 110 | drivers/char/busmouse.c | if (mouse.active) |
mouse | 112 | drivers/char/busmouse.c | mouse.ready = 0; |
mouse | 113 | drivers/char/busmouse.c | mouse.dx = 0; |
mouse | 114 | drivers/char/busmouse.c | mouse.dy = 0; |
mouse | 115 | drivers/char/busmouse.c | mouse.buttons = 0x87; |
mouse | 118 | drivers/char/busmouse.c | mouse.active = 1; |
mouse | 147 | drivers/char/busmouse.c | if (!mouse.ready) |
mouse | 158 | drivers/char/busmouse.c | dx = mouse.dx; |
mouse | 159 | drivers/char/busmouse.c | dy = mouse.dy; |
mouse | 168 | drivers/char/busmouse.c | buttons = mouse.buttons; |
mouse | 169 | drivers/char/busmouse.c | mouse.dx -= dx; |
mouse | 170 | drivers/char/busmouse.c | mouse.dy -= dy; |
mouse | 171 | drivers/char/busmouse.c | mouse.ready = 0; |
mouse | 195 | drivers/char/busmouse.c | if (mouse.ready) { |
mouse | 198 | drivers/char/busmouse.c | select_wait(&mouse.wait, wait); |
mouse | 226 | drivers/char/busmouse.c | mouse.present = 0; |
mouse | 231 | drivers/char/busmouse.c | mouse.present = 1; |
mouse | 232 | drivers/char/busmouse.c | mouse.active = 0; |
mouse | 233 | drivers/char/busmouse.c | mouse.ready = 0; |
mouse | 234 | drivers/char/busmouse.c | mouse.buttons = 0x87; |
mouse | 235 | drivers/char/busmouse.c | mouse.dx = 0; |
mouse | 236 | drivers/char/busmouse.c | mouse.dy = 0; |
mouse | 237 | drivers/char/busmouse.c | mouse.wait = NULL; |
mouse | 43 | drivers/char/msbusmouse.c | static struct mouse_status mouse; |
mouse | 65 | drivers/char/msbusmouse.c | if (dx != 0 || dy != 0 || buttons != mouse.buttons || ((~buttons) & 0x07)) { |
mouse | 66 | drivers/char/msbusmouse.c | mouse.buttons = buttons; |
mouse | 67 | drivers/char/msbusmouse.c | mouse.dx += dx; |
mouse | 68 | drivers/char/msbusmouse.c | mouse.dy += dy; |
mouse | 69 | drivers/char/msbusmouse.c | mouse.ready = 1; |
mouse | 70 | drivers/char/msbusmouse.c | wake_up_interruptible(&mouse.wait); |
mouse | 77 | drivers/char/msbusmouse.c | mouse.active = mouse.ready = 0; |
mouse | 83 | drivers/char/msbusmouse.c | if (!mouse.present) |
mouse | 85 | drivers/char/msbusmouse.c | if (mouse.active) |
mouse | 87 | drivers/char/msbusmouse.c | mouse.active = 1; |
mouse | 88 | drivers/char/msbusmouse.c | mouse.ready = mouse.dx = mouse.dy = 0; |
mouse | 89 | drivers/char/msbusmouse.c | mouse.buttons = 0x80; |
mouse | 91 | drivers/char/msbusmouse.c | mouse.active = 0; |
mouse | 111 | drivers/char/msbusmouse.c | if (!mouse.ready) |
mouse | 113 | drivers/char/msbusmouse.c | put_fs_byte(mouse.buttons | 0x80, buffer); |
mouse | 114 | drivers/char/msbusmouse.c | dx = mouse.dx < -127 ? -127 : mouse.dx > 127 ? 127 : mouse.dx; |
mouse | 115 | drivers/char/msbusmouse.c | dy = mouse.dy < -127 ? 127 : mouse.dy > 127 ? -127 : -mouse.dy; |
mouse | 120 | drivers/char/msbusmouse.c | mouse.dx -= dx; |
mouse | 121 | drivers/char/msbusmouse.c | mouse.dy += dy; |
mouse | 122 | drivers/char/msbusmouse.c | mouse.ready = 0; |
mouse | 130 | drivers/char/msbusmouse.c | if (mouse.ready) |
mouse | 132 | drivers/char/msbusmouse.c | select_wait(&mouse.wait,wait); |
mouse | 152 | drivers/char/msbusmouse.c | mouse.present = mouse.active = mouse.ready = 0; |
mouse | 153 | drivers/char/msbusmouse.c | mouse.buttons = 0x80; |
mouse | 154 | drivers/char/msbusmouse.c | mouse.dx = mouse.dy = 0; |
mouse | 155 | drivers/char/msbusmouse.c | mouse.wait = NULL; |
mouse | 163 | drivers/char/msbusmouse.c | mouse.present = 1; |
mouse | 165 | drivers/char/msbusmouse.c | mouse.present = 0; |
mouse | 167 | drivers/char/msbusmouse.c | mouse.present = 0; |
mouse | 170 | drivers/char/msbusmouse.c | if (mouse.present == 0) { |