Lines Matching refs:ret
90 ssize_t ret;
93 ret = recv(fd, (void *)msg, sz_hdr, 0);
94 if ((size_t)ret != sz_hdr) {
96 ret, sz_hdr);
97 if (ret == -1) {
120 ret = recv(fd, (void *)((char *)msg + sz_hdr), sz_payload, 0);
121 if ((size_t)ret != sz_payload) {
123 ret, msg->size);
124 if (ret == -1) {
588 int ret;
605 ret = vhost_user_sock(dev, VHOST_USER_SET_MEM_TABLE, NULL);
606 if (ret < 0) {
607 return ret;
651 int ret;
663 ret = vhost_user_sock(dev, VHOST_USER_GET_QUEUE_NUM, &host_max_queues);
664 if (ret < 0) {
665 return ret;
677 ret = virtio_user_queue_setup(vdev, virtio_user_create_queue);
678 if (ret < 0) {
679 return ret;
682 ret = virtio_user_register_mem(vdev);
683 if (ret < 0) {
684 return ret;
693 int ret;
695 ret = virtio_user_queue_setup(vdev, virtio_user_stop_queue);
701 return ret;
822 int ret;
824 ret = vhost_user_sock(dev, VHOST_USER_SET_FEATURES, &features);
825 if (ret < 0) {
826 return ret;
837 ret = vhost_user_sock(dev, VHOST_USER_GET_PROTOCOL_FEATURES, &protocol_features);
838 if (ret < 0) {
839 return ret;
843 ret = vhost_user_sock(dev, VHOST_USER_SET_PROTOCOL_FEATURES, &protocol_features);
844 if (ret < 0) {
845 return ret;