Lines Matching refs:sock

103 	int  (*hash)(struct tls_device *device, struct sock *sk);
104 void (*unhash)(struct tls_device *device, struct sock *sk);
151 struct sock *sk;
174 void (*saved_data_ready)(struct sock *sk);
202 void (*sk_destruct)(struct sock *sk);
256 int (*push_pending_record)(struct sock *sk, int flags);
257 void (*sk_write_space)(struct sock *sk);
282 void (*sk_destruct)(struct sock *sk);
298 int (*tls_dev_add)(struct net_device *netdev, struct sock *sk,
306 struct sock *sk, u32 seq, u8 *rcd_sn,
348 void tls_ctx_free(struct sock *sk, struct tls_context *ctx);
349 int wait_on_pending_writer(struct sock *sk, long *timeo);
350 int tls_sk_query(struct sock *sk, int optname, char __user *optval,
352 int tls_sk_attach(struct sock *sk, int optname, char __user *optval,
355 int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx, int tx);
356 void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx);
358 int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
359 int tls_sw_sendpage_locked(struct sock *sk, struct page *page,
361 int tls_sw_sendpage(struct sock *sk, struct page *page,
364 void tls_sw_release_resources_tx(struct sock *sk);
366 void tls_sw_free_resources_rx(struct sock *sk);
367 void tls_sw_release_resources_rx(struct sock *sk);
369 int tls_sw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
371 bool tls_sw_stream_read(const struct sock *sk);
372 ssize_t tls_sw_splice_read(struct socket *sock, loff_t *ppos,
376 int tls_device_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
377 int tls_device_sendpage(struct sock *sk, struct page *page,
379 int tls_tx_records(struct sock *sk, int flags);
394 int tls_push_sg(struct sock *sk, struct tls_context *ctx,
397 int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
399 bool tls_free_partial_record(struct sock *sk, struct tls_context *ctx);
445 tls_validate_xmit_skb(struct sock *sk, struct net_device *dev,
448 static inline bool tls_is_sk_tx_device_offloaded(struct sock *sk) in tls_is_sk_tx_device_offloaded()
459 static inline void tls_err_abort(struct sock *sk, int err) in tls_err_abort()
478 static inline struct tls_context *tls_get_ctx(const struct sock *sk) in tls_get_ctx()
488 static inline void tls_advance_record_sn(struct sock *sk, in tls_advance_record_sn()
581 static inline bool tls_sw_has_ctx_tx(const struct sock *sk) in tls_sw_has_ctx_tx()
590 void tls_sw_write_space(struct sock *sk, struct tls_context *ctx);
591 void tls_device_write_space(struct sock *sk, struct tls_context *ctx);
610 tls_driver_ctx(const struct sock *sk, enum tls_offload_ctx_dir direction) in tls_driver_ctx()
617 static inline void tls_offload_rx_resync_request(struct sock *sk, __be32 seq) in tls_offload_rx_resync_request()
626 tls_offload_rx_resync_set_type(struct sock *sk, enum tls_offload_sync_type type) in tls_offload_rx_resync_set_type()
633 static inline void tls_offload_tx_resync_request(struct sock *sk) in tls_offload_tx_resync_request()
641 static inline bool tls_offload_tx_resync_pending(struct sock *sk) in tls_offload_tx_resync_pending()
651 int tls_proccess_cmsg(struct sock *sk, struct msghdr *msg,
655 int decrypt_skb(struct sock *sk, struct sk_buff *skb,
659 struct sk_buff *tls_validate_xmit_skb(struct sock *sk,
663 int tls_sw_fallback_init(struct sock *sk,
670 int tls_set_device_offload(struct sock *sk, struct tls_context *ctx);
671 void tls_device_free_resources_tx(struct sock *sk);
672 int tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx);
673 void tls_device_offload_cleanup_rx(struct sock *sk);
674 void tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq);
675 int tls_device_decrypted(struct sock *sk, struct sk_buff *skb);
681 tls_set_device_offload(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload()
686 static inline void tls_device_free_resources_tx(struct sock *sk) {} in tls_device_free_resources_tx()
689 tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload_rx()
694 static inline void tls_device_offload_cleanup_rx(struct sock *sk) {} in tls_device_offload_cleanup_rx()
696 tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq) {} in tls_device_rx_resync_new_rec()
698 static inline int tls_device_decrypted(struct sock *sk, struct sk_buff *skb) in tls_device_decrypted()