Lines Matching refs:prot

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