Lines Matching defs:prot

128 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG],
862 struct proto *prot = READ_ONCE(sk->sk_prot);
866 unlikely(prot != smp_load_acquire(&saved_tcpv6_prot))) {
868 if (likely(prot != saved_tcpv6_prot)) {
869 build_protos(tls_prots[TLSV6], prot);
872 smp_store_release(&saved_tcpv6_prot, prot);
878 unlikely(prot != smp_load_acquire(&saved_tcpv4_prot))) {
880 if (likely(prot != saved_tcpv4_prot)) {
881 build_protos(tls_prots[TLSV4], prot);
884 smp_store_release(&saved_tcpv4_prot, prot);
890 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG],
893 prot[TLS_BASE][TLS_BASE] = *base;
894 prot[TLS_BASE][TLS_BASE].setsockopt = tls_setsockopt;
895 prot[TLS_BASE][TLS_BASE].getsockopt = tls_getsockopt;
896 prot[TLS_BASE][TLS_BASE].close = tls_sk_proto_close;
898 prot[TLS_SW][TLS_BASE] = prot[TLS_BASE][TLS_BASE];
899 prot[TLS_SW][TLS_BASE].sendmsg = tls_sw_sendmsg;
900 prot[TLS_SW][TLS_BASE].splice_eof = tls_sw_splice_eof;
902 prot[TLS_BASE][TLS_SW] = prot[TLS_BASE][TLS_BASE];
903 prot[TLS_BASE][TLS_SW].recvmsg = tls_sw_recvmsg;
904 prot[TLS_BASE][TLS_SW].sock_is_readable = tls_sw_sock_is_readable;
905 prot[TLS_BASE][TLS_SW].close = tls_sk_proto_close;
907 prot[TLS_SW][TLS_SW] = prot[TLS_SW][TLS_BASE];
908 prot[TLS_SW][TLS_SW].recvmsg = tls_sw_recvmsg;
909 prot[TLS_SW][TLS_SW].sock_is_readable = tls_sw_sock_is_readable;
910 prot[TLS_SW][TLS_SW].close = tls_sk_proto_close;
913 prot[TLS_HW][TLS_BASE] = prot[TLS_BASE][TLS_BASE];
914 prot[TLS_HW][TLS_BASE].sendmsg = tls_device_sendmsg;
915 prot[TLS_HW][TLS_BASE].splice_eof = tls_device_splice_eof;
917 prot[TLS_HW][TLS_SW] = prot[TLS_BASE][TLS_SW];
918 prot[TLS_HW][TLS_SW].sendmsg = tls_device_sendmsg;
919 prot[TLS_HW][TLS_SW].splice_eof = tls_device_splice_eof;
921 prot[TLS_BASE][TLS_HW] = prot[TLS_BASE][TLS_SW];
923 prot[TLS_SW][TLS_HW] = prot[TLS_SW][TLS_SW];
925 prot[TLS_HW][TLS_HW] = prot[TLS_HW][TLS_SW];
928 prot[TLS_HW_RECORD][TLS_HW_RECORD] = *base;
929 prot[TLS_HW_RECORD][TLS_HW_RECORD].hash = tls_toe_hash;
930 prot[TLS_HW_RECORD][TLS_HW_RECORD].unhash = tls_toe_unhash;