Home
last modified time | relevance | path

Searched refs:inputdev (Results 1 – 9 of 9) sorted by relevance

/drivers/platform/x86/
Dclassmate-laptop.c58 struct input_dev *inputdev; in cmpc_add_acpi_notify_device() local
61 inputdev = input_allocate_device(); in cmpc_add_acpi_notify_device()
62 if (!inputdev) in cmpc_add_acpi_notify_device()
64 inputdev->name = name; in cmpc_add_acpi_notify_device()
65 inputdev->dev.parent = &acpi->dev; in cmpc_add_acpi_notify_device()
66 idev_init(inputdev); in cmpc_add_acpi_notify_device()
67 error = input_register_device(inputdev); in cmpc_add_acpi_notify_device()
69 input_free_device(inputdev); in cmpc_add_acpi_notify_device()
72 dev_set_drvdata(&acpi->dev, inputdev); in cmpc_add_acpi_notify_device()
78 struct input_dev *inputdev = dev_get_drvdata(&acpi->dev); in cmpc_remove_acpi_notify_device() local
[all …]
Dtopstar-laptop.c27 struct input_dev *inputdev; member
76 if (!sparse_keymap_report_event(hkey->inputdev, event, 1, true)) in acpi_topstar_notify()
119 hkey->inputdev = input; in acpi_topstar_init_hkey()
158 input_unregister_device(tps_hkey->inputdev); in acpi_topstar_remove()
Dideapad-laptop.c101 struct input_dev *inputdev; member
689 struct input_dev *inputdev; in ideapad_input_init() local
692 inputdev = input_allocate_device(); in ideapad_input_init()
693 if (!inputdev) in ideapad_input_init()
696 inputdev->name = "Ideapad extra buttons"; in ideapad_input_init()
697 inputdev->phys = "ideapad/input0"; in ideapad_input_init()
698 inputdev->id.bustype = BUS_HOST; in ideapad_input_init()
699 inputdev->dev.parent = &priv->platform_device->dev; in ideapad_input_init()
701 error = sparse_keymap_setup(inputdev, ideapad_keymap, NULL); in ideapad_input_init()
707 error = input_register_device(inputdev); in ideapad_input_init()
[all …]
Dasus-wmi.c225 struct input_dev *inputdev; member
266 asus->inputdev = input_allocate_device(); in asus_wmi_input_init()
267 if (!asus->inputdev) in asus_wmi_input_init()
270 asus->inputdev->name = asus->driver->input_name; in asus_wmi_input_init()
271 asus->inputdev->phys = asus->driver->input_phys; in asus_wmi_input_init()
272 asus->inputdev->id.bustype = BUS_HOST; in asus_wmi_input_init()
273 asus->inputdev->dev.parent = &asus->platform_device->dev; in asus_wmi_input_init()
274 set_bit(EV_REP, asus->inputdev->evbit); in asus_wmi_input_init()
276 err = sparse_keymap_setup(asus->inputdev, asus->driver->keymap, NULL); in asus_wmi_input_init()
280 err = input_register_device(asus->inputdev); in asus_wmi_input_init()
[all …]
Deeepc-laptop.c173 struct input_dev *inputdev; member
1213 eeepc->inputdev = input; in eeepc_input_init()
1223 if (eeepc->inputdev) in eeepc_input_exit()
1224 input_unregister_device(eeepc->inputdev); in eeepc_input_exit()
1225 eeepc->inputdev = NULL; in eeepc_input_exit()
1233 if (!eeepc->inputdev) in eeepc_input_notify()
1235 if (!sparse_keymap_report_event(eeepc->inputdev, event, 1, true)) in eeepc_input_notify()
Dasus-laptop.c260 struct input_dev *inputdev; member
1491 if (!asus->inputdev) in asus_input_notify()
1493 if (!sparse_keymap_report_event(asus->inputdev, event, 1, true)) in asus_input_notify()
1522 asus->inputdev = input; in asus_input_init()
1532 if (asus->inputdev) in asus_input_exit()
1533 input_unregister_device(asus->inputdev); in asus_input_exit()
1534 asus->inputdev = NULL; in asus_input_exit()
/drivers/input/tablet/
Daiptek.c309 struct input_dev *inputdev; /* input device struct */ member
436 struct input_dev *inputdev = aiptek->inputdev; in aiptek_irq() local
495 input_report_key(inputdev, BTN_LEFT, left); in aiptek_irq()
496 input_report_key(inputdev, BTN_MIDDLE, middle); in aiptek_irq()
497 input_report_key(inputdev, BTN_RIGHT, right); in aiptek_irq()
499 input_report_abs(inputdev, ABS_MISC, in aiptek_irq()
501 input_report_rel(inputdev, REL_X, x); in aiptek_irq()
502 input_report_rel(inputdev, REL_Y, y); in aiptek_irq()
508 input_report_rel(inputdev, REL_WHEEL, in aiptek_irq()
513 input_report_key(inputdev, in aiptek_irq()
[all …]
Dgtco.c555 static int gtco_input_open(struct input_dev *inputdev) in gtco_input_open() argument
557 struct gtco *device = input_get_drvdata(inputdev); in gtco_input_open()
569 static void gtco_input_close(struct input_dev *inputdev) in gtco_input_close() argument
571 struct gtco *device = input_get_drvdata(inputdev); in gtco_input_close()
585 static void gtco_setup_caps(struct input_dev *inputdev) in gtco_setup_caps() argument
587 struct gtco *device = input_get_drvdata(inputdev); in gtco_setup_caps()
590 inputdev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS) | in gtco_setup_caps()
594 inputdev->mscbit[0] = BIT_MASK(MSC_SCAN) | BIT_MASK(MSC_SERIAL) | in gtco_setup_caps()
598 input_set_abs_params(inputdev, ABS_X, device->min_X, device->max_X, in gtco_setup_caps()
600 input_set_abs_params(inputdev, ABS_Y, device->min_Y, device->max_Y, in gtco_setup_caps()
[all …]
/drivers/media/rc/
Dati_remote.c366 static int ati_remote_input_open(struct input_dev *inputdev) in ati_remote_input_open() argument
368 struct ati_remote *ati_remote = input_get_drvdata(inputdev); in ati_remote_input_open()
372 static void ati_remote_input_close(struct input_dev *inputdev) in ati_remote_input_close() argument
374 struct ati_remote *ati_remote = input_get_drvdata(inputdev); in ati_remote_input_close()