sockfd             46 drivers/usb/usbip/stub_dev.c 	int sockfd = 0;
sockfd             55 drivers/usb/usbip/stub_dev.c 	rv = sscanf(buf, "%d", &sockfd);
sockfd             59 drivers/usb/usbip/stub_dev.c 	if (sockfd != -1) {
sockfd             71 drivers/usb/usbip/stub_dev.c 		socket = sockfd_lookup(sockfd, &err);
sockfd             76 drivers/usb/usbip/stub_dev.c 		sdev->ud.sockfd = sockfd;
sockfd            128 drivers/usb/usbip/stub_dev.c 		dev_dbg(&sdev->udev->dev, "shutdown sockfd %d\n", ud->sockfd);
sockfd            151 drivers/usb/usbip/stub_dev.c 		ud->sockfd = -1;
sockfd            246 drivers/usb/usbip/stub_dev.c 	sdev->ud.sockfd		= -1;
sockfd            266 drivers/usb/usbip/usbip_common.h 	int sockfd;
sockfd           1006 drivers/usb/usbip/vhci_hcd.c 		pr_debug("shutdown tcp_socket %d\n", ud->sockfd);
sockfd           1025 drivers/usb/usbip/vhci_hcd.c 		vdev->ud.sockfd = -1;
sockfd           1072 drivers/usb/usbip/vhci_hcd.c 		ud->sockfd = -1;
sockfd             51 drivers/usb/usbip/vhci_sysfs.c 				      vdev->ud.sockfd,
sockfd            307 drivers/usb/usbip/vhci_sysfs.c 	int sockfd = 0;
sockfd            322 drivers/usb/usbip/vhci_sysfs.c 	if (sscanf(buf, "%u %u %u %u", &port, &sockfd, &devid, &speed) != 4)
sockfd            330 drivers/usb/usbip/vhci_sysfs.c 			     sockfd, devid, speed);
sockfd            351 drivers/usb/usbip/vhci_sysfs.c 	socket = sockfd_lookup(sockfd, &err);
sockfd            377 drivers/usb/usbip/vhci_sysfs.c 		 pdev_nr, rhport, sockfd);
sockfd            383 drivers/usb/usbip/vhci_sysfs.c 	vdev->ud.sockfd     = sockfd;
sockfd             98 drivers/usb/usbip/vudc_sysfs.c 	int sockfd = 0;
sockfd            104 drivers/usb/usbip/vudc_sysfs.c 	rv = kstrtoint(in, 0, &sockfd);
sockfd            120 drivers/usb/usbip/vudc_sysfs.c 	if (sockfd != -1) {
sockfd            134 drivers/usb/usbip/vudc_sysfs.c 		socket = sockfd_lookup(sockfd, &err);
sockfd             32 tools/testing/selftests/android/ion/ionapp_export.c 	int sockfd, client_fd, shared_fd;
sockfd             90 tools/testing/selftests/android/ion/ionapp_export.c 	status = opensocket(&sockfd, SOCKET_NAME, 1);
sockfd             95 tools/testing/selftests/android/ion/ionapp_export.c 	skinfo.sockfd = sockfd;
sockfd            124 tools/testing/selftests/android/ion/ionapp_export.c 	closesocket(sockfd, SOCKET_NAME);
sockfd             23 tools/testing/selftests/android/ion/ionapp_import.c 	int sockfd, shared_fd;
sockfd             30 tools/testing/selftests/android/ion/ionapp_import.c 	status = opensocket(&sockfd, SOCKET_NAME, 0);
sockfd             37 tools/testing/selftests/android/ion/ionapp_import.c 	skinfo.sockfd = sockfd;
sockfd             76 tools/testing/selftests/android/ion/ionapp_import.c 	closesocket(sockfd, SOCKET_NAME);
sockfd            208 tools/testing/selftests/android/ion/ionutils.c 	int fd, sockfd;
sockfd            216 tools/testing/selftests/android/ion/ionutils.c 	sockfd = info->sockfd;
sockfd            221 tools/testing/selftests/android/ion/ionutils.c 	status = sendtosocket(sockfd, &skdata);
sockfd            233 tools/testing/selftests/android/ion/ionutils.c 	int fd, sockfd;
sockfd            241 tools/testing/selftests/android/ion/ionutils.c 	sockfd = info->sockfd;
sockfd            243 tools/testing/selftests/android/ion/ionutils.c 	status = receivefromsocket(sockfd, &skdata);
sockfd             13 tools/testing/selftests/android/ion/ionutils.h 	int sockfd;
sockfd             14 tools/testing/selftests/android/ion/ipcsocket.c int opensocket(int *sockfd, const char *name, int connecttype)
sockfd             30 tools/testing/selftests/android/ion/ipcsocket.c 	*sockfd = ret;
sockfd             31 tools/testing/selftests/android/ion/ipcsocket.c 	if (setsockopt(*sockfd, SOL_SOCKET, SO_REUSEADDR,
sockfd             51 tools/testing/selftests/android/ion/ipcsocket.c 		ret = bind(*sockfd, (struct sockaddr *)&skaddr,
sockfd             59 tools/testing/selftests/android/ion/ipcsocket.c 		ret = listen(*sockfd, 5);
sockfd             69 tools/testing/selftests/android/ion/ipcsocket.c 		ret = accept(*sockfd, (struct sockaddr *)&skaddr,
sockfd             78 tools/testing/selftests/android/ion/ipcsocket.c 		*sockfd = clientfd;
sockfd             87 tools/testing/selftests/android/ion/ipcsocket.c 		ret = connect(*sockfd, (struct sockaddr *)&skaddr,
sockfd             99 tools/testing/selftests/android/ion/ipcsocket.c 	if (*sockfd)
sockfd            100 tools/testing/selftests/android/ion/ipcsocket.c 		close(*sockfd);
sockfd            105 tools/testing/selftests/android/ion/ipcsocket.c int sendtosocket(int sockfd, struct socketdata *skdata)
sockfd            123 tools/testing/selftests/android/ion/ipcsocket.c 	FD_SET(sockfd, &selFDs);
sockfd            127 tools/testing/selftests/android/ion/ipcsocket.c 	ret = select(sockfd+1, NULL, &selFDs, NULL, &timeout);
sockfd            134 tools/testing/selftests/android/ion/ipcsocket.c 	if (FD_ISSET(sockfd, &selFDs)) {
sockfd            150 tools/testing/selftests/android/ion/ipcsocket.c 		ret = sendmsg(sockfd, &msgh, MSG_DONTWAIT);
sockfd            161 tools/testing/selftests/android/ion/ipcsocket.c int receivefromsocket(int sockfd, struct socketdata *skdata)
sockfd            179 tools/testing/selftests/android/ion/ipcsocket.c 	FD_SET(sockfd, &recvFDs);
sockfd            181 tools/testing/selftests/android/ion/ipcsocket.c 	ret = select(sockfd+1, &recvFDs, NULL, NULL, NULL);
sockfd            188 tools/testing/selftests/android/ion/ipcsocket.c 	if (FD_ISSET(sockfd, &recvFDs)) {
sockfd            202 tools/testing/selftests/android/ion/ipcsocket.c 		ret = recvmsg(sockfd, &msgh, MSG_DONTWAIT);
sockfd            216 tools/testing/selftests/android/ion/ipcsocket.c int closesocket(int sockfd, char *name)
sockfd            220 tools/testing/selftests/android/ion/ipcsocket.c 	if (sockfd)
sockfd            221 tools/testing/selftests/android/ion/ipcsocket.c 		close(sockfd);
sockfd            224 tools/testing/selftests/android/ion/ipcsocket.c 	shutdown(sockfd, 2);
sockfd             23 tools/testing/selftests/android/ion/ipcsocket.h int opensocket(int *sockfd, const char *name, int connecttype);
sockfd             26 tools/testing/selftests/android/ion/ipcsocket.h int sendtosocket(int sockfd, struct socketdata *data);
sockfd             29 tools/testing/selftests/android/ion/ipcsocket.h int receivefromsocket(int sockfd, struct socketdata *data);
sockfd             32 tools/testing/selftests/android/ion/ipcsocket.h int closesocket(int sockfd, char *name);
sockfd            360 tools/testing/selftests/bpf/test_sock.c 	int sockfd = -1;
sockfd            364 tools/testing/selftests/bpf/test_sock.c 	sockfd = socket(domain, type, 0);
sockfd            365 tools/testing/selftests/bpf/test_sock.c 	if (sockfd < 0)
sockfd            388 tools/testing/selftests/bpf/test_sock.c 	if (bind(sockfd, (const struct sockaddr *)&addr, len) == -1)
sockfd            395 tools/testing/selftests/bpf/test_sock.c 	close(sockfd);
sockfd           1319 tools/testing/selftests/bpf/test_sock_addr.c static int recvmsg_from_client(int sockfd, struct sockaddr_storage *src_addr)
sockfd           1328 tools/testing/selftests/bpf/test_sock_addr.c 	FD_SET(sockfd, &rfds);
sockfd           1333 tools/testing/selftests/bpf/test_sock_addr.c 	if (select(sockfd + 1, &rfds, NULL, NULL, &tv) <= 0 ||
sockfd           1334 tools/testing/selftests/bpf/test_sock_addr.c 	    !FD_ISSET(sockfd, &rfds))
sockfd           1347 tools/testing/selftests/bpf/test_sock_addr.c 	return recvmsg(sockfd, &hdr, 0);
sockfd            212 tools/usb/usbip/libsrc/usbip_host_common.c int usbip_export_device(struct usbip_exported_device *edev, int sockfd)
sockfd            247 tools/usb/usbip/libsrc/usbip_host_common.c 	size = snprintf(sockfd_buff, sizeof(sockfd_buff), "%d\n", sockfd);
sockfd             88 tools/usb/usbip/libsrc/usbip_host_common.h int usbip_export_device(struct usbip_exported_device *edev, int sockfd);
sockfd             53 tools/usb/usbip/libsrc/vhci_driver.c 		int sockfd;
sockfd             60 tools/usb/usbip/libsrc/vhci_driver.c 				&devid, &sockfd, lbusid);
sockfd             69 tools/usb/usbip/libsrc/vhci_driver.c 		dbg("sockfd %u lbusid %s", sockfd, lbusid);
sockfd            357 tools/usb/usbip/libsrc/vhci_driver.c int usbip_vhci_attach_device2(uint8_t port, int sockfd, uint32_t devid,
sockfd            366 tools/usb/usbip/libsrc/vhci_driver.c 			port, sockfd, devid, speed);
sockfd            391 tools/usb/usbip/libsrc/vhci_driver.c int usbip_vhci_attach_device(uint8_t port, int sockfd, uint8_t busnum,
sockfd            396 tools/usb/usbip/libsrc/vhci_driver.c 	return usbip_vhci_attach_device2(port, sockfd, devid, speed);
sockfd             56 tools/usb/usbip/libsrc/vhci_driver.h int usbip_vhci_attach_device2(uint8_t port, int sockfd, uint32_t devid,
sockfd             60 tools/usb/usbip/libsrc/vhci_driver.h int usbip_vhci_attach_device(uint8_t port, int sockfd, uint8_t busnum,
sockfd             81 tools/usb/usbip/src/usbip_attach.c static int import_device(int sockfd, struct usbip_usb_device *udev)
sockfd            102 tools/usb/usbip/src/usbip_attach.c 		rc = usbip_vhci_attach_device(port, sockfd, udev->busnum,
sockfd            120 tools/usb/usbip/src/usbip_attach.c static int query_import_device(int sockfd, char *busid)
sockfd            132 tools/usb/usbip/src/usbip_attach.c 	rc = usbip_net_send_op_common(sockfd, OP_REQ_IMPORT, 0);
sockfd            142 tools/usb/usbip/src/usbip_attach.c 	rc = usbip_net_send(sockfd, (void *) &request, sizeof(request));
sockfd            149 tools/usb/usbip/src/usbip_attach.c 	rc = usbip_net_recv_op_common(sockfd, &code, &status);
sockfd            156 tools/usb/usbip/src/usbip_attach.c 	rc = usbip_net_recv(sockfd, (void *) &reply, sizeof(reply));
sockfd            171 tools/usb/usbip/src/usbip_attach.c 	return import_device(sockfd, &reply.udev);
sockfd            176 tools/usb/usbip/src/usbip_attach.c 	int sockfd;
sockfd            180 tools/usb/usbip/src/usbip_attach.c 	sockfd = usbip_net_tcp_connect(host, usbip_port_string);
sockfd            181 tools/usb/usbip/src/usbip_attach.c 	if (sockfd < 0) {
sockfd            186 tools/usb/usbip/src/usbip_attach.c 	rhport = query_import_device(sockfd, busid);
sockfd            190 tools/usb/usbip/src/usbip_attach.c 	close(sockfd);
sockfd             43 tools/usb/usbip/src/usbip_list.c static int get_exported_devices(char *host, int sockfd)
sockfd             55 tools/usb/usbip/src/usbip_list.c 	rc = usbip_net_send_op_common(sockfd, OP_REQ_DEVLIST, 0);
sockfd             61 tools/usb/usbip/src/usbip_list.c 	rc = usbip_net_recv_op_common(sockfd, &code, &status);
sockfd             69 tools/usb/usbip/src/usbip_list.c 	rc = usbip_net_recv(sockfd, &reply, sizeof(reply));
sockfd             88 tools/usb/usbip/src/usbip_list.c 		rc = usbip_net_recv(sockfd, &udev, sizeof(udev));
sockfd            105 tools/usb/usbip/src/usbip_list.c 			rc = usbip_net_recv(sockfd, &uintf, sizeof(uintf));
sockfd            130 tools/usb/usbip/src/usbip_list.c 	int sockfd;
sockfd            132 tools/usb/usbip/src/usbip_list.c 	sockfd = usbip_net_tcp_connect(host, usbip_port_string);
sockfd            133 tools/usb/usbip/src/usbip_list.c 	if (sockfd < 0) {
sockfd            135 tools/usb/usbip/src/usbip_list.c 		    usbip_port_string, gai_strerror(sockfd));
sockfd            140 tools/usb/usbip/src/usbip_list.c 	rc = get_exported_devices(host, sockfd);
sockfd            146 tools/usb/usbip/src/usbip_list.c 	close(sockfd);
sockfd             95 tools/usb/usbip/src/usbip_network.c static ssize_t usbip_net_xmit(int sockfd, void *buff, size_t bufflen,
sockfd            106 tools/usb/usbip/src/usbip_network.c 			nbytes = send(sockfd, buff, bufflen, 0);
sockfd            108 tools/usb/usbip/src/usbip_network.c 			nbytes = recv(sockfd, buff, bufflen, MSG_WAITALL);
sockfd            122 tools/usb/usbip/src/usbip_network.c ssize_t usbip_net_recv(int sockfd, void *buff, size_t bufflen)
sockfd            124 tools/usb/usbip/src/usbip_network.c 	return usbip_net_xmit(sockfd, buff, bufflen, 0);
sockfd            127 tools/usb/usbip/src/usbip_network.c ssize_t usbip_net_send(int sockfd, void *buff, size_t bufflen)
sockfd            129 tools/usb/usbip/src/usbip_network.c 	return usbip_net_xmit(sockfd, buff, bufflen, 1);
sockfd            140 tools/usb/usbip/src/usbip_network.c int usbip_net_send_op_common(int sockfd, uint32_t code, uint32_t status)
sockfd            153 tools/usb/usbip/src/usbip_network.c 	rc = usbip_net_send(sockfd, &op_common, sizeof(op_common));
sockfd            162 tools/usb/usbip/src/usbip_network.c int usbip_net_recv_op_common(int sockfd, uint16_t *code, int *status)
sockfd            169 tools/usb/usbip/src/usbip_network.c 	rc = usbip_net_recv(sockfd, &op_common, sizeof(op_common));
sockfd            210 tools/usb/usbip/src/usbip_network.c int usbip_net_set_reuseaddr(int sockfd)
sockfd            215 tools/usb/usbip/src/usbip_network.c 	ret = setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val));
sockfd            222 tools/usb/usbip/src/usbip_network.c int usbip_net_set_nodelay(int sockfd)
sockfd            227 tools/usb/usbip/src/usbip_network.c 	ret = setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof(val));
sockfd            234 tools/usb/usbip/src/usbip_network.c int usbip_net_set_keepalive(int sockfd)
sockfd            239 tools/usb/usbip/src/usbip_network.c 	ret = setsockopt(sockfd, SOL_SOCKET, SO_KEEPALIVE, &val, sizeof(val));
sockfd            246 tools/usb/usbip/src/usbip_network.c int usbip_net_set_v6only(int sockfd)
sockfd            251 tools/usb/usbip/src/usbip_network.c 	ret = setsockopt(sockfd, IPPROTO_IPV6, IPV6_V6ONLY, &val, sizeof(val));
sockfd            264 tools/usb/usbip/src/usbip_network.c 	int sockfd;
sockfd            281 tools/usb/usbip/src/usbip_network.c 		sockfd = socket(rp->ai_family, rp->ai_socktype,
sockfd            283 tools/usb/usbip/src/usbip_network.c 		if (sockfd < 0)
sockfd            287 tools/usb/usbip/src/usbip_network.c 		usbip_net_set_nodelay(sockfd);
sockfd            289 tools/usb/usbip/src/usbip_network.c 		usbip_net_set_keepalive(sockfd);
sockfd            291 tools/usb/usbip/src/usbip_network.c 		if (connect(sockfd, rp->ai_addr, rp->ai_addrlen) == 0)
sockfd            294 tools/usb/usbip/src/usbip_network.c 		close(sockfd);
sockfd            302 tools/usb/usbip/src/usbip_network.c 	return sockfd;
sockfd            168 tools/usb/usbip/src/usbip_network.h ssize_t usbip_net_recv(int sockfd, void *buff, size_t bufflen);
sockfd            169 tools/usb/usbip/src/usbip_network.h ssize_t usbip_net_send(int sockfd, void *buff, size_t bufflen);
sockfd            170 tools/usb/usbip/src/usbip_network.h int usbip_net_send_op_common(int sockfd, uint32_t code, uint32_t status);
sockfd            171 tools/usb/usbip/src/usbip_network.h int usbip_net_recv_op_common(int sockfd, uint16_t *code, int *status);
sockfd            172 tools/usb/usbip/src/usbip_network.h int usbip_net_set_reuseaddr(int sockfd);
sockfd            173 tools/usb/usbip/src/usbip_network.h int usbip_net_set_nodelay(int sockfd);
sockfd            174 tools/usb/usbip/src/usbip_network.h int usbip_net_set_keepalive(int sockfd);
sockfd            175 tools/usb/usbip/src/usbip_network.h int usbip_net_set_v6only(int sockfd);
sockfd             91 tools/usb/usbip/src/usbipd.c static int recv_request_import(int sockfd)
sockfd            103 tools/usb/usbip/src/usbipd.c 	rc = usbip_net_recv(sockfd, &req, sizeof(req));
sockfd            121 tools/usb/usbip/src/usbipd.c 		usbip_net_set_nodelay(sockfd);
sockfd            124 tools/usb/usbip/src/usbipd.c 		status = usbip_export_device(edev, sockfd);
sockfd            132 tools/usb/usbip/src/usbipd.c 	rc = usbip_net_send_op_common(sockfd, OP_REP_IMPORT, status);
sockfd            146 tools/usb/usbip/src/usbipd.c 	rc = usbip_net_send(sockfd, &pdu_udev, sizeof(pdu_udev));