/openbmc/qemu/io/ |
H A D | net-listener.c | 45 QIOChannelSocket *sioc; in qio_net_listener_channel_func() local 49 if (!sioc) { in qio_net_listener_channel_func() 115 listener->sioc = g_renew(QIOChannelSocket *, listener->sioc, in qio_net_listener_add() 120 listener->sioc[listener->nsioc] = sioc; in qio_net_listener_add() 182 QIOChannelSocket *sioc; member 192 QIOChannelSocket *sioc; in qio_net_listener_wait_client_func() local 196 if (!sioc) { in qio_net_listener_wait_client_func() 200 if (data->sioc) { in qio_net_listener_wait_client_func() 203 data->sioc = sioc; in qio_net_listener_wait_client_func() 216 .sioc = NULL, in qio_net_listener_wait_client() [all …]
|
H A D | channel-socket.c | 65 sioc->fd = -1; in qio_channel_socket_new() 78 return sioc; in qio_channel_socket_new() 87 if (sioc->fd != -1) { in qio_channel_socket_set_fd() 92 sioc->fd = fd; in qio_channel_socket_set_fd() 93 sioc->remoteAddrLen = sizeof(sioc->remoteAddr); in qio_channel_socket_set_fd() 94 sioc->localAddrLen = sizeof(sioc->localAddr); in qio_channel_socket_set_fd() 100 memset(&sioc->remoteAddr, 0, sizeof(sioc->remoteAddr)); in qio_channel_socket_set_fd() 101 sioc->remoteAddrLen = sizeof(sioc->remoteAddr); in qio_channel_socket_set_fd() 739 if (sioc->zero_copy_queued == sioc->zero_copy_sent) { in qio_channel_socket_flush() 749 while (sioc->zero_copy_sent < sioc->zero_copy_queued) { in qio_channel_socket_flush() [all …]
|
/openbmc/qemu/nbd/ |
H A D | client-connection.c | 51 QIOChannelSocket *sioc; member 109 if (conn->sioc) { in nbd_client_connection_do_free() 111 object_unref(OBJECT(conn->sioc)); in nbd_client_connection_do_free() 183 assert(!conn->sioc); in connect_thread_func() 184 conn->sioc = qio_channel_socket_new(); in connect_thread_func() 211 object_unref(OBJECT(conn->sioc)); in connect_thread_func() 212 conn->sioc = NULL; in connect_thread_func() 264 if (conn->sioc) { in nbd_client_connection_release() 309 if (conn->sioc) { in nbd_co_establish_connection() 316 conn->sioc = NULL; in nbd_co_establish_connection() [all …]
|
H A D | client.c | 1172 QIOChannel *sioc = NULL; in nbd_receive_export_list() local 1175 result = nbd_start_negotiate(ioc, tlscreds, hostname, &sioc, in nbd_receive_export_list() 1177 if (tlscreds && sioc) { in nbd_receive_export_list() 1178 ioc = sioc; in nbd_receive_export_list() 1267 object_unref(OBJECT(sioc)); in nbd_receive_export_list() 1273 int nbd_init(int fd, QIOChannelSocket *sioc, NBDExportInfo *info, in nbd_init() argument 1291 if (ioctl(fd, NBD_SET_SOCK, (unsigned long) sioc->fd) < 0) { in nbd_init()
|
H A D | server.c | 135 QIOChannelSocket *sioc; /* The underlying data channel */ member 1231 client->ioc == (QIOChannel *)client->sioc) { in nbd_negotiate_options() 1565 object_unref(OBJECT(client->sioc)); in nbd_client_put() 3215 client->sioc); in nbd_co_client_start() 3242 void nbd_client_new(QIOChannelSocket *sioc, in nbd_client_new() argument 3261 client->sioc = sioc; in nbd_client_new() 3262 qio_channel_set_delay(QIO_CHANNEL(sioc), false); in nbd_client_new() 3263 object_ref(OBJECT(client->sioc)); in nbd_client_new() 3264 client->ioc = QIO_CHANNEL(sioc); in nbd_client_new()
|
/openbmc/qemu/migration/ |
H A D | socket.c | 40 QIOChannelSocket *sioc = qio_channel_socket_new(); in socket_send_channel_create() local 41 qio_channel_socket_connect_async(sioc, outgoing_args.saddr, in socket_send_channel_create() 47 QIOChannelSocket *sioc = qio_channel_socket_new(); in socket_send_channel_create_sync() local 50 object_unref(OBJECT(sioc)); in socket_send_channel_create_sync() 56 object_unref(OBJECT(sioc)); in socket_send_channel_create_sync() 60 return QIO_CHANNEL(sioc); in socket_send_channel_create_sync() 82 QIOChannel *sioc = QIO_CHANNEL(qio_task_get_source(task)); in socket_outgoing_migration() local 98 migration_channel_connect(data->s, sioc, data->hostname, err); in socket_outgoing_migration() 99 object_unref(OBJECT(sioc)); in socket_outgoing_migration() 106 QIOChannelSocket *sioc = qio_channel_socket_new(); in socket_start_outgoing_migration() local [all …]
|
/openbmc/qemu/target/i386/kvm/ |
H A D | vmsr_energy.c | 69 QIOChannelSocket *sioc = qio_channel_socket_new(); in vmsr_open_socket() local 72 qio_channel_set_name(QIO_CHANNEL(sioc), "vmsr-helper"); in vmsr_open_socket() 73 qio_channel_socket_connect_sync(sioc, in vmsr_open_socket() 78 qio_channel_close(QIO_CHANNEL(sioc), NULL); in vmsr_open_socket() 79 object_unref(OBJECT(sioc)); in vmsr_open_socket() 80 sioc = NULL; in vmsr_open_socket() 84 qio_channel_set_delay(QIO_CHANNEL(sioc), false); in vmsr_open_socket() 86 return sioc; in vmsr_open_socket() 90 QIOChannelSocket *sioc) in vmsr_read_msr() argument 106 r = qio_channel_write_all(QIO_CHANNEL(sioc), in vmsr_read_msr() [all …]
|
H A D | vmsr_energy.h | 85 uint32_t tid, QIOChannelSocket *sioc);
|
/openbmc/qemu/chardev/ |
H A D | char-socket.c | 393 s->sioc = NULL; in tcp_chr_free_connection() 897 s->ioc = QIO_CHANNEL(sioc); in tcp_chr_new_client() 898 object_ref(OBJECT(sioc)); in tcp_chr_new_client() 899 s->sioc = sioc; in tcp_chr_new_client() 900 object_ref(OBJECT(sioc)); in tcp_chr_new_client() 929 QIOChannelSocket *sioc; in tcp_chr_add_client() local 937 if (!sioc) { in tcp_chr_add_client() 948 object_unref(OBJECT(sioc)); in tcp_chr_add_client() 987 object_unref(OBJECT(sioc)); in tcp_chr_connect_client_sync() 995 QIOChannelSocket *sioc; in tcp_chr_accept_server_sync() local [all …]
|
H A D | char-udp.c | 200 QIOChannelSocket *sioc = qio_channel_socket_new(); in qmp_chardev_open_udp() local 205 ret = qio_channel_socket_dgram_sync(sioc, local_addr, remote_addr, errp); in qmp_chardev_open_udp() 209 object_unref(OBJECT(sioc)); in qmp_chardev_open_udp() 214 qio_channel_set_name(QIO_CHANNEL(sioc), name); in qmp_chardev_open_udp() 217 s->ioc = QIO_CHANNEL(sioc); in qmp_chardev_open_udp()
|
/openbmc/qemu/util/ |
H A D | vhost-user-server.c | 240 object_unref(OBJECT(server->sioc)); in vu_client_trip() 241 server->sioc = NULL; in vu_client_trip() 335 static void vu_accept(QIONetListener *listener, QIOChannelSocket *sioc, in vu_accept() argument 340 if (server->sioc) { in vu_accept() 360 server->sioc = sioc; in vu_accept() 365 object_ref(OBJECT(server->sioc)); in vu_accept() 366 qio_channel_set_name(QIO_CHANNEL(sioc), "vhost-user client"); in vu_accept() 367 server->ioc = QIO_CHANNEL(sioc); in vu_accept() 384 if (server->sioc) { in vhost_user_server_stop() 422 if (!server->sioc) { in vhost_user_server_attach_aio_context() [all …]
|
/openbmc/qemu/include/io/ |
H A D | net-listener.h | 33 QIOChannelSocket *sioc, 50 QIOChannelSocket **sioc; member 114 QIOChannelSocket *sioc);
|
/openbmc/qemu/net/ |
H A D | stream.c | 328 QIOChannelSocket *sioc = QIO_CHANNEL_SOCKET(s->ioc); in net_stream_client_connected() local 340 addr = qio_channel_socket_get_remote_address(sioc, NULL); in net_stream_client_connected() 346 ret = qemu_socket_try_set_nonblock(sioc->fd); in net_stream_client_connected() 376 QIOChannelSocket *sioc; in net_stream_reconnect() local 380 sioc = qio_channel_socket_new(); in net_stream_reconnect() 381 s->ioc = QIO_CHANNEL(sioc); in net_stream_reconnect() 382 qio_channel_socket_connect_async(sioc, s->addr, in net_stream_reconnect() 406 QIOChannelSocket *sioc = qio_channel_socket_new(); in net_stream_client_init() local 412 s->ioc = QIO_CHANNEL(sioc); in net_stream_client_init() 419 qio_channel_socket_connect_async(sioc, addr, in net_stream_client_init()
|
/openbmc/qemu/ |
H A D | qemu-nbd.c | 187 QIOChannelSocket *sioc; in qemu_nbd_client_list() local 191 sioc = qio_channel_socket_new(); in qemu_nbd_client_list() 254 object_unref(OBJECT(sioc)); in qemu_nbd_client_list() 306 QIOChannelSocket *sioc; in nbd_client_thread() local 312 sioc = qio_channel_socket_new(); in nbd_client_thread() 313 if (qio_channel_socket_connect_sync(sioc, in nbd_client_thread() 360 object_unref(OBJECT(sioc)); in nbd_client_thread() 1076 QIOChannelSocket *sioc; in main() local 1079 if (sioc == NULL) { in main() 1085 qio_net_listener_add(server, sioc); in main() [all …]
|
/openbmc/qemu/ui/ |
H A D | input-barrier.c | 37 QIOChannelSocket *sioc; member 220 ret = qio_channel_read(QIO_CHANNEL(ib->sioc), ib->buffer, len, NULL); in readcmd() 463 ret = qio_channel_write(QIO_CHANNEL(ib->sioc), ib->buffer, in writecmd() 506 ib->sioc = qio_channel_socket_new(); in input_barrier_complete() 507 qio_channel_set_name(QIO_CHANNEL(ib->sioc), "barrier-client"); in input_barrier_complete() 509 qio_channel_socket_connect_sync(ib->sioc, &ib->saddr, &local_err); in input_barrier_complete() 515 qio_channel_set_delay(QIO_CHANNEL(ib->sioc), false); in input_barrier_complete() 517 ib->ioc_tag = qio_channel_add_watch(QIO_CHANNEL(ib->sioc), G_IO_IN, in input_barrier_complete() 530 if (ib->sioc) { in input_barrier_instance_finalize() 531 qio_channel_close(QIO_CHANNEL(ib->sioc), NULL); in input_barrier_instance_finalize() [all …]
|
H A D | vnc.c | 1362 object_unref(OBJECT(vs->sioc)); in vnc_disconnect_finish() 1363 vs->sioc = NULL; in vnc_disconnect_finish() 3253 vs->sioc = sioc; in vnc_connect() 3254 object_ref(OBJECT(vs->sioc)); in vnc_connect() 3255 vs->ioc = QIO_CHANNEL(sioc); in vnc_connect() 3926 QIOChannelSocket *sioc = NULL; in vnc_display_connect() local 3940 object_unref(OBJECT(sioc)); in vnc_display_connect() 3944 object_unref(OBJECT(sioc)); in vnc_display_connect() 4248 QIOChannelSocket *sioc; in vnc_display_add_client() local 4255 if (sioc) { in vnc_display_add_client() [all …]
|
H A D | vnc-auth-sasl.c | 564 localAddr = vnc_socket_ip_addr_string(vs->sioc, true, &local_err); in start_auth_sasl() 571 remoteAddr = vnc_socket_ip_addr_string(vs->sioc, false, &local_err); in start_auth_sasl()
|
H A D | vnc-jobs.c | 182 local->sioc = NULL; /* Don't do any network work on this thread */ in vnc_async_encoding_start()
|
/openbmc/qemu/scsi/ |
H A D | pr-manager-helper.c | 107 QIOChannelSocket *sioc = qio_channel_socket_new(); in pr_manager_helper_initialize() local 114 qio_channel_set_name(QIO_CHANNEL(sioc), "pr-manager-helper"); in pr_manager_helper_initialize() 115 qio_channel_socket_connect_sync(sioc, in pr_manager_helper_initialize() 120 object_unref(OBJECT(sioc)); in pr_manager_helper_initialize() 125 qio_channel_set_delay(QIO_CHANNEL(sioc), false); in pr_manager_helper_initialize() 126 pr_mgr->ioc = QIO_CHANNEL(sioc); in pr_manager_helper_initialize()
|
/openbmc/linux/net/atm/ |
H A D | ioctl.c | 203 struct atmif_sioc __user *sioc = argp; in do_vcc_ioctl() local 205 len = &sioc->length; in do_vcc_ioctl() 206 if (get_user(buf, &sioc->arg)) in do_vcc_ioctl() 208 if (get_user(number, &sioc->number)) in do_vcc_ioctl()
|
/openbmc/qemu/include/chardev/ |
H A D | char-socket.h | 52 QIOChannelSocket *sioc; /* Client master channel */ member
|
/openbmc/qemu/include/qemu/ |
H A D | vhost-user-server.h | 51 QIOChannelSocket *sioc; /* The underlying data channel with the client */ member
|
/openbmc/qemu/include/sysemu/ |
H A D | kvm_int.h | 72 QIOChannelSocket *sioc; member
|
/openbmc/qemu/include/block/ |
H A D | nbd.h | 403 int nbd_init(int fd, QIOChannelSocket *sioc, NBDExportInfo *info, 418 void nbd_client_new(QIOChannelSocket *sioc,
|
/openbmc/qemu/block/export/ |
H A D | vhost-user-blk-server.c | 39 QIOChannelSocket *sioc; member
|