EV_SW
.type = EV_SW,
.type = EV_SW,
PROPERTY_ENTRY_U32("linux,input-type", EV_SW),
PROPERTY_ENTRY_U32("linux,input-type", EV_SW),
.type = EV_SW,
set_bit(EV_SW, ebook_switch_idev->evbit);
set_bit(EV_SW, lid_switch_idev->evbit);
input_set_capability(input, EV_SW, SW_LID);
input_dev->evbit[0] = BIT(EV_SW);
EV_SW, jack_switch_types[i]);
[EV_FF_STATUS] = "ForceFeedbackStatus", [EV_SW] = "Software",
[EV_SW] = software, [EV_FF] = force,
input_set_capability(input, EV_SW, SW_TABLET_MODE);
input_set_capability(jack, EV_SW, SW_HEADPHONE_INSERT);
input_set_capability(jack, EV_SW, SW_MICROPHONE_INSERT);
set_bit(EV_SW, wacom_wac->shared->touch_input->evbit);
input_set_capability(wacom_wac->shared->touch_input, EV_SW,
case EV_SW:
usage->type = EV_SW;
input_dev->evbit[0] |= BIT_MASK(EV_SW);
input_dev->evbit[0] |= BIT_MASK(EV_SW);
input_dev->evbit[0] |= BIT_MASK(EV_SW);
return evdev_handle_get_val(client, dev, EV_SW, dev->sw,
[EV_SW] = SW_CNT,
case EV_SW: bits = dev->swbit; len = SW_MAX; break;
if (test_bit(EV_SW, dev->evbit))
if (test_bit(EV_SW, dev->evbit))
case EV_SW:
case EV_SW:
[EV_SW] = SW_MAX,
.ev_type = EV_SW,
.ev_type = EV_SW,
ev_type = EV_SW;
cros_ec_keyb_report_bs(ckdev, EV_SW,
(map->ev_type == EV_SW && (switches & BIT(map->bit))))
events_import_bits(edev, input_dev->swbit, EV_SW, SW_MAX);
BUG_ON(type != EV_SW && type != EV_KEY);
BUG_ON(type != EV_SW && type != EV_KEY);
ATTR_SHOW_FN(switches, EV_SW, false);
ATTR_SHOW_FN(disabled_switches, EV_SW, true);
ATTR_STORE_FN(disabled_switches, EV_SW);
input_set_capability(input, EV_SW,
EV_SW, sw_code);
val = EV_SW;
if (val != EV_KEY && val != EV_SW) {
} else if (*event_type != EV_KEY && *event_type != EV_SW) {
type = EV_SW;
info->event_type = EV_SW;
info->event_type = EV_SW;
{ "tablet_mode", 0, EV_SW, SW_TABLET_MODE, false, false, false },
__set_bit(EV_SW, dev->evbit);
set_bit(EV_SW, pmu_input_dev->evbit);
input_set_capability(ec->idev, EV_SW, SW_LID);
input_set_capability(ec->idev, EV_SW, SW_LID);
input_set_capability(idev, EV_SW, SW_TABLET_MODE);
input_set_capability(input, EV_SW, SW_LID);
input_set_capability(sw->mode_switch, EV_SW, SW_TABLET_MODE);
input_set_capability(ddev->mode_switch, EV_SW, SW_TABLET_MODE);
input_set_capability(acer_wmi_input_dev, EV_SW, SW_TABLET_MODE);
input_set_capability(asus->inputdev, EV_SW, SW_TABLET_MODE);
set_bit(EV_SW, inputdev->evbit);
__set_bit(EV_SW, (dev)->evbit);
input_set_capability(idev, EV_SW, SW_DOCK);
input_set_capability(idev, EV_SW, SW_TABLET_MODE);
__set_bit(EV_SW, camera_shutter_input_dev->evbit);
__set_bit(EV_SW, hp_wmi_input_dev->evbit);
__set_bit(EV_SW, priv->switches->evbit);
input_set_capability(tpacpi_inputdev, EV_SW, SW_CAMERA_LENS_COVER);
input_set_capability(tpacpi_inputdev, EV_SW, SW_RFKILL_ALL);
input_set_capability(tpacpi_inputdev, EV_SW, SW_TABLET_MODE);
input_set_capability(priv->idev, EV_SW, SW_CAMERA_LENS_COVER);
input_set_capability(galaxybook->input, EV_SW, SW_CAMERA_LENS_COVER);
PROPERTY_ENTRY_U32("linux,input-type", EV_SW),
PROPERTY_ENTRY_U32("linux,input-type", EV_SW),
PROPERTY_ENTRY_U32("linux,input-type", EV_SW),
input->evbit[0] = BIT_MASK(EV_SW);
virtinput_cfg_bits(vi, VIRTIO_INPUT_CFG_EV_BITS, EV_SW,
input_event(dev, EV_SW, code, !!value);
} else if (type == EV_SW && code == SW_RFKILL_ALL)
if (test_bit(EV_SW, handle->dev->evbit) &&
.evbit = { BIT(EV_SW) },
input_set_capability(jack->input_dev, EV_SW,
if (type != EV_SW)
idev_id->evbit[BIT_WORD(EV_SW)] = BIT_MASK(EV_SW);