tag | line | file | source code |
mouse | 70 | drivers/char/atixlmouse.c | } mouse; |
mouse | 83 | drivers/char/atixlmouse.c | if (dx != 0 || dy != 0 || buttons != mouse.latch_buttons) { |
mouse | 85 | drivers/char/atixlmouse.c | mouse.latch_buttons |= buttons; |
mouse | 86 | drivers/char/atixlmouse.c | mouse.dx += dx; |
mouse | 87 | drivers/char/atixlmouse.c | mouse.dy += dy; |
mouse | 88 | drivers/char/atixlmouse.c | mouse.ready = 1; |
mouse | 89 | drivers/char/atixlmouse.c | wake_up_interruptible(&mouse.wait); |
mouse | 90 | drivers/char/atixlmouse.c | if (mouse.fasync) |
mouse | 91 | drivers/char/atixlmouse.c | kill_fasync(mouse.fasync, SIGIO); |
mouse | 100 | drivers/char/atixlmouse.c | retval = fasync_helper(inode, filp, on, &mouse.fasync); |
mouse | 109 | drivers/char/atixlmouse.c | if (--mouse.active) |
mouse | 112 | drivers/char/atixlmouse.c | mouse.ready = 0; |
mouse | 119 | drivers/char/atixlmouse.c | if (!mouse.present) |
mouse | 121 | drivers/char/atixlmouse.c | if (mouse.active++) |
mouse | 124 | drivers/char/atixlmouse.c | mouse.active--; |
mouse | 127 | drivers/char/atixlmouse.c | mouse.ready = 0; |
mouse | 128 | drivers/char/atixlmouse.c | mouse.dx = 0; |
mouse | 129 | drivers/char/atixlmouse.c | mouse.dy = 0; |
mouse | 130 | drivers/char/atixlmouse.c | mouse.buttons = mouse.latch_buttons = 0; |
mouse | 148 | drivers/char/atixlmouse.c | if (!mouse.ready) |
mouse | 152 | drivers/char/atixlmouse.c | put_user((char)(~mouse.latch_buttons&7) | 0x80 , buffer); |
mouse | 153 | drivers/char/atixlmouse.c | if (mouse.dx < -127) |
mouse | 154 | drivers/char/atixlmouse.c | mouse.dx = -127; |
mouse | 155 | drivers/char/atixlmouse.c | if (mouse.dx > 127) |
mouse | 156 | drivers/char/atixlmouse.c | mouse.dx = 127; |
mouse | 157 | drivers/char/atixlmouse.c | put_user((char)mouse.dx, buffer + 1); |
mouse | 158 | drivers/char/atixlmouse.c | if (mouse.dy < -127) |
mouse | 159 | drivers/char/atixlmouse.c | mouse.dy = -127; |
mouse | 160 | drivers/char/atixlmouse.c | if (mouse.dy > 127) |
mouse | 161 | drivers/char/atixlmouse.c | mouse.dy = 127; |
mouse | 162 | drivers/char/atixlmouse.c | put_user((char)-mouse.dy, buffer + 2); |
mouse | 165 | drivers/char/atixlmouse.c | mouse.dx = 0; |
mouse | 166 | drivers/char/atixlmouse.c | mouse.dy = 0; |
mouse | 167 | drivers/char/atixlmouse.c | mouse.latch_buttons = mouse.buttons; |
mouse | 168 | drivers/char/atixlmouse.c | mouse.ready = 0; |
mouse | 177 | drivers/char/atixlmouse.c | if (mouse.ready) |
mouse | 179 | drivers/char/atixlmouse.c | select_wait(&mouse.wait,wait); |
mouse | 197 | drivers/char/atixlmouse.c | static struct mouse atixl_mouse = { |
mouse | 212 | drivers/char/atixlmouse.c | mouse.present = 0; |
mouse | 218 | drivers/char/atixlmouse.c | mouse.present = 1; |
mouse | 219 | drivers/char/atixlmouse.c | mouse.active = 0; |
mouse | 220 | drivers/char/atixlmouse.c | mouse.ready = 0; |
mouse | 221 | drivers/char/atixlmouse.c | mouse.buttons = mouse.latch_buttons = 0; |
mouse | 222 | drivers/char/atixlmouse.c | mouse.dx = mouse.dy = 0; |
mouse | 223 | drivers/char/atixlmouse.c | mouse.wait = NULL; |
mouse | 54 | drivers/char/busmouse.c | static struct mouse_status mouse; |
mouse | 78 | drivers/char/busmouse.c | if (dx != 0 || dy != 0 || buttons != mouse.buttons) { |
mouse | 80 | drivers/char/busmouse.c | mouse.buttons = buttons; |
mouse | 81 | drivers/char/busmouse.c | mouse.dx += dx; |
mouse | 82 | drivers/char/busmouse.c | mouse.dy -= dy; |
mouse | 83 | drivers/char/busmouse.c | mouse.ready = 1; |
mouse | 84 | drivers/char/busmouse.c | wake_up_interruptible(&mouse.wait); |
mouse | 91 | drivers/char/busmouse.c | if (mouse.dx < -2048) |
mouse | 92 | drivers/char/busmouse.c | mouse.dx = -2048; |
mouse | 93 | drivers/char/busmouse.c | if (mouse.dx > 2048) |
mouse | 94 | drivers/char/busmouse.c | mouse.dx = 2048; |
mouse | 96 | drivers/char/busmouse.c | if (mouse.dy < -2048) |
mouse | 97 | drivers/char/busmouse.c | mouse.dy = -2048; |
mouse | 98 | drivers/char/busmouse.c | if (mouse.dy > 2048) |
mouse | 99 | drivers/char/busmouse.c | mouse.dy = 2048; |
mouse | 101 | drivers/char/busmouse.c | if (mouse.fasyncptr) |
mouse | 102 | drivers/char/busmouse.c | kill_fasync(mouse.fasyncptr, SIGIO); |
mouse | 111 | drivers/char/busmouse.c | retval = fasync_helper(inode, filp, on, &mouse.fasyncptr); |
mouse | 124 | drivers/char/busmouse.c | if (--mouse.active) |
mouse | 137 | drivers/char/busmouse.c | if (!mouse.present) |
mouse | 139 | drivers/char/busmouse.c | if (mouse.active++) |
mouse | 142 | drivers/char/busmouse.c | mouse.active--; |
mouse | 145 | drivers/char/busmouse.c | mouse.ready = 0; |
mouse | 146 | drivers/char/busmouse.c | mouse.dx = 0; |
mouse | 147 | drivers/char/busmouse.c | mouse.dy = 0; |
mouse | 148 | drivers/char/busmouse.c | mouse.buttons = 0x87; |
mouse | 179 | drivers/char/busmouse.c | if (!mouse.ready) |
mouse | 191 | drivers/char/busmouse.c | dx = mouse.dx; |
mouse | 192 | drivers/char/busmouse.c | dy = mouse.dy; |
mouse | 201 | drivers/char/busmouse.c | buttons = mouse.buttons; |
mouse | 202 | drivers/char/busmouse.c | mouse.dx -= dx; |
mouse | 203 | drivers/char/busmouse.c | mouse.dy -= dy; |
mouse | 204 | drivers/char/busmouse.c | mouse.ready = 0; |
mouse | 222 | drivers/char/busmouse.c | if (mouse.ready) |
mouse | 224 | drivers/char/busmouse.c | select_wait(&mouse.wait, wait); |
mouse | 243 | drivers/char/busmouse.c | static struct mouse bus_mouse = { |
mouse | 250 | drivers/char/busmouse.c | mouse.present = 0; |
mouse | 258 | drivers/char/busmouse.c | mouse.present = 0; |
mouse | 266 | drivers/char/busmouse.c | mouse.present = 1; |
mouse | 267 | drivers/char/busmouse.c | mouse.active = 0; |
mouse | 268 | drivers/char/busmouse.c | mouse.ready = 0; |
mouse | 269 | drivers/char/busmouse.c | mouse.buttons = 0x87; |
mouse | 270 | drivers/char/busmouse.c | mouse.dx = 0; |
mouse | 271 | drivers/char/busmouse.c | mouse.dy = 0; |
mouse | 272 | drivers/char/busmouse.c | mouse.wait = NULL; |
mouse | 35 | drivers/char/mouse.c | static struct mouse mouse_list = { 0, "head", NULL, &mouse_list, &mouse_list }; |
mouse | 47 | drivers/char/mouse.c | struct mouse *c = mouse_list.next; |
mouse | 75 | drivers/char/mouse.c | int mouse_register(struct mouse * mouse) |
mouse | 77 | drivers/char/mouse.c | if (mouse->next || mouse->prev) |
mouse | 80 | drivers/char/mouse.c | mouse->next = &mouse_list; |
mouse | 81 | drivers/char/mouse.c | mouse->prev = mouse_list.prev; |
mouse | 82 | drivers/char/mouse.c | mouse->prev->next = mouse; |
mouse | 83 | drivers/char/mouse.c | mouse->next->prev = mouse; |
mouse | 87 | drivers/char/mouse.c | int mouse_deregister(struct mouse * mouse) |
mouse | 89 | drivers/char/mouse.c | if (!mouse->next || !mouse->prev) |
mouse | 92 | drivers/char/mouse.c | mouse->prev->next = mouse->next; |
mouse | 93 | drivers/char/mouse.c | mouse->next->prev = mouse->prev; |
mouse | 94 | drivers/char/mouse.c | mouse->next = NULL; |
mouse | 95 | drivers/char/mouse.c | mouse->prev = NULL; |
mouse | 49 | drivers/char/msbusmouse.c | static struct mouse_status mouse; |
mouse | 71 | drivers/char/msbusmouse.c | if (dx != 0 || dy != 0 || buttons != mouse.buttons || ((~buttons) & 0x07)) { |
mouse | 73 | drivers/char/msbusmouse.c | mouse.buttons = buttons; |
mouse | 74 | drivers/char/msbusmouse.c | mouse.dx += dx; |
mouse | 75 | drivers/char/msbusmouse.c | mouse.dy += dy; |
mouse | 76 | drivers/char/msbusmouse.c | mouse.ready = 1; |
mouse | 77 | drivers/char/msbusmouse.c | wake_up_interruptible(&mouse.wait); |
mouse | 78 | drivers/char/msbusmouse.c | if (mouse.fasyncptr) |
mouse | 79 | drivers/char/msbusmouse.c | kill_fasync(mouse.fasyncptr, SIGIO); |
mouse | 87 | drivers/char/msbusmouse.c | retval = fasync_helper(inode, filp, on, &mouse.fasyncptr); |
mouse | 96 | drivers/char/msbusmouse.c | if (--mouse.active) |
mouse | 99 | drivers/char/msbusmouse.c | mouse.ready = 0; |
mouse | 106 | drivers/char/msbusmouse.c | if (!mouse.present) |
mouse | 108 | drivers/char/msbusmouse.c | if (mouse.active++) |
mouse | 111 | drivers/char/msbusmouse.c | mouse.active--; |
mouse | 114 | drivers/char/msbusmouse.c | mouse.ready = mouse.dx = mouse.dy = 0; |
mouse | 115 | drivers/char/msbusmouse.c | mouse.buttons = 0x80; |
mouse | 134 | drivers/char/msbusmouse.c | if (!mouse.ready) |
mouse | 136 | drivers/char/msbusmouse.c | put_user(mouse.buttons | 0x80, buffer); |
mouse | 137 | drivers/char/msbusmouse.c | dx = mouse.dx < -127 ? -127 : mouse.dx > 127 ? 127 : mouse.dx; |
mouse | 138 | drivers/char/msbusmouse.c | dy = mouse.dy < -127 ? 127 : mouse.dy > 127 ? -127 : -mouse.dy; |
mouse | 143 | drivers/char/msbusmouse.c | mouse.dx -= dx; |
mouse | 144 | drivers/char/msbusmouse.c | mouse.dy += dy; |
mouse | 145 | drivers/char/msbusmouse.c | mouse.ready = 0; |
mouse | 153 | drivers/char/msbusmouse.c | if (mouse.ready) |
mouse | 155 | drivers/char/msbusmouse.c | select_wait(&mouse.wait,wait); |
mouse | 173 | drivers/char/msbusmouse.c | static struct mouse ms_bus_mouse = { |
mouse | 181 | drivers/char/msbusmouse.c | mouse.present = mouse.active = mouse.ready = 0; |
mouse | 182 | drivers/char/msbusmouse.c | mouse.buttons = 0x80; |
mouse | 183 | drivers/char/msbusmouse.c | mouse.dx = mouse.dy = 0; |
mouse | 184 | drivers/char/msbusmouse.c | mouse.wait = NULL; |
mouse | 196 | drivers/char/msbusmouse.c | mouse.present = 1; |
mouse | 198 | drivers/char/msbusmouse.c | mouse.present = 0; |
mouse | 200 | drivers/char/msbusmouse.c | mouse.present = 0; |
mouse | 203 | drivers/char/msbusmouse.c | if (mouse.present == 0) |
mouse | 484 | drivers/char/psaux.c | static struct mouse psaux_mouse = { |
mouse | 109 | drivers/char/softdog.c | static struct mouse softdog_mouse={ |
mouse | 216 | drivers/char/wdt.c | static struct mouse wdt_mouse= |
mouse | 224 | drivers/char/wdt.c | static struct mouse temp_mouse= |
mouse | 15 | include/linux/mouse.h | struct mouse * next, * prev; |
mouse | 18 | include/linux/mouse.h | extern int mouse_register(struct mouse * mouse); |
mouse | 19 | include/linux/mouse.h | extern int mouse_deregister(struct mouse * mouse); |