Lines Matching refs:switches
183 struct input_dev *switches; member
456 priv->switches = devm_input_allocate_device(&device->dev); in intel_hid_switches_setup()
457 if (!priv->switches) in intel_hid_switches_setup()
460 __set_bit(EV_SW, priv->switches->evbit); in intel_hid_switches_setup()
461 __set_bit(SW_TABLET_MODE, priv->switches->swbit); in intel_hid_switches_setup()
463 priv->switches->name = "Intel HID switches"; in intel_hid_switches_setup()
464 priv->switches->id.bustype = BUS_HOST; in intel_hid_switches_setup()
465 return input_register_device(priv->switches); in intel_hid_switches_setup()
479 input_report_switch(priv->switches, SW_TABLET_MODE, m); in report_tablet_mode_state()
480 input_sync(priv->switches); in report_tablet_mode_state()
514 if (!priv->switches && enable_sw_tablet_mode == TABLET_SW_AT_EVENT && in notify_handler()
540 report_tablet_mode_event(priv->switches, event); in notify_handler()
580 if (report_tablet_mode_event(priv->switches, event)) in notify_handler()