Lines Matching refs:mouse_dev

199 			send_mouse_event(sp->remote.mouse_dev, &input);  in ibmasm_handle_mouse_interrupt()
213 struct input_dev *mouse_dev, *keybd_dev; in ibmasm_init_remote_input_dev() local
218 sp->remote.mouse_dev = mouse_dev = input_allocate_device(); in ibmasm_init_remote_input_dev()
221 if (!mouse_dev || !keybd_dev) in ibmasm_init_remote_input_dev()
224 mouse_dev->id.bustype = BUS_PCI; in ibmasm_init_remote_input_dev()
225 mouse_dev->id.vendor = pdev->vendor; in ibmasm_init_remote_input_dev()
226 mouse_dev->id.product = pdev->device; in ibmasm_init_remote_input_dev()
227 mouse_dev->id.version = 1; in ibmasm_init_remote_input_dev()
228 mouse_dev->dev.parent = sp->dev; in ibmasm_init_remote_input_dev()
229 mouse_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); in ibmasm_init_remote_input_dev()
230 mouse_dev->keybit[BIT_WORD(BTN_MOUSE)] = BIT_MASK(BTN_LEFT) | in ibmasm_init_remote_input_dev()
232 set_bit(BTN_TOUCH, mouse_dev->keybit); in ibmasm_init_remote_input_dev()
233 mouse_dev->name = "ibmasm RSA I remote mouse"; in ibmasm_init_remote_input_dev()
234 input_set_abs_params(mouse_dev, ABS_X, 0, MOUSE_X_MAX, 0, 0); in ibmasm_init_remote_input_dev()
235 input_set_abs_params(mouse_dev, ABS_Y, 0, MOUSE_Y_MAX, 0, 0); in ibmasm_init_remote_input_dev()
252 error = input_register_device(mouse_dev); in ibmasm_init_remote_input_dev()
267 input_unregister_device(mouse_dev); in ibmasm_init_remote_input_dev()
268 mouse_dev = NULL; /* so we don't try to free it again below */ in ibmasm_init_remote_input_dev()
270 input_free_device(mouse_dev); in ibmasm_init_remote_input_dev()
279 input_unregister_device(sp->remote.mouse_dev); in ibmasm_free_remote_input_dev()