visorinput_dev 108 drivers/staging/unisys/visorinput/visorinput.c struct input_dev *visorinput_dev; visorinput_dev 260 drivers/staging/unisys/visorinput/visorinput.c static int visorinput_open(struct input_dev *visorinput_dev) visorinput_dev 262 drivers/staging/unisys/visorinput/visorinput.c struct visorinput_devdata *devdata = input_get_drvdata(visorinput_dev); visorinput_dev 265 drivers/staging/unisys/visorinput/visorinput.c dev_err(&visorinput_dev->dev, visorinput_dev 267 drivers/staging/unisys/visorinput/visorinput.c __func__, visorinput_dev); visorinput_dev 270 drivers/staging/unisys/visorinput/visorinput.c dev_dbg(&visorinput_dev->dev, "%s opened\n", __func__); visorinput_dev 288 drivers/staging/unisys/visorinput/visorinput.c static void visorinput_close(struct input_dev *visorinput_dev) visorinput_dev 290 drivers/staging/unisys/visorinput/visorinput.c struct visorinput_devdata *devdata = input_get_drvdata(visorinput_dev); visorinput_dev 293 drivers/staging/unisys/visorinput/visorinput.c dev_err(&visorinput_dev->dev, visorinput_dev 295 drivers/staging/unisys/visorinput/visorinput.c __func__, visorinput_dev); visorinput_dev 298 drivers/staging/unisys/visorinput/visorinput.c dev_dbg(&visorinput_dev->dev, "%s closed\n", __func__); visorinput_dev 325 drivers/staging/unisys/visorinput/visorinput.c struct input_dev *visorinput_dev = input_allocate_device(); visorinput_dev 327 drivers/staging/unisys/visorinput/visorinput.c if (!visorinput_dev) visorinput_dev 330 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->name = "visor Keyboard"; visorinput_dev 331 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->phys = "visorkbd:input0"; visorinput_dev 332 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->id.bustype = BUS_VIRTUAL; visorinput_dev 333 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->id.vendor = 0x0001; visorinput_dev 334 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->id.product = 0x0001; visorinput_dev 335 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->id.version = 0x0100; visorinput_dev 337 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->evbit[0] = BIT_MASK(EV_KEY) | visorinput_dev 340 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->ledbit[0] = BIT_MASK(LED_CAPSL) | visorinput_dev 343 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->keycode = keycode_table; visorinput_dev 345 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->keycodesize = 1; visorinput_dev 346 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->keycodemax = KEYCODE_TABLE_BYTES; visorinput_dev 348 drivers/staging/unisys/visorinput/visorinput.c for (i = 1; i < visorinput_dev->keycodemax; i++) visorinput_dev 349 drivers/staging/unisys/visorinput/visorinput.c set_bit(keycode_table[i], visorinput_dev->keybit); visorinput_dev 350 drivers/staging/unisys/visorinput/visorinput.c for (i = 1; i < visorinput_dev->keycodemax; i++) visorinput_dev 352 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->keybit); visorinput_dev 354 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->open = visorinput_open; visorinput_dev 355 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->close = visorinput_close; visorinput_dev 357 drivers/staging/unisys/visorinput/visorinput.c input_set_drvdata(visorinput_dev, devdata); visorinput_dev 359 drivers/staging/unisys/visorinput/visorinput.c return visorinput_dev; visorinput_dev 365 drivers/staging/unisys/visorinput/visorinput.c struct input_dev *visorinput_dev = input_allocate_device(); visorinput_dev 367 drivers/staging/unisys/visorinput/visorinput.c if (!visorinput_dev) visorinput_dev 370 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->name = "visor Mouse"; visorinput_dev 371 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->phys = "visormou:input0"; visorinput_dev 372 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->id.bustype = BUS_VIRTUAL; visorinput_dev 373 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->id.vendor = 0x0001; visorinput_dev 374 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->id.product = 0x0002; visorinput_dev 375 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->id.version = 0x0100; visorinput_dev 377 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); visorinput_dev 378 drivers/staging/unisys/visorinput/visorinput.c set_bit(BTN_LEFT, visorinput_dev->keybit); visorinput_dev 379 drivers/staging/unisys/visorinput/visorinput.c set_bit(BTN_RIGHT, visorinput_dev->keybit); visorinput_dev 380 drivers/staging/unisys/visorinput/visorinput.c set_bit(BTN_MIDDLE, visorinput_dev->keybit); visorinput_dev 386 drivers/staging/unisys/visorinput/visorinput.c input_set_abs_params(visorinput_dev, ABS_X, 0, xres, 0, 0); visorinput_dev 387 drivers/staging/unisys/visorinput/visorinput.c input_set_abs_params(visorinput_dev, ABS_Y, 0, yres, 0, 0); visorinput_dev 389 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->open = visorinput_open; visorinput_dev 390 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev->close = visorinput_close; visorinput_dev 392 drivers/staging/unisys/visorinput/visorinput.c input_set_drvdata(visorinput_dev, devdata); visorinput_dev 393 drivers/staging/unisys/visorinput/visorinput.c input_set_capability(visorinput_dev, EV_REL, REL_WHEEL); visorinput_dev 395 drivers/staging/unisys/visorinput/visorinput.c return visorinput_dev; visorinput_dev 436 drivers/staging/unisys/visorinput/visorinput.c devdata->visorinput_dev = setup_client_keyboard visorinput_dev 438 drivers/staging/unisys/visorinput/visorinput.c if (!devdata->visorinput_dev) visorinput_dev 449 drivers/staging/unisys/visorinput/visorinput.c devdata->visorinput_dev = setup_client_mouse(devdata, xres, visorinput_dev 451 drivers/staging/unisys/visorinput/visorinput.c if (!devdata->visorinput_dev) visorinput_dev 468 drivers/staging/unisys/visorinput/visorinput.c if (input_register_device(devdata->visorinput_dev)) { visorinput_dev 469 drivers/staging/unisys/visorinput/visorinput.c input_free_device(devdata->visorinput_dev); visorinput_dev 511 drivers/staging/unisys/visorinput/visorinput.c static void unregister_client_input(struct input_dev *visorinput_dev) visorinput_dev 513 drivers/staging/unisys/visorinput/visorinput.c if (visorinput_dev) visorinput_dev 514 drivers/staging/unisys/visorinput/visorinput.c input_unregister_device(visorinput_dev); visorinput_dev 535 drivers/staging/unisys/visorinput/visorinput.c unregister_client_input(devdata->visorinput_dev); visorinput_dev 543 drivers/staging/unisys/visorinput/visorinput.c static void handle_locking_key(struct input_dev *visorinput_dev, int keycode, visorinput_dev 562 drivers/staging/unisys/visorinput/visorinput.c if (test_bit(led, visorinput_dev->led) != desired_state) { visorinput_dev 563 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, keycode, 1); visorinput_dev 564 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev); visorinput_dev 565 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, keycode, 0); visorinput_dev 566 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev); visorinput_dev 567 drivers/staging/unisys/visorinput/visorinput.c __change_bit(led, visorinput_dev->led); visorinput_dev 606 drivers/staging/unisys/visorinput/visorinput.c struct input_dev *visorinput_dev; visorinput_dev 614 drivers/staging/unisys/visorinput/visorinput.c visorinput_dev = devdata->visorinput_dev; visorinput_dev 621 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, keycode, 1); visorinput_dev 622 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev); visorinput_dev 625 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, keycode, 0); visorinput_dev 626 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev); visorinput_dev 629 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, keycode, 1); visorinput_dev 630 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev); visorinput_dev 631 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, keycode, 0); visorinput_dev 632 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev); visorinput_dev 635 drivers/staging/unisys/visorinput/visorinput.c handle_locking_key(visorinput_dev, keycode, visorinput_dev 641 drivers/staging/unisys/visorinput/visorinput.c input_report_abs(visorinput_dev, ABS_X, xmotion); visorinput_dev 642 drivers/staging/unisys/visorinput/visorinput.c input_report_abs(visorinput_dev, ABS_Y, ymotion); visorinput_dev 643 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev); visorinput_dev 649 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, button, 1); visorinput_dev 650 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev); visorinput_dev 656 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, button, 0); visorinput_dev 657 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev); visorinput_dev 663 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, button, 1); visorinput_dev 664 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev); visorinput_dev 665 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, button, 0); visorinput_dev 666 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev); visorinput_dev 673 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, button, 1); visorinput_dev 674 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev); visorinput_dev 675 drivers/staging/unisys/visorinput/visorinput.c input_report_key(visorinput_dev, button, 0); visorinput_dev 676 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev); visorinput_dev 680 drivers/staging/unisys/visorinput/visorinput.c input_report_rel(visorinput_dev, REL_WHEEL, 1); visorinput_dev 681 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev); visorinput_dev 684 drivers/staging/unisys/visorinput/visorinput.c input_report_rel(visorinput_dev, REL_WHEEL, -1); visorinput_dev 685 drivers/staging/unisys/visorinput/visorinput.c input_sync(visorinput_dev);