Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 123) sorted by relevance

12345

/qemu/audio/
H A Dalsaaudio.c40 snd_pcm_t *handle; member
49 snd_pcm_t *handle; member
56 snd_pcm_t *handle; member
117 hlp->handle = NULL; in alsa_fini_poll()
248 hlp->handle = handle; in alsa_poll_helper()
459 &handle, in alsa_open()
476 handle, in alsa_open()
497 handle, in alsa_open()
577 handle, in alsa_open()
732 alsa->handle = handle; in alsa_init_out()
[all …]
/qemu/disas/
H A Dcapstone.c80 cs_option(*handle, CS_OPT_SKIPDATA_SETUP, in cap_disas_start()
96 cap_insn = cs_malloc(*handle); in cap_disas_start()
98 cs_close(handle); in cap_disas_start()
181 csh handle; in cap_disas_target() local
233 cs_close(&handle); in cap_disas_target()
240 csh handle; in cap_disas_host() local
262 cs_close(&handle); in cap_disas_host()
270 csh handle; in cap_disas_monitor() local
314 cs_close(&handle); in cap_disas_monitor()
323 csh handle; in cap_disas_plugin() local
[all …]
/qemu/crypto/
H A Dtlssession.c39 gnutls_session_t handle; member
57 gnutls_deinit(session->handle); in qcrypto_tls_session_free()
159 ret = gnutls_credentials_set(session->handle, in qcrypto_tls_session_new()
163 ret = gnutls_credentials_set(session->handle, in qcrypto_tls_session_new()
195 ret = gnutls_credentials_set(session->handle, in qcrypto_tls_session_new()
222 ret = gnutls_credentials_set(session->handle, in qcrypto_tls_session_new()
243 gnutls_transport_set_ptr(session->handle, session); in qcrypto_tls_session_new()
244 gnutls_transport_set_push_function(session->handle, in qcrypto_tls_session_new()
246 gnutls_transport_set_pull_function(session->handle, in qcrypto_tls_session_new()
507 int ret = gnutls_handshake(session->handle); in qcrypto_tls_session_handshake()
[all …]
H A Dcipher-gnutls.c.inc79 if (ctx->handle) {
80 gnutls_cipher_deinit(ctx->handle);
102 if (ctx->handle) { /* CBC / XTS mode */
114 gnutls_cipher_hd_t handle;
125 err = gnutls_cipher_encrypt2(handle,
129 gnutls_cipher_deinit(handle);
134 gnutls_cipher_deinit(handle);
162 if (ctx->handle) { /* CBC / XTS mode */
175 gnutls_cipher_hd_t handle;
190 gnutls_cipher_deinit(handle);
[all …]
H A Dhmac-gcrypt.c33 gcry_mac_hd_t handle; member
61 err = gcry_mac_open(&ctx->handle, qcrypto_hmac_alg_map[alg], in qcrypto_hmac_ctx_new()
69 err = gcry_mac_setkey(ctx->handle, (const void *)key, nkey); in qcrypto_hmac_ctx_new()
73 gcry_mac_close(ctx->handle); in qcrypto_hmac_ctx_new()
90 gcry_mac_close(ctx->handle); in qcrypto_gcrypt_hmac_ctx_free()
111 gcry_mac_write(ctx->handle, iov[i].iov_base, iov[i].iov_len); in qcrypto_gcrypt_hmac_bytesv()
130 err = gcry_mac_read(ctx->handle, *result, resultlen); in qcrypto_gcrypt_hmac_bytesv()
137 err = gcry_mac_reset(ctx->handle); in qcrypto_gcrypt_hmac_bytesv()
H A Dhmac-gnutls.c35 gnutls_hmac_hd_t handle; member
70 err = gnutls_hmac_init(&ctx->handle, in qcrypto_hmac_ctx_new()
92 gnutls_hmac_deinit(ctx->handle, NULL); in qcrypto_gnutls_hmac_ctx_free()
112 gnutls_hmac(ctx->handle, iov[i].iov_base, iov[i].iov_len); in qcrypto_gnutls_hmac_bytesv()
131 gnutls_hmac_output(ctx->handle, *result); in qcrypto_gnutls_hmac_bytesv()
H A Dcipher-gcrypt.c.inc114 gcry_cipher_hd_t handle;
123 gcry_cipher_close(ctx->handle);
139 err = gcry_cipher_encrypt(ctx->handle, out, len, in, len);
161 err = gcry_cipher_decrypt(ctx->handle, out, len, in, len);
184 gcry_cipher_reset(ctx->handle);
185 err = gcry_cipher_setiv(ctx->handle, iv, niv);
207 err = gcry_cipher_setctr(ctx->handle, iv, niv);
269 err = gcry_cipher_open(&ctx->handle, gcryalg, gcrymode, 0);
277 err = gcry_cipher_setkey(ctx->handle, key, nkey);
286 gcry_cipher_close(ctx->handle);
/qemu/net/
H A Dtap-win32.c101 HANDLE handle; member
410 overlapped->handle = handle; in tap_win32_overlapped_init()
525 result = ReadFile(overlapped->handle, in tap_win32_thread_entry()
601 HANDLE handle; in tap_win32_open() local
625 handle = CreateFile ( in tap_win32_open()
634 if (handle == INVALID_HANDLE_VALUE) { in tap_win32_open()
643 CloseHandle(handle); in tap_win32_open()
647 if (!tap_win32_set_status(handle, TRUE)) { in tap_win32_open()
664 tap_win32_overlapped_t *handle; member
727 tap_win32_overlapped_t *handle; in tap_win32_init() local
[all …]
/qemu/hw/block/
H A Dxen_blkif.h25 blkif_vdev_t handle; /* only for read/write requests */ member
33 blkif_vdev_t handle; /* only for read/write requests */ member
51 blkif_vdev_t handle; /* only for read/write requests */ member
59 blkif_vdev_t handle; /* only for read/write requests */ member
100 dst->handle = src->handle; in blkif_get_x86_32_req()
126 dst->handle = src->handle; in blkif_get_x86_64_req()
/qemu/target/ppc/
H A Dtrace-events23 kvm_handle_dcr_write(void) "handle dcr write"
24 kvm_handle_dcr_read(void) "handle dcr read"
25 kvm_handle_halt(void) "handle halt"
27 kvm_handle_epr(void) "handle epr"
28 kvm_handle_watchdog_expiry(void) "handle watchdog expiry"
29 kvm_handle_debug_exception(void) "handle debug exception"
30 kvm_handle_nmi_exception(void) "handle NMI exception"
/qemu/qga/
H A Dchannel-win32.c18 HANDLE handle; member
65 success = ReadFile(c->handle, rs->buf + rs->cur + rs->pending, in ga_channel_prepare()
115 success = GetOverlappedResult(c->handle, &rs->ov, &count_read, FALSE); in ga_channel_check()
233 ret = WriteFile(c->handle, buf, size, &written, &ov); in ga_channel_write()
237 ret = GetOverlappedResult(c->handle, &ov, &written, TRUE); in ga_channel_write()
301 c->handle = CreateFile(newpath, GENERIC_READ | GENERIC_WRITE, 0, NULL, in ga_channel_open()
304 if (c->handle == INVALID_HANDLE_VALUE) { in ga_channel_open()
311 && !SetCommTimeouts(c->handle, &comTimeOut)) { in ga_channel_open()
314 CloseHandle(c->handle); in ga_channel_open()
H A Dcommands-win32.c148 int64_t handle; in guest_file_handle_add() local
150 handle = ga_get_fd_handle(ga_state, errp); in guest_file_handle_add()
151 if (handle < 0) { in guest_file_handle_add()
155 gfh->id = handle; in guest_file_handle_add()
159 return handle; in guest_file_handle_add()
254 void qmp_guest_file_close(int64_t handle, Error **errp) in qmp_guest_file_close() argument
430 gfh = guest_file_handle_find(handle, errp); in qmp_guest_file_seek()
1307 HANDLE handle; in qmp_guest_fstrim() local
1323 handle = FindFirstVolumeW(guid, ARRAYSIZE(guid)); in qmp_guest_fstrim()
1324 if (handle == INVALID_HANDLE_VALUE) { in qmp_guest_fstrim()
[all …]
/qemu/hw/acpi/
H A Dnvdimm.c197 if (nvdimm_slot_to_handle(slot) == handle) { in nvdimm_get_device_by_handle()
265 uint32_t handle = nvdimm_slot_to_handle(slot); in nvdimm_build_structure_memdev() local
272 nfit_memdev->nfit_handle = cpu_to_le32(handle); in nvdimm_build_structure_memdev()
421 uint32_t handle; member
851 in->handle = le32_to_cpu(in->handle); in nvdimm_dsm_write()
867 if (!in->handle) { in nvdimm_dsm_write()
945 handle = aml_arg(4); in nvdimm_build_common_dsm()
1027 ifctx = aml_if(aml_equal(handle, aml_int(0x0))); in nvdimm_build_common_dsm()
1277 aml_int(handle)); in nvdimm_build_nvdimm_devices()
1314 aml_int(handle)); in nvdimm_build_nvdimm_devices()
[all …]
H A Dacpi_generic_initiator.c83 PCIDeviceHandle *handle) in build_srat_generic_pci_initiator_affinity() argument
94 build_append_int_noprefix(table_data, handle->segment, 2); in build_srat_generic_pci_initiator_affinity()
95 build_append_int_noprefix(table_data, handle->bdf, 2); in build_srat_generic_pci_initiator_affinity()
/qemu/hw/usb/
H A Ddev-mtp.c141 uint32_t handle; member
170 uint32_t handle; member
390 o->handle = handle; in usb_mtp_object_alloc()
460 if (o->handle == handle) { in usb_mtp_object_lookup()
560 entry->handle = o->handle; in file_monitor_event()
572 entry->handle = o->handle; in file_monitor_event()
1209 if (handle == 0xFFFFFFF) { in usb_mtp_object_delete()
1408 if (handle == 0xFFFFFFFF || handle == 0) { in usb_mtp_command()
1734 next_handle = o->handle; in usb_mtp_write_metadata()
1994 uint32_t handle; in usb_mtp_handle_data() local
[all …]
/qemu/hw/cxl/
H A Dcxl-events.c127 entry->data.hdr.handle = cpu_to_le16(log->next_handle); in cxl_event_insert()
211 uint16_t handle = pl->handle[nr]; in cxl_event_clear_records() local
214 if (handle == 0 || entry->data.hdr.handle != handle) { in cxl_event_clear_records()
/qemu/qapi/
H A Dcompat.json52 # @deprecated-input: how to handle deprecated input (default 'accept')
54 # @deprecated-output: how to handle deprecated output (default
57 # @unstable-input: how to handle unstable input (default 'accept')
60 # @unstable-output: how to handle unstable output (default 'accept')
/qemu/util/
H A Dqemu-thread-win32.c435 HANDLE handle; in qemu_thread_join() local
449 handle = qemu_thread_get_handle(thread); in qemu_thread_join()
450 if (handle) { in qemu_thread_join()
451 WaitForSingleObject(handle, INFINITE); in qemu_thread_join()
452 CloseHandle(handle); in qemu_thread_join()
531 HANDLE handle; in qemu_thread_get_handle() local
540 handle = OpenThread(SYNCHRONIZE | THREAD_SUSPEND_RESUME | in qemu_thread_get_handle()
543 handle = NULL; in qemu_thread_get_handle()
546 return handle; in qemu_thread_get_handle()
/qemu/python/qemu/utils/
H A Dqemu_ga_client.py86 def __file_read_all(self, handle: int) -> bytes:
90 ret = self.qga.file_read(handle=handle, count=1024)
97 handle = self.qga.file_open(path=path)
99 data = self.__file_read_all(handle)
101 self.qga.file_close(handle=handle)
/qemu/include/hw/xen/interface/io/
H A Dblkif.h641 blkif_vdev_t handle; /* only for read/write requests */ member
656 blkif_vdev_t handle; /* same as for read/write requests */ member
669 blkif_vdev_t handle; /* same as for read/write requests */ member
/qemu/plugins/
H A Dloader.c187 ctx->handle = g_module_open(desc->path, G_MODULE_BIND_LOCAL); in plugin_load()
188 if (ctx->handle == NULL) { in plugin_load()
193 if (!g_module_symbol(ctx->handle, "qemu_plugin_install", &sym)) { in plugin_load()
205 if (!g_module_symbol(ctx->handle, "qemu_plugin_version", &sym)) { in plugin_load()
261 g_module_close(ctx->handle); in plugin_load()
364 if (!g_module_close(ctx->handle)) { in plugin_reset_destroy__locked()
/qemu/contrib/plugins/
H A Dexeclog.c19 struct qemu_plugin_register *handle; member
97 sz = qemu_plugin_read_register(reg->handle, reg->new); in insn_check_regs()
304 reg->handle = desc->handle; in init_vcpu_register()
310 r = qemu_plugin_read_register(reg->handle, reg->last); in init_vcpu_register()
/qemu/tests/qemu-iotests/
H A Dnbd-fault-injector.py170 def write_reply(conn, error, handle): argument
171 buf = reply_struct.pack(NBD_SIMPLE_REPLY_MAGIC, error, handle)
179 write_reply(conn, 0, req.handle)
183 write_reply(conn, 0, req.handle)
/qemu/include/hw/xen/interface/
H A Dgrant_table.h334 grant_handle_t handle; member
355 grant_handle_t handle; member
494 grant_handle_t handle; member
/qemu/hw/scsi/
H A Dmptconfig.c558 uint32_t handle, i; in mptsas_device_addr_get() local
561 handle = address & MPI_SAS_DEVICE_PGAD_GNH_HANDLE_MASK; in mptsas_device_addr_get()
563 if (handle == 65535) { in mptsas_device_addr_get()
564 handle = MPTSAS_NUM_PORTS + 1; in mptsas_device_addr_get()
566 ++handle; in mptsas_device_addr_get()
568 i = handle - 1 - MPTSAS_NUM_PORTS; in mptsas_device_addr_get()
578 handle = address & MPI_SAS_DEVICE_PGAD_H_HANDLE_MASK; in mptsas_device_addr_get()
579 i = handle - 1 - MPTSAS_NUM_PORTS; in mptsas_device_addr_get()

12345