Lines Matching refs:generic_inputdev
54 static struct input_dev *generic_inputdev; variable
213 if (test_bit(SW_LID, generic_inputdev->swbit)) { in loongson_hotkey_resume()
230 if (test_bit(SW_LID, generic_inputdev->sw) && !(status & (1 << SW_LID))) { in loongson_hotkey_resume()
234 sparse_keymap_report_entry(generic_inputdev, &ke, 1, true); in loongson_hotkey_resume()
447 ret = sparse_keymap_setup(generic_inputdev, hotkey_keycode_map, NULL); in event_init()
450 input_free_device(generic_inputdev); in event_init()
451 generic_inputdev = NULL; in event_init()
477 ke = sparse_keymap_entry_from_scancode(generic_inputdev, scan_code); in event_notify()
487 sparse_keymap_report_entry(generic_inputdev, ke, 1, true); in event_notify()
567 generic_inputdev = input_allocate_device(); in generic_acpi_laptop_init()
568 if (!generic_inputdev) { in generic_acpi_laptop_init()
574 generic_inputdev->name = in generic_acpi_laptop_init()
576 generic_inputdev->phys = ACPI_LAPTOP_NAME "/input0"; in generic_acpi_laptop_init()
577 generic_inputdev->id.bustype = BUS_HOST; in generic_acpi_laptop_init()
578 generic_inputdev->dev.parent = NULL; in generic_acpi_laptop_init()
584 input_free_device(generic_inputdev); in generic_acpi_laptop_init()
591 ret = input_register_device(generic_inputdev); in generic_acpi_laptop_init()
593 input_free_device(generic_inputdev); in generic_acpi_laptop_init()
614 if (generic_inputdev) { in generic_acpi_laptop_exit()
616 input_unregister_device(generic_inputdev); in generic_acpi_laptop_exit()
618 input_free_device(generic_inputdev); in generic_acpi_laptop_exit()