Lines Matching refs:prot

65 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG],
767 struct proto *prot = READ_ONCE(sk->sk_prot); in tls_build_proto() local
771 unlikely(prot != smp_load_acquire(&saved_tcpv6_prot))) { in tls_build_proto()
773 if (likely(prot != saved_tcpv6_prot)) { in tls_build_proto()
774 build_protos(tls_prots[TLSV6], prot); in tls_build_proto()
777 smp_store_release(&saved_tcpv6_prot, prot); in tls_build_proto()
783 unlikely(prot != smp_load_acquire(&saved_tcpv4_prot))) { in tls_build_proto()
785 if (likely(prot != saved_tcpv4_prot)) { in tls_build_proto()
786 build_protos(tls_prots[TLSV4], prot); in tls_build_proto()
789 smp_store_release(&saved_tcpv4_prot, prot); in tls_build_proto()
795 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG], in build_protos()
798 prot[TLS_BASE][TLS_BASE] = *base; in build_protos()
799 prot[TLS_BASE][TLS_BASE].setsockopt = tls_setsockopt; in build_protos()
800 prot[TLS_BASE][TLS_BASE].getsockopt = tls_getsockopt; in build_protos()
801 prot[TLS_BASE][TLS_BASE].close = tls_sk_proto_close; in build_protos()
803 prot[TLS_SW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos()
804 prot[TLS_SW][TLS_BASE].sendmsg = tls_sw_sendmsg; in build_protos()
805 prot[TLS_SW][TLS_BASE].sendpage = tls_sw_sendpage; in build_protos()
807 prot[TLS_BASE][TLS_SW] = prot[TLS_BASE][TLS_BASE]; in build_protos()
808 prot[TLS_BASE][TLS_SW].recvmsg = tls_sw_recvmsg; in build_protos()
809 prot[TLS_BASE][TLS_SW].sock_is_readable = tls_sw_sock_is_readable; in build_protos()
810 prot[TLS_BASE][TLS_SW].close = tls_sk_proto_close; in build_protos()
812 prot[TLS_SW][TLS_SW] = prot[TLS_SW][TLS_BASE]; in build_protos()
813 prot[TLS_SW][TLS_SW].recvmsg = tls_sw_recvmsg; in build_protos()
814 prot[TLS_SW][TLS_SW].sock_is_readable = tls_sw_sock_is_readable; in build_protos()
815 prot[TLS_SW][TLS_SW].close = tls_sk_proto_close; in build_protos()
818 prot[TLS_HW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos()
819 prot[TLS_HW][TLS_BASE].sendmsg = tls_device_sendmsg; in build_protos()
820 prot[TLS_HW][TLS_BASE].sendpage = tls_device_sendpage; in build_protos()
822 prot[TLS_HW][TLS_SW] = prot[TLS_BASE][TLS_SW]; in build_protos()
823 prot[TLS_HW][TLS_SW].sendmsg = tls_device_sendmsg; in build_protos()
824 prot[TLS_HW][TLS_SW].sendpage = tls_device_sendpage; in build_protos()
826 prot[TLS_BASE][TLS_HW] = prot[TLS_BASE][TLS_SW]; in build_protos()
828 prot[TLS_SW][TLS_HW] = prot[TLS_SW][TLS_SW]; in build_protos()
830 prot[TLS_HW][TLS_HW] = prot[TLS_HW][TLS_SW]; in build_protos()
833 prot[TLS_HW_RECORD][TLS_HW_RECORD] = *base; in build_protos()
834 prot[TLS_HW_RECORD][TLS_HW_RECORD].hash = tls_toe_hash; in build_protos()
835 prot[TLS_HW_RECORD][TLS_HW_RECORD].unhash = tls_toe_unhash; in build_protos()