/qemu/libdecnumber/ |
H A D | decContext.c | 75 context->status&=~mask; in decContextClearStatus() 76 return context; in decContextClearStatus() 167 return context->round; in decContextGetRounding() 179 return context->status; in decContextGetStatus() 198 return context; in decContextRestoreStatus() 226 context->round=newround; in decContextSetRounding() 227 return context; in decContextSetRounding() 292 return context; in decContextSetStatusFromString() 343 return context; in decContextSetStatusFromStringQuiet() 431 context->status=0; in decContextZeroStatus() [all …]
|
/qemu/tests/qtest/ |
H A D | megasas-test.c | 53 uint32_t context[256]; in megasas_pd_get_info_fuzz() local 60 memset(context, 0, sizeof(context)); in megasas_pd_get_info_fuzz() 61 context[0] = cpu_to_le32(0x05050505); in megasas_pd_get_info_fuzz() 62 context[1] = cpu_to_le32(0x01010101); in megasas_pd_get_info_fuzz() 63 for (i = 2; i < ARRAY_SIZE(context); i++) { in megasas_pd_get_info_fuzz() 64 context[i] = cpu_to_le32(0x41414141); in megasas_pd_get_info_fuzz() 66 context[6] = cpu_to_le32(0x02020000); in megasas_pd_get_info_fuzz() 67 context[7] = cpu_to_le32(0); in megasas_pd_get_info_fuzz() 69 context_pa = guest_alloc(alloc, sizeof(context)); in megasas_pd_get_info_fuzz() 70 qtest_memwrite(dev->bus->qts, context_pa, context, sizeof(context)); in megasas_pd_get_info_fuzz()
|
H A D | tulip-test.c | 53 struct tulip_descriptor context; in tulip_large_tx() local 60 context_pa = guest_alloc(alloc, sizeof(context)); in tulip_large_tx() 63 context.status = TDES0_OWN; in tulip_large_tx() 64 context.control = TDES1_BUF2_SIZE_MASK << TDES1_BUF2_SIZE_SHIFT | in tulip_large_tx() 66 context.buf_addr2 = guest_pa; in tulip_large_tx() 67 context.buf_addr1 = guest_pa; in tulip_large_tx() 69 qtest_memwrite(dev->bus->qts, context_pa, &context, sizeof(context)); in tulip_large_tx()
|
/qemu/util/ |
H A D | oslib-posix.c | 84 MemsetContext *context; member 431 g_free(context->threads); in wait_and_free_mem_prealloc_context() 432 g_free(context); in wait_and_free_mem_prealloc_context() 455 context->num_threads = in touch_all_pages() 475 g_free(context); in touch_all_pages() 483 context->threads = g_new0(MemsetThread, context->num_threads); in touch_all_pages() 487 context->threads[i].addr = addr; in touch_all_pages() 490 context->threads[i].context = context; in touch_all_pages() 515 sigbus_memset_context = context; in touch_all_pages() 519 context->all_threads_created = true; in touch_all_pages() [all …]
|
H A D | main-loop.c | 254 GMainContext *context = g_main_context_default(); in glib_pollfds_fill() local 259 g_main_context_prepare(context, &max_priority); in glib_pollfds_fill() 283 GMainContext *context = g_main_context_default(); in glib_pollfds_poll() local 287 g_main_context_dispatch(context); in glib_pollfds_poll() 298 g_main_context_acquire(context); in os_host_main_loop_wait() 312 g_main_context_release(context); in os_host_main_loop_wait() 473 g_main_context_acquire(context); 481 g_main_context_release(context); 499 g_main_context_prepare(context, &max_priority); 538 g_main_context_dispatch(context); [all …]
|
/qemu/target/sparc/ |
H A D | trace-events | 4 …mu_helper_dfault(uint64_t address, uint64_t context, int mmu_idx, uint32_t tl) "DFAULT at 0x%"PRIx… 5 mmu_helper_dprot(uint64_t address, uint64_t context, int mmu_idx, uint32_t tl) "DPROT at 0x%"PRIx64… 6 mmu_helper_dmiss(uint64_t address, uint64_t context) "DMISS at 0x%"PRIx64" context 0x%"PRIx64 7 mmu_helper_tfault(uint64_t address, uint64_t context) "TFAULT at 0x%"PRIx64" context 0x%"PRIx64 8 mmu_helper_tmiss(uint64_t address, uint64_t context) "TMISS at 0x%"PRIx64" context 0x%"PRIx64 9 … sec_context, uint64_t address) "tl=%d mmu_idx=%d primary context=0x%"PRIx64" secondary context=0x… 10 … sec_context, uint64_t address) "tl=%d mmu_idx=%d primary context=0x%"PRIx64" secondary context=0x… 11 …e at 0x%"PRIx64" -> 0x%"PRIx64", mmu_idx=%d tl=%d primary context=0x%"PRIx64" secondary context=0x…
|
H A D | mmu_helper.c | 550 uint64_t context; in get_physical_address_data() local 562 context = env->dmmu.mmu_primary_context & 0x1fff; in get_physical_address_data() 571 context = 0; in get_physical_address_data() 632 trace_mmu_helper_dmiss(address, context); in get_physical_address_data() 649 uint64_t context; in get_physical_address_code() local 661 context = env->dmmu.mmu_primary_context & 0x1fff; in get_physical_address_code() 664 context = 0; in get_physical_address_code() 670 context = env->dmmu.mmu_primary_context & 0x1fff; in get_physical_address_code() 673 context = 0; in get_physical_address_code() 702 trace_mmu_helper_tfault(address, context); in get_physical_address_code() [all …]
|
/qemu/tests/tcg/multiarch/ |
H A D | sha1.c | 42 void SHA1Init(SHA1_CTX* context); 133 void SHA1Init(SHA1_CTX* context) in SHA1Init() argument 136 context->state[0] = 0x67452301; in SHA1Init() 137 context->state[1] = 0xEFCDAB89; in SHA1Init() 138 context->state[2] = 0x98BADCFE; in SHA1Init() 141 context->count[0] = context->count[1] = 0; in SHA1Init() 152 j = context->count[0]; in SHA1Update() 154 context->count[1]++; in SHA1Update() 159 SHA1Transform(context->state, context->buffer); in SHA1Update() 201 SHA1Update(context, &c, 1); in SHA1Final() [all …]
|
H A D | vma-pthread.c | 36 struct context { struct 45 struct context *ctx = arg; in thread_read() argument 80 struct context *ctx = arg; in thread_write() 106 struct context *ctx = arg; in thread_execute() 120 struct context *ctx = arg; in thread_mutate() 160 struct context ctx; in main()
|
/qemu/block/ |
H A D | nfs.c | 56 struct nfs_context *context; member 193 int ev = nfs_which_events(client->context); in nfs_set_events() 209 nfs_service(client->context, POLLIN); in nfs_process_read() 219 nfs_service(client->context, POLLOUT); in nfs_process_write() 388 if (client->context) { in nfs_client_close() 398 nfs_umount(client->context); in nfs_client_close() 400 nfs_destroy_context(client->context); in nfs_client_close() 401 client->context = NULL; in nfs_client_close() 443 client->context = nfs_init_context(); in nfs_client_open() 444 if (client->context == NULL) { in nfs_client_open() [all …]
|
/qemu/target/hexagon/idef-parser/ |
H A D | idef-parser.y | 863 Context context = { 0 }; variable 864 context.defines_file = defines_file; 865 context.output_file = output_file; 866 context.enabled_file = enabled_file; 886 yylex_init(&context.scanner); 888 buffer = yy_scan_string(context.input_buffer, context.scanner); 890 yyparse(context.scanner, &context); 891 if (context.implemented_insn != context.total_insn) { 895 context.total_insn); 901 yylex_destroy(context.scanner); [all …]
|
/qemu/audio/ |
H A D | paaudio.c | 19 pa_context *context; member 87 if (!(c)->context || !PA_CONTEXT_IS_GOOD (pa_context_get_state((c)->context)) || \ 89 if (((c)->context && pa_context_get_state ((c)->context) == PA_CONTEXT_FAILED) || \ 507 *rerror = pa_context_errno(c->context); in qpa_simple_new() 689 qpa_logerr(pa_context_errno(c->context), in qpa_volume_out() 699 qpa_logerr(pa_context_errno(c->context), in qpa_volume_out() 731 qpa_logerr(pa_context_errno(c->context), in qpa_volume_in() 773 if (!c->context) { in qpa_conn_init() 886 if (c->context) { in qpa_conn_fini() 887 pa_context_disconnect(c->context); in qpa_conn_fini() [all …]
|
/qemu/target/ppc/ |
H A D | dfp_helper.c | 66 decContext context; member 103 decContextSetRounding(context, rnd); in dfp_prepare_rounding_mode() 144 decContextSetRounding(&dfp->context, rnd); in dfp_set_round_mode_from_immediate() 215 decContext *context) in dfp_set_FPRF_from_FRT_with_context() argument 220 switch (decNumberClass(&dfp->t, context)) { in dfp_set_FPRF_from_FRT_with_context() 279 if (dfp->context.status & DEC_Overflow) { in dfp_check_for_OX() 286 if (dfp->context.status & DEC_Underflow) { in dfp_check_for_UX() 293 if (dfp->context.status & DEC_Inexact) { in dfp_check_for_XX() 300 if (dfp->context.status & DEC_Division_by_zero) { in dfp_check_for_ZX() 307 if (dfp->context.status & DEC_Invalid_operation) { in dfp_check_for_VXSNAN() [all …]
|
/qemu/io/ |
H A D | task.c | 32 GMainContext *context; member 81 if (task->thread->context) { in qio_task_free() 82 g_main_context_unref(task->thread->context); in qio_task_free() 139 task->thread->context); in qio_task_thread_worker() 154 GMainContext *context) in qio_task_run_in_thread() argument 159 if (context) { in qio_task_run_in_thread() 160 g_main_context_ref(context); in qio_task_run_in_thread() 166 data->context = context; in qio_task_run_in_thread()
|
H A D | channel-tls.c | 154 GMainContext *context; member 192 data->context = context; in qio_channel_tls_handshake_task() 194 if (context) { in qio_channel_tls_handshake_task() 195 g_main_context_ref(context); in qio_channel_tls_handshake_task() 211 context); in qio_channel_tls_handshake_task() 222 GMainContext *context = data->context; in qio_channel_tls_handshake_io() local 228 qio_channel_tls_handshake_task(tioc, task, context); in qio_channel_tls_handshake_io() 230 if (context) { in qio_channel_tls_handshake_io() 231 g_main_context_unref(context); in qio_channel_tls_handshake_io() 241 GMainContext *context) in qio_channel_tls_handshake() argument [all …]
|
/qemu/python/tests/ |
H A D | protocol.py | 312 with self.assertRaises(ConnectError) as context: 315 self.assertIsInstance(context.exception.exc, OSError) 317 context.exception.error_message, 387 with self.assertRaises(StateError) as context: 391 context.exception.error_message, 474 with self.assertLogs(logname, level='DEBUG') as context: 480 context.output, 490 with self.assertLogs(logname, level='DEBUG') as context: 497 context.output, 507 with self.assertRaises(StateError) as context: [all …]
|
/qemu/chardev/ |
H A D | char-io.c | 36 GMainContext *context; member 68 g_source_attach(iwp->src, iwp->context); in io_watch_poll_prepare() 114 GMainContext *context) in io_add_watch_poll() argument 126 iwp->context = context; in io_add_watch_poll() 132 g_source_attach(&iwp->parent, context); in io_add_watch_poll()
|
H A D | char.c | 231 GMainContext *context) in qemu_chr_be_update_read_handlers() argument 236 || !context); in qemu_chr_be_update_read_handlers() 237 s->gcontext = context; in qemu_chr_be_update_read_handlers() 618 Chardev *qemu_chr_new_from_opts(QemuOpts *opts, GMainContext *context, in qemu_chr_new_from_opts() argument 659 backend, context, errp); in qemu_chr_new_from_opts() 703 chr = qemu_chr_new_from_opts(opts, context, &err); in qemu_chr_new_noreplay() 728 GMainContext *context) in qemu_chr_new_permit_mux_mon() argument 746 GMainContext *context) in qemu_chr_new() argument 748 return qemu_chr_new_permit_mux_mon(label, filename, false, context); in qemu_chr_new() 752 GMainContext *context) in qemu_chr_new_mux_mon() argument [all …]
|
/qemu/include/chardev/ |
H A D | char.h | 87 GMainContext *context, 121 GMainContext *context); 135 GMainContext *context); 166 bool permit_mux_mon, GMainContext *context); 207 GMainContext *context); 312 ChardevBackend *backend, GMainContext *context,
|
/qemu/docs/interop/ |
H A D | nbd.txt | 14 QEMU supports the "base:allocation" metadata context as defined in the 20 The "qemu" namespace currently contains two available metadata context 22 bitmap alongside the associated disk contents. That metadata context 27 Each dirty-bitmap metadata context defines only one flag for extents 33 the image, with a single metadata context named: 37 In the allocation depth context, the entire 32-bit value represents a
|
/qemu/hw/net/ |
H A D | net_tx_pkt.h | 161 NetTxPktFreeFrag callback, void *context); 170 void net_tx_pkt_unmap_frag_pci(void *context, void *base, size_t len); 202 NetTxPktSend callback, void *context);
|
/qemu/include/io/ |
H A D | channel-socket.h | 120 GMainContext *context); 164 GMainContext *context); 211 GMainContext *context);
|
/qemu/docs/specs/ |
H A D | ppc-xive.rst | 12 assistance. This removes the context switches required for the 33 Controller (PC). It maintains the interrupt context state of each 118 the processor HW threads. It maintains the interrupt context state of 121 XIVE thread interrupt context 133 Interrupt Management context. This context is a set of registers which 149 to the entire context and is reserved for the ring 0 view for the 150 physical thread context. The second (page address ending in ``0b01``) 195 Finally, the XiveTCTX contains the interrupt state context of a thread, 199 Management Area (TIMA), which exposes the thread context registers to
|
/qemu/python/scripts/ |
H A D | mkvenv.py | 197 def compute_venv_libpath(context: SimpleNamespace) -> str: 204 return context.lib_path 209 "purelib", scheme="venv", vars={"base": context.env_dir} 218 return os.path.join(context.env_dir, "Lib", "site-packages") 220 context.env_dir, 237 def post_post_setup(self, context: SimpleNamespace) -> None: 248 our_libpath = self.compute_venv_libpath(context) 257 context.env_exe,
|
/qemu/nbd/ |
H A D | trace-events | 17 nbd_opt_meta_request(const char *optname, const char *context, const char *export) "Requesting %s %… 18 nbd_opt_meta_reply(const char *optname, const char *context, uint32_t id) "Received %s mapping of %… 57 nbd_negotiate_meta_query_reply(const char *context, uint32_t id) "Replying with meta context '%s' i… 65 nbd_blk_aio_attached(const char *name, void *ctx) "Export %s: Attaching clients to AIO context %p" 66 nbd_blk_aio_detach(const char *name, void *ctx) "Export %s: Detaching clients from AIO context %p" 71 … int last) "Send block status reply: cookie = %" PRIu64 ", extents = %u, context = %d (extents cov…
|