Lines Matching refs:fd

55 static ossl_inline int ktls_enable(int fd)  in ktls_enable()  argument
70 static ossl_inline int ktls_start(int fd, ktls_crypto_info_t *tls_en, int is_tx) in ktls_start() argument
73 return setsockopt(fd, IPPROTO_TCP, TCP_TXTLS_ENABLE, in ktls_start()
76 return setsockopt(fd, IPPROTO_TCP, TCP_RXTLS_ENABLE, tls_en, in ktls_start()
84 static ossl_inline int ktls_enable_tx_zerocopy_sendfile(int fd) in ktls_enable_tx_zerocopy_sendfile() argument
96 static ossl_inline int ktls_send_ctrl_message(int fd, unsigned char record_type, in ktls_send_ctrl_message() argument
119 return sendmsg(fd, &msg, 0); in ktls_send_ctrl_message()
124 static ossl_inline int ktls_read_record(int fd, void *data, size_t length) in ktls_read_record() argument
138 static ossl_inline int ktls_read_record(int fd, void *data, size_t length) in ktls_read_record() argument
163 ret = recvmsg(fd, &msg, 0); in ktls_read_record()
199 static ossl_inline ossl_ssize_t ktls_sendfile(int s, int fd, off_t off, in ktls_sendfile() argument
205 ret = sendfile(fd, s, off, size, NULL, &sbytes, flags); in ktls_sendfile()
289 static ossl_inline int ktls_enable(int fd) in ktls_enable() argument
291 return setsockopt(fd, SOL_TCP, TCP_ULP, "tls", sizeof("tls")) ? 0 : 1; in ktls_enable()
302 static ossl_inline int ktls_start(int fd, ktls_crypto_info_t *crypto_info, in ktls_start() argument
305 return setsockopt(fd, SOL_TLS, is_tx ? TLS_TX : TLS_RX, in ktls_start()
309 static ossl_inline int ktls_enable_tx_zerocopy_sendfile(int fd) in ktls_enable_tx_zerocopy_sendfile() argument
314 return setsockopt(fd, SOL_TLS, TLS_TX_ZEROCOPY_RO, in ktls_enable_tx_zerocopy_sendfile()
328 static ossl_inline int ktls_send_ctrl_message(int fd, unsigned char record_type, in ktls_send_ctrl_message() argument
355 return sendmsg(fd, &msg, 0); in ktls_send_ctrl_message()
362 static ossl_inline ossl_ssize_t ktls_sendfile(int s, int fd, off_t off, size_t size, int flags) in ktls_sendfile() argument
364 return sendfile(s, fd, &off, size); in ktls_sendfile()
370 static ossl_inline int ktls_read_record(int fd, void *data, size_t length) in ktls_read_record() argument
383 static ossl_inline int ktls_read_record(int fd, void *data, size_t length) in ktls_read_record() argument
410 ret = recvmsg(fd, &msg, 0); in ktls_read_record()