| /linux/drivers/platform/x86/lenovo/ |
| H A D | ymc.c | 34 * Yoga Book 9 14IAH10: SW_TABLET_MODE is reported by the 37 * the SW_TABLET_MODE capability. 69 { KE_SW, 0x01, { .sw = { SW_TABLET_MODE, 0 } } }, 71 { KE_SW, 0x02, { .sw = { SW_TABLET_MODE, 1 } } }, 73 { KE_SW, 0x03, { .sw = { SW_TABLET_MODE, 1 } } }, 75 { KE_SW, 0x04, { .sw = { SW_TABLET_MODE, 1 } } },
|
| H A D | yb9-kbdock.c | 32 * SW_TABLET_MODE=1 is reported when the keyboard is detached; 33 * SW_TABLET_MODE=0 when docked in either position (keyboard present). 133 input_report_switch(d->input_dev, SW_TABLET_MODE, tablet); in yb9_kbdock_report() 136 dev_dbg(&d->wdev->dev, "BKBD=%u SW_TABLET_MODE=%d\n", bkbd, tablet); in yb9_kbdock_report() 211 input_set_capability(input_dev, EV_SW, SW_TABLET_MODE); in yb9_kbdock_block_probe()
|
| H A D | Kconfig | 54 either screen; this driver reports SW_TABLET_MODE input events based 67 This driver maps the Tablet Mode Control switch to SW_TABLET_MODE input
|
| H A D | thinkpad_acpi.c | 2212 SW_TABLET_MODE, !!state); in tpacpi_input_send_tabletsw() 3551 input_set_capability(tpacpi_inputdev, EV_SW, SW_TABLET_MODE); in hotkey_init() 3553 SW_TABLET_MODE, tabletsw_state); in hotkey_init() 3779 * duplicates from intel-vbtn, which already emits SW_TABLET_MODE events in hotkey_notify_6xxx()
|
| /linux/drivers/hid/ |
| H A D | hid-google-hammer.c | 122 SW_TABLET_MODE, in cbas_ec_notify() 156 input_report_switch(cbas_ec.input, SW_TABLET_MODE, 1); in cbas_ec_resume() 197 input_set_capability(input, EV_SW, SW_TABLET_MODE); in __cbas_ec_probe() 219 input_report_switch(input, SW_TABLET_MODE, in __cbas_ec_probe() 402 input_report_switch(cbas_ec.input, SW_TABLET_MODE, folded); in hammer_folded_event() 547 input_report_switch(cbas_ec.input, SW_TABLET_MODE, 1); in hammer_remove()
|
| H A D | hid-debug.c | 3567 [SW_TABLET_MODE] = "TabletMode",
|
| /linux/drivers/platform/x86/ |
| H A D | xo15-ebook.c | 53 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state() 112 set_bit(SW_TABLET_MODE, input->swbit); in ebook_switch_probe()
|
| H A D | fujitsu-tablet.c | 205 input_report_switch(fujitsu.idev, SW_TABLET_MODE, tablet_mode); in fujitsu_send_state() 253 input_set_capability(idev, EV_SW, SW_TABLET_MODE); in input_fujitsu_setup()
|
| H A D | acer-wmi.c | 2338 input_report_switch(acer_wmi_input_dev, SW_TABLET_MODE, sw_tablet_mode); in acer_rfkill_update() 2352 input_report_switch(acer_wmi_input_dev, SW_TABLET_MODE, sw_tablet_mode); in acer_rfkill_set() 2753 input_set_capability(acer_wmi_input_dev, EV_SW, SW_TABLET_MODE); in get_wmid_devices()
|
| H A D | asus-wmi.c | 715 input_report_switch(asus->inputdev, SW_TABLET_MODE, in asus_wmi_tablet_sw_init() 727 input_set_capability(asus->inputdev, EV_SW, SW_TABLET_MODE); in asus_wmi_input_init()
|
| /linux/drivers/platform/x86/intel/ |
| H A D | vbtn.c | 58 * SW_DOCK=1 when in laptop-mode (in tandem with setting SW_TABLET_MODE=0). 65 { KE_SW, 0xCC, { .sw = { SW_TABLET_MODE, 1 } } }, /* Tablet */ 66 { KE_SW, 0xCD, { .sw = { SW_TABLET_MODE, 0 } } }, /* Laptop */ 93 input_report_switch(priv->switches_dev, SW_TABLET_MODE, m); in detect_tablet_mode() 212 * but simply always return 0, which we translate to SW_TABLET_MODE=1. This in 216 * Since the problem of wrongly reporting SW_TABLET_MODE=1 in combination 218 * not even notice when SW_TABLET_MODE is not being reported, a DMI based allow 222 * SW_TABLET_MODE with a chassis-type of 8 ("Portable") or 10 ("Notebook"),
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-driver-lenovo-yb9-kbdock | 18 SW_TABLET_MODE input events are also emitted: 0 when the keyboard
|
| /linux/drivers/platform/surface/ |
| H A D | surface_aggregator_tabletsw.c | 102 /* Send SW_TABLET_MODE event. */ in ssam_tablet_sw_update_workfn() 104 input_report_switch(sw->mode_switch, SW_TABLET_MODE, tablet); in ssam_tablet_sw_update_workfn() 159 input_set_capability(sw->mode_switch, EV_SW, SW_TABLET_MODE); in ssam_tablet_sw_probe() 160 input_report_switch(sw->mode_switch, SW_TABLET_MODE, tablet); in ssam_tablet_sw_probe()
|
| H A D | surface_dtx.c | 781 input_report_switch(ddev->mode_switch, SW_TABLET_MODE, tablet); in sdtx_device_mode_workfn() 850 input_report_switch(ddev->mode_switch, SW_TABLET_MODE, tablet); in __sdtx_device_state_update_mode() 1008 input_set_capability(ddev->mode_switch, EV_SW, SW_TABLET_MODE); in sdtx_device_init() 1009 input_report_switch(ddev->mode_switch, SW_TABLET_MODE, tablet_mode); in sdtx_device_init()
|
| H A D | Kconfig | 147 input device, sending the standard SW_TABLET_MODE event on mode change.
|
| /linux/drivers/platform/x86/hp/ |
| H A D | hp-wmi.c | 1649 if (test_bit(SW_TABLET_MODE, hp_wmi_input_dev->swbit)) in hp_wmi_rfkill2_setup() 1650 input_report_switch(hp_wmi_input_dev, SW_TABLET_MODE, in hp_wmi_rfkill2_setup() 1769 __set_bit(SW_TABLET_MODE, hp_wmi_input_dev->swbit); in omen_thermal_profile_ec_timer_set() 1770 input_report_switch(hp_wmi_input_dev, SW_TABLET_MODE, val); in omen_thermal_profile_ec_timer_set() 2860 if (test_bit(SW_TABLET_MODE, hp_wmi_input_dev->swbit)) in hp_wmi_setup_fan_settings() 2861 input_report_switch(hp_wmi_input_dev, SW_TABLET_MODE, in hp_wmi_setup_fan_settings()
|
| /linux/drivers/input/misc/ |
| H A D | soc_button_array.c | 516 { "tablet_mode", 0, EV_SW, SW_TABLET_MODE, false, false, false },
|
| H A D | Kconfig | 922 Expose SW_TABLET_MODE for AMD convertible laptops whose 926 environments react to SW_TABLET_MODE when the device is folded
|
| /linux/include/dt-bindings/input/ |
| H A D | linux-event-codes.h | 936 #define SW_TABLET_MODE 0x01 /* set = tablet mode */ 907 #define SW_TABLET_MODE global() macro
|
| /linux/include/uapi/linux/ |
| H A D | input-event-codes.h | 936 #define SW_TABLET_MODE 0x01 /* set = tablet mode */ macro
|
| /linux/drivers/platform/x86/dell/ |
| H A D | dell-wmi-base.c | 349 * Note SW_TABLET_MODE is already reported through the intel_vbtn 451 SW_TABLET_MODE, !le16_to_cpu(buffer[0])); in dell_wmi_process_key()
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | sdm850-lenovo-yoga-c630.dts | 57 linux,code = <SW_TABLET_MODE>;
|
| H A D | sc8280xp-huawei-gaokun3.dts | 95 linux,code = <SW_TABLET_MODE>;
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3566-pinetab2.dtsi | 81 linux,code = <SW_TABLET_MODE>;
|
| /linux/Documentation/admin-guide/laptops/ |
| H A D | thinkpad-acpi.rst | 540 SW_TABLET_MODE Tablet ThinkPads HKEY events 0x5009 and 0x500A
|