Home
last modified time | relevance | path

Searched refs:vs (Results 1 – 25 of 424) sorted by relevance

12345678910>>...17

/openbmc/qemu/ui/
H A Dvnc-auth-sasl.c55 void vnc_sasl_client_cleanup(VncState *vs) in vnc_sasl_client_cleanup() argument
57 if (vs->sasl.conn) { in vnc_sasl_client_cleanup()
58 vs->sasl.runSSF = false; in vnc_sasl_client_cleanup()
59 vs->sasl.wantSSF = false; in vnc_sasl_client_cleanup()
60 vs->sasl.waitWriteSSF = 0; in vnc_sasl_client_cleanup()
61 vs->sasl.encodedLength = vs->sasl.encodedOffset = 0; in vnc_sasl_client_cleanup()
62 vs->sasl.encoded = NULL; in vnc_sasl_client_cleanup()
63 g_free(vs->sasl.username); in vnc_sasl_client_cleanup()
64 g_free(vs->sasl.mechlist); in vnc_sasl_client_cleanup()
65 vs->sasl.username = vs->sasl.mechlist = NULL; in vnc_sasl_client_cleanup()
[all …]
H A Dvnc-auth-vencrypt.c33 static void start_auth_vencrypt_subauth(VncState *vs) in start_auth_vencrypt_subauth() argument
35 switch (vs->subauth) { in start_auth_vencrypt_subauth()
38 vnc_write_u32(vs, 0); /* Accept auth completion */ in start_auth_vencrypt_subauth()
39 start_client_init(vs); in start_auth_vencrypt_subauth()
44 start_auth_vnc(vs); in start_auth_vencrypt_subauth()
50 start_auth_sasl(vs); in start_auth_vencrypt_subauth()
55 trace_vnc_auth_fail(vs, vs->auth, "Unhandled VeNCrypt subauth", ""); in start_auth_vencrypt_subauth()
56 vnc_write_u8(vs, 1); in start_auth_vencrypt_subauth()
57 if (vs->minor >= 8) { in start_auth_vencrypt_subauth()
59 vnc_write_u32(vs, sizeof(err)); in start_auth_vencrypt_subauth()
[all …]
H A Dvnc.c71 static int vnc_cursor_define(VncState *vs);
72 static void vnc_update_throttle_offset(VncState *vs);
74 static void vnc_set_share_mode(VncState *vs, VncShareMode mode) in vnc_set_share_mode() argument
85 vs->ioc, mn[vs->share_mode], mn[mode]); in vnc_set_share_mode()
88 switch (vs->share_mode) { in vnc_set_share_mode()
90 vs->vd->num_connecting--; in vnc_set_share_mode()
93 vs->vd->num_shared--; in vnc_set_share_mode()
96 vs->vd->num_exclusive--; in vnc_set_share_mode()
102 vs->share_mode = mode; in vnc_set_share_mode()
104 switch (vs->share_mode) { in vnc_set_share_mode()
[all …]
H A Dvnc-enc-zrle.c38 static void vnc_zrle_start(VncState *vs) in vnc_zrle_start() argument
40 buffer_reset(&vs->zrle->zrle); in vnc_zrle_start()
43 vs->zrle->tmp = vs->output; in vnc_zrle_start()
44 vs->output = vs->zrle->zrle; in vnc_zrle_start()
47 static void vnc_zrle_stop(VncState *vs) in vnc_zrle_stop() argument
50 vs->zrle->zrle = vs->output; in vnc_zrle_stop()
51 vs->output = vs->zrle->tmp; in vnc_zrle_stop()
54 static void *zrle_convert_fb(VncState *vs, int x, int y, int w, int h, in zrle_convert_fb() argument
59 buffer_reset(&vs->zrle->fb); in zrle_convert_fb()
60 buffer_reserve(&vs->zrle->fb, w * h * bpp + bpp); in zrle_convert_fb()
[all …]
H A Dvnc-enc-tight.c75 static int tight_send_framebuffer_update(VncState *vs, int x, int y,
114 static int send_png_rect(VncState *vs, int x, int y, int w, int h,
117 static bool tight_can_send_png_rect(VncState *vs, int w, int h) in tight_can_send_png_rect() argument
119 if (vs->tight->type != VNC_ENCODING_TIGHT_PNG) { in tight_can_send_png_rect()
123 if (surface_bytes_per_pixel(vs->vd->ds) == 1 || in tight_can_send_png_rect()
124 vs->client_pf.bytes_per_pixel == 1) { in tight_can_send_png_rect()
138 tight_detect_smooth_image24(VncState *vs, int w, int h) in tight_detect_smooth_image24() argument
147 unsigned char *buf = vs->tight->tight.buffer; in tight_detect_smooth_image24()
153 off = vs->client_be; in tight_detect_smooth_image24()
208 tight_detect_smooth_image##bpp(VncState *vs, int w, int h) { \
[all …]
H A Dvnc-enc-zlib.c49 static void vnc_zlib_start(VncState *vs) in vnc_zlib_start() argument
51 buffer_reset(&vs->zlib.zlib); in vnc_zlib_start()
54 vs->zlib.tmp = vs->output; in vnc_zlib_start()
55 vs->output = vs->zlib.zlib; in vnc_zlib_start()
58 static int vnc_zlib_stop(VncState *vs) in vnc_zlib_stop() argument
60 z_streamp zstream = &vs->zlib.stream; in vnc_zlib_stop()
64 vs->zlib.zlib = vs->output; in vnc_zlib_stop()
65 vs->output = vs->zlib.tmp; in vnc_zlib_stop()
71 if (zstream->opaque != vs) { in vnc_zlib_stop()
75 VNC_DEBUG("VNC: opaque = %p | vs = %p\n", zstream->opaque, vs); in vnc_zlib_stop()
[all …]
H A Dvnc-jobs.c82 VncJob *vnc_job_new(VncState *vs) in vnc_job_new() argument
86 assert(vs->magic == VNC_MAGIC); in vnc_job_new()
87 job->vs = vs; in vnc_job_new()
98 trace_vnc_job_add_rect(job->vs, job, x, y, w, h); in vnc_job_add_rect()
123 static bool vnc_has_job_locked(VncState *vs) in vnc_has_job_locked() argument
128 if (job->vs == vs || !vs) { in vnc_has_job_locked()
135 void vnc_jobs_join(VncState *vs) in vnc_jobs_join() argument
138 while (vnc_has_job_locked(vs)) { in vnc_jobs_join()
142 vnc_jobs_consume_buffer(vs); in vnc_jobs_join()
145 void vnc_jobs_consume_buffer(VncState *vs) in vnc_jobs_consume_buffer() argument
[all …]
H A Dvnc-ws.c31 VncState *vs = user_data; in vncws_tls_handshake_done() local
36 vnc_client_error(vs); in vncws_tls_handshake_done()
40 if (vs->ioc_tag) { in vncws_tls_handshake_done()
41 g_source_remove(vs->ioc_tag); in vncws_tls_handshake_done()
43 vs->ioc_tag = qio_channel_add_watch(vs->ioc, in vncws_tls_handshake_done()
45 vncws_handshake_io, vs, NULL); in vncws_tls_handshake_done()
54 VncState *vs = opaque; in vncws_tls_handshake_io() local
58 if (vs->ioc_tag) { in vncws_tls_handshake_io()
59 g_source_remove(vs->ioc_tag); in vncws_tls_handshake_io()
60 vs->ioc_tag = 0; in vncws_tls_handshake_io()
[all …]
H A Dvnc-clipboard.c136 static void vnc_clipboard_send(VncState *vs, uint32_t count, uint32_t *dwords) in vnc_clipboard_send() argument
140 vnc_lock_output(vs); in vnc_clipboard_send()
141 vnc_write_u8(vs, VNC_MSG_SERVER_CUT_TEXT); in vnc_clipboard_send()
142 vnc_write_u8(vs, 0); in vnc_clipboard_send()
143 vnc_write_u8(vs, 0); in vnc_clipboard_send()
144 vnc_write_u8(vs, 0); in vnc_clipboard_send()
145 vnc_write_s32(vs, -(count * sizeof(uint32_t))); /* -(message length) */ in vnc_clipboard_send()
147 vnc_write_u32(vs, dwords[i]); in vnc_clipboard_send()
149 vnc_unlock_output(vs); in vnc_clipboard_send()
150 vnc_flush(vs); in vnc_clipboard_send()
[all …]
H A Dvnc.h68 typedef int VncReadEvent(VncState *vs, uint8_t *data, size_t len);
70 typedef void VncWritePixels(VncState *vs, void *data, int size);
72 typedef void VncSendHextileTile(VncState *vs,
250 VncState *vs; member
552 size_t vnc_client_read_buf(VncState *vs, uint8_t *data, size_t datalen);
553 size_t vnc_client_write_buf(VncState *vs, const uint8_t *data, size_t datalen);
556 void vnc_write(VncState *vs, const void *data, size_t len);
557 void vnc_write_u32(VncState *vs, uint32_t value);
558 void vnc_write_s32(VncState *vs, int32_t value);
559 void vnc_write_u16(VncState *vs, uint16_t value);
[all …]
H A Dvnc-enc-hextile-template.h12 static void CONCAT(send_hextile_tile_, NAME)(VncState *vs, in CONCAT()
18 VncDisplay *vd = vs->vd; in CONCAT()
35 assert(vs->client_pf.bytes_per_pixel <= MAX_BYTES_PER_PIXEL); in CONCAT()
140 vnc_convert_pixel(vs, data + n_data, color); in CONCAT()
141 n_data += vs->client_pf.bytes_per_pixel; in CONCAT()
160 vnc_convert_pixel(vs, data + n_data, color); in CONCAT()
161 n_data += vs->client_pf.bytes_per_pixel; in CONCAT()
195 vnc_write_u8(vs, flags); in CONCAT()
198 vs->write_pixels(vs, last_bg, sizeof(pixel_t)); in CONCAT()
200 vs->write_pixels(vs, last_fg, sizeof(pixel_t)); in CONCAT()
[all …]
H A Dvnc-enc-zrle.c.inc65 static void ZRLE_ENCODE_TILE(VncState *vs, ZRLE_PIXEL *data, int w, int h,
73 static void ZRLE_ENCODE(VncState *vs, int x, int y, int w, int h,
90 buf = zrle_convert_fb(vs, tx, ty, tw, th, ZRLE_BPP);
91 ZRLE_ENCODE_TILE(vs, buf, tw, th, zywrle_level);
96 static void ZRLE_ENCODE_TILE(VncState *vs, ZRLE_PIXEL *data, int w, int h,
99 VncPalette *palette = &vs->zrle->palette;
132 vnc_write_u8(vs, 1);
133 ZRLE_WRITE_PIXEL(vs, palette_color(palette, 0, &found));
137 zrle_choose_palette_rle(vs, w, h, palette, ZRLE_BPP_OUT,
142 vnc_write_u8(vs, (use_rle ? 128 : 0));
[all …]
H A Dvnc-jobs.h34 VncJob *vnc_job_new(VncState *vs);
37 void vnc_jobs_join(VncState *vs);
39 void vnc_jobs_consume_buffer(VncState *vs);
58 static inline void vnc_lock_output(VncState *vs) in vnc_lock_output() argument
60 qemu_mutex_lock(&vs->output_mutex); in vnc_lock_output()
63 static inline void vnc_unlock_output(VncState *vs) in vnc_unlock_output() argument
65 qemu_mutex_unlock(&vs->output_mutex); in vnc_unlock_output()
/openbmc/qemu/target/mips/tcg/
H A Dlmmi_helper.c58 LMIValue vs, vt; in helper_paddsb() local
61 vs.d = fs; in helper_paddsb()
64 int r = vs.sb[i] + vt.sb[i]; in helper_paddsb()
65 vs.sb[i] = SATSB(r); in helper_paddsb()
67 return vs.d; in helper_paddsb()
72 LMIValue vs, vt; in helper_paddusb() local
75 vs.d = fs; in helper_paddusb()
78 int r = vs.ub[i] + vt.ub[i]; in helper_paddusb()
79 vs.ub[i] = SATUB(r); in helper_paddusb()
81 return vs.d; in helper_paddusb()
[all …]
/openbmc/qemu/tests/qtest/
H A Dvirtio-scsi-test.c39 static void qvirtio_scsi_pci_free(QVirtioSCSIQueues *vs) in qvirtio_scsi_pci_free() argument
43 for (i = 0; i < vs->num_queues + 2; i++) { in qvirtio_scsi_pci_free()
44 qvirtqueue_cleanup(vs->dev->bus, vs->vq[i], alloc); in qvirtio_scsi_pci_free()
46 g_free(vs); in qvirtio_scsi_pci_free()
49 static uint64_t qvirtio_scsi_alloc(QVirtioSCSIQueues *vs, size_t alloc_size, in qvirtio_scsi_alloc() argument
62 static uint8_t virtio_scsi_do_command(QVirtioSCSIQueues *vs, in virtio_scsi_do_command() argument
77 vq = vs->vq[2]; in virtio_scsi_do_command()
86 req_addr = qvirtio_scsi_alloc(vs, sizeof(req), &req); in virtio_scsi_do_command()
90 data_out_addr = qvirtio_scsi_alloc(vs, data_out_len, data_out); in virtio_scsi_do_command()
95 resp_addr = qvirtio_scsi_alloc(vs, sizeof(resp), &resp); in virtio_scsi_do_command()
[all …]
/openbmc/ipmitool/lib/
H A Dhelper.c114 const char * val2str(uint16_t val, const struct valstr *vs) in val2str() argument
119 for (i = 0; vs[i].str != NULL; i++) { in val2str()
120 if (vs[i].val == val) in val2str()
121 return vs[i].str; in val2str()
131 const struct oemvalstr *vs) in oemval2str() argument
136 for (i = 0; vs[i].oem != 0xffffff && vs[i].str != NULL; i++) { in oemval2str()
138 if ( (vs[i].oem == oem || vs[i].oem == IPMI_OEM_PICMG) && in oemval2str()
139 vs[i].val == val ) { in oemval2str()
140 return vs[i].str; in oemval2str()
392 uint16_t str2val(const char *str, const struct valstr *vs) in str2val() argument
[all …]
/openbmc/qemu/hw/scsi/
H A Dvirtio-scsi-dataplane.c26 VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(s); in virtio_scsi_dataplane_setup() local
31 if (vs->conf.iothread) { in virtio_scsi_dataplane_setup()
42 s->ctx = iothread_get_aio_context(vs->conf.iothread); in virtio_scsi_dataplane_setup()
72 VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(s); in virtio_scsi_dataplane_stop_bh() local
76 virtio_queue_aio_detach_host_notifier(vs->ctrl_vq, s->ctx); in virtio_scsi_dataplane_stop_bh()
77 host_notifier = virtio_queue_get_host_notifier(vs->ctrl_vq); in virtio_scsi_dataplane_stop_bh()
85 virtio_queue_aio_detach_host_notifier(vs->event_vq, s->ctx); in virtio_scsi_dataplane_stop_bh()
86 host_notifier = virtio_queue_get_host_notifier(vs->event_vq); in virtio_scsi_dataplane_stop_bh()
89 for (i = 0; i < vs->conf.num_queues; i++) { in virtio_scsi_dataplane_stop_bh()
90 virtio_queue_aio_detach_host_notifier(vs->cmd_vqs[i], s->ctx); in virtio_scsi_dataplane_stop_bh()
[all …]
H A Dvhost-user-scsi.c72 VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(dev); in vhost_user_scsi_set_status() local
91 qemu_chr_fe_disconnect(&vs->conf.chardev); in vhost_user_scsi_set_status()
103 VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(dev); in vhost_user_scsi_handle_output() local
127 qemu_chr_fe_disconnect(&vs->conf.chardev); in vhost_user_scsi_handle_output()
147 VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(dev); in vhost_user_scsi_connect() local
154 vsc->dev.num_queues = vs->conf.num_queues; in vhost_user_scsi_connect()
155 vsc->dev.nvqs = VIRTIO_SCSI_VQ_NUM_FIXED + vs->conf.num_queues; in vhost_user_scsi_connect()
183 VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(dev); in vhost_user_scsi_disconnect() local
196 qemu_chr_fe_set_handlers(&vs->conf.chardev, NULL, NULL, in vhost_user_scsi_disconnect()
206 VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(dev); in vhost_user_scsi_event() local
[all …]
/openbmc/linux/sound/virtio/
H A Dvirtio_chmap.c86 struct virtio_pcm_stream *vs; in virtsnd_chmap_parse_cfg() local
94 vs = &vpcm->streams[SNDRV_PCM_STREAM_PLAYBACK]; in virtsnd_chmap_parse_cfg()
97 vs = &vpcm->streams[SNDRV_PCM_STREAM_CAPTURE]; in virtsnd_chmap_parse_cfg()
106 vs->nchmaps++; in virtsnd_chmap_parse_cfg()
122 struct virtio_pcm_stream *vs) in virtsnd_chmap_add_ctls() argument
127 for (i = 0; i < vs->nchmaps; i++) in virtsnd_chmap_add_ctls()
128 if (max_channels < vs->chmaps[i].channels) in virtsnd_chmap_add_ctls()
129 max_channels = vs->chmaps[i].channels; in virtsnd_chmap_add_ctls()
131 return snd_pcm_add_chmap_ctls(pcm, direction, vs->chmaps, max_channels, in virtsnd_chmap_add_ctls()
146 struct virtio_pcm_stream *vs; in virtsnd_chmap_build_devs() local
[all …]
/openbmc/linux/drivers/vhost/
H A Dscsi.c175 struct vhost_scsi *vs; member
252 static void vhost_scsi_init_inflight(struct vhost_scsi *vs, in vhost_scsi_init_inflight() argument
259 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_init_inflight()
260 vq = &vs->vqs[i].vq; in vhost_scsi_init_inflight()
265 idx = vs->vqs[i].inflight_idx; in vhost_scsi_init_inflight()
267 old_inflight[i] = &vs->vqs[i].inflights[idx]; in vhost_scsi_init_inflight()
270 vs->vqs[i].inflight_idx = idx ^ 1; in vhost_scsi_init_inflight()
271 new_inflight = &vs->vqs[i].inflights[idx ^ 1]; in vhost_scsi_init_inflight()
413 static void vhost_scsi_free_evt(struct vhost_scsi *vs, struct vhost_scsi_evt *evt) in vhost_scsi_free_evt() argument
415 vs->vs_events_nr--; in vhost_scsi_free_evt()
[all …]
/openbmc/qemu/contrib/elf2dmp/
H A Daddrspace.c112 void va_space_set_dtb(struct va_space *vs, uint64_t dtb) in va_space_set_dtb() argument
114 vs->dtb = dtb & 0x00ffffffffff000; in va_space_set_dtb()
117 void va_space_create(struct va_space *vs, struct pa_space *ps, uint64_t dtb) in va_space_create() argument
119 vs->ps = ps; in va_space_create()
120 va_space_set_dtb(vs, dtb); in va_space_create()
123 static bool get_pml4e(struct va_space *vs, uint64_t va, uint64_t *value) in get_pml4e() argument
125 uint64_t pa = (vs->dtb & 0xffffffffff000) | ((va & 0xff8000000000) >> 36); in get_pml4e()
127 return pa_space_read64(vs->ps, pa, value); in get_pml4e()
130 static bool get_pdpi(struct va_space *vs, uint64_t va, uint64_t pml4e, in get_pdpi() argument
136 return pa_space_read64(vs->ps, pdpte_paddr, value); in get_pdpi()
[all …]
H A Dmain.c70 struct va_space *vs, uint64_t KdDebuggerDataBlock) in get_kdbg() argument
78 if (!va_space_rw(vs, in get_kdbg()
96 if (!va_space_rw(vs, KiWaitNever, &kwn, sizeof(kwn), 0) || in get_kdbg()
97 !va_space_rw(vs, KiWaitAlways, &kwa, sizeof(kwa), 0)) { in get_kdbg()
121 if (!va_space_rw(vs, KdDebuggerDataBlock, kdbg, kdbg_hdr.Size, 0)) { in get_kdbg()
135 va_space_rw(vs, KdDebuggerDataBlock, kdbg, kdbg_hdr.Size, 1); in get_kdbg()
185 static bool fix_dtb(struct va_space *vs, QEMU_Elf *qe) in fix_dtb() argument
190 if (va_space_resolve(vs, SharedUserData)) { in fix_dtb()
202 va_space_set_dtb(vs, s->cr[3]); in fix_dtb()
204 " as system task CR3\n", vs->dtb, i); in fix_dtb()
[all …]
/openbmc/linux/drivers/gpu/drm/ci/xfails/
H A Dmsm-sc7180-fails.txt1 kms_cursor_legacy@cursor-vs-flip-toggle,Fail
2 kms_cursor_legacy@cursor-vs-flip-varying-size,Fail
3 kms_cursor_legacy@cursorA-vs-flipA-atomic-transitions,Crash
12 kms_plane_alpha_blend@coverage-vs-premult-vs-constant,Fail
15 kms_plane_alpha_blend@pipe-A-coverage-vs-premult-vs-constant,Fail
22 kms_plane_alpha_blend@pipe-B-coverage-vs-premult-vs-constant,Fail
24 kms_universal_plane@disable-primary-vs-flip-pipe-b,Fail
H A Dmsm-sdm845-fails.txt24 kms_cursor_legacy@cursor-vs-flip-atomic,Fail
25 kms_cursor_legacy@cursor-vs-flip-atomic-transitions,Fail
26 kms_cursor_legacy@cursor-vs-flip-atomic-transitions-varying-size,Fail
27 kms_cursor_legacy@cursor-vs-flip-legacy,Fail
28 kms_cursor_legacy@cursor-vs-flip-toggle,Fail
29 kms_cursor_legacy@cursor-vs-flip-varying-size,Fail
30 kms_cursor_legacy@cursorA-vs-flipA-toggle,Fail
31 kms_cursor_legacy@flip-vs-cursor-atomic,Fail
32 kms_cursor_legacy@flip-vs-cursor-crc-atomic,Fail
33 kms_cursor_legacy@flip-vs-cursor-crc-legacy,Fail
[all …]
/openbmc/linux/arch/arm/vfp/
H A Dvfpsingle.c54 static void vfp_single_normalise_denormal(struct vfp_single *vs) in vfp_single_normalise_denormal() argument
56 int bits = 31 - fls(vs->significand); in vfp_single_normalise_denormal()
58 vfp_single_dump("normalise_denormal: in", vs); in vfp_single_normalise_denormal()
61 vs->exponent -= bits - 1; in vfp_single_normalise_denormal()
62 vs->significand <<= bits; in vfp_single_normalise_denormal()
65 vfp_single_dump("normalise_denormal: out", vs); in vfp_single_normalise_denormal()
70 u32 __vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions) in __vfp_single_normaliseround() argument
72 u32 vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions, const char … in __vfp_single_normaliseround()
78 vfp_single_dump("pack: in", vs); in __vfp_single_normaliseround()
83 if (vs->exponent == 255 && (vs->significand == 0 || exceptions)) in __vfp_single_normaliseround()
[all …]

12345678910>>...17