Home
last modified time | relevance | path

Searched +full:tablet +full:- +full:mode (Results 1 – 25 of 107) sorted by relevance

12345

/openbmc/linux/drivers/platform/surface/
H A Dsurface_aggregator_tabletsw.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Surface System Aggregator Module (SSAM) tablet mode switch driver.
19 /* -- SSAM generic tablet switch driver framework. -------------------------- */
73 const char *state = sw->ops.state_name(sw, &sw->state); in state_show()
92 int tablet, status; in ssam_tablet_sw_update_workfn() local
94 status = sw->ops.get_state(sw, &state); in ssam_tablet_sw_update_workfn()
98 if (sw->state.source == state.source && sw->state.state == state.state) in ssam_tablet_sw_update_workfn()
100 sw->state = state; in ssam_tablet_sw_update_workfn()
103 tablet = sw->ops.state_is_tablet_mode(sw, &state); in ssam_tablet_sw_update_workfn()
104 input_report_switch(sw->mode_switch, SW_TABLET_MODE, tablet); in ssam_tablet_sw_update_workfn()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # Microsoft Surface Platform-Specific Drivers
7 bool "Microsoft Surface Platform-Specific Device Drivers"
11 Say Y here to get to see options for platform-specific device drivers
29 be called surface3-wmi.
47 on 5th- and 6th-generation Microsoft Surface devices (including
55 thermal sensor access, and real-time clock information, depending on
59 tristate "Surface System Aggregator Module User-Space Interface"
62 Provides a misc-device interface to the Surface System Aggregator
67 the SSAM controller. Said client device manages a misc-device
[all …]
H A Dsurface_dtx.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Provides a user-space interface to properly handle clipboard/tablet
9 * use), or request detachment via user-space.
11 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com>
34 /* -- SSAM interface. ------------------------------------------------------- */
136 /* -- Main structures. ------------------------------------------------------ */
191 mutex_destroy(&ddev->write_lock); in __sdtx_device_release()
198 kref_get(&ddev->kref); in sdtx_device_get()
206 kref_put(&ddev->kref, __sdtx_device_release); in sdtx_device_put()
210 /* -- Firmware value translations. ------------------------------------------ */
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-driver-wacom4 Contact: linux-bluetooth@vger.kernel.org
7 controls reporting speed of Wacom bluetooth tablet. Reading
8 from this file returns 1 if tablet reports in high speed mode
14 Contact: linux-input@vger.kernel.org
21 presence of said LEDs and OLEDs on the tablet device.
25 Contact: linux-input@vger.kernel.org
29 when the stylus does not touch the tablet surface, and no
35 Contact: linux-input@vger.kernel.org
39 when the stylus touches the tablet surface, or any button is
44 Contact: linux-input@vger.kernel.org
[all …]
H A Dsysfs-bus-surface_aggregator-tabletsw6 This attribute returns a string with the current type-cover
10 - "disconnected": The type-cover has been disconnected.
12 - "closed": The type-cover has been folded closed and lies on
15 - "laptop": The type-cover is open and in laptop-mode, i.e.,
18 - "folded-canvas": The type-cover has been folded back
19 part-ways, but does not lie flush with the back side of the
20 device. In general, this means that the kick-stand is used
23 - "folded-back": The type cover has been fully folded back and
26 - "<unknown>": The current state is unknown to the driver, for
27 example due to newer as-of-yet unsupported hardware.
[all …]
H A Dsysfs-driver-intc_sar7 Specific Absorption Rate (SAR) regulatory mode is typically
11 the current SAR regulatory mode on the Dynamic SAR driver using
13 this sysfs node, the currently configured regulatory mode value
23 - The regulatory mode value has one of the above values.
24 - The default regulatory mode used in the driver is 0.
36 - device_mode
37 - bandtable_index
38 - antennatable_index
39 - sartable_index
46 device-mode like laptop/tablet/clamshell etc. and the
[all …]
/openbmc/linux/drivers/hid/
H A Dhid-letsketch.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Driver for the LetSketch / VSON WP9620N drawing tablet.
6 * This drawing tablet is also sold under other brand names such as Case U,
12 * to special key-combos. E.g. the 2 stylus buttons send right mouse clicks /
23 * Interface 1 EP 0x82 bootclass mouse, rdesc len 83, report id 0x0a, Tablet
27 * with a phone in portraid mode, while using the tablet in landscape mode.
31 * This interfaces send various hard-coded key-combos for the pad buttons
35 * This reports right-click mouse-button events for the 1st stylus button
46 #include "hid-ids.h"
71 return hid_hw_open(data->hdev); in letsketch_open()
[all …]
H A Dhid-waltop.c1 // SPDX-License-Identifier: GPL-2.0-or-later
15 #include "hid-ids.h"
23 * tablet input mode, switching it between "default", "tablet" and "ink".
25 * This driver only uses "default" mode for all the supported tablets. This
26 * mode tries to be HID-compatible (not very successfully), but cripples the
29 * The "tablet" mode uses some proprietary, yet decipherable protocol, which
30 * represents the correct resolution, but is possibly HID-incompatible (i.e.
33 * The purpose of the "ink" mode is unknown.
35 * The feature reports needed for switching to each mode are these:
38 * 02 16 01 tablet
[all …]
H A Dhid-uclogic-params.c1 // SPDX-License-Identifier: GPL-2.0+
3 * HID driver for UC-Logic devices not fully compliant with HID standard
4 * - tablet initialization and parameter retrieval
16 #include "hid-uclogic-params.h"
17 #include "hid-uclogic-rdesc.h"
19 #include "hid-ids.h"
25 * uclogic_params_pen_inrange_to_str() - Convert a pen in-range reporting type
27 * @inrange: The in-range reporting type to convert.
49 * uclogic_params_pen_hid_dbg() - Dump tablet interface pen parameters
53 * Dump tablet interface pen parameters with hid_dbg(). The dump is indented
[all …]
H A Dhid-google-hammer.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Author: Wei-Ning Huang <wnhuang@google.com>
18 #include <linux/input/vivaldi-fmap.h>
28 #include "hid-ids.h"
29 #include "hid-vivaldi-common.h"
32 * C(hrome)B(ase)A(ttached)S(witch) - switch exported by Chrome EC and reporting
33 * state of the "Whiskers" base - attached or detached. Whiskers USB device also
34 * reports position of the keyboard - folded or not. Combining base state and
35 * position allows us to generate proper "Tablet mode" events.
66 return -ENOMEM; in cbas_ec_query_base()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
22 most commonly used to refer to the USB-HID specification, but other
27 removed from the HID bus by the transport-layer drivers, such as
58 to work on raw hid events when they want to, and avoid using transport-specific
64 tristate "User-space I/O driver support for HID subsystem"
67 Say Y here if you want to provide HID I/O Drivers from user-space.
68 This allows to write I/O drivers in user-space and feed the data from
71 user-space device.
73 This driver cannot be used to parse HID-reports in user-space and write
74 special HID-drivers. You should use hidraw for that.
[all …]
/openbmc/linux/drivers/platform/chrome/
H A Dchromeos_tbmc.c1 // SPDX-License-Identifier: GPL-2.0
2 // Driver to detect Tablet Mode for ChromeOS convertible.
30 status = acpi_evaluate_integer(adev->handle, "TBMC", NULL, &state); in chromeos_tbmc_query_switch()
32 return -ENODEV; in chromeos_tbmc_query_switch()
45 return chromeos_tbmc_query_switch(adev, adev->driver_data); in chromeos_tbmc_resume()
50 acpi_pm_wakeup_event(&adev->dev); in chromeos_tbmc_notify()
53 chromeos_tbmc_query_switch(adev, adev->driver_data); in chromeos_tbmc_notify()
56 dev_err(&adev->dev, "Unexpected event: 0x%08X\n", event); in chromeos_tbmc_notify()
70 struct device *dev = &adev->dev; in chromeos_tbmc_add()
75 return -ENOMEM; in chromeos_tbmc_add()
[all …]
/openbmc/qemu/hw/usb/
H A Ddev-wacom.c2 * Wacom PenPartner USB tablet emulation.
7 * Based on hw/usb-hid.c:
52 } mode; member
57 #define TYPE_USB_WACOM "usb-wacom-tablet"
94 0x15, 0x81, /* Logical Minimum (-127) */
108 0x06, 0x00, 0xff,/* Usage Page (ff00h), vendor-defined */
196 s->dx += dx1; in usb_mouse_event()
197 s->dy += dy1; in usb_mouse_event()
198 s->dz += dz1; in usb_mouse_event()
199 s->buttons_state = buttons_state; in usb_mouse_event()
[all …]
/openbmc/linux/drivers/platform/x86/
H A Ddual_accel_detect.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Helper code to detect 360 degree hinges (yoga) style 2-in-1 devices using 2 accelerometers
7 * ACPI methods, to let the firmware know if the 2-in-1 is in tablet- or laptop-mode.
9 * tablet-mode as well as to report SW_TABLET_MODE info to the OS.
25 adev = acpi_dev_get_first_match_dev("BOSC0200", NULL, -1); in dual_accel_detect_bosc0200()
39 if (acpi_dev_present("KIOX010A", NULL, -1) && in dual_accel_detect()
40 acpi_dev_present("KIOX020A", NULL, -1)) in dual_accel_detect()
44 if (acpi_dev_present("DUAL250E", NULL, -1)) in dual_accel_detect()
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
12 x86 platforms, including vendor-specific laptop extension drivers.
23 This driver adds support for the ACPI-WMI (Windows Management
26 ACPI-WMI is a proprietary extension to ACPI to expose parts of the
27 ACPI firmware to userspace - this is done through various vendor
38 any ACPI-WMI devices.
45 Say Y here if you want to be able to read a firmware-embedded
50 be called wmi-bmof.
64 control, fn-lock, mic-mute LED, and other extra features.
67 will be called huawei-wmi.
[all …]
H A Dlenovo-ymc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * lenovo-ymc.c - Lenovo Yoga Mode Control driver
13 #include <linux/input/sparse-keymap.h>
15 #include "ideapad-laptop.h"
17 #define LENOVO_YMC_EVENT_GUID "06129D99-6083-4164-81AD-F092F9D773A6"
18 #define LENOVO_YMC_QUERY_GUID "09B0EE6E-C3FD-4243-8DA1-7911FF80BB8C"
25 MODULE_PARM_DESC(ec_trigger, "Enable EC triggering work-around to force emitting tablet mode events…
29 MODULE_PARM_DESC(force, "Force loading on boards without a convertible DMI chassis-type");
72 if (!priv->ec_acpi_dev) in lenovo_ymc_trigger_ec()
75 err = write_ec_cmd(priv->ec_acpi_dev->handle, VPCCMD_W_YMC, 1); in lenovo_ymc_trigger_ec()
[all …]
/openbmc/linux/arch/arm/boot/dts/vt8500/
H A Dwm8650-mid.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm8650-mid.dts - Device tree file for Wondermedia WM8650-MID Tablet
8 /dts-v1/;
12 model = "Wondermedia WM8650-MID Tablet";
16 bits-per-pixel = <16>;
18 display-timings {
19 native-mode = <&timing0>;
21 clock-frequency = <0>; /* unused but required */
24 hfront-porch = <40>;
25 hback-porch = <88>;
[all …]
H A Dwm8850-w70v2.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm8850-w70v2.dts
4 * - Device tree file for Wondermedia WM8850 Tablet
5 * - 'W70-V2' mainboard
6 * - HongLianYing 'HLY070ML268-21A' 7" LCD panel
11 /dts-v1/;
13 #include <dt-bindings/pwm/pwm.h>
16 model = "Wondermedia WM8850-W70v2 Tablet";
19 compatible = "pwm-backlight";
22 brightness-levels = <0 40 60 80 100 130 190 255>;
[all …]
/openbmc/linux/drivers/input/tablet/
H A Daiptek.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Copyright (c) 2002-2004 Bryan W. Headley <bwheadley@earthlink.net>
20 * v0.1 - Initial release
21 * v0.2 - Hack to get around fake event 28's. (Bryan W. Headley)
22 * v0.3 - Make URB dynamic (Bryan W. Headley, Jun-8-2002)
24 * v0.4 - Rewrote substantial portions of the code to deal with
26 * support of 6000U - 12000U, procfs, and macro key support
27 * (Jan-1-2003 - Feb-5-2003, Bryan W. Headley)
28 * v1.0 - Added support for diagnostic messages, count of messages
29 * received from URB - Mar-8-2003, Bryan W. Headley
[all …]
/openbmc/qemu/docs/system/devices/
H A Dusb.rst2 -------------
16 more virtualization-friendly when compared to EHCI and UHCI, thus XHCI
21 |qemu_system| -device qemu-xhci
38 When running EHCI in standalone mode you can add UHCI or OHCI
46 ``-usb`` switch. QEMU will create the UHCI controller as function of
47 the PIIX3 chipset. The USB 1.1 bus will carry the name ``usb-bus.0``.
49 You can use the standard ``-device`` switch to add a EHCI controller to
52 ``-device usb-ehci,id=ehci``. This will give you a USB 2.0 bus named
55 When adding USB devices using the ``-device`` switch you can specify the
58 .. parsed-literal::
[all …]
/openbmc/linux/drivers/input/mouse/
H A Dvsxxxaa.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for DEC VSXXX-AA mouse (hockey-puck mouse, ball or two rollers)
4 * DEC VSXXX-GA mouse (rectangular mouse, with ball)
5 * DEC VSXXX-AB tablet (digitizer with hair cross or stylus)
7 * Copyright (C) 2003-2004 by Jan-Benedict Glaw <jbglaw@lug-owl.de>
24 * supply at +5V and -12V.
30 * | 4 --- 3 |
32 * -------
35 * 1 (GND) 5 7 -
36 * 2 (RxD) 2 3 -
[all …]
/openbmc/linux/drivers/platform/x86/x86-android-tablets/
H A Dother.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * Copyright (C) 2021-2023 Hans de Goede <hdegoede@redhat.com>
16 #include "shared-psy-info.h"
17 #include "x86-android-tablets.h"
19 /* Acer Iconia One 7 B1-750 has an Android factory img with everything hardcoded */
21 "-1", "0", "0",
27 PROPERTY_ENTRY_STRING_ARRAY("mount-matrix", acer_b1_750_mount_matrix),
37 /* Novatek NVT-ts touchscreen */
39 .type = "NVT-ts",
41 .dev_name = "NVT-ts",
[all …]
H A Dlenovo.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * Copyright (C) 2021-2023 Hans de Goede <hdegoede@redhat.com>
24 #include "shared-psy-info.h"
25 #include "x86-android-tablets.h"
30 * The Android kernels have a hack in the i915 driver to write a non-standard
31 * panel specific DSI register to set the duty-cycle of the LCD's PWM output.
44 PROPERTY_ENTRY_U32("hid-descr-addr", 0x0001),
45 PROPERTY_ENTRY_U32("post-reset-deassert-delay-ms", 150),
54 * The HiDeep IST940E touchscreen comes up in I2C-HID mode. The native protocol
56 * mode, so using native mode is preferred.
[all …]
/openbmc/linux/include/uapi/linux/surface_aggregator/
H A Ddtx.h1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * Surface DTX (clipboard detachment system driver) user-space interface.
6 * device allows user-space to control the clipboard detachment process on
9 * Copyright (C) 2020-2021 Maximilian Luz <luzmaximilian@gmail.com>
42 /* Runtime errors (non-critical) */
62 * enum sdtx_device_mode - Mode describing how (and if) the clipboard is
65 * device operates as tablet.
69 * The device operates as tablet with keyboard and
81 * struct sdtx_event - Event provided by reading from the DTX device file.
95 * enum sdtx_event_code - Code describing the type of an event.
[all …]
/openbmc/linux/arch/arm64/boot/dts/mediatek/
H A Dmt8173-elm-hana-rev7.dts1 // SPDX-License-Identifier: GPL-2.0-only
6 /dts-v1/;
7 #include "mt8173-elm-hana.dtsi"
11 chassis-type = "laptop";
12 compatible = "google,hana-rev7", "mediatek,mt8173";
25 /delete-node/switch-tablet-mode;
26 /delete-node/switch-volume-down;
27 /delete-node/switch-volume-up;

12345