Home
last modified time | relevance | path

Searched refs:cioc (Results 1 – 14 of 14) sorted by relevance

/openbmc/qemu/io/
H A Dchannel-command.c210 QIOChannelCommand *cioc = QIO_CHANNEL_COMMAND(ioc); in qio_channel_command_readv() local
214 if (!cioc->blocking && !win32_fd_poll(cioc->readfd, G_IO_IN)) { in qio_channel_command_readv()
220 ret = readv(cioc->readfd, iov, niov); in qio_channel_command_readv()
245 QIOChannelCommand *cioc = QIO_CHANNEL_COMMAND(ioc); in qio_channel_command_writev() local
249 if (!cioc->blocking && !win32_fd_poll(cioc->writefd, G_IO_OUT)) { in qio_channel_command_writev()
255 ret = writev(cioc->writefd, iov, niov); in qio_channel_command_writev()
274 QIOChannelCommand *cioc = QIO_CHANNEL_COMMAND(ioc); in qio_channel_command_set_blocking() local
277 cioc->blocking = enabled; in qio_channel_command_set_blocking()
280 if ((cioc->writefd >= 0 && !g_unix_set_fd_nonblocking(cioc->writefd, !enabled, NULL)) || in qio_channel_command_set_blocking()
281 (cioc->readfd >= 0 && !g_unix_set_fd_nonblocking(cioc->readfd, !enabled, NULL))) { in qio_channel_command_set_blocking()
[all …]
H A Dchannel-socket.c380 QIOChannelSocket *cioc; in qio_channel_socket_accept() local
382 cioc = qio_channel_socket_new(); in qio_channel_socket_accept()
383 cioc->remoteAddrLen = sizeof(ioc->remoteAddr); in qio_channel_socket_accept()
384 cioc->localAddrLen = sizeof(ioc->localAddr); in qio_channel_socket_accept()
388 cioc->fd = qemu_accept(ioc->fd, (struct sockaddr *)&cioc->remoteAddr, in qio_channel_socket_accept()
389 &cioc->remoteAddrLen); in qio_channel_socket_accept()
390 if (cioc->fd < 0) { in qio_channel_socket_accept()
399 if (getsockname(cioc->fd, (struct sockaddr *)&cioc->localAddr, in qio_channel_socket_accept()
400 &cioc->localAddrLen) < 0) { in qio_channel_socket_accept()
407 if (cioc->localAddr.ss_family == AF_UNIX) { in qio_channel_socket_accept()
[all …]
H A Dtrace-events33 qio_channel_socket_accept_complete(void *ioc, void *cioc, int fd) "Socket accept complete ioc=%p ci…
/openbmc/qemu/
H A Dblockdev-nbd.c25 QIOChannelSocket *cioc; member
64 object_unref(OBJECT(conn->cioc)); in nbd_blockdev_client_closed()
74 static void nbd_accept(QIONetListener *listener, QIOChannelSocket *cioc, in nbd_accept() argument
81 object_ref(OBJECT(cioc)); in nbd_accept()
82 conn->cioc = cioc; in nbd_accept()
86 qio_channel_set_name(QIO_CHANNEL(cioc), "nbd-server"); in nbd_accept()
88 nbd_client_new(cioc, NBD_DEFAULT_HANDSHAKE_MAX_SECS, in nbd_accept()
121 qio_channel_shutdown(QIO_CHANNEL(conn->cioc), QIO_CHANNEL_SHUTDOWN_BOTH, in nbd_server_free()
H A Dqemu-nbd.c384 static void nbd_accept(QIONetListener *listener, QIOChannelSocket *cioc, in nbd_accept() argument
394 nbd_client_new(cioc, NBD_DEFAULT_HANDSHAKE_MAX_SECS, in nbd_accept()
/openbmc/qemu/net/
H A Dstream.c60 QIOChannelSocket *cioc,
238 QIOChannelSocket *cioc, in net_stream_listen() argument
245 object_ref(OBJECT(cioc)); in net_stream_listen()
249 s->ioc = QIO_CHANNEL(cioc); in net_stream_listen()
256 if (cioc->localAddr.ss_family == AF_UNIX) { in net_stream_listen()
257 addr = qio_channel_socket_get_local_address(cioc, NULL); in net_stream_listen()
259 addr = qio_channel_socket_get_remote_address(cioc, NULL); in net_stream_listen()
/openbmc/qemu/migration/
H A Dsocket.c120 QIOChannelSocket *cioc, in socket_accept_incoming_migration() argument
131 qio_channel_set_name(QIO_CHANNEL(cioc), "migration-socket-incoming"); in socket_accept_incoming_migration()
132 migration_channel_process_incoming(QIO_CHANNEL(cioc)); in socket_accept_incoming_migration()
/openbmc/qemu/tests/unit/
H A Dtest-yank.c55 QIOChannelSocket *cioc; in accept_thread() local
57 cioc = qio_channel_socket_accept(ioc, &error_abort); in accept_thread()
58 object_unref(OBJECT(cioc)); in accept_thread()
H A Dtest-char.c906 QIOChannelSocket *cioc; in char_socket_client_server_thread() local
909 cioc = qio_channel_socket_accept(ioc, &error_abort); in char_socket_client_server_thread()
910 g_assert_nonnull(cioc); in char_socket_client_server_thread()
912 if (char_socket_ping_pong(QIO_CHANNEL(cioc), NULL) != 0) { in char_socket_client_server_thread()
/openbmc/qemu/tools/i386/
H A Dqemu-vmsr-helper.c284 QIOChannelSocket *cioc; in accept_client() local
287 cioc = qio_channel_socket_accept(QIO_CHANNEL_SOCKET(ioc), in accept_client()
289 if (!cioc) { in accept_client()
294 vmsrh->ioc = cioc; in accept_client()
/openbmc/qemu/scsi/
H A Dqemu-pr-helper.c804 QIOChannelSocket *cioc; in accept_client() local
807 cioc = qio_channel_socket_accept(QIO_CHANNEL_SOCKET(ioc), in accept_client()
809 if (!cioc) { in accept_client()
814 prh->ioc = cioc; in accept_client()
/openbmc/qemu/chardev/
H A Dchar-socket.c101 QIOChannelSocket *cioc,
953 QIOChannelSocket *cioc, in tcp_chr_accept() argument
960 tcp_chr_set_client_ioc_name(chr, cioc); in tcp_chr_accept()
964 QIO_CHANNEL(cioc)); in tcp_chr_accept()
966 tcp_chr_new_client(chr, cioc); in tcp_chr_accept()
/openbmc/qemu/ui/
H A Dvnc.c3367 QIOChannelSocket *cioc, in vnc_listen_io() argument
3373 qio_channel_set_name(QIO_CHANNEL(cioc), in vnc_listen_io()
3375 qio_channel_set_delay(QIO_CHANNEL(cioc), false); in vnc_listen_io()
3376 vnc_connect(vd, cioc, false, isWebsock); in vnc_listen_io()
/openbmc/linux/drivers/scsi/megaraid/
H A Dmegaraid_sas_base.c8480 struct compat_megasas_iocpacket __user *cioc = arg; in megasas_compat_iocpacket_get_user() local
8495 if (get_user(iov_base, &cioc->sgl[i].iov_base) || in megasas_compat_iocpacket_get_user()
8496 get_user(ioc->sgl[i].iov_len, &cioc->sgl[i].iov_len)) in megasas_compat_iocpacket_get_user()