Home
last modified time | relevance | path

Searched refs:ledstate (Results 1 – 21 of 21) sorted by relevance

/openbmc/qemu/ui/
H A Dspice-input.c32 int ledstate; member
85 return kbd->ledstate; in kbd_get_leds()
88 static void kbd_leds(void *opaque, int ledstate) in kbd_leds() argument
92 kbd->ledstate = 0; in kbd_leds()
93 if (ledstate & QEMU_SCROLL_LOCK_LED) { in kbd_leds()
94 kbd->ledstate |= SPICE_KEYBOARD_MODIFIER_FLAGS_SCROLL_LOCK; in kbd_leds()
96 if (ledstate & QEMU_NUM_LOCK_LED) { in kbd_leds()
97 kbd->ledstate |= SPICE_KEYBOARD_MODIFIER_FLAGS_NUM_LOCK; in kbd_leds()
99 if (ledstate & QEMU_CAPS_LOCK_LED) { in kbd_leds()
100 kbd->ledstate |= SPICE_KEYBOARD_MODIFIER_FLAGS_CAPS_LOCK; in kbd_leds()
[all …]
H A Dinput-legacy.c283 void kbd_put_ledstate(int ledstate) in kbd_put_ledstate() argument
288 cursor->put_led(cursor->opaque, ledstate); in kbd_put_ledstate()
H A Ddbus-console.c378 dbus_kbd_qemu_leds_updated(void *data, int ledstate) in dbus_kbd_qemu_leds_updated() argument
382 qemu_dbus_display1_keyboard_set_modifiers(ddc->iface_kbd, ledstate); in dbus_kbd_qemu_leds_updated()
H A Dvnc.c1843 vnc_write_u8(vs, vs->vd->ledstate); in vnc_led_state_change()
1848 static void kbd_leds(void *opaque, int ledstate) in kbd_leds() argument
1853 trace_vnc_key_guest_leds((ledstate & QEMU_CAPS_LOCK_LED), in kbd_leds()
1854 (ledstate & QEMU_NUM_LOCK_LED), in kbd_leds()
1855 (ledstate & QEMU_SCROLL_LOCK_LED)); in kbd_leds()
1857 if (ledstate == vd->ledstate) { in kbd_leds()
1861 vd->ledstate = ledstate; in kbd_leds()
4185 vd->ledstate = 0; in vnc_display_open()
H A Dvnc.h158 int ledstate; member
/openbmc/linux/include/linux/
H A Dkeyboard.h15 int ledstate; /* Current led state */ member
/openbmc/qemu/hw/input/
H A Dhid.c464 int ledstate = 0; in hid_keyboard_write() local
472 ledstate |= QEMU_SCROLL_LOCK_LED; in hid_keyboard_write()
475 ledstate |= QEMU_NUM_LOCK_LED; in hid_keyboard_write()
478 ledstate |= QEMU_CAPS_LOCK_LED; in hid_keyboard_write()
480 kbd_put_ledstate(ledstate); in hid_keyboard_write()
H A Dps2.c578 static void ps2_set_ledstate(PS2KbdState *s, int ledstate) in ps2_set_ledstate() argument
580 trace_ps2_set_ledstate(s, ledstate); in ps2_set_ledstate()
581 s->ledstate = ledstate; in ps2_set_ledstate()
582 kbd_put_ledstate(ledstate); in ps2_set_ledstate()
1110 return s->ledstate != 0; /* 0 is default state */ in ps2_keyboard_ledstate_needed()
1117 kbd_put_ledstate(s->ledstate); in ps2_kbd_ledstate_post_load()
1128 VMSTATE_INT32(ledstate, PS2KbdState),
H A Dtrace-events35 ps2_set_ledstate(void *s, int ledstate) "%p ledstate %d"
H A Dvirtio-input-hid.c227 vhid->ledstate |= ledbit; in virtio_input_hid_handle_status()
229 vhid->ledstate &= ~ledbit; in virtio_input_hid_handle_status()
231 kbd_put_ledstate(vhid->ledstate); in virtio_input_hid_handle_status()
/openbmc/linux/drivers/tty/vt/
H A Dkeyboard.c1035 if (ledstate != -1U) in kbd_led_trigger_activate()
1037 ledstate & trigger->mask ? in kbd_led_trigger_activate()
1147 return ledstate & 0xff; in getledstate()
1266 ledstate = ~leds; in kbd_bh()
1270 if (leds != ledstate) { in kbd_bh()
1271 kbd_propagate_led_state(ledstate, leds); in kbd_bh()
1272 ledstate = leds; in kbd_bh()
1472 param.ledstate = kbd->ledflagstate; in kbd_keycode()
1526 param.ledstate = kbd->ledflagstate; in kbd_keycode()
1621 if (ledstate != -1U) in kbd_start()
[all …]
/openbmc/qemu/docs/interop/
H A Dindex.rst30 vnc-ledstate-pseudo-encoding
/openbmc/qemu/include/hw/input/
H A Dps2.h73 int ledstate; member
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-input.h91 int ledstate; member
/openbmc/linux/Documentation/input/
H A Dnotifier.rst12 - 'ledstate' is the current LED state;
/openbmc/linux/drivers/isdn/hardware/mISDN/
H A Dhfc_multi_8xx.h108 hc->ledstate = 0xAFFEAFFE; in setup_embedded()
H A Dhfcmulti.c1623 if (leds != (int)hc->ledstate) { in hfcmulti_leds()
1625 hc->ledstate = leds; in hfcmulti_leds()
1676 if (leds != (int)hc->ledstate) { in hfcmulti_leds()
1678 hc->ledstate = leds; in hfcmulti_leds()
1685 if (leds != (int)hc->ledstate) { in hfcmulti_leds()
1688 hc->ledstate = leds; in hfcmulti_leds()
1731 if (leds != (int)hc->ledstate) { in hfcmulti_leds()
1736 hc->ledstate = leds; in hfcmulti_leds()
1774 if (leddw != hc->ledstate) { in hfcmulti_leds()
1782 hc->ledstate = leddw; in hfcmulti_leds()
[all …]
H A Dhfc_multi.h209 u_long ledstate; /* save last state of leds */ member
/openbmc/linux/drivers/net/wireless/marvell/libertas/
H A Dtypes.h230 uint8_t ledstate; member
/openbmc/qemu/include/ui/
H A Dconsole.h66 typedef void QEMUPutLEDEvent(void *opaque, int ledstate);
84 void kbd_put_ledstate(int ledstate);
/openbmc/intel-ipmi-oem/src/
H A Doemcommands.cpp1538 uint8_t ledstate = 0; in ipmiOEMGetLEDStatus() local
1551 ledstate |= state << it->first; in ipmiOEMGetLEDStatus()
1553 return ipmi::responseSuccess(ledstate); in ipmiOEMGetLEDStatus()