/openbmc/qemu/include/ui/ |
H A D | kbd-state.h | 4 * top-level directory. 10 #include "qapi/qapi-types-ui.h" 35 * @con: QemuConsole for this state tracker. Gets passed down to 36 * qemu_input_*() functions when sending key events to the guest. 48 * qkbd_state_key_event: process key event. 53 * for a key not pressed for example). 56 * @qcode: the key pressed or released. 57 * @down: true for key down events, false otherwise. 59 void qkbd_state_key_event(QKbdState *kbd, QKeyCode qcode, bool down); 62 * qkbd_state_set_delay: set key press delay. [all …]
|
/openbmc/qemu/ui/ |
H A D | input.c | 4 #include "qapi/qapi-commands-ui.h" 54 s->dev = dev; in qemu_input_handler_register() 55 s->handler = handler; in qemu_input_handler_register() 56 s->id = id++; in qemu_input_handler_register() 97 s->con = con; in qemu_input_handler_bind() 106 if (s->con == NULL || s->con != con) { in qemu_input_find_handler() 109 if (mask & s->handler->mask) { in qemu_input_find_handler() 115 if (s->con != NULL) { in qemu_input_find_handler() 118 if (mask & s->handler->mask) { in qemu_input_find_handler() 150 for (e = events; e != NULL; e = e->next) { in qmp_input_send_event() [all …]
|
H A D | kbd-state.c | 4 * top-level directory. 10 #include "ui/kbd-state.h" 23 if (test_bit(qcode1, kbd->keys) || test_bit(qcode2, kbd->keys)) { in qkbd_state_modifier_update() 24 set_bit(mod, kbd->mods); in qkbd_state_modifier_update() 26 clear_bit(mod, kbd->mods); in qkbd_state_modifier_update() 32 return test_bit(mod, kbd->mods); in qkbd_state_modifier_get() 37 return test_bit(qcode, kbd->keys); in qkbd_state_key_get() 40 void qkbd_state_key_event(QKbdState *kbd, QKeyCode qcode, bool down) in qkbd_state_key_event() argument 42 bool state = test_bit(qcode, kbd->keys); in qkbd_state_key_event() 44 if (down == false /* got key-up event */ && in qkbd_state_key_event() [all …]
|
/openbmc/qemu/replay/ |
H A D | replay-input.c | 2 * replay-input.c 4 * Copyright (c) 2010-2015 Institute for System Programming 8 * See the COPYING file in the top-level directory. 14 #include "replay-internal.h" 17 #include "qapi/clone-visitor.h" 18 #include "qapi/qapi-visit-ui.h" 22 InputKeyEvent *key; in replay_save_input_event() local 26 replay_put_dword(evt->type); in replay_save_input_event() 28 switch (evt->type) { in replay_save_input_event() 30 key = evt->u.key.data; in replay_save_input_event() [all …]
|
/openbmc/obmc-ikvm/ |
H A D | ikvm_input.hpp | 24 * @param[in] kbdPath - Path to the USB keyboard device 25 * @param[in] ptrPath - Path to the USB mouse device 26 * @param[in] udc - Name of UDC 41 * @brief RFB client key event handler 43 * @param[in] down - Boolean indicating whether key is pressed or not 44 * @param[in] key - Key code 45 * @param[in] cl - Handle to the RFB client 47 static void keyEvent(rfbBool down, rfbKeySym key, rfbClientPtr cl); 51 * @param[in] buttonMask - Bitmask indicating which buttons have been 53 * @param[in] x - Pointer x-coordinate [all …]
|
/openbmc/linux/drivers/net/wireguard/ |
H A D | allowedips.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 26 node->cidr = cidr; in copy_and_assign_cidr() 27 node->bit_at_a = cidr / 8U; in copy_and_assign_cidr() 29 node->bit_at_a ^= (bits / 8U - 1U) % 8U; in copy_and_assign_cidr() 31 node->bit_at_b = 7U - (cidr % 8U); in copy_and_assign_cidr() 32 node->bitlen = bits; in copy_and_assign_cidr() 33 memcpy(node->bits, src, bits / 8U); in copy_and_assign_cidr() 36 static inline u8 choose(struct allowedips_node *node, const u8 *key) in choose() argument 38 return (key[node->bit_at_a] >> node->bit_at_b) & 1; in choose() [all …]
|
/openbmc/linux/Documentation/userspace-api/media/rc/ |
H A D | rc-tables.rst | 1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later 20 layer. This means that the IR key strokes will look like normal keyboard 21 key strokes (if CONFIG_INPUT_KEYBOARD is enabled). Using the event 30 .. flat-table:: IR default keymapping 31 :header-rows: 0 32 :stub-columns: 0 36 - .. row 1 38 - Key code 40 - Meaning 42 - Key examples on IR [all …]
|
/openbmc/qemu/hw/input/ |
H A D | stellaris_gamepad.c | 14 #include "hw/qdev-properties.h" 22 InputKeyEvent *key = evt->u.key.data; in stellaris_gamepad_event() local 23 int qcode = qemu_input_key_value_to_qcode(key->key); in stellaris_gamepad_event() 26 for (i = 0; i < s->num_buttons; i++) { in stellaris_gamepad_event() 27 if (s->keycodes[i] == qcode && s->pressed[i] != key->down) { in stellaris_gamepad_event() 28 s->pressed[i] = key->down; in stellaris_gamepad_event() 29 qemu_set_irq(s->irqs[i], key->down); in stellaris_gamepad_event() 55 if (s->num_buttons == 0) { in stellaris_gamepad_realize() 60 s->irqs = g_new0(qemu_irq, s->num_buttons); in stellaris_gamepad_realize() 61 s->pressed = g_new0(uint8_t, s->num_buttons); in stellaris_gamepad_realize() [all …]
|
H A D | ps2.c | 126 static unsigned int ps2_modifier_bit(QKeyCode key) in ps2_modifier_bit() argument 128 switch (key) { in ps2_modifier_bit() 148 PS2Queue *q = &s->queue; in ps2_reset_queue() 150 q->rptr = 0; in ps2_reset_queue() 151 q->wptr = 0; in ps2_reset_queue() 152 q->cwptr = -1; in ps2_reset_queue() 153 q->count = 0; in ps2_reset_queue() 158 return s->queue.count == 0; in ps2_queue_empty() 163 PS2Queue *q = &s->queue; in ps2_queue_noirq() 165 if (q->count >= PS2_QUEUE_SIZE) { in ps2_queue_noirq() [all …]
|
/openbmc/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-apq8064-sony-xperia-lagan-yuga.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "qcom-apq8064-v2.0.dtsi" 3 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/mfd/qcom-rpm.h> 6 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 10 compatible = "sony,xperia-yuga", "qcom,apq8064"; 11 chassis-type = "handset"; 18 stdout-path = "serial0:115200n8"; 21 gpio-keys { [all …]
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | ipaq-micro-keys.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * h3600 atmel micro companion support, key subdevice 21 #include <linux/mfd/ipaq-micro.h> 38 KEY_DOWN, /* 9: Down */ 44 int key, down; in micro_key_receive() local 46 down = 0x80 & msg[0]; in micro_key_receive() 47 key = 0x7f & msg[0]; in micro_key_receive() 49 if (key < ARRAY_SIZE(micro_keycodes)) { in micro_key_receive() 50 input_report_key(keys->input, keys->codes[key], down); in micro_key_receive() 51 input_sync(keys->input); in micro_key_receive() [all …]
|
/openbmc/linux/drivers/accessibility/speakup/ |
H A D | DefaultKeyAssignments | 3 anything you want but that will take some familiarity with key 6 We have remapped the insert or zero key on the keypad to act as a 7 shift key. Well, actually as an altgr key. So in the following list 8 InsKeyPad-period means hold down the insert key like a shift key and 11 KeyPad-8 Say current Line 12 InsKeyPad-8 say from top of screen to reading cursor. 13 KeyPad-7 Say Previous Line (UP one line) 14 KeyPad-9 Say Next Line (down one line) 15 KeyPad-5 Say Current Word 16 InsKeyPad-5 Spell Current Word [all …]
|
/openbmc/linux/arch/arm/boot/dts/samsung/ |
H A D | s5pv210-galaxys.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 4 #include <dt-bindings/gpio/gpio.h> 5 #include <dt-bindings/input/input.h> 6 #include "s5pv210-aries.dtsi" 9 model = "Samsung Galaxy S1 (GT-I9000) based on S5PV210"; 11 chassis-type = "handset"; 14 stdout-path = &uart2; 17 nand_pwrseq: nand-pwrseq { 18 compatible = "mmc-pwrseq-simple"; [all …]
|
H A D | s5pv210-fascinate4g.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 4 #include <dt-bindings/gpio/gpio.h> 5 #include <dt-bindings/input/input.h> 6 #include "s5pv210-aries.dtsi" 9 model = "Samsung Galaxy S Fascinate 4G (SGH-T959P) based on S5PV210"; 11 chassis-type = "handset"; 14 stdout-path = &uart2; 17 gpio-keys { 18 compatible = "gpio-keys"; [all …]
|
/openbmc/linux/drivers/hid/ |
H A D | hid-creative-sb0540.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include "hid-ids.h" 22 KEY_RESERVED, /* 24bit wheel down */ 25 KEY_RESERVED, /* CMSS wheel Down */ 28 KEY_RESERVED, /* EAX wheel down */ 31 KEY_RESERVED, /* 3D Midi wheel down */ 131 << (bits - 1 - i); in reverse() 142 return creative_sb0540->keymap[i]; in get_key() 154 int key; in creative_sb0540_raw_event() local 170 key = get_key(creative_sb0540, main_code); in creative_sb0540_raw_event() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/ |
H A D | gpio-keys.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/input/gpio-keys.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 15 - gpio-keys 16 - gpio-keys-polled 23 poll-interval: true 26 …"^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switc… 37 description: Descriptive name of the key. [all …]
|
/openbmc/linux/drivers/macintosh/ |
H A D | via-pmu-event.c | 2 * via-pmu event device for reporting some events that come through the PMU 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 26 #include "via-pmu-event.h" 36 return -ENODEV; in via_pmu_event_init() 40 return -ENOMEM; in via_pmu_event_init() 42 pmu_input_dev->name = "PMU"; in via_pmu_event_init() 43 pmu_input_dev->id.bustype = BUS_HOST; in via_pmu_event_init() 44 pmu_input_dev->id.vendor = 0x0001; in via_pmu_event_init() 45 pmu_input_dev->id.product = 0x0001; in via_pmu_event_init() 46 pmu_input_dev->id.version = 0x0100; in via_pmu_event_init() [all …]
|
/openbmc/qemu/hw/audio/ |
H A D | fmopl.h | 10 /* ---------- OPL one of slot ---------- */ 14 uint8_t KSR; /* key scale rate :(shift down bit) */ 19 uint8_t ksl; /* keyscale level :(shift down bits) */ 20 uint8_t ksr; /* key scale rate :kcode>>KSR */ 40 /* ---------- OPL one of channel ---------- */ 44 uint8_t FB; /* feed back :(shift down bit) */ 50 uint8_t kcode; /* key code : KeyScaleCode */ 53 uint8_t keyon; /* key on/off flag */ 73 uint8_t rhythm; /* Rhythm mode , key flag */ 77 uint32_t FN_TABLE[1024]; /* fnumber -> increment counter */ [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_trap_tunnel_ipip.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # Test devlink-trap tunnel exceptions functionality over mlxsw. 8 # +-------------------------+ 12 # +-------------------|-----+ 14 # +-------------------|-----+ 26 # +--|----------------------+ 28 # +--|----------------------+ 32 # +-------------------------+ 81 ip link set dev $rp1 down 84 ip link set dev g1 down [all …]
|
H A D | devlink_trap_tunnel_ipip6.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # Test devlink-trap tunnel exceptions functionality over mlxsw. 8 # +-------------------------+ 12 # +-------------------|-----+ 14 # +-------------------|-----+ 26 # +--|----------------------+ 28 # +--|----------------------+ 32 # +-------------------------+ 83 ip link set dev $rp1 down 86 ip link set dev g1 down [all …]
|
/openbmc/qemu/qapi/ |
H A D | ui.json | 1 # -*- Mode: Python -*- 45 # - 'vnc' to modify the VNC server password 46 # - 'spice' to modify the Spice server password 82 # - If Spice is not enabled, DeviceNotFound 86 # .. qmp-example:: 88 # -> { "execute": "set_password", "arguments": { "protocol": "vnc", 90 # <- { "return": {} } 100 # - 'vnc' to modify the VNC server expiration 101 # - 'spice' to modify the Spice server expiration 105 # - 'now' to expire the password immediately [all …]
|
/openbmc/u-boot/fs/btrfs/ |
H A D | ctree.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 37 * Theoretical limit is larger, but we keep this down to a sane 66 #define BTRFS_BACKREF_REV_MASK (((u64)BTRFS_BACKREF_REV_MAX - 1) << \ 82 /* allowed to be different from the super from here on down */ 148 /* allowed to be different from the btrfs_header from here own down */ 222 struct btrfs_key key; member 240 * all non-leaf blocks are nodes, they hold only keys and pointers to 244 struct btrfs_key key; member 286 return &p->nodes[0]->leaf.items[p->slots[0]].key; in btrfs_path_leaf_key() 293 struct btrfs_key key, *res; in btrfs_search_tree_key_type() local [all …]
|
/openbmc/linux/arch/arm64/boot/dts/exynos/ |
H A D | exynos5433-tm2-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 11 /dts-v1/; 13 #include <dt-bindings/clock/samsung,s2mps11.h> 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/interrupt-controller/irq.h> 17 #include <dt-bindings/sound/samsung-i2s.h> 48 stdout-path = &serial_1; 56 gpio-keys { 57 compatible = "gpio-keys"; [all …]
|
/openbmc/linux/scripts/kconfig/ |
H A D | nconf.c | 1 // SPDX-License-Identifier: GPL-2.0 20 "------------\n" 31 "------------\n" 33 "build. Kernel features can either be built-in, modularized, or removed.\n" 40 " - - are selected by another feature\n" 47 "<n> to remove it. You may press the <Space> key to cycle through the\n" 50 "A trailing \"--->\" designates a submenu, a trailing \"----\" an\n" 54 "----------------------------------------------------------------------\n" 56 "Linewise down <Down> <j>\n" 58 "Pagewise down <Page Down>\n" [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx53-ard.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 /dts-v1/; 8 #include <dt-bindings/input/input.h> 13 compatible = "fsl,imx53-ard", "fsl,imx53"; 20 eim-cs1@f4000000 { 21 #address-cells = <1>; 22 #size-cells = <1>; 23 compatible = "fsl,eim-bus", "simple-bus"; 30 phy-mode = "mii"; 31 interrupt-parent = <&gpio2>; [all …]
|