Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/platform/x86/
Dintel-vbtn.c53 * SW_DOCK=1 when in laptop-mode (in tandem with setting SW_TABLET_MODE=0).
60 { KE_SW, 0xCC, { .sw = { SW_TABLET_MODE, 1 } } }, /* Tablet */
61 { KE_SW, 0xCD, { .sw = { SW_TABLET_MODE, 0 } } }, /* Laptop */
88 input_report_switch(priv->input_dev, SW_TABLET_MODE, m); in detect_tablet_mode()
184 * but simply always return 0, which we translate to SW_TABLET_MODE=1. This in
188 * Since the problem of wrongly reporting SW_TABLET_MODE=1 in combination
190 * not even notice when SW_TABLET_MODE is not being reported, a DMI based allow
194 * SW_TABLET_MODE with a chassis-type of 8 ("Portable") or 10 ("Notebook"),
Dxo15-ebook.c56 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state()
124 set_bit(SW_TABLET_MODE, input->swbit); in ebook_switch_add()
Dhp-wmi.c37 MODULE_PARM_DESC(enable_tablet_mode_sw, "Enable SW_TABLET_MODE reporting (-1=auto, 0=no, 1=yes)");
574 if (test_bit(SW_TABLET_MODE, hp_wmi_input_dev->swbit)) in hp_wmi_notify()
575 input_report_switch(hp_wmi_input_dev, SW_TABLET_MODE, in hp_wmi_notify()
664 __set_bit(SW_TABLET_MODE, hp_wmi_input_dev->swbit); in hp_wmi_input_setup()
665 input_report_switch(hp_wmi_input_dev, SW_TABLET_MODE, val); in hp_wmi_input_setup()
945 if (test_bit(SW_TABLET_MODE, hp_wmi_input_dev->swbit)) in hp_wmi_resume_handler()
946 input_report_switch(hp_wmi_input_dev, SW_TABLET_MODE, in hp_wmi_resume_handler()
Dacer-wmi.c1610 int sw_tablet_mode; in acer_kbd_dock_get_initial_state() local
1631 sw_tablet_mode = acer_kbd_dock_state_to_sw_tablet_mode(output[4]); in acer_kbd_dock_get_initial_state()
1632 input_report_switch(acer_wmi_input_dev, SW_TABLET_MODE, sw_tablet_mode); in acer_kbd_dock_get_initial_state()
1640 int sw_tablet_mode; in acer_kbd_dock_event() local
1645 sw_tablet_mode = acer_kbd_dock_state_to_sw_tablet_mode(event->kbd_dock_state); in acer_kbd_dock_event()
1646 input_report_switch(acer_wmi_input_dev, SW_TABLET_MODE, sw_tablet_mode); in acer_kbd_dock_event()
2045 input_set_capability(acer_wmi_input_dev, EV_SW, SW_TABLET_MODE); in acer_wmi_input_setup()
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()
Dclassmate-laptop.c703 input_report_switch(inputdev, SW_TABLET_MODE, !val); in cmpc_tablet_handler()
715 set_bit(SW_TABLET_MODE, inputdev->swbit); in cmpc_tablet_idev_init()
719 input_report_switch(inputdev, SW_TABLET_MODE, !val); in cmpc_tablet_idev_init()
742 input_report_switch(inputdev, SW_TABLET_MODE, !val); in cmpc_tablet_resume()
Dasus-wmi.c371 input_set_capability(asus->inputdev, EV_SW, SW_TABLET_MODE); in asus_wmi_input_init()
372 input_report_switch(asus->inputdev, SW_TABLET_MODE, !result); in asus_wmi_input_init()
2124 input_report_switch(asus->inputdev, SW_TABLET_MODE, in asus_wmi_handle_event_code()
Ddell-wmi.c319 * Note SW_TABLET_MODE is already reported through the intel_vbtn
Dthinkpad_acpi.c2356 SW_TABLET_MODE, !!state); in tpacpi_input_send_tabletsw()
3669 input_set_capability(tpacpi_inputdev, EV_SW, SW_TABLET_MODE); in hotkey_init()
3671 SW_TABLET_MODE, tabletsw_state); in hotkey_init()
/kernel/linux/linux-5.10/drivers/hid/
Dhid-google-hammer.c121 SW_TABLET_MODE, in cbas_ec_notify()
155 input_report_switch(cbas_ec.input, SW_TABLET_MODE, 1); in cbas_ec_resume()
196 input_set_capability(input, EV_SW, SW_TABLET_MODE); in __cbas_ec_probe()
218 input_report_switch(input, SW_TABLET_MODE, in __cbas_ec_probe()
414 SW_TABLET_MODE, value); in hammer_event()
516 input_report_switch(cbas_ec.input, SW_TABLET_MODE, 1); in hammer_remove()
/kernel/linux/linux-5.10/drivers/platform/chrome/
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()
/kernel/linux/linux-5.10/arch/x86/platform/olpc/
Dolpc-xo1-sci.c83 if (!!test_bit(SW_TABLET_MODE, ebook_switch_idev->sw) == state) in send_ebook_state()
86 input_report_switch(ebook_switch_idev, SW_TABLET_MODE, state); in send_ebook_state()
477 set_bit(SW_TABLET_MODE, ebook_switch_idev->swbit); in setup_ebook_switch()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Diqs62x.yaml135 linux,code = <SW_TABLET_MODE>;
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dmmp2-olpc-xo-1-75.dts57 linux,code = <SW_TABLET_MODE>;
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dinput-event-codes.h659 #define SW_TABLET_MODE 0x01 macro
/kernel/linux/linux-5.10/drivers/input/misc/
Dsoc_button_array.c464 { "tablet_mode", 0, EV_SW, SW_TABLET_MODE, false, false, false },
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dinput-event-codes.h725 #define SW_TABLET_MODE 0x01 macro
/kernel/linux/linux-5.10/drivers/input/keyboard/
Dcros_ec_keyb.c107 .code = SW_TABLET_MODE,
/kernel/linux/linux-5.10/arch/arm/mach-pxa/
Dcorgi.c419 .code = SW_TABLET_MODE,
/kernel/linux/linux-5.10/arch/arm64/boot/dts/mediatek/
Dmt8173-elm.dtsi69 linux,code = <SW_TABLET_MODE>;
/kernel/linux/linux-5.10/include/uapi/linux/
Dinput-event-codes.h879 #define SW_TABLET_MODE 0x01 /* set = tablet mode */ macro
/kernel/linux/linux-5.10/include/dt-bindings/input/
Dlinux-event-codes.h879 #define SW_TABLET_MODE 0x01 /* set = tablet mode */ macro
/kernel/linux/linux-5.10/arch/arm64/boot/dts/nvidia/
Dtegra210-smaug.dts1783 linux,code = <SW_TABLET_MODE>;
/kernel/linux/linux-5.10/Documentation/admin-guide/laptops/
Dthinkpad-acpi.rst527 SW_TABLET_MODE Tablet ThinkPads HKEY events 0x5009 and 0x500A