Lines Matching refs:switches
158 struct input_dev *switches; member
432 priv->switches = devm_input_allocate_device(&device->dev); in intel_hid_switches_setup()
433 if (!priv->switches) in intel_hid_switches_setup()
436 __set_bit(EV_SW, priv->switches->evbit); in intel_hid_switches_setup()
437 __set_bit(SW_TABLET_MODE, priv->switches->swbit); in intel_hid_switches_setup()
439 priv->switches->name = "Intel HID switches"; in intel_hid_switches_setup()
440 priv->switches->id.bustype = BUS_HOST; in intel_hid_switches_setup()
441 return input_register_device(priv->switches); in intel_hid_switches_setup()
455 input_report_switch(priv->switches, SW_TABLET_MODE, m); in report_tablet_mode_state()
456 input_sync(priv->switches); in report_tablet_mode_state()
490 if (!priv->switches && priv->auto_add_switch && (event == 0xcc || event == 0xcd)) { in notify_handler()
515 report_tablet_mode_event(priv->switches, event); in notify_handler()
555 if (report_tablet_mode_event(priv->switches, event)) in notify_handler()