Lines Matching defs:prot

127 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG],
860 struct proto *prot = READ_ONCE(sk->sk_prot);
864 unlikely(prot != smp_load_acquire(&saved_tcpv6_prot))) {
866 if (likely(prot != saved_tcpv6_prot)) {
867 build_protos(tls_prots[TLSV6], prot);
870 smp_store_release(&saved_tcpv6_prot, prot);
876 unlikely(prot != smp_load_acquire(&saved_tcpv4_prot))) {
878 if (likely(prot != saved_tcpv4_prot)) {
879 build_protos(tls_prots[TLSV4], prot);
882 smp_store_release(&saved_tcpv4_prot, prot);
888 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG],
891 prot[TLS_BASE][TLS_BASE] = *base;
892 prot[TLS_BASE][TLS_BASE].setsockopt = tls_setsockopt;
893 prot[TLS_BASE][TLS_BASE].getsockopt = tls_getsockopt;
894 prot[TLS_BASE][TLS_BASE].close = tls_sk_proto_close;
896 prot[TLS_SW][TLS_BASE] = prot[TLS_BASE][TLS_BASE];
897 prot[TLS_SW][TLS_BASE].sendmsg = tls_sw_sendmsg;
898 prot[TLS_SW][TLS_BASE].splice_eof = tls_sw_splice_eof;
900 prot[TLS_BASE][TLS_SW] = prot[TLS_BASE][TLS_BASE];
901 prot[TLS_BASE][TLS_SW].recvmsg = tls_sw_recvmsg;
902 prot[TLS_BASE][TLS_SW].sock_is_readable = tls_sw_sock_is_readable;
903 prot[TLS_BASE][TLS_SW].close = tls_sk_proto_close;
905 prot[TLS_SW][TLS_SW] = prot[TLS_SW][TLS_BASE];
906 prot[TLS_SW][TLS_SW].recvmsg = tls_sw_recvmsg;
907 prot[TLS_SW][TLS_SW].sock_is_readable = tls_sw_sock_is_readable;
908 prot[TLS_SW][TLS_SW].close = tls_sk_proto_close;
911 prot[TLS_HW][TLS_BASE] = prot[TLS_BASE][TLS_BASE];
912 prot[TLS_HW][TLS_BASE].sendmsg = tls_device_sendmsg;
913 prot[TLS_HW][TLS_BASE].splice_eof = tls_device_splice_eof;
915 prot[TLS_HW][TLS_SW] = prot[TLS_BASE][TLS_SW];
916 prot[TLS_HW][TLS_SW].sendmsg = tls_device_sendmsg;
917 prot[TLS_HW][TLS_SW].splice_eof = tls_device_splice_eof;
919 prot[TLS_BASE][TLS_HW] = prot[TLS_BASE][TLS_SW];
921 prot[TLS_SW][TLS_HW] = prot[TLS_SW][TLS_SW];
923 prot[TLS_HW][TLS_HW] = prot[TLS_HW][TLS_SW];
926 prot[TLS_HW_RECORD][TLS_HW_RECORD] = *base;
927 prot[TLS_HW_RECORD][TLS_HW_RECORD].hash = tls_toe_hash;
928 prot[TLS_HW_RECORD][TLS_HW_RECORD].unhash = tls_toe_unhash;