Lines Matching refs:prot
84 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG],
963 struct proto *prot = READ_ONCE(sk->sk_prot); in tls_build_proto() local
967 unlikely(prot != smp_load_acquire(&saved_tcpv6_prot))) { in tls_build_proto()
969 if (likely(prot != saved_tcpv6_prot)) { in tls_build_proto()
970 build_protos(tls_prots[TLSV6], prot); in tls_build_proto()
973 smp_store_release(&saved_tcpv6_prot, prot); in tls_build_proto()
979 unlikely(prot != smp_load_acquire(&saved_tcpv4_prot))) { in tls_build_proto()
981 if (likely(prot != saved_tcpv4_prot)) { in tls_build_proto()
982 build_protos(tls_prots[TLSV4], prot); in tls_build_proto()
985 smp_store_release(&saved_tcpv4_prot, prot); in tls_build_proto()
991 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG], in build_protos()
994 prot[TLS_BASE][TLS_BASE] = *base; in build_protos()
995 prot[TLS_BASE][TLS_BASE].setsockopt = tls_setsockopt; in build_protos()
996 prot[TLS_BASE][TLS_BASE].getsockopt = tls_getsockopt; in build_protos()
997 prot[TLS_BASE][TLS_BASE].close = tls_sk_proto_close; in build_protos()
999 prot[TLS_SW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos()
1000 prot[TLS_SW][TLS_BASE].sendmsg = tls_sw_sendmsg; in build_protos()
1001 prot[TLS_SW][TLS_BASE].sendpage = tls_sw_sendpage; in build_protos()
1003 prot[TLS_BASE][TLS_SW] = prot[TLS_BASE][TLS_BASE]; in build_protos()
1004 prot[TLS_BASE][TLS_SW].recvmsg = tls_sw_recvmsg; in build_protos()
1005 prot[TLS_BASE][TLS_SW].sock_is_readable = tls_sw_sock_is_readable; in build_protos()
1006 prot[TLS_BASE][TLS_SW].close = tls_sk_proto_close; in build_protos()
1008 prot[TLS_SW][TLS_SW] = prot[TLS_SW][TLS_BASE]; in build_protos()
1009 prot[TLS_SW][TLS_SW].recvmsg = tls_sw_recvmsg; in build_protos()
1010 prot[TLS_SW][TLS_SW].sock_is_readable = tls_sw_sock_is_readable; in build_protos()
1011 prot[TLS_SW][TLS_SW].close = tls_sk_proto_close; in build_protos()
1014 prot[TLS_HW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos()
1015 prot[TLS_HW][TLS_BASE].sendmsg = tls_device_sendmsg; in build_protos()
1016 prot[TLS_HW][TLS_BASE].sendpage = tls_device_sendpage; in build_protos()
1018 prot[TLS_HW][TLS_SW] = prot[TLS_BASE][TLS_SW]; in build_protos()
1019 prot[TLS_HW][TLS_SW].sendmsg = tls_device_sendmsg; in build_protos()
1020 prot[TLS_HW][TLS_SW].sendpage = tls_device_sendpage; in build_protos()
1022 prot[TLS_BASE][TLS_HW] = prot[TLS_BASE][TLS_SW]; in build_protos()
1024 prot[TLS_SW][TLS_HW] = prot[TLS_SW][TLS_SW]; in build_protos()
1026 prot[TLS_HW][TLS_HW] = prot[TLS_HW][TLS_SW]; in build_protos()
1029 prot[TLS_HW_RECORD][TLS_HW_RECORD] = *base; in build_protos()
1030 prot[TLS_HW_RECORD][TLS_HW_RECORD].hash = tls_toe_hash; in build_protos()
1031 prot[TLS_HW_RECORD][TLS_HW_RECORD].unhash = tls_toe_unhash; in build_protos()