Home
last modified time | relevance | path

Searched refs:csock (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/net/bluetooth/hidp/
H A Dsock.c56 struct socket *csock; in do_hidp_sock_ioctl() local
70 csock = sockfd_lookup(ca.ctrl_sock, &err); in do_hidp_sock_ioctl()
71 if (!csock) in do_hidp_sock_ioctl()
76 sockfd_put(csock); in do_hidp_sock_ioctl()
81 err = hidp_connection_add(&ca, csock, isock); in do_hidp_sock_ioctl()
85 sockfd_put(csock); in do_hidp_sock_ioctl()
175 struct socket *csock; in hidp_sock_compat_ioctl() local
199 csock = sockfd_lookup(ca.ctrl_sock, &err); in hidp_sock_compat_ioctl()
200 if (!csock) in hidp_sock_compat_ioctl()
205 sockfd_put(csock); in hidp_sock_compat_ioctl()
[all …]
/openbmc/qemu/contrib/vhost-user-scsi/
H A Dvhost-user-scsi.c374 int lsock = -1, csock = -1, err = EXIT_SUCCESS; in main() local
409 csock = accept(lsock, NULL, NULL); in main()
410 if (csock < 0) { in main()
422 if (!vug_init(&vdev_scsi->parent, VHOST_USER_SCSI_MAX_QUEUES, csock, in main()
437 if (csock >= 0) { in main()
438 close(csock); in main()
/openbmc/qemu/contrib/vhost-user-blk/
H A Dvhost-user-blk.c598 int lsock = -1, csock = -1; in main() local
637 csock = accept(lsock, NULL, NULL); in main()
638 if (csock < 0) { in main()
651 if (!vug_init(&vdev_blk->parent, VHOST_USER_BLK_MAX_QUEUES, csock, in main()
662 if (csock >= 0) { in main()
663 close(csock); in main()
/openbmc/qemu/ui/
H A Ddbus.c286 dbus_display_add_client(int csock, Error **errp) in dbus_display_add_client() argument
303 socket = g_socket_new_from_fd(_get_osfhandle(csock), &err); in dbus_display_add_client()
305 socket = g_socket_new_from_fd(csock, &err); in dbus_display_add_client()
309 close(csock); in dbus_display_add_client()
314 qemu_close_socket_osfhandle(csock); in dbus_display_add_client()
H A Ddbus-module.c27 qemu_dbus_display_add_client(int csock, Error **errp) in qemu_dbus_display_add_client() argument
H A Dspice-module.c58 static int qemu_spice_display_add_client_stub(int csock, int skipauth, in qemu_spice_display_add_client_stub() argument
H A Dspice-core.c929 static int qemu_spice_display_add_client(int csock, int skipauth, int tls) in qemu_spice_display_add_client() argument
932 csock = qemu_close_socket_osfhandle(csock); in qemu_spice_display_add_client()
935 return spice_server_add_ssl_client(spice_server, csock, skipauth); in qemu_spice_display_add_client()
937 return spice_server_add_client(spice_server, csock, skipauth); in qemu_spice_display_add_client()
H A Dvnc.c4245 void vnc_display_add_client(const char *id, int csock, bool skipauth) in vnc_display_add_client() argument
4254 sioc = qio_channel_socket_new_fd(csock, NULL); in vnc_display_add_client()
/openbmc/qemu/include/ui/
H A Ddbus-module.h5 bool (*add_client)(int csock, Error **errp);
H A Dqemu-spice-module.h34 int (*display_add_client)(int csock, int skipauth, int tls);
H A Dconsole.h459 void vnc_display_add_client(const char *id, int csock, bool skipauth);
/openbmc/linux/net/kcm/
H A Dkcmsock.c1232 csk = csock->sk; in kcm_attach()
1321 struct socket *csock; in kcm_attach_ioctl() local
1325 csock = sockfd_lookup(info->fd, &err); in kcm_attach_ioctl()
1326 if (!csock) in kcm_attach_ioctl()
1335 err = kcm_attach(sock, csock, prog); in kcm_attach_ioctl()
1345 sockfd_put(csock); in kcm_attach_ioctl()
1450 struct socket *csock; in kcm_unattach_ioctl() local
1454 csock = sockfd_lookup(info->fd, &err); in kcm_unattach_ioctl()
1455 if (!csock) in kcm_unattach_ioctl()
1458 csk = csock->sk; in kcm_unattach_ioctl()
[all …]