Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 25 of 437) sorted by relevance

12345678910>>...18

/qemu/target/loongarch/tcg/
A Dfpu_helper.c92 return fd; in helper_fadd_s()
101 return fd; in helper_fadd_d()
110 return fd; in helper_fsub_s()
119 return fd; in helper_fsub_d()
128 return fd; in helper_fmul_s()
137 return fd; in helper_fmul_d()
146 return fd; in helper_fdiv_s()
155 return fd; in helper_fdiv_d()
164 return fd; in helper_fmax_s()
173 return fd; in helper_fmax_d()
[all …]
/qemu/tests/unit/
A Dtest-util-sockets.c31 if (fd != 0) { in test_fd_is_socket_bad()
39 close(fd); in test_fd_is_socket_bad()
49 close(fd); in test_fd_is_socket_good()
82 int fd; in test_socket_fd_pass_name_good() local
95 close(fd); in test_socket_fd_pass_name_good()
100 close(fd); in test_socket_fd_pass_name_good()
114 int fd; in test_socket_fd_pass_name_bad() local
144 int fd; in test_socket_fd_pass_name_nomon() local
213 int fd; in test_socket_fd_pass_num_nocli() local
245 int i, fd; in unix_client_thread_func() local
[all …]
/qemu/net/
A Dtap-bsd.c41 int fd; in tap_open() local
70 if (fd < 0) { in tap_open()
102 return fd; in tap_open()
111 int fd, s, ret; in tap_open_clone() local
115 if (fd < 0) { in tap_open_clone()
125 close(fd); in tap_open_clone()
150 return fd; in tap_open_clone()
156 int fd = -1; in tap_open() local
169 if (fd < 0) { in tap_open()
193 return fd; in tap_open()
[all …]
A Dsocket.c39 int fd; member
218 int fd; in net_socket_mcast_create() local
299 return fd; in net_socket_mcast_create()
301 if (fd >= 0) in net_socket_mcast_create()
379 s->fd = fd; in net_socket_fd_init_dgram()
402 close(fd); in net_socket_fd_init_dgram()
434 s->fd = fd; in net_socket_fd_init_stream()
471 int fd; in net_socket_accept() local
484 s->fd = fd; in net_socket_accept()
531 s->fd = -1; in net_socket_listen_init()
[all …]
A Dtap-linux.c44 int fd, ret; in tap_open() local
49 if (fd < 0) { in tap_open()
76 close(fd); in tap_open()
85 ioctl(fd, TUNSETVNETHDRSZ, &len); in tap_open()
92 close(fd); in tap_open()
112 close(fd); in tap_open()
117 return fd; in tap_open()
164 int tap_probe_has_ufo(int fd) in tap_probe_has_ufo() argument
176 int tap_probe_has_uso(int fd) in tap_probe_has_uso() argument
272 int tap_fd_enable(int fd) in tap_fd_enable() argument
[all …]
A Ddgram.c41 int fd; member
149 int fd; in net_dgram_mcast_create() local
166 if (fd < 0) { in net_dgram_mcast_create()
230 return fd; in net_dgram_mcast_create()
232 if (fd >= 0) { in net_dgram_mcast_create()
233 close(fd); in net_dgram_mcast_create()
245 s->fd = -1; in net_dgram_cleanup()
272 s->fd = fd; in net_dgram_fd_init()
287 int fd, ret; in net_dgram_mcast_init() local
425 int fd, ret; in net_init_dgram() local
[all …]
A Dtap.c52 int fd; member
306 close(s->fd); in tap_cleanup()
307 s->fd = -1; in tap_cleanup()
329 return s->fd; in tap_get_fd()
365 s->fd = fd; in net_tap_fd_init()
443 int fd; in recv_fd() local
468 memcpy(&fd, CMSG_DATA(cmsg), sizeof(fd)); in recv_fd()
549 int fd; in net_bridge_run_helper() local
627 if (fd < 0) { in net_tap_init()
642 return fd; in net_tap_init()
[all …]
/qemu/linux-user/
A Dfd-trans.h41 if (fd < 0) { in fd_trans_target_to_host_data()
46 if (fd < target_fd_max && target_fd_trans[fd]) { in fd_trans_target_to_host_data()
54 if (fd < 0) { in fd_trans_host_to_target_data()
59 if (fd < target_fd_max && target_fd_trans[fd]) { in fd_trans_host_to_target_data()
67 if (fd < 0) { in fd_trans_target_to_host_addr()
72 if (fd < target_fd_max && target_fd_trans[fd]) { in fd_trans_target_to_host_addr()
83 if (fd >= target_fd_max) { in internal_fd_trans_register_unsafe()
91 target_fd_trans[fd] = trans; in internal_fd_trans_register_unsafe()
102 if (fd >= 0 && fd < target_fd_max) { in internal_fd_trans_unregister_unsafe()
103 target_fd_trans[fd] = NULL; in internal_fd_trans_unregister_unsafe()
[all …]
/qemu/target/i386/hvf/
A Dx86hvf.c101 macvm_set_cr4(cs->accel->fd, env->cr[4]); in hvf_put_segments()
102 macvm_set_cr0(cs->accel->fd, env->cr[0]); in hvf_put_segments()
261 wreg(cs->accel->fd, HV_X86_RIP, env->eip); in hvf_put_registers()
263 wreg(cs->accel->fd, HV_X86_XCR0, env->xcr0); in hvf_put_registers()
271 wreg(cs->accel->fd, HV_X86_DR0, env->dr[0]); in hvf_put_registers()
272 wreg(cs->accel->fd, HV_X86_DR1, env->dr[1]); in hvf_put_registers()
273 wreg(cs->accel->fd, HV_X86_DR2, env->dr[2]); in hvf_put_registers()
274 wreg(cs->accel->fd, HV_X86_DR3, env->dr[3]); in hvf_put_registers()
275 wreg(cs->accel->fd, HV_X86_DR4, env->dr[4]); in hvf_put_registers()
276 wreg(cs->accel->fd, HV_X86_DR5, env->dr[5]); in hvf_put_registers()
[all …]
A Dhvf.c88 wreg(cpu->accel->fd, HV_X86_TPR, tpr); in vmx_update_tpr()
90 wvmcs(cpu->accel->fd, VMCS_TPR_THRESHOLD, 0); in vmx_update_tpr()
100 int tpr = rreg(cpu->accel->fd, HV_X86_TPR) >> 4; in update_apic_tpr()
218 hv_vcpu_interrupt(&cpu->accel->fd, 1); in hvf_kick_vcpu_thread()
286 wvmcs(cpu->accel->fd, VMCS_PIN_BASED_CTLS, in hvf_arch_init_vcpu()
291 wvmcs(cpu->accel->fd, VMCS_PRI_PROC_BASED_CTLS, in hvf_arch_init_vcpu()
309 wvmcs(cpu->accel->fd, VMCS_ENTRY_CTLS, in hvf_arch_init_vcpu()
313 wvmcs(cpu->accel->fd, VMCS_TPR_THRESHOLD, 0); in hvf_arch_init_vcpu()
477 rip = rreg(cpu->accel->fd, HV_X86_RIP); in hvf_vcpu_exec()
689 wreg(cpu->accel->fd, HV_X86_RAX, 0); in hvf_vcpu_exec()
[all …]
/qemu/tests/qemu-iotests/
A Dqcow2_format.py149 super().__init__(fd=fd)
189 super().__init__(fd=fd)
199 self.bitmap_table = Qcow2BitmapTable(fd=fd,
233 super().__init__(fd=fd)
256 fd.seek(offset)
315 if fd is None:
325 super().__init__(fd=fd)
327 self.obj = Qcow2BitmapExt(fd=fd, cluster_size=cluster_size)
395 super().__init__(fd=fd, offset=0)
454 fd.seek(0)
[all …]
A Dqcow2.py32 def cmd_dump_header(fd): argument
33 h = QcowHeader(fd)
40 h = QcowHeader(fd)
56 h = QcowHeader(fd)
58 h.update(fd)
68 h = QcowHeader(fd)
71 h.update(fd)
86 h = QcowHeader(fd)
98 h.update(fd)
122 h.update(fd)
[all …]
/qemu/monitor/
A Dfds.c38 int fd; member
45 int fd; member
84 monfd->fd = fd; in monitor_add_fd()
93 monfd->fd = fd; in monitor_add_fd()
104 int fd; in qmp_getfd() local
154 fd = monfd->fd; in monitor_get_fd()
280 if (mon_fdset_fd->fd != fd) { in qmp_remove_fd()
322 fdsetfd_info->fd = mon_fdset_fd->fd; in qmp_query_fdsets()
401 mon_fdset_fd->fd = fd; in monitor_fdset_add_fd()
407 fdinfo->fd = mon_fdset_fd->fd; in monitor_fdset_add_fd()
[all …]
/qemu/hw/9pfs/
A D9p-util-darwin.c20 if (fd == -1) { in fgetxattrat_nofollow()
24 close_preserve_errno(fd); in fgetxattrat_nofollow()
34 if (fd == -1) { in flistxattrat_nofollow()
47 if (fd == -1) { in fremovexattrat_nofollow()
60 if (fd == -1) { in fsetxattrat_nofollow()
78 int fd, err; in create_socket_file_at_cwd() local
89 if (fd == -1) { in create_socket_file_at_cwd()
90 return fd; in create_socket_file_at_cwd()
119 if (fd == -1) { in qemu_mknodat()
120 return fd; in qemu_mknodat()
[all …]
/qemu/backends/
A Diommufd.c29 be->fd = -1; in iommufd_backend_init()
48 int fd = -1; in iommufd_backend_set_fd() local
51 if (fd == -1) { in iommufd_backend_set_fd()
55 be->fd = fd; in iommufd_backend_set_fd()
78 int fd; in iommufd_backend_connect() local
85 be->fd = fd; in iommufd_backend_connect()
110 int fd = be->fd; in iommufd_backend_alloc_ioas() local
129 int ret, fd = be->fd; in iommufd_backend_free_id() local
145 int ret, fd = be->fd; in iommufd_backend_map_dma() local
180 int ret, fd = be->fd; in iommufd_backend_unmap_dma() local
[all …]
/qemu/linux-user/s390x/
A Dtarget_proc.h25 static void show_facilities(int fd) in show_facilities() argument
31 dprintf(fd, "facilities :"); in show_facilities()
35 dprintf(fd, " %d", bit); in show_facilities()
38 dprintf(fd, "\n"); in show_facilities()
60 dprintf(fd, "features\t: "); in show_cpu_summary()
70 dprintf(fd, "\n"); in show_cpu_summary()
71 show_facilities(fd); in show_cpu_summary()
73 dprintf(fd, "processor %d: " in show_cpu_summary()
93 show_cpu_ids(cpu_env, fd, n); in show_cpuinfo()
101 show_cpu_summary(cpu_env, fd); in open_cpuinfo()
[all …]
/qemu/util/
A Dmmap-alloc.c33 QemuFsType qemu_fd_getfs(int fd) in qemu_fd_getfs() argument
39 if (fd < 0) { in qemu_fd_getfs()
44 ret = fstatfs(fd, &fs); in qemu_fd_getfs()
60 size_t qemu_fd_getpagesize(int fd) in qemu_fd_getpagesize() argument
66 if (fd != -1) { in qemu_fd_getpagesize()
68 ret = fstatfs(fd, &fs); in qemu_fd_getpagesize()
166 if (fd == -1 || qemu_fd_getpagesize(fd) == qemu_real_host_page_size()) { in mmap_reserve()
167 fd = -1; in mmap_reserve()
173 fd = -1; in mmap_reserve()
241 return qemu_fd_getpagesize(fd); in mmap_guard_pagesize()
[all …]
A Dosdep.c45 int socket_set_nodelay(int fd) in socket_set_nodelay() argument
136 ret = qemu_dup(fd); in qemu_dup_flags()
175 int qemu_dup(int fd) in qemu_dup() argument
181 ret = dup(fd); in qemu_dup()
198 int fd; in qemu_probe_lock_ops() local
208 if (fd < 0) { in qemu_probe_lock_ops()
217 close(fd); in qemu_probe_lock_ops()
400 int qemu_close(int fd) in qemu_close() argument
404 return close(fd); in qemu_close()
611 return fdatasync(fd); in qemu_fdatasync()
[all …]
/qemu/gdbstub/
A Duser.c87 int fd; member
295 gdbserver_user_state.fd = fd; in gdb_accept_init()
300 int fd; in gdb_accept_socket() local
320 int fd, ret; in gdbserver_open_socket() local
323 if (fd < 0) { in gdbserver_open_socket()
343 return fd; in gdbserver_open_socket()
350 int fd; in gdb_accept_tcp() local
378 int fd, ret; in gdbserver_open_port() local
405 return fd; in gdbserver_open_port()
468 int fd; in gdbserver_fork_end() local
[all …]
/qemu/chardev/
A Dchar-parallel.c54 int fd; member
76 int fd = drv->fd; in pp_ioctl() local
167 drv->fd = fd; in qemu_chr_open_pp_fd()
169 if (ioctl(fd, PPCLAIM) < 0) { in qemu_chr_open_pp_fd()
182 int fd; member
236 drv->fd = fd; in qemu_chr_open_pp_fd()
248 int fd; in qmp_chardev_open_parallel() local
251 if (fd < 0) { in qmp_chardev_open_parallel()
286 int fd = drv->fd; in char_parallel_finalize() local
290 ioctl(fd, PPRELEASE); in char_parallel_finalize()
[all …]
/qemu/roms/
A Dedk2-build.config46 cpy1 = FV/OVMF_CODE.fd edk2-i386-code.fd
47 cpy2 = FV/OVMF_VARS.fd edk2-i386-vars.fd
57 cpy1 = FV/OVMF_CODE.fd edk2-i386-secure-code.fd
69 cpy1 = FV/OVMF_CODE.fd edk2-x86_64-code.fd
79 cpy1 = FV/OVMF_CODE.fd edk2-x86_64-secure-code.fd
88 cpy1 = FV/MICROVM.fd edk2-x86_64-microvm.fd
102 cpy1 = FV/QEMU_EFI.fd edk2-arm-code.fd
103 cpy2 = FV/QEMU_VARS.fd edk2-arm-vars.fd
119 cpy1 = FV/QEMU_EFI.fd edk2-aarch64-code.fd
130 cpy1 = FV/RISCV_VIRT_CODE.fd edk2-riscv-code.fd
[all …]
/qemu/migration/
A Dfd.c28 static bool fd_is_pipe(int fd) in fd_is_pipe() argument
32 if (fstat(fd, &statbuf) == -1) { in fd_is_pipe()
41 if (fd_is_socket(fd)) { in migration_fd_valid()
45 if (fd_is_pipe(fd)) { in migration_fd_valid()
56 if (fd == -1) { in fd_start_outgoing_migration()
60 if (!migration_fd_valid(fd)) { in fd_start_outgoing_migration()
65 trace_migration_fd_outgoing(fd); in fd_start_outgoing_migration()
68 close(fd); in fd_start_outgoing_migration()
90 if (fd == -1) { in fd_start_incoming_migration()
94 if (!migration_fd_valid(fd)) { in fd_start_incoming_migration()
[all …]
/qemu/qga/
A Dchannel-posix.c131 assert(fd < 0); in ga_channel_open()
140 if (fd == -1) { in ga_channel_open()
148 close(fd); in ga_channel_open()
161 close(fd); in ga_channel_open()
167 close(fd); in ga_channel_open()
174 close(fd); in ga_channel_open()
182 assert(fd < 0); in ga_channel_open()
184 if (fd == -1) { in ga_channel_open()
207 close(fd); in ga_channel_open()
213 if (fd < 0) { in ga_channel_open()
[all …]
/qemu/io/
A Dchannel-file.c31 qio_channel_file_new_fd(int fd) in qio_channel_file_new_fd() argument
37 ioc->fd = fd; in qio_channel_file_new_fd()
51 int newfd = dup(fd); in qio_channel_file_new_dupfd()
76 if (ioc->fd < 0) { in qio_channel_file_new_path()
94 ioc->fd = -1; in qio_channel_file_init()
100 if (ioc->fd != -1) { in qio_channel_file_finalize()
101 qemu_close(ioc->fd); in qio_channel_file_finalize()
102 ioc->fd = -1; in qio_channel_file_finalize()
119 ret = readv(fioc->fd, iov, niov); in qio_channel_file_readv()
259 if (qemu_close(fioc->fd) < 0) { in qio_channel_file_close()
[all …]
A Dchannel-socket.c65 sioc->fd = -1; in qio_channel_socket_new()
92 sioc->fd = fd; in qio_channel_socket_set_fd()
152 int fd; in qio_channel_socket_connect_sync() local
156 if (fd < 0) { in qio_channel_socket_connect_sync()
163 close(fd); in qio_channel_socket_connect_sync()
226 int fd; in qio_channel_socket_listen_sync() local
230 if (fd < 0) { in qio_channel_socket_listen_sync()
237 close(fd); in qio_channel_socket_listen_sync()
303 int fd; in qio_channel_socket_dgram_sync() local
307 if (fd < 0) { in qio_channel_socket_dgram_sync()
[all …]

Completed in 75 milliseconds

12345678910>>...18