Lines Matching refs:sock

127 	struct sock *sk;
152 void (*saved_data_ready)(struct sock *sk);
182 void (*sk_destruct)(struct sock *sk);
249 int (*push_pending_record)(struct sock *sk, int flags);
250 void (*sk_write_space)(struct sock *sk);
274 struct sock *sk;
276 void (*sk_destruct)(struct sock *sk);
292 int (*tls_dev_add)(struct net_device *netdev, struct sock *sk,
300 struct sock *sk, u32 seq, u8 *rcd_sn,
355 struct tls_context *tls_ctx_create(struct sock *sk);
356 void tls_ctx_free(struct sock *sk, struct tls_context *ctx);
357 void update_sk_prot(struct sock *sk, struct tls_context *ctx);
359 int wait_on_pending_writer(struct sock *sk, long *timeo);
360 int tls_sk_query(struct sock *sk, int optname, char __user *optval,
362 int tls_sk_attach(struct sock *sk, int optname, char __user *optval,
364 void tls_err_abort(struct sock *sk, int err);
366 int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx, int tx);
367 void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx);
369 int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
370 int tls_sw_sendpage_locked(struct sock *sk, struct page *page,
372 int tls_sw_sendpage(struct sock *sk, struct page *page,
375 void tls_sw_release_resources_tx(struct sock *sk);
377 void tls_sw_free_resources_rx(struct sock *sk);
378 void tls_sw_release_resources_rx(struct sock *sk);
380 int tls_sw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
382 bool tls_sw_sock_is_readable(struct sock *sk);
383 ssize_t tls_sw_splice_read(struct socket *sock, loff_t *ppos,
387 int tls_device_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
388 int tls_device_sendpage(struct sock *sk, struct page *page,
390 int tls_tx_records(struct sock *sk, int flags);
405 int tls_push_sg(struct sock *sk, struct tls_context *ctx,
408 int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
410 void tls_free_partial_record(struct sock *sk, struct tls_context *ctx);
456 tls_validate_xmit_skb(struct sock *sk, struct net_device *dev,
459 tls_validate_xmit_skb_sw(struct sock *sk, struct net_device *dev,
462 static inline bool tls_is_sk_tx_device_offloaded(struct sock *sk) in tls_is_sk_tx_device_offloaded()
498 static inline struct tls_context *tls_get_ctx(const struct sock *sk) in tls_get_ctx()
508 static inline void tls_advance_record_sn(struct sock *sk, in tls_advance_record_sn()
602 static inline bool tls_sw_has_ctx_tx(const struct sock *sk) in tls_sw_has_ctx_tx()
611 static inline bool tls_sw_has_ctx_rx(const struct sock *sk) in tls_sw_has_ctx_rx()
620 void tls_sw_write_space(struct sock *sk, struct tls_context *ctx);
621 void tls_device_write_space(struct sock *sk, struct tls_context *ctx);
640 tls_driver_ctx(const struct sock *sk, enum tls_offload_ctx_dir direction) in tls_driver_ctx()
649 static inline void tls_offload_rx_resync_request(struct sock *sk, __be32 seq) in tls_offload_rx_resync_request()
659 tls_offload_rx_resync_async_request_start(struct sock *sk, __be32 seq, u16 len) in tls_offload_rx_resync_async_request_start()
671 tls_offload_rx_resync_async_request_end(struct sock *sk, __be32 seq) in tls_offload_rx_resync_async_request_end()
681 tls_offload_rx_resync_set_type(struct sock *sk, enum tls_offload_sync_type type) in tls_offload_rx_resync_set_type()
689 static inline bool tls_offload_tx_resync_pending(struct sock *sk) in tls_offload_tx_resync_pending()
702 int tls_proccess_cmsg(struct sock *sk, struct msghdr *msg,
704 int decrypt_skb(struct sock *sk, struct sk_buff *skb,
708 int tls_sw_fallback_init(struct sock *sk,
715 void tls_device_sk_destruct(struct sock *sk);
716 int tls_set_device_offload(struct sock *sk, struct tls_context *ctx);
717 void tls_device_free_resources_tx(struct sock *sk);
718 int tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx);
719 void tls_device_offload_cleanup_rx(struct sock *sk);
720 void tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq);
721 void tls_offload_tx_resync_request(struct sock *sk, u32 got_seq, u32 exp_seq);
722 int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx,
725 static inline bool tls_is_sk_rx_device_offloaded(struct sock *sk) in tls_is_sk_rx_device_offloaded()
737 tls_set_device_offload(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload()
742 static inline void tls_device_free_resources_tx(struct sock *sk) {} in tls_device_free_resources_tx()
745 tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload_rx()
750 static inline void tls_device_offload_cleanup_rx(struct sock *sk) {} in tls_device_offload_cleanup_rx()
752 tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq) {} in tls_device_rx_resync_new_rec()
755 tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx, in tls_device_decrypted()