Lines Matching refs:ret

69     BIO *ret;  in BIO_new_socket()  local
71 ret = BIO_new(BIO_s_socket()); in BIO_new_socket()
72 if (ret == NULL) in BIO_new_socket()
74 BIO_set_fd(ret, fd, close_flag); in BIO_new_socket()
86 return ret; in BIO_new_socket()
118 int ret = 0; in sock_read() local
124 ret = ktls_read_record(b->num, out, outl); in sock_read()
127 ret = readsocket(b->num, out, outl); in sock_read()
129 if (ret <= 0) { in sock_read()
130 if (BIO_sock_should_retry(ret)) in sock_read()
132 else if (ret == 0) in sock_read()
136 return ret; in sock_read()
141 int ret = 0; in sock_write() local
150 ret = ktls_send_ctrl_message(b->num, record_type, in, inl); in sock_write()
151 if (ret >= 0) { in sock_write()
152 ret = inl; in sock_write()
162 ret = sendto(b->num, in, inl, OSSL_TFO_SENDTO, in sock_write()
167 ret = writesocket(b->num, in, inl); in sock_write()
169 if (ret <= 0) { in sock_write()
170 if (BIO_sock_should_retry(ret)) in sock_write()
173 return ret; in sock_write()
178 long ret = 1; in sock_ctrl() local
204 ret = b->num; in sock_ctrl()
206 ret = -1; in sock_ctrl()
209 ret = b->shutdown; in sock_ctrl()
216 ret = 1; in sock_ctrl()
224 ret = 0; in sock_ctrl()
235 ret = ktls_start(b->num, crypto_info, num); in sock_ctrl()
236 if (ret) in sock_ctrl()
246 ret = 0; in sock_ctrl()
250 ret = 0; in sock_ctrl()
253 ret = ktls_enable_tx_zerocopy_sendfile(b->num); in sock_ctrl()
254 if (ret) in sock_ctrl()
259 ret = (b->flags & BIO_FLAGS_IN_EOF) != 0; in sock_ctrl()
267 ret = 0; in sock_ctrl()
272 ret = BIO_ADDR_make(&data->tfo_peer, in sock_ctrl()
274 if (ret) in sock_ctrl()
277 ret = 0; in sock_ctrl()
281 ret = 0; in sock_ctrl()
284 return ret; in sock_ctrl()
289 int n, ret; in sock_puts() local
292 ret = sock_write(bp, str, n); in sock_puts()
293 return ret; in sock_puts()