Home
last modified time | relevance | path

Searched refs:hs (Results 1 – 14 of 14) sorted by relevance

/qemu/hw/input/
H A Dhid.c85 hs->event(hs); in hid_idle_timer()
126 e = &hs->ptr.queue[(hs->head + hs->n) & QUEUE_MASK]; in hid_pointer_event()
182 prev = &hs->ptr.queue[(hs->head + hs->n - 1) & QUEUE_MASK]; in hid_pointer_sync()
183 curr = &hs->ptr.queue[(hs->head + hs->n) & QUEUE_MASK]; in hid_pointer_sync()
184 next = &hs->ptr.queue[(hs->head + hs->n + 1) & QUEUE_MASK]; in hid_pointer_sync()
224 hs->event(hs); in hid_pointer_sync()
244 slot = (hs->head + hs->n) & QUEUE_MASK; hs->n++; in hid_keyboard_event()
247 hs->event(hs); in hid_keyboard_event()
258 slot = hs->head & QUEUE_MASK; QUEUE_INCR(hs->head); hs->n--; in hid_keyboard_process_keycode()
315 hs->kbd.key[i] = hs->kbd.key[-- hs->kbd.keys]; in hid_keyboard_process_keycode()
[all …]
H A Dvirtio-input-hid.c188 vhid->hs = qemu_input_handler_register(dev, vhid->handler); in virtio_input_hid_realize()
189 if (vhid->display && vhid->hs) { in virtio_input_hid_realize()
190 qemu_input_handler_bind(vhid->hs, vhid->display, vhid->head, NULL); in virtio_input_hid_realize()
197 qemu_input_handler_unregister(vhid->hs); in virtio_input_hid_unrealize()
205 qemu_input_handler_activate(vhid->hs); in virtio_input_hid_change_active()
207 qemu_input_handler_deactivate(vhid->hs); in virtio_input_hid_change_active()
/qemu/hw/usb/
H A Ddev-hid.c579 HIDState *hs = &us->hid; in usb_hid_handle_control() local
611 if (hs->kind == HID_MOUSE || hs->kind == HID_TABLET) { in usb_hid_handle_control()
625 if (hs->kind != HID_KEYBOARD && hs->kind != HID_MOUSE) { in usb_hid_handle_control()
632 if (hs->kind != HID_KEYBOARD && hs->kind != HID_MOUSE) { in usb_hid_handle_control()
635 hs->protocol = value; in usb_hid_handle_control()
638 data[0] = hs->idle; in usb_hid_handle_control()
643 hid_set_next_idle(hs); in usb_hid_handle_control()
644 if (hs->kind == HID_MOUSE || hs->kind == HID_TABLET) { in usb_hid_handle_control()
658 HIDState *hs = &us->hid; in usb_hid_handle_data() local
665 if (hs->kind == HID_MOUSE || hs->kind == HID_TABLET) { in usb_hid_handle_data()
[all …]
/qemu/include/hw/input/
H A Dhid.h51 void hid_init(HIDState *hs, int kind, HIDEventFunc event);
52 void hid_reset(HIDState *hs);
53 void hid_free(HIDState *hs);
55 bool hid_has_events(HIDState *hs);
56 void hid_set_next_idle(HIDState *hs);
57 void hid_pointer_activate(HIDState *hs);
58 int hid_pointer_poll(HIDState *hs, uint8_t *buf, int len);
59 int hid_keyboard_poll(HIDState *hs, uint8_t *buf, int len);
60 int hid_keyboard_write(HIDState *hs, uint8_t *buf, int len);
/qemu/chardev/
H A Dmsmouse.c60 QemuInputHandlerState *hs; member
250 if (mouse->hs) { in char_msmouse_finalize()
251 qemu_input_handler_unregister(mouse->hs); in char_msmouse_finalize()
264 mouse->hs = qemu_input_handler_register((DeviceState *)mouse, in msmouse_chr_open()
H A Dwctablet.c70 QemuInputHandlerState *hs; member
322 if (tablet->hs) { in wctablet_chr_finalize()
323 qemu_input_handler_unregister(tablet->hs); in wctablet_chr_finalize()
341 tablet->hs = qemu_input_handler_register((DeviceState *)tablet, in wctablet_chr_open()
/qemu/target/i386/whpx/
H A Dwhpx-all.c263 WHV_X64_SEGMENT_REGISTER hs; in whpx_seg_q2h() local
266 hs.Base = qs->base; in whpx_seg_q2h()
267 hs.Limit = qs->limit; in whpx_seg_q2h()
268 hs.Selector = qs->selector; in whpx_seg_q2h()
271 hs.Attributes = 0; in whpx_seg_q2h()
272 hs.SegmentType = 3; in whpx_seg_q2h()
273 hs.Present = 1; in whpx_seg_q2h()
285 return hs; in whpx_seg_q2h()
292 qs.base = hs->Base; in whpx_seg_h2q()
293 qs.limit = hs->Limit; in whpx_seg_h2q()
[all …]
/qemu/target/riscv/insn_trans/
H A Dtrans_rvi.c.inc566 TCGv hs = tcg_temp_new();
573 tcg_gen_andi_tl(hs, shamt, 64);
584 tcg_gen_movcond_tl(TCG_COND_NE, destl, hs, zero, zero, ll);
585 tcg_gen_movcond_tl(TCG_COND_NE, desth, hs, zero, ll, h1);
608 TCGv hs = tcg_temp_new();
615 tcg_gen_andi_tl(hs, shamt, 64);
626 tcg_gen_movcond_tl(TCG_COND_NE, destl, hs, zero, h1, h0);
640 TCGv hs = tcg_temp_new();
647 tcg_gen_andi_tl(hs, shamt, 64);
659 tcg_gen_movcond_tl(TCG_COND_NE, destl, hs, zero, h1, h0);
[all …]
/qemu/include/hw/char/
H A Descc.h47 QemuInputHandlerState *hs; member
/qemu/include/hw/virtio/
H A Dvirtio-input.h90 QemuInputHandlerState *hs; member
/qemu/target/arm/tcg/
H A Dsve_ldst_internal.h106 DO_ST_PRIM_2(hs, H1_4, uint32_t, uint16_t, stw)
H A Dvec_helper.c621 int64_t hs = int128_gethi(r); in do_sat128_d() local
623 if (unlikely(hs != (ls >> 63))) { in do_sat128_d()
624 return hs < 0 ? INT64_MIN : INT64_MAX; in do_sat128_d()
H A Dsve_helper.c6471 DO_STN_2(1, hs, MO_32, MO_16)
/qemu/hw/char/
H A Descc.c1043 s->chn[1].hs = qemu_input_handler_register((DeviceState *)(&s->chn[1]), in escc_realize()