Home
last modified time | relevance | path

Searched full:sw_tablet_mode (Results 1 – 23 of 23) sorted by relevance

/linux/drivers/platform/x86/intel/
H A Dvbtn.c58 * 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"),
H A Dhid.c36 "Enable SW_TABLET_MODE reporting -1:auto 0:off 1:at-first-event 2:at-probe. "
153 * Some convertible use the intel-hid ACPI interface to report SW_TABLET_MODE,
156 * SW_TABLET_MODE report.
181 * Some devices, even non convertible ones, can send incorrect SW_TABLET_MODE
477 __set_bit(SW_TABLET_MODE, priv->switches->swbit); in intel_hid_switches_setup()
495 input_report_switch(priv->switches, SW_TABLET_MODE, m); in report_tablet_mode_state()
506 input_report_switch(input_dev, SW_TABLET_MODE, 1); in report_tablet_mode_event()
510 input_report_switch(input_dev, SW_TABLET_MODE, 0); in report_tablet_mode_event()
528 * SW_TABLET_MODE report, in these cases we enable support when receiving in notify_handler()
/linux/drivers/platform/x86/
H A Ddual_accel_detect.h9 * tablet-mode as well as to report SW_TABLET_MODE info to the OS.
11 * Since Linux does not call these undocumented methods, the SW_TABLET_MODE info reported
13 * code in this file to disable SW_TABLET_MODE reporting to avoid reporting broken info
H A Dlenovo-ymc.c49 { KE_SW, 0x01, { .sw = { SW_TABLET_MODE, 0 } } },
51 { KE_SW, 0x02, { .sw = { SW_TABLET_MODE, 1 } } },
53 { KE_SW, 0x03, { .sw = { SW_TABLET_MODE, 1 } } },
55 { KE_SW, 0x04, { .sw = { SW_TABLET_MODE, 1 } } },
H A Dxo15-ebook.c54 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state()
123 set_bit(SW_TABLET_MODE, input->swbit); in ebook_switch_add()
H A Dfujitsu-tablet.c205 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 DKconfig485 This driver maps the Tablet Mode Control switch to SW_TABLET_MODE input
H A Dasus-wmi.c599 input_report_switch(asus->inputdev, SW_TABLET_MODE, in asus_wmi_tablet_sw_report()
611 input_set_capability(asus->inputdev, EV_SW, SW_TABLET_MODE); in asus_wmi_tablet_sw_init()
H A Dthinkpad_acpi.c2249 SW_TABLET_MODE, !!state); in tpacpi_input_send_tabletsw()
3479 input_set_capability(tpacpi_inputdev, EV_SW, SW_TABLET_MODE); in hotkey_init()
3481 SW_TABLET_MODE, tabletsw_state); in hotkey_init()
3707 * duplicates from intel-vbtn, which already emits SW_TABLET_MODE events in hotkey_notify_dockevent()
/linux/drivers/hid/
H A Dhid-google-hammer.c124 SW_TABLET_MODE, in cbas_ec_notify()
158 input_report_switch(cbas_ec.input, SW_TABLET_MODE, 1); in cbas_ec_resume()
199 input_set_capability(input, EV_SW, SW_TABLET_MODE); in __cbas_ec_probe()
221 input_report_switch(input, SW_TABLET_MODE, in __cbas_ec_probe()
405 input_report_switch(cbas_ec.input, SW_TABLET_MODE, folded); in hammer_folded_event()
550 input_report_switch(cbas_ec.input, SW_TABLET_MODE, 1); in hammer_remove()
H A Dhid-debug.c3558 [SW_TABLET_MODE] = "TabletMode",
/linux/drivers/platform/chrome/
H A Dchromeos_tbmc.c35 input_report_switch(idev, SW_TABLET_MODE, state); in chromeos_tbmc_query_switch()
88 input_set_capability(idev, EV_SW, SW_TABLET_MODE); in chromeos_tbmc_add()
/linux/drivers/platform/surface/
H A Dsurface_aggregator_tabletsw.c102 /* 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 Dsurface_dtx.c779 /* Send SW_TABLET_MODE event. */ in sdtx_device_mode_workfn()
781 input_report_switch(ddev->mode_switch, SW_TABLET_MODE, tablet); in sdtx_device_mode_workfn()
848 /* Send SW_TABLET_MODE event. */ in __sdtx_device_state_update_mode()
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 DKconfig147 input device, sending the standard SW_TABLET_MODE event on mode change.
/linux/drivers/platform/x86/hp/
H A Dhp-wmi.c966 if (test_bit(SW_TABLET_MODE, hp_wmi_input_dev->swbit)) in hp_wmi_notify()
967 input_report_switch(hp_wmi_input_dev, SW_TABLET_MODE, in hp_wmi_notify()
1083 __set_bit(SW_TABLET_MODE, hp_wmi_input_dev->swbit); in hp_wmi_input_setup()
1084 input_report_switch(hp_wmi_input_dev, SW_TABLET_MODE, val); in hp_wmi_input_setup()
2054 if (test_bit(SW_TABLET_MODE, hp_wmi_input_dev->swbit)) in hp_wmi_resume_handler()
2055 input_report_switch(hp_wmi_input_dev, SW_TABLET_MODE, in hp_wmi_resume_handler()
/linux/drivers/platform/x86/dell/
H A Ddell-wmi-base.c342 * Note SW_TABLET_MODE is already reported through the intel_vbtn
436 SW_TABLET_MODE, !buffer[0]); in dell_wmi_process_key()
/linux/arch/arm64/boot/dts/qcom/
H A Dsdm850-lenovo-yoga-c630.dts57 linux,code = <SW_TABLET_MODE>;
/linux/drivers/input/misc/
H A Dsoc_button_array.c509 { "tablet_mode", 0, EV_SW, SW_TABLET_MODE, false, false, false },
/linux/drivers/input/keyboard/
H A Dcros_ec_keyb.c126 .code = SW_TABLET_MODE,
/linux/include/uapi/linux/
H A Dinput-event-codes.h910 #define SW_TABLET_MODE 0x01 /* set = tablet mode */
907 #define SW_TABLET_MODE global() macro
/linux/include/dt-bindings/input/
H A Dlinux-event-codes.h910 #define SW_TABLET_MODE 0x01 /* set = tablet mode */
907 #define SW_TABLET_MODE global() macro
/linux/Documentation/admin-guide/laptops/
H A Dthinkpad-acpi.rst539 SW_TABLET_MODE Tablet ThinkPads HKEY events 0x5009 and 0x500A