Lines Matching refs:prot
65 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG],
686 struct proto *prot = READ_ONCE(sk->sk_prot);
690 unlikely(prot != smp_load_acquire(&saved_tcpv6_prot))) {
692 if (likely(prot != saved_tcpv6_prot)) {
693 build_protos(tls_prots[TLSV6], prot);
696 smp_store_release(&saved_tcpv6_prot, prot);
702 unlikely(prot != smp_load_acquire(&saved_tcpv4_prot))) {
704 if (likely(prot != saved_tcpv4_prot)) {
705 build_protos(tls_prots[TLSV4], prot);
708 smp_store_release(&saved_tcpv4_prot, prot);
714 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG],
717 prot[TLS_BASE][TLS_BASE] = *base;
718 prot[TLS_BASE][TLS_BASE].setsockopt = tls_setsockopt;
719 prot[TLS_BASE][TLS_BASE].getsockopt = tls_getsockopt;
720 prot[TLS_BASE][TLS_BASE].close = tls_sk_proto_close;
722 prot[TLS_SW][TLS_BASE] = prot[TLS_BASE][TLS_BASE];
723 prot[TLS_SW][TLS_BASE].sendmsg = tls_sw_sendmsg;
724 prot[TLS_SW][TLS_BASE].sendpage = tls_sw_sendpage;
726 prot[TLS_BASE][TLS_SW] = prot[TLS_BASE][TLS_BASE];
727 prot[TLS_BASE][TLS_SW].recvmsg = tls_sw_recvmsg;
728 prot[TLS_BASE][TLS_SW].stream_memory_read = tls_sw_stream_read;
729 prot[TLS_BASE][TLS_SW].close = tls_sk_proto_close;
731 prot[TLS_SW][TLS_SW] = prot[TLS_SW][TLS_BASE];
732 prot[TLS_SW][TLS_SW].recvmsg = tls_sw_recvmsg;
733 prot[TLS_SW][TLS_SW].stream_memory_read = tls_sw_stream_read;
734 prot[TLS_SW][TLS_SW].close = tls_sk_proto_close;
737 prot[TLS_HW][TLS_BASE] = prot[TLS_BASE][TLS_BASE];
738 prot[TLS_HW][TLS_BASE].sendmsg = tls_device_sendmsg;
739 prot[TLS_HW][TLS_BASE].sendpage = tls_device_sendpage;
741 prot[TLS_HW][TLS_SW] = prot[TLS_BASE][TLS_SW];
742 prot[TLS_HW][TLS_SW].sendmsg = tls_device_sendmsg;
743 prot[TLS_HW][TLS_SW].sendpage = tls_device_sendpage;
745 prot[TLS_BASE][TLS_HW] = prot[TLS_BASE][TLS_SW];
747 prot[TLS_SW][TLS_HW] = prot[TLS_SW][TLS_SW];
749 prot[TLS_HW][TLS_HW] = prot[TLS_HW][TLS_SW];
752 prot[TLS_HW_RECORD][TLS_HW_RECORD] = *base;
753 prot[TLS_HW_RECORD][TLS_HW_RECORD].hash = tls_toe_hash;
754 prot[TLS_HW_RECORD][TLS_HW_RECORD].unhash = tls_toe_unhash;