Lines Matching refs:ret
67 ssize_t ret; in sock_send_all() local
68 OSI_NO_INTR(ret = send(sock_fd, buf, s, 0)); in sock_send_all()
69 if (ret <= 0) { in sock_send_all()
70 BTIF_TRACE_ERROR("sock fd:%d send errno:%d, ret:%d", sock_fd, errno, ret); in sock_send_all()
73 buf += ret; in sock_send_all()
74 s -= ret; in sock_send_all()
82 ssize_t ret; in sock_recv_all() local
83 OSI_NO_INTR(ret = recv(sock_fd, buf, r, MSG_WAITALL)); in sock_recv_all()
84 if (ret <= 0) { in sock_recv_all()
85 BTIF_TRACE_ERROR("sock fd:%d recv errno:%d, ret:%d", sock_fd, errno, ret); in sock_recv_all()
88 buf += ret; in sock_recv_all()
89 r -= ret; in sock_recv_all()
125 ssize_t ret; in sock_send_fd() local
126 OSI_NO_INTR(ret = sendmsg(sock_fd, &msg, MSG_NOSIGNAL)); in sock_send_fd()
127 if (ret < 0) { in sock_send_fd()
129 sock_fd, send_fd, (int)ret, errno, strerror(errno)); in sock_send_fd()
134 buffer += ret; in sock_send_fd()
135 len -= ret; in sock_send_fd()