Searched refs:jog_dev (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/char/
H A Dsonypi.c790 struct input_dev *jog_dev = sonypi_device.input_jog_dev; sonypi_report_input_event() local
798 input_report_rel(jog_dev, REL_WHEEL, 1); sonypi_report_input_event()
799 input_sync(jog_dev); sonypi_report_input_event()
804 input_report_rel(jog_dev, REL_WHEEL, -1); sonypi_report_input_event()
805 input_sync(jog_dev); sonypi_report_input_event()
810 kp.dev = jog_dev; sonypi_report_input_event()
1164 struct input_dev *jog_dev; sonypi_create_input_devices() local
1169 sonypi_device.input_jog_dev = jog_dev = input_allocate_device(); sonypi_create_input_devices()
1170 if (!jog_dev) sonypi_create_input_devices()
1173 jog_dev->name = "Sony Vaio Jogdial"; sonypi_create_input_devices()
1174 jog_dev->id.bustype = BUS_ISA; sonypi_create_input_devices()
1175 jog_dev->id.vendor = PCI_VENDOR_ID_SONY; sonypi_create_input_devices()
1176 jog_dev->dev.parent = &pdev->dev; sonypi_create_input_devices()
1178 jog_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL); sonypi_create_input_devices()
1179 jog_dev->keybit[BIT_WORD(BTN_MOUSE)] = BIT_MASK(BTN_MIDDLE); sonypi_create_input_devices()
1180 jog_dev->relbit[0] = BIT_MASK(REL_WHEEL); sonypi_create_input_devices()
1199 error = input_register_device(jog_dev); sonypi_create_input_devices()
1210 input_unregister_device(jog_dev); sonypi_create_input_devices()
1212 jog_dev = NULL; sonypi_create_input_devices()
1217 input_free_device(jog_dev); sonypi_create_input_devices()
/linux-4.1.27/drivers/platform/x86/
H A Dsony-laptop.c205 struct input_dev *jog_dev; member in struct:sony_laptop_input_s
389 struct input_dev *jog_dev = sony_laptop_input.jog_dev; sony_laptop_report_input_event() local
402 /* jog_dev events */ sony_laptop_report_input_event()
405 input_report_rel(jog_dev, REL_WHEEL, 1); sony_laptop_report_input_event()
406 input_sync(jog_dev); sony_laptop_report_input_event()
411 input_report_rel(jog_dev, REL_WHEEL, -1); sony_laptop_report_input_event()
412 input_sync(jog_dev); sony_laptop_report_input_event()
418 kp.dev = jog_dev; sony_laptop_report_input_event()
454 struct input_dev *jog_dev; sony_laptop_setup_input() local
505 jog_dev = input_allocate_device(); sony_laptop_setup_input()
506 if (!jog_dev) { sony_laptop_setup_input()
511 jog_dev->name = "Sony Vaio Jogdial"; sony_laptop_setup_input()
512 jog_dev->id.bustype = BUS_ISA; sony_laptop_setup_input()
513 jog_dev->id.vendor = PCI_VENDOR_ID_SONY; sony_laptop_setup_input()
514 jog_dev->dev.parent = &acpi_device->dev; sony_laptop_setup_input()
516 input_set_capability(jog_dev, EV_KEY, BTN_MIDDLE); sony_laptop_setup_input()
517 input_set_capability(jog_dev, EV_REL, REL_WHEEL); sony_laptop_setup_input()
519 error = input_register_device(jog_dev); sony_laptop_setup_input()
523 sony_laptop_input.jog_dev = jog_dev; sony_laptop_setup_input()
528 input_free_device(jog_dev); sony_laptop_setup_input()
570 if (sony_laptop_input.jog_dev) { sony_laptop_remove_input()
571 input_unregister_device(sony_laptop_input.jog_dev); sony_laptop_remove_input()
572 sony_laptop_input.jog_dev = NULL; sony_laptop_remove_input()

Completed in 104 milliseconds