tag | line | file | source code |
mouse | 31 | kernel/chr_drv/mouse.c | static struct mouse_status mouse; |
mouse | 54 | kernel/chr_drv/mouse.c | mouse.buttons = buttons; |
mouse | 55 | kernel/chr_drv/mouse.c | mouse.latch_buttons |= buttons; |
mouse | 56 | kernel/chr_drv/mouse.c | mouse.dx += dx; |
mouse | 57 | kernel/chr_drv/mouse.c | mouse.dy += dy; |
mouse | 58 | kernel/chr_drv/mouse.c | mouse.ready = 1; |
mouse | 59 | kernel/chr_drv/mouse.c | if (mouse.inode && mouse.inode->i_wait) |
mouse | 60 | kernel/chr_drv/mouse.c | wake_up(&mouse.inode->i_wait); |
mouse | 68 | kernel/chr_drv/mouse.c | mouse.active = 0; |
mouse | 69 | kernel/chr_drv/mouse.c | mouse.ready = 0; |
mouse | 70 | kernel/chr_drv/mouse.c | mouse.inode = NULL; |
mouse | 76 | kernel/chr_drv/mouse.c | if (mouse.active) |
mouse | 78 | kernel/chr_drv/mouse.c | if (!mouse.present) |
mouse | 80 | kernel/chr_drv/mouse.c | mouse.active = 1; |
mouse | 81 | kernel/chr_drv/mouse.c | mouse.ready = 0; |
mouse | 82 | kernel/chr_drv/mouse.c | mouse.inode = inode; |
mouse | 83 | kernel/chr_drv/mouse.c | mouse.dx = 0; |
mouse | 84 | kernel/chr_drv/mouse.c | mouse.dy = 0; |
mouse | 85 | kernel/chr_drv/mouse.c | mouse.buttons = mouse.latch_buttons = 0x80; |
mouse | 89 | kernel/chr_drv/mouse.c | mouse.active = 0; |
mouse | 90 | kernel/chr_drv/mouse.c | mouse.ready = 0; |
mouse | 91 | kernel/chr_drv/mouse.c | mouse.inode = NULL; |
mouse | 107 | kernel/chr_drv/mouse.c | if (!mouse.ready) return -EAGAIN; |
mouse | 111 | kernel/chr_drv/mouse.c | put_fs_byte(mouse.latch_buttons | 0x80, buffer); |
mouse | 113 | kernel/chr_drv/mouse.c | if (mouse.dx < -127) mouse.dx = -127; |
mouse | 114 | kernel/chr_drv/mouse.c | if (mouse.dx > 127) mouse.dx = 127; |
mouse | 116 | kernel/chr_drv/mouse.c | put_fs_byte((char)mouse.dx, buffer + 1); |
mouse | 118 | kernel/chr_drv/mouse.c | if (mouse.dy < -127) mouse.dy = -127; |
mouse | 119 | kernel/chr_drv/mouse.c | if (mouse.dy > 127) mouse.dy = 127; |
mouse | 121 | kernel/chr_drv/mouse.c | put_fs_byte((char) -mouse.dy, buffer + 2); |
mouse | 126 | kernel/chr_drv/mouse.c | mouse.dx = 0; |
mouse | 127 | kernel/chr_drv/mouse.c | mouse.dy = 0; |
mouse | 128 | kernel/chr_drv/mouse.c | mouse.latch_buttons = mouse.buttons; |
mouse | 129 | kernel/chr_drv/mouse.c | mouse.ready = 0; |
mouse | 139 | kernel/chr_drv/mouse.c | if (mouse.ready) |
mouse | 166 | kernel/chr_drv/mouse.c | mouse.present = 0; |
mouse | 174 | kernel/chr_drv/mouse.c | mouse.present = 1; |
mouse | 175 | kernel/chr_drv/mouse.c | mouse.active = 0; |
mouse | 176 | kernel/chr_drv/mouse.c | mouse.ready = 0; |
mouse | 177 | kernel/chr_drv/mouse.c | mouse.buttons = mouse.latch_buttons = 0x80; |
mouse | 178 | kernel/chr_drv/mouse.c | mouse.dx = 0; |
mouse | 179 | kernel/chr_drv/mouse.c | mouse.dy = 0; |