Home
last modified time | relevance | path

Searched full:sw_lid (Results 1 – 25 of 70) sorted by relevance

123

/linux/drivers/platform/loongarch/
H A Dloongson-laptop.c210 * Only if the firmware supports SW_LID event model, we can handle the in loongson_hotkey_resume()
213 if (test_bit(SW_LID, generic_inputdev->swbit)) { in loongson_hotkey_resume()
220 * adding SW_LID bit which in sw element can avoid this in loongson_hotkey_resume()
230 if (test_bit(SW_LID, generic_inputdev->sw) && !(status & (1 << SW_LID))) { in loongson_hotkey_resume()
233 ke.sw.code = SW_LID; in loongson_hotkey_resume()
/linux/drivers/macintosh/
H A Dvia-pmu-event.c51 set_bit(SW_LID, pmu_input_dev->swbit); in via_pmu_event_init()
70 input_report_switch(pmu_input_dev, SW_LID, down); in via_pmu_event()
/linux/drivers/platform/arm64/
H A Dacer-aspire1-ec.c131 input_report_switch(ec->idev, SW_LID, 1); in aspire_ec_irq_handler()
137 input_report_switch(ec->idev, SW_LID, 0); in aspire_ec_irq_handler()
480 input_set_capability(ec->idev, EV_SW, SW_LID); in aspire_ec_probe()
528 input_report_switch(ec->idev, SW_LID, !!(tmp & ASPIRE_EC_LID_OPEN)); in aspire_ec_resume()
/linux/drivers/acpi/
H A Dbutton.c228 pr_warn_once("The lid device is not compliant to SW_LID.\n"); in acpi_lid_notify_state()
248 * But SW_LID is typed as input switch event, the input in acpi_lid_notify_state()
268 SW_LID, state); in acpi_lid_notify_state()
277 input_report_switch(button->input, SW_LID, !state); in acpi_lid_notify_state()
610 input_set_capability(input, EV_SW, SW_LID); in acpi_button_add()
/linux/drivers/platform/surface/
H A Dsurface3-wmi.c103 input_report_switch(s3_wmi.input, SW_LID, lid_sw); in s3_wmi_send_lid_state()
185 input_set_capability(input, EV_SW, SW_LID); in s3_wmi_create_and_register_input()
/linux/arch/arm64/boot/dts/allwinner/
H A Dsun50i-h700-anbernic-rg35xx-sp.dts21 linux,code = <SW_LID>;
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3566-pinetab2-v2.0.dts19 linux,code = <SW_LID>;
/linux/arch/arm/boot/dts/st/
H A Dste-href-stuib.dtsi26 linux,code = <0>; /* SW_LID */
H A Dste-href-tvk1281618-r3.dtsi22 linux,code = <0>; /* SW_LID */
H A Dste-href-tvk1281618-r2.dtsi27 linux,code = <0>; /* SW_LID */
/linux/arch/arm/boot/dts/intel/socfpga/
H A Dsocfpga_cyclone5_sockit.dts65 linux,code = <0x0>; /* SW_LID */
/linux/arch/arm64/boot/dts/qcom/
H A Dmsm8939-huawei-kiwi.dts42 linux,code = <SW_LID>;
H A Dmsm8916-samsung-gt5-common.dtsi65 linux,code = <SW_LID>;
H A Dmsm8916-samsung-j5-common.dtsi41 linux,code = <SW_LID>;
H A Dmsm8992-lg-h815.dts75 linux,code = <SW_LID>;
H A Dmsm8953-xiaomi-tissot.dts34 linux,code = <SW_LID>;
/linux/Documentation/firmware-guide/acpi/
H A Dacpi-lid.rst63 * SW_LID
/linux/drivers/input/misc/
H A Dwistron_btns.c388 { KE_SW, 0x4a, {.sw = {SW_LID, 1}} }, /* lid close */
389 { KE_SW, 0x4b, {.sw = {SW_LID, 0}} }, /* lid open */
589 { KE_SW, 0x4a, {.sw = {SW_LID, 1}} }, /* lid close */
590 { KE_SW, 0x4b, {.sw = {SW_LID, 0}} }, /* lid open */
/linux/arch/arm/boot/dts/marvell/
H A Dmmp2-olpc-xo-1-75.dts49 linux,code = <SW_LID>;
/linux/arch/arm64/boot/dts/freescale/
H A Dfsl-ls1028a-kontron-sl28.dts56 linux,code = <SW_LID>;
/linux/arch/arm/boot/dts/nxp/imx/
H A De70k02.dtsi39 linux,code = <SW_LID>;
H A De60k02.dtsi39 linux,code = <SW_LID>;
H A Dimx6sl-tolino-vision.dts55 linux,code = <SW_LID>;
/linux/drivers/platform/x86/x86-android-tablets/
H A Dasus.c29 .code = SW_LID,
/linux/arch/arm/boot/dts/qcom/
H A Dqcom-msm8226-samsung-ms013g.dts37 linux,code = <SW_LID>;

123