Home
last modified time | relevance | path

Searched refs:button_dev (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/arch/powerpc/platforms/cell/
Dcbe_powerbutton.c16 static struct input_dev *button_dev; variable
23 input_report_key(button_dev, KEY_POWER, 1); in cbe_powerbutton_handle_pmi()
24 input_sync(button_dev); in cbe_powerbutton_handle_pmi()
25 input_report_key(button_dev, KEY_POWER, 0); in cbe_powerbutton_handle_pmi()
26 input_sync(button_dev); in cbe_powerbutton_handle_pmi()
76 button_dev = dev; in cbe_powerbutton_init()
98 input_free_device(button_dev); in cbe_powerbutton_exit()
/Linux-v5.10/Documentation/input/
Dinput-programming.rst19 static struct input_dev *button_dev;
23 input_report_key(button_dev, BTN_0, inb(BUTTON_PORT) & 1);
24 input_sync(button_dev);
37 button_dev = input_allocate_device();
38 if (!button_dev) {
44 button_dev->evbit[0] = BIT_MASK(EV_KEY);
45 button_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0);
47 error = input_register_device(button_dev);
56 input_free_device(button_dev);
64 input_unregister_device(button_dev);
[all …]
/Linux-v5.10/drivers/media/usb/pwc/
Dpwc-if.c209 if (pdev->button_dev) { in pwc_snapshot_button()
210 input_report_key(pdev->button_dev, KEY_CAMERA, down); in pwc_snapshot_button()
211 input_sync(pdev->button_dev); in pwc_snapshot_button()
1136 pdev->button_dev = input_allocate_device(); in usb_pwc_probe()
1137 if (!pdev->button_dev) { in usb_pwc_probe()
1145 pdev->button_dev->name = "PWC snapshot button"; in usb_pwc_probe()
1146 pdev->button_dev->phys = pdev->button_phys; in usb_pwc_probe()
1147 usb_to_input_id(pdev->udev, &pdev->button_dev->id); in usb_pwc_probe()
1148 pdev->button_dev->dev.parent = &pdev->udev->dev; in usb_pwc_probe()
1149 pdev->button_dev->evbit[0] = BIT_MASK(EV_KEY); in usb_pwc_probe()
[all …]
Dpwc.h279 struct input_dev *button_dev; /* webcam snapshot button input */ member