Lines Matching refs:sock
127 struct sock *sk;
138 struct tls_context *tls_ctx_create(struct sock *sk);
139 void tls_ctx_free(struct sock *sk, struct tls_context *ctx);
140 void update_sk_prot(struct sock *sk, struct tls_context *ctx);
142 int wait_on_pending_writer(struct sock *sk, long *timeo);
143 void tls_err_abort(struct sock *sk, int err);
145 int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx, int tx);
147 void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx);
149 int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
150 void tls_sw_splice_eof(struct socket *sock);
152 void tls_sw_release_resources_tx(struct sock *sk);
154 void tls_sw_free_resources_rx(struct sock *sk);
155 void tls_sw_release_resources_rx(struct sock *sk);
157 int tls_sw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
159 bool tls_sw_sock_is_readable(struct sock *sk);
160 ssize_t tls_sw_splice_read(struct socket *sock, loff_t *ppos,
163 int tls_sw_read_sock(struct sock *sk, read_descriptor_t *desc,
166 int tls_device_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
167 void tls_device_splice_eof(struct socket *sock);
168 int tls_tx_records(struct sock *sk, int flags);
170 void tls_sw_write_space(struct sock *sk, struct tls_context *ctx);
171 void tls_device_write_space(struct sock *sk, struct tls_context *ctx);
173 int tls_process_cmsg(struct sock *sk, struct msghdr *msg,
175 int decrypt_skb(struct sock *sk, struct scatterlist *sgout);
177 int tls_sw_fallback_init(struct sock *sk,
186 int tls_strp_init(struct tls_strparser *strp, struct sock *sk);
226 int tls_set_device_offload(struct sock *sk, struct tls_context *ctx);
227 void tls_device_free_resources_tx(struct sock *sk);
228 int tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx);
229 void tls_device_offload_cleanup_rx(struct sock *sk);
230 void tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq);
231 int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx);
237 tls_set_device_offload(struct sock *sk, struct tls_context *ctx)
242 static inline void tls_device_free_resources_tx(struct sock *sk) {}
245 tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx)
250 static inline void tls_device_offload_cleanup_rx(struct sock *sk) {}
252 tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq) {}
255 tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx)
261 int tls_push_sg(struct sock *sk, struct tls_context *ctx,
264 int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
266 void tls_free_partial_record(struct sock *sk, struct tls_context *ctx);
304 tls_advance_record_sn(struct sock *sk, struct tls_prot_info *prot,