tag | line | file | source code |
mouse | 64 | drivers/char/atixlmouse.c | } mouse; |
mouse | 77 | drivers/char/atixlmouse.c | if (dx != 0 || dy != 0 || buttons != mouse.latch_buttons) { |
mouse | 78 | drivers/char/atixlmouse.c | mouse.latch_buttons |= buttons; |
mouse | 79 | drivers/char/atixlmouse.c | mouse.dx += dx; |
mouse | 80 | drivers/char/atixlmouse.c | mouse.dy += dy; |
mouse | 81 | drivers/char/atixlmouse.c | mouse.ready = 1; |
mouse | 82 | drivers/char/atixlmouse.c | wake_up_interruptible(&mouse.wait); |
mouse | 90 | drivers/char/atixlmouse.c | mouse.active = 0; |
mouse | 91 | drivers/char/atixlmouse.c | mouse.ready = 0; |
mouse | 98 | drivers/char/atixlmouse.c | if (!mouse.present) |
mouse | 100 | drivers/char/atixlmouse.c | if (mouse.active) |
mouse | 102 | drivers/char/atixlmouse.c | mouse.active = 1; |
mouse | 103 | drivers/char/atixlmouse.c | mouse.ready = 0; |
mouse | 104 | drivers/char/atixlmouse.c | mouse.dx = 0; |
mouse | 105 | drivers/char/atixlmouse.c | mouse.dy = 0; |
mouse | 106 | drivers/char/atixlmouse.c | mouse.buttons = mouse.latch_buttons = 0; |
mouse | 108 | drivers/char/atixlmouse.c | mouse.active = 0; |
mouse | 127 | drivers/char/atixlmouse.c | if (!mouse.ready) |
mouse | 131 | drivers/char/atixlmouse.c | put_fs_byte((char)(~mouse.latch_buttons&7) | 0x80 , buffer); |
mouse | 132 | drivers/char/atixlmouse.c | if (mouse.dx < -127) |
mouse | 133 | drivers/char/atixlmouse.c | mouse.dx = -127; |
mouse | 134 | drivers/char/atixlmouse.c | if (mouse.dx > 127) |
mouse | 135 | drivers/char/atixlmouse.c | mouse.dx = 127; |
mouse | 136 | drivers/char/atixlmouse.c | put_fs_byte((char)mouse.dx, buffer + 1); |
mouse | 137 | drivers/char/atixlmouse.c | if (mouse.dy < -127) |
mouse | 138 | drivers/char/atixlmouse.c | mouse.dy = -127; |
mouse | 139 | drivers/char/atixlmouse.c | if (mouse.dy > 127) |
mouse | 140 | drivers/char/atixlmouse.c | mouse.dy = 127; |
mouse | 141 | drivers/char/atixlmouse.c | put_fs_byte((char)-mouse.dy, buffer + 2); |
mouse | 144 | drivers/char/atixlmouse.c | mouse.dx = 0; |
mouse | 145 | drivers/char/atixlmouse.c | mouse.dy = 0; |
mouse | 146 | drivers/char/atixlmouse.c | mouse.latch_buttons = mouse.buttons; |
mouse | 147 | drivers/char/atixlmouse.c | mouse.ready = 0; |
mouse | 156 | drivers/char/atixlmouse.c | if (mouse.ready) |
mouse | 158 | drivers/char/atixlmouse.c | select_wait(&mouse.wait,wait); |
mouse | 184 | drivers/char/atixlmouse.c | mouse.present = 0; |
mouse | 190 | drivers/char/atixlmouse.c | mouse.present = 1; |
mouse | 191 | drivers/char/atixlmouse.c | mouse.active = 0; |
mouse | 192 | drivers/char/atixlmouse.c | mouse.ready = 0; |
mouse | 193 | drivers/char/atixlmouse.c | mouse.buttons = mouse.latch_buttons = 0; |
mouse | 194 | drivers/char/atixlmouse.c | mouse.dx = mouse.dy = 0; |
mouse | 195 | 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 | 42 | drivers/char/msbusmouse.c | static struct mouse_status mouse; |
mouse | 64 | drivers/char/msbusmouse.c | if (dx != 0 || dy != 0 || buttons != mouse.buttons || ((~buttons) & 0x07)) { |
mouse | 65 | drivers/char/msbusmouse.c | mouse.buttons = buttons; |
mouse | 66 | drivers/char/msbusmouse.c | mouse.dx += dx; |
mouse | 67 | drivers/char/msbusmouse.c | mouse.dy += dy; |
mouse | 68 | drivers/char/msbusmouse.c | mouse.ready = 1; |
mouse | 69 | drivers/char/msbusmouse.c | wake_up_interruptible(&mouse.wait); |
mouse | 76 | drivers/char/msbusmouse.c | mouse.active = mouse.ready = 0; |
mouse | 82 | drivers/char/msbusmouse.c | if (!mouse.present) |
mouse | 84 | drivers/char/msbusmouse.c | if (mouse.active) |
mouse | 86 | drivers/char/msbusmouse.c | mouse.active = 1; |
mouse | 87 | drivers/char/msbusmouse.c | mouse.ready = mouse.dx = mouse.dy = 0; |
mouse | 88 | drivers/char/msbusmouse.c | mouse.buttons = 0x80; |
mouse | 90 | drivers/char/msbusmouse.c | mouse.active = 0; |
mouse | 110 | drivers/char/msbusmouse.c | if (!mouse.ready) |
mouse | 112 | drivers/char/msbusmouse.c | put_fs_byte(mouse.buttons | 0x80, buffer); |
mouse | 113 | drivers/char/msbusmouse.c | dx = mouse.dx < -127 ? -127 : mouse.dx > 127 ? 127 : mouse.dx; |
mouse | 114 | drivers/char/msbusmouse.c | dy = mouse.dy < -127 ? 127 : mouse.dy > 127 ? -127 : -mouse.dy; |
mouse | 119 | drivers/char/msbusmouse.c | mouse.dx -= dx; |
mouse | 120 | drivers/char/msbusmouse.c | mouse.dy += dy; |
mouse | 121 | drivers/char/msbusmouse.c | mouse.ready = 0; |
mouse | 129 | drivers/char/msbusmouse.c | if (mouse.ready) |
mouse | 131 | drivers/char/msbusmouse.c | select_wait(&mouse.wait,wait); |
mouse | 151 | drivers/char/msbusmouse.c | mouse.present = mouse.active = mouse.ready = 0; |
mouse | 152 | drivers/char/msbusmouse.c | mouse.buttons = 0x80; |
mouse | 153 | drivers/char/msbusmouse.c | mouse.dx = mouse.dy = 0; |
mouse | 154 | drivers/char/msbusmouse.c | mouse.wait = NULL; |
mouse | 162 | drivers/char/msbusmouse.c | mouse.present = 1; |
mouse | 164 | drivers/char/msbusmouse.c | mouse.present = 0; |
mouse | 166 | drivers/char/msbusmouse.c | mouse.present = 0; |
mouse | 169 | drivers/char/msbusmouse.c | if (mouse.present == 0) { |