Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/platform/x86/
Dclassmate-laptop.c45 struct input_dev *inputdev; in cmpc_add_acpi_notify_device() local
48 inputdev = input_allocate_device(); in cmpc_add_acpi_notify_device()
49 if (!inputdev) in cmpc_add_acpi_notify_device()
51 inputdev->name = name; in cmpc_add_acpi_notify_device()
52 inputdev->dev.parent = &acpi->dev; in cmpc_add_acpi_notify_device()
53 idev_init(inputdev); in cmpc_add_acpi_notify_device()
54 error = input_register_device(inputdev); in cmpc_add_acpi_notify_device()
56 input_free_device(inputdev); in cmpc_add_acpi_notify_device()
59 dev_set_drvdata(&acpi->dev, inputdev); in cmpc_add_acpi_notify_device()
65 struct input_dev *inputdev = dev_get_drvdata(&acpi->dev); in cmpc_remove_acpi_notify_device() local
[all …]
Dideapad-laptop.c90 struct input_dev *inputdev; member
678 struct input_dev *inputdev; in ideapad_input_init() local
681 inputdev = input_allocate_device(); in ideapad_input_init()
682 if (!inputdev) in ideapad_input_init()
685 inputdev->name = "Ideapad extra buttons"; in ideapad_input_init()
686 inputdev->phys = "ideapad/input0"; in ideapad_input_init()
687 inputdev->id.bustype = BUS_HOST; in ideapad_input_init()
688 inputdev->dev.parent = &priv->platform_device->dev; in ideapad_input_init()
690 error = sparse_keymap_setup(inputdev, ideapad_keymap, NULL); in ideapad_input_init()
696 error = input_register_device(inputdev); in ideapad_input_init()
[all …]
Dasus-wmi.c169 struct input_dev *inputdev; member
223 asus->inputdev = input_allocate_device(); in asus_wmi_input_init()
224 if (!asus->inputdev) in asus_wmi_input_init()
227 asus->inputdev->name = asus->driver->input_name; in asus_wmi_input_init()
228 asus->inputdev->phys = asus->driver->input_phys; in asus_wmi_input_init()
229 asus->inputdev->id.bustype = BUS_HOST; in asus_wmi_input_init()
230 asus->inputdev->dev.parent = &asus->platform_device->dev; in asus_wmi_input_init()
231 set_bit(EV_REP, asus->inputdev->evbit); in asus_wmi_input_init()
233 err = sparse_keymap_setup(asus->inputdev, asus->driver->keymap, NULL); in asus_wmi_input_init()
237 err = input_register_device(asus->inputdev); in asus_wmi_input_init()
[all …]
Deeepc-laptop.c164 struct input_dev *inputdev; member
1183 eeepc->inputdev = input; in eeepc_input_init()
1193 if (eeepc->inputdev) in eeepc_input_exit()
1194 input_unregister_device(eeepc->inputdev); in eeepc_input_exit()
1195 eeepc->inputdev = NULL; in eeepc_input_exit()
1203 if (!eeepc->inputdev) in eeepc_input_notify()
1205 if (!sparse_keymap_report_event(eeepc->inputdev, event, 1, true)) in eeepc_input_notify()
Dasus-laptop.c245 struct input_dev *inputdev; member
1476 if (!asus->inputdev) in asus_input_notify()
1478 if (!sparse_keymap_report_event(asus->inputdev, event, 1, true)) in asus_input_notify()
1507 asus->inputdev = input; in asus_input_init()
1517 if (asus->inputdev) in asus_input_exit()
1518 input_unregister_device(asus->inputdev); in asus_input_exit()
1519 asus->inputdev = NULL; in asus_input_exit()
/Linux-v5.4/drivers/input/tablet/
Daiptek.c289 struct input_dev *inputdev; /* input device struct */ member
416 struct input_dev *inputdev = aiptek->inputdev; in aiptek_irq() local
475 input_report_key(inputdev, BTN_LEFT, left); in aiptek_irq()
476 input_report_key(inputdev, BTN_MIDDLE, middle); in aiptek_irq()
477 input_report_key(inputdev, BTN_RIGHT, right); in aiptek_irq()
479 input_report_abs(inputdev, ABS_MISC, in aiptek_irq()
481 input_report_rel(inputdev, REL_X, x); in aiptek_irq()
482 input_report_rel(inputdev, REL_Y, y); in aiptek_irq()
488 input_report_rel(inputdev, REL_WHEEL, in aiptek_irq()
493 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 …]
/Linux-v5.4/drivers/media/rc/
Dati_remote.c356 static int ati_remote_input_open(struct input_dev *inputdev) in ati_remote_input_open() argument
358 struct ati_remote *ati_remote = input_get_drvdata(inputdev); in ati_remote_input_open()
362 static void ati_remote_input_close(struct input_dev *inputdev) in ati_remote_input_close() argument
364 struct ati_remote *ati_remote = input_get_drvdata(inputdev); in ati_remote_input_close()