Home
last modified time | relevance | path

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

1234567

/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 in vnc_set_share_mode()
288 vnc_qmp_event(VncState * vs,QAPIEvent event) vnc_qmp_event() argument
675 vnc_framebuffer_update(VncState * vs,int x,int y,int w,int h,int32_t encoding) vnc_framebuffer_update() argument
686 vnc_desktop_resize_ext(VncState * vs,int reject_reason) vnc_desktop_resize_ext() argument
714 vnc_desktop_resize(VncState * vs) vnc_desktop_resize() argument
752 VncState *vs; vnc_abort_display_jobs() local
829 VncState *vs; vnc_dpy_switch() local
871 vnc_write_pixels_copy(VncState * vs,void * pixels,int size) vnc_write_pixels_copy() argument
878 vnc_convert_pixel(VncState * vs,uint8_t * buf,uint32_t v) vnc_convert_pixel() argument
922 vnc_write_pixels_generic(VncState * vs,void * pixels1,int size) vnc_write_pixels_generic() argument
938 vnc_raw_send_framebuffer_update(VncState * vs,int x,int y,int w,int h) vnc_raw_send_framebuffer_update() argument
952 vnc_send_framebuffer_update(VncState * vs,VncWorker * worker,int x,int y,int w,int h) vnc_send_framebuffer_update() argument
991 vnc_cursor_define(VncState * vs) vnc_cursor_define() argument
1032 VncState *vs; vnc_dpy_cursor_define() local
1044 find_and_clear_dirty_height(VncState * vs,int y,int last_x,int x,int height) find_and_clear_dirty_height() argument
1069 vnc_update_throttle_offset(VncState * vs) vnc_update_throttle_offset() argument
1109 vnc_should_update(VncState * vs) vnc_should_update() argument
1146 vnc_update_client(VncState * vs,int has_dirty) vnc_update_client() argument
1219 VncState *vs = opaque; audio_capture_notify() local
1251 VncState *vs = opaque; audio_capture() local
1269 audio_add(VncState * vs) audio_add() argument
1288 audio_del(VncState * vs) audio_del() argument
1296 vnc_disconnect_start(VncState * vs) vnc_disconnect_start() argument
1311 vnc_disconnect_finish(VncState * vs) vnc_disconnect_finish() argument
1365 vnc_client_io_error(VncState * vs,ssize_t ret,Error * err) vnc_client_io_error() argument
1384 vnc_client_error(VncState * vs) vnc_client_error() argument
1406 vnc_client_write_buf(VncState * vs,const uint8_t * data,size_t datalen) vnc_client_write_buf() argument
1426 vnc_client_write_plain(VncState * vs) vnc_client_write_plain() argument
1481 vnc_client_write_locked(VncState * vs) vnc_client_write_locked() argument
1495 vnc_client_write(VncState * vs) vnc_client_write() argument
1512 vnc_read_when(VncState * vs,VncReadEvent * func,size_t expecting) vnc_read_when() argument
1534 vnc_client_read_buf(VncState * vs,uint8_t * data,size_t datalen) vnc_client_read_buf() argument
1553 vnc_client_read_plain(VncState * vs) vnc_client_read_plain() argument
1568 VncState *vs = opaque; vnc_jobs_bh() local
1580 vnc_client_read(VncState * vs) vnc_client_read() argument
1620 VncState *vs = opaque; vnc_client_io() local
1658 vnc_write(VncState * vs,const void * data,size_t len) vnc_write() argument
1697 vnc_write_s32(VncState * vs,int32_t value) vnc_write_s32() argument
1702 vnc_write_u32(VncState * vs,uint32_t value) vnc_write_u32() argument
1714 vnc_write_u16(VncState * vs,uint16_t value) vnc_write_u16() argument
1724 vnc_write_u8(VncState * vs,uint8_t value) vnc_write_u8() argument
1729 vnc_flush(VncState * vs) vnc_flush() argument
1768 VncState *vs = container_of(notifier, VncState, mouse_mode_notifier); check_pointer_type_change() local
1786 pointer_event(VncState * vs,int button_mask,int x,int y) pointer_event() argument
1821 press_key(VncState * vs,QKeyCode qcode) press_key() argument
1827 vnc_led_state_change(VncState * vs) vnc_led_state_change() argument
1863 do_key_event(VncState * vs,int down,int keycode,int sym) do_key_event() argument
2042 key_event(VncState * vs,int down,uint32_t sym) key_event() argument
2057 ext_key_event(VncState * vs,int down,uint32_t sym,uint16_t keycode) ext_key_event() argument
2069 framebuffer_update_request(VncState * vs,int incremental,int x,int y,int w,int h) framebuffer_update_request() argument
2085 send_ext_key_event_ack(VncState * vs) send_ext_key_event_ack() argument
2099 send_ext_audio_ack(VncState * vs) send_ext_audio_ack() argument
2113 send_xvp_message(VncState * vs,int code) send_xvp_message() argument
2124 set_encodings(VncState * vs,int32_t * encodings,size_t n_encodings) set_encodings() argument
2239 set_pixel_conversion(VncState * vs) set_pixel_conversion() argument
2253 send_color_map(VncState * vs) send_color_map() argument
2273 set_pixel_format(VncState * vs,int bits_per_pixel,int big_endian_flag,int true_color_flag,int red_max,int green_max,int blue_max,int red_shift,int green_shift,int blue_shift) set_pixel_format() argument
2345 pixel_format_message(VncState * vs) pixel_format_message() argument
2372 vnc_colordepth(VncState * vs) vnc_colordepth() argument
2392 protocol_client_msg(VncState * vs,uint8_t * data,size_t len) protocol_client_msg() argument
2678 protocol_client_init(VncState * vs,uint8_t * data,size_t len) protocol_client_init() argument
2779 start_client_init(VncState * vs) start_client_init() argument
2784 authentication_failed(VncState * vs) authentication_failed() argument
2809 protocol_client_auth_vnc(VncState * vs,uint8_t * data,size_t len) protocol_client_auth_vnc() argument
2879 start_auth_vnc(VncState * vs) start_auth_vnc() argument
2899 protocol_client_auth(VncState * vs,uint8_t * data,size_t len) protocol_client_auth() argument
2940 protocol_version(VncState * vs,uint8_t * version,size_t len) protocol_version() argument
3002 struct VncSurface *vs = &vd->guest; vnc_stat_rect() local
3025 VncState *vs; vnc_refresh_lossy_rect() local
3115 vnc_update_freq(VncState * vs,int x,int y,int w,int h) vnc_update_freq() argument
3159 VncState *vs; vnc_refresh_server_surface() local
3257 VncState *vs, *vn; vnc_refresh() local
3297 VncState *vs = &vc->vs; vnc_connect() local
3400 vnc_start_protocol(VncState * vs) vnc_start_protocol() 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-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-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-enc-zrle.c38 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 Dvnc-enc-zlib.c49 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 Dvnc-enc-tight.c75 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 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,
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_
590 vnc_has_feature(VncState * vs,int feature) vnc_has_feature() argument
594 vnc_set_feature(VncState * vs,enum VncFeatures feature) vnc_set_feature() argument
[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()
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, 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 Dvnc-enc-hextile.c46 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()
H A Dvnc-auth-sasl.h67 void vnc_sasl_client_cleanup(VncState *vs);
69 size_t vnc_client_read_sasl(VncState *vs);
70 size_t vnc_client_write_sasl(VncState *vs);
72 void start_auth_sasl(VncState *vs);
/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/hw/scsi/
H A Dvirtio-scsi-dataplane.c27 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 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()
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 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_le in virtio_scsi_do_command()
123 QVirtioSCSIQueues *vs; qvirtio_scsi_init() local
172 QVirtioSCSIQueues *vs; test_unaligned_write_same() local
208 QVirtioSCSIQueues *vs; test_unmap_large_lba() local
243 QVirtioSCSIQueues *vs; test_write_to_cdrom() local
270 QVirtioSCSIQueues *vs; test_iothread_attach_node() local
[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/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 …]
H A Daddrspace.h39 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/qemu/hw/uefi/
H A Dvar-service-json.c50 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/qemu/tests/tcg/s390x/
H A Dvxeh2_vs.c68 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()

1234567