/openbmc/qemu/ui/ |
H A D | vnc-auth-sasl.c | 55 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 D | vnc-auth-vencrypt.c | 33 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 D | vnc.c | 71 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 D | vnc-ws.c | 31 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 D | vnc-jobs.c | 53 * and copy its output buffer in vs->output. 82 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() [all …]
|
H A D | vnc-clipboard.c | 136 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 D | vnc-enc-zrle.c | 38 static void vnc_zrle_start(VncState *vs, VncZrle *zrle) in vnc_zrle_start() argument 43 zrle->tmp = vs->output; in vnc_zrle_start() 44 vs->output = zrle->zrle; in vnc_zrle_start() 47 static void vnc_zrle_stop(VncState *vs, VncZrle *zrle) in vnc_zrle_stop() argument 50 zrle->zrle = vs->output; in vnc_zrle_stop() 51 vs->output = zrle->tmp; in vnc_zrle_stop() 54 static void *zrle_convert_fb(VncState *vs, VncZrle *zrle, in zrle_convert_fb() argument 62 tmp = vs->output; in zrle_convert_fb() 63 vs->output = zrle->fb; in zrle_convert_fb() 65 vnc_raw_send_framebuffer_update(vs, x, y, w, h); in zrle_convert_fb() [all …]
|
H A D | vnc-enc-tight.c | 75 static int tight_send_framebuffer_update(VncState *vs, VncWorker *worker, 114 static int send_png_rect(VncState *vs, VncWorker *worker, 117 static bool tight_can_send_png_rect(VncState *vs, VncTight *tight, int w, int h) in tight_can_send_png_rect() argument 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, VncTight *tight, int w, int h) in tight_detect_smooth_image24() argument 153 off = vs->client_endian == G_BIG_ENDIAN ? 1 : 0; in tight_detect_smooth_image24() 208 tight_detect_smooth_image##bpp(VncState *vs, VncTight *tight, \ 224 max[0] = vs->client_pf.rmax; \ 225 max[1] = vs->client_pf.gmax; \ [all …]
|
H A D | vnc-enc-zlib.c | 49 static void vnc_zlib_start(VncState *vs, VncWorker *worker) in vnc_zlib_start() argument 54 worker->zlib.tmp = vs->output; in vnc_zlib_start() 55 vs->output = worker->zlib.zlib; in vnc_zlib_start() 58 static int vnc_zlib_stop(VncState *vs, VncWorker *worker) in vnc_zlib_stop() argument 64 worker->zlib.zlib = vs->output; in vnc_zlib_stop() 65 vs->output = worker->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() 89 zstream->opaque = vs; in vnc_zlib_stop() 101 buffer_reserve(&vs->output, worker->zlib.zlib.offset + 64); in vnc_zlib_stop() [all …]
|
H A D | vnc-enc-zrle.c.inc | 65 static void ZRLE_ENCODE_TILE(VncState *vs, VncZrle *zrle, ZRLE_PIXEL *data, 73 static void ZRLE_ENCODE(VncState *vs, VncZrle *zrle, 90 buf = zrle_convert_fb(vs, zrle, tx, ty, tw, th, ZRLE_BPP); 91 ZRLE_ENCODE_TILE(vs, zrle, buf, tw, th, zywrle_level); 96 static void ZRLE_ENCODE_TILE(VncState *vs, VncZrle *zrle, ZRLE_PIXEL *data, 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)); 147 vnc_write_u8(vs, (use_rle ? 128 : 0) | size); [all …]
|
H A D | vnc-enc-hextile-template.h | 12 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 D | vnc.h | 68 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, 252 VncState *vs; member 363 VncState vs; member 562 size_t vnc_client_read_buf(VncState *vs, uint8_t *data, size_t datalen); 563 size_t vnc_client_write_buf(VncState *vs, const uint8_t *data, size_t datalen); 566 void vnc_write(VncState *vs, const void *data, size_t len); 567 void vnc_write_u32(VncState *vs, uint32_t value); 568 void vnc_write_s32(VncState *vs, int32_t value); [all …]
|
H A D | vnc-jobs.h | 34 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()
|
H A D | vnc-enc-hextile.c | 46 int vnc_hextile_send_framebuffer_update(VncState *vs, int x, in vnc_hextile_send_framebuffer_update() argument 58 vs->hextile.send_tile(vs, i, j, in vnc_hextile_send_framebuffer_update() 69 void vnc_hextile_set_pixel_conversion(VncState *vs, int generic) in vnc_hextile_set_pixel_conversion() argument 74 vs->hextile.send_tile = send_hextile_tile_32; in vnc_hextile_set_pixel_conversion() 80 vs->hextile.send_tile = send_hextile_tile_generic_32; in vnc_hextile_set_pixel_conversion()
|
/openbmc/qemu/target/mips/tcg/ |
H A D | lmmi_helper.c | 58 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/hw/scsi/ |
H A D | virtio-scsi-dataplane.c | 27 VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(s); in virtio_scsi_dataplane_setup() local 32 if (vs->conf.iothread && vs->conf.iothread_vq_mapping_list) { in virtio_scsi_dataplane_setup() 39 if (vs->conf.iothread || vs->conf.iothread_vq_mapping_list) { in virtio_scsi_dataplane_setup() 52 s->vq_aio_context = g_new(AioContext *, vs->conf.num_queues + in virtio_scsi_dataplane_setup() 67 if (vs->conf.iothread_vq_mapping_list) { in virtio_scsi_dataplane_setup() 68 if (!iothread_vq_mapping_apply(vs->conf.iothread_vq_mapping_list, in virtio_scsi_dataplane_setup() 70 vs->conf.num_queues, errp)) { in virtio_scsi_dataplane_setup() 75 } else if (vs->conf.iothread) { in virtio_scsi_dataplane_setup() 76 AioContext *ctx = iothread_get_aio_context(vs->conf.iothread); in virtio_scsi_dataplane_setup() 77 for (uint16_t i = 0; i < vs->conf.num_queues; i++) { in virtio_scsi_dataplane_setup() [all …]
|
H A D | vhost-user-scsi.c | 72 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() 107 VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(dev); in vhost_user_scsi_handle_output() local 131 qemu_chr_fe_disconnect(&vs->conf.chardev); in vhost_user_scsi_handle_output() 151 VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(dev); in vhost_user_scsi_connect() local 158 vsc->dev.num_queues = vs->conf.num_queues; in vhost_user_scsi_connect() 159 vsc->dev.nvqs = VIRTIO_SCSI_VQ_NUM_FIXED + vs->conf.num_queues; in vhost_user_scsi_connect() 187 VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(dev); in vhost_user_scsi_disconnect() local 200 qemu_chr_fe_set_handlers(&vs->conf.chardev, NULL, NULL, in vhost_user_scsi_disconnect() 210 VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(dev); in vhost_user_scsi_event() local [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | virtio-scsi-test.c | 39 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/qemu/contrib/elf2dmp/ |
H A D | addrspace.c | 112 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 D | main.c | 70 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 …]
|
H A D | addrspace.h | 39 void va_space_create(struct va_space *vs, struct pa_space *ps, uint64_t dtb); 40 void va_space_set_dtb(struct va_space *vs, uint64_t dtb); 41 void *va_space_resolve(struct va_space *vs, uint64_t va); 42 bool va_space_rw(struct va_space *vs, uint64_t addr,
|
/openbmc/ipmitool/lib/ |
H A D | helper.c | 114 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/uefi/ |
H A D | var-service-json.c | 50 UefiVarStore *vs; in uefi_vars_to_qapi() local 56 vs = g_new0(UefiVarStore, 1); in uefi_vars_to_qapi() 57 vs->version = 2; in uefi_vars_to_qapi() 58 tail = &vs->variables; in uefi_vars_to_qapi() 83 return vs; in uefi_vars_to_qapi() 108 static void uefi_vars_from_qapi(uefi_vars_state *uv, UefiVarStore *vs) in uefi_vars_from_qapi() argument 117 for (item = vs->variables; item != NULL; item = item->next) { in uefi_vars_from_qapi() 154 UefiVarStore *vs = uefi_vars_to_qapi(uv); in uefi_vars_to_json() local 160 if (visit_type_UefiVarStore(v, NULL, &vs, NULL)) { in uefi_vars_to_json() 164 qapi_free_UefiVarStore(vs); in uefi_vars_to_json() [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | sun5i-a13-inet-86vs.dts | 5 * Minimal dts file for the iNet 86VS for u-boot only 12 model = "iNet 86VS"; 13 compatible = "inet,86vs", "allwinner,sun5i-a13";
|
/openbmc/qemu/tests/tcg/s390x/ |
H A D | vxeh2_vs.c | 68 S390Vector vs = { .d[0] = 0x8FEEDDCCBBAA9988ull, in main() local 77 vsl(&vd, &vs, &vsi); in main() 80 vsra(&vd, &vs, &vsi); in main() 83 vsrl(&vd, &vs, &vsi); in main() 86 vsld(&vd, &vs, &vsi, 3); in main() 89 vsrd(&vd, &vs, &vsi, 15); in main()
|