Lines Matching refs:mousedev

78 void busmouse_add_movementbuttons(int mousedev, int dx, int dy, int buttons)  in busmouse_add_movementbuttons()  argument
80 struct busmouse_data *mse = busmouse_data[mousedev]; in busmouse_add_movementbuttons()
129 void busmouse_add_movement(int mousedev, int dx, int dy) in busmouse_add_movement() argument
131 struct busmouse_data *mse = busmouse_data[mousedev]; in busmouse_add_movement()
133 busmouse_add_movementbuttons(mousedev, dx, dy, mse->buttons); in busmouse_add_movement()
148 void busmouse_add_buttons(int mousedev, int clear, int eor) in busmouse_add_buttons() argument
150 struct busmouse_data *mse = busmouse_data[mousedev]; in busmouse_add_buttons()
152 busmouse_add_movementbuttons(mousedev, 0, 0, (mse->buttons & ~clear) ^ eor); in busmouse_add_buttons()
189 unsigned int mousedev; in busmouse_open() local
192 mousedev = DEV_TO_MOUSE(inode->i_rdev); in busmouse_open()
193 if (mousedev >= NR_MICE) in busmouse_open()
197 mse = busmouse_data[mousedev]; in busmouse_open()
407 int unregister_busmouse(int mousedev) in unregister_busmouse() argument
411 if (mousedev < 0) in unregister_busmouse()
413 if (mousedev >= NR_MICE) { in unregister_busmouse()
415 " mousedev %d\n", mousedev); in unregister_busmouse()
421 if (!busmouse_data[mousedev]) { in unregister_busmouse()
423 " on mousedev %d\n", mousedev); in unregister_busmouse()
427 if (busmouse_data[mousedev]->active) { in unregister_busmouse()
429 " on mousedev %d\n", mousedev); in unregister_busmouse()
433 err = misc_deregister(&busmouse_data[mousedev]->miscdev); in unregister_busmouse()
435 kfree(busmouse_data[mousedev]); in unregister_busmouse()
436 busmouse_data[mousedev] = NULL; in unregister_busmouse()