Lines Matching refs:sock

128 	struct sock *sk;
153 void (*saved_data_ready)(struct sock *sk);
183 void (*sk_destruct)(struct sock *sk);
243 int (*push_pending_record)(struct sock *sk, int flags);
244 void (*sk_write_space)(struct sock *sk);
269 void (*sk_destruct)(struct sock *sk);
285 int (*tls_dev_add)(struct net_device *netdev, struct sock *sk,
293 struct sock *sk, u32 seq, u8 *rcd_sn,
348 struct tls_context *tls_ctx_create(struct sock *sk);
349 void tls_ctx_free(struct sock *sk, struct tls_context *ctx);
350 void update_sk_prot(struct sock *sk, struct tls_context *ctx);
352 int wait_on_pending_writer(struct sock *sk, long *timeo);
353 int tls_sk_query(struct sock *sk, int optname, char __user *optval,
355 int tls_sk_attach(struct sock *sk, int optname, char __user *optval,
358 int tls_set_sw_offload(struct sock *sk, struct tls_context *ctx, int tx);
359 void tls_sw_strparser_arm(struct sock *sk, struct tls_context *ctx);
361 int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
362 int tls_sw_sendpage_locked(struct sock *sk, struct page *page,
364 int tls_sw_sendpage(struct sock *sk, struct page *page,
367 void tls_sw_release_resources_tx(struct sock *sk);
369 void tls_sw_free_resources_rx(struct sock *sk);
370 void tls_sw_release_resources_rx(struct sock *sk);
372 int tls_sw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,
374 bool tls_sw_stream_read(const struct sock *sk);
375 ssize_t tls_sw_splice_read(struct socket *sock, loff_t *ppos,
379 int tls_device_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
380 int tls_device_sendpage(struct sock *sk, struct page *page,
382 int tls_tx_records(struct sock *sk, int flags);
397 int tls_push_sg(struct sock *sk, struct tls_context *ctx,
400 int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
402 void tls_free_partial_record(struct sock *sk, struct tls_context *ctx);
448 tls_validate_xmit_skb(struct sock *sk, struct net_device *dev,
451 static inline bool tls_is_sk_tx_device_offloaded(struct sock *sk) in tls_is_sk_tx_device_offloaded()
462 static inline void tls_err_abort(struct sock *sk, int err) in tls_err_abort()
493 static inline struct tls_context *tls_get_ctx(const struct sock *sk) in tls_get_ctx()
503 static inline void tls_advance_record_sn(struct sock *sk, in tls_advance_record_sn()
596 static inline bool tls_sw_has_ctx_tx(const struct sock *sk) in tls_sw_has_ctx_tx()
605 static inline bool tls_sw_has_ctx_rx(const struct sock *sk) in tls_sw_has_ctx_rx()
614 void tls_sw_write_space(struct sock *sk, struct tls_context *ctx);
615 void tls_device_write_space(struct sock *sk, struct tls_context *ctx);
634 tls_driver_ctx(const struct sock *sk, enum tls_offload_ctx_dir direction) in tls_driver_ctx()
643 static inline void tls_offload_rx_resync_request(struct sock *sk, __be32 seq) in tls_offload_rx_resync_request()
653 tls_offload_rx_resync_async_request_start(struct sock *sk, __be32 seq, u16 len) in tls_offload_rx_resync_async_request_start()
665 tls_offload_rx_resync_async_request_end(struct sock *sk, __be32 seq) in tls_offload_rx_resync_async_request_end()
675 tls_offload_rx_resync_set_type(struct sock *sk, enum tls_offload_sync_type type) in tls_offload_rx_resync_set_type()
683 static inline bool tls_offload_tx_resync_pending(struct sock *sk) in tls_offload_tx_resync_pending()
696 int tls_proccess_cmsg(struct sock *sk, struct msghdr *msg,
698 int decrypt_skb(struct sock *sk, struct sk_buff *skb,
702 int tls_sw_fallback_init(struct sock *sk,
709 void tls_device_sk_destruct(struct sock *sk);
710 int tls_set_device_offload(struct sock *sk, struct tls_context *ctx);
711 void tls_device_free_resources_tx(struct sock *sk);
712 int tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx);
713 void tls_device_offload_cleanup_rx(struct sock *sk);
714 void tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq);
715 void tls_offload_tx_resync_request(struct sock *sk, u32 got_seq, u32 exp_seq);
716 int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx,
719 static inline bool tls_is_sk_rx_device_offloaded(struct sock *sk) in tls_is_sk_rx_device_offloaded()
731 tls_set_device_offload(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload()
736 static inline void tls_device_free_resources_tx(struct sock *sk) {} in tls_device_free_resources_tx()
739 tls_set_device_offload_rx(struct sock *sk, struct tls_context *ctx) in tls_set_device_offload_rx()
744 static inline void tls_device_offload_cleanup_rx(struct sock *sk) {} in tls_device_offload_cleanup_rx()
746 tls_device_rx_resync_new_rec(struct sock *sk, u32 rcd_len, u32 seq) {} in tls_device_rx_resync_new_rec()
749 tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx, in tls_device_decrypted()