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);
148 int tls_set_sw_offload(struct sock *sk, int tx);
150 void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx);
152 int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
153 void tls_sw_splice_eof(struct socket *sock);
155 void tls_sw_release_resources_tx(struct sock *sk);
157 void tls_sw_free_resources_rx(struct sock *sk);
158 void tls_sw_release_resources_rx(struct sock *sk);
160 int tls_sw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
162 bool tls_sw_sock_is_readable(struct sock *sk);
163 ssize_t tls_sw_splice_read(struct socket *sock, loff_t *ppos,
166 int tls_sw_read_sock(struct sock *sk, read_descriptor_t *desc,
169 int tls_device_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
170 void tls_device_splice_eof(struct socket *sock);
171 int tls_tx_records(struct sock *sk, int flags);
173 void tls_sw_write_space(struct sock *sk, struct tls_context *ctx);
174 void tls_device_write_space(struct sock *sk, struct tls_context *ctx);
176 int tls_process_cmsg(struct sock *sk, struct msghdr *msg,
178 int decrypt_skb(struct sock *sk, struct scatterlist *sgout);
180 int tls_sw_fallback_init(struct sock *sk,
189 int tls_strp_init(struct tls_strparser *strp, struct sock *sk);
229 int tls_set_device_offload(struct sock *sk);
230 void tls_device_free_resources_tx(struct sock *sk);
231 int tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx);
232 void tls_device_offload_cleanup_rx(struct sock *sk);
233 void tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq);
234 int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx);
240 tls_set_device_offload(struct sock *sk) in tls_set_device_offload()
245 static inline void tls_device_free_resources_tx(struct sock *sk) {} in tls_device_free_resources_tx()
248 tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload_rx()
253 static inline void tls_device_offload_cleanup_rx(struct sock *sk) {} in tls_device_offload_cleanup_rx()
255 tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq) {} in tls_device_rx_resync_new_rec()
258 tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx) in tls_device_decrypted()
264 int tls_push_sg(struct sock *sk, struct tls_context *ctx,
267 int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
269 void tls_free_partial_record(struct sock *sk, struct tls_context *ctx);
307 tls_advance_record_sn(struct sock *sk, struct tls_prot_info *prot, in tls_advance_record_sn()