Lines Matching refs:sk
92 struct sock *sk; member
110 struct sock *sk; member
129 void (*saved_data_ready)(struct sock *sk);
163 void (*sk_destruct)(struct sock *sk);
230 int (*push_pending_record)(struct sock *sk, int flags);
231 void (*sk_write_space)(struct sock *sk);
255 struct sock *sk; member
257 void (*sk_destruct)(struct sock *sk);
273 int (*tls_dev_add)(struct net_device *netdev, struct sock *sk,
281 struct sock *sk, u32 seq, u8 *rcd_sn,
347 tls_validate_xmit_skb(struct sock *sk, struct net_device *dev,
350 tls_validate_xmit_skb_sw(struct sock *sk, struct net_device *dev,
356 struct sock *sk = skb->sk; in tls_is_skb_tx_device_offloaded() local
358 return sk && sk_fullsock(sk) && in tls_is_skb_tx_device_offloaded()
359 (smp_load_acquire(&sk->sk_validate_xmit_skb) == in tls_is_skb_tx_device_offloaded()
366 static inline struct tls_context *tls_get_ctx(const struct sock *sk) in tls_get_ctx() argument
368 const struct inet_connection_sock *icsk = inet_csk(sk); in tls_get_ctx()
394 static inline bool tls_sw_has_ctx_tx(const struct sock *sk) in tls_sw_has_ctx_tx() argument
398 if (!sk_is_inet(sk) || !inet_test_bit(IS_ICSK, sk)) in tls_sw_has_ctx_tx()
401 ctx = tls_get_ctx(sk); in tls_sw_has_ctx_tx()
407 static inline bool tls_sw_has_ctx_rx(const struct sock *sk) in tls_sw_has_ctx_rx() argument
411 if (!sk_is_inet(sk) || !inet_test_bit(IS_ICSK, sk)) in tls_sw_has_ctx_rx()
414 ctx = tls_get_ctx(sk); in tls_sw_has_ctx_rx()
436 tls_driver_ctx(const struct sock *sk, enum tls_offload_ctx_dir direction) in tls_driver_ctx() argument
438 return __tls_driver_ctx(tls_get_ctx(sk), direction); in tls_driver_ctx()
444 static inline void tls_offload_rx_resync_request(struct sock *sk, __be32 seq) in tls_offload_rx_resync_request() argument
446 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_rx_resync_request()
454 tls_offload_rx_resync_async_request_start(struct sock *sk, __be32 seq, u16 len) in tls_offload_rx_resync_async_request_start() argument
456 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_rx_resync_async_request_start()
466 tls_offload_rx_resync_async_request_end(struct sock *sk, __be32 seq) in tls_offload_rx_resync_async_request_end() argument
468 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_rx_resync_async_request_end()
476 tls_offload_rx_resync_set_type(struct sock *sk, enum tls_offload_sync_type type) in tls_offload_rx_resync_set_type() argument
478 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_rx_resync_set_type()
484 static inline bool tls_offload_tx_resync_pending(struct sock *sk) in tls_offload_tx_resync_pending() argument
486 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_offload_tx_resync_pending()
497 void tls_device_sk_destruct(struct sock *sk);
498 void tls_offload_tx_resync_request(struct sock *sk, u32 got_seq, u32 exp_seq);
500 static inline bool tls_is_sk_rx_device_offloaded(struct sock *sk) in tls_is_sk_rx_device_offloaded() argument
502 if (!sk_fullsock(sk) || in tls_is_sk_rx_device_offloaded()
503 smp_load_acquire(&sk->sk_destruct) != tls_device_sk_destruct) in tls_is_sk_rx_device_offloaded()
505 return tls_get_ctx(sk)->rx_conf == TLS_HW; in tls_is_sk_rx_device_offloaded()