Lines Matching refs:prot

84 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG],
950 struct proto *prot = READ_ONCE(sk->sk_prot); in tls_build_proto() local
954 unlikely(prot != smp_load_acquire(&saved_tcpv6_prot))) { in tls_build_proto()
956 if (likely(prot != saved_tcpv6_prot)) { in tls_build_proto()
957 build_protos(tls_prots[TLSV6], prot); in tls_build_proto()
960 smp_store_release(&saved_tcpv6_prot, prot); in tls_build_proto()
966 unlikely(prot != smp_load_acquire(&saved_tcpv4_prot))) { in tls_build_proto()
968 if (likely(prot != saved_tcpv4_prot)) { in tls_build_proto()
969 build_protos(tls_prots[TLSV4], prot); in tls_build_proto()
972 smp_store_release(&saved_tcpv4_prot, prot); in tls_build_proto()
978 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG], in build_protos()
981 prot[TLS_BASE][TLS_BASE] = *base; in build_protos()
982 prot[TLS_BASE][TLS_BASE].setsockopt = tls_setsockopt; in build_protos()
983 prot[TLS_BASE][TLS_BASE].getsockopt = tls_getsockopt; in build_protos()
984 prot[TLS_BASE][TLS_BASE].close = tls_sk_proto_close; in build_protos()
986 prot[TLS_SW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos()
987 prot[TLS_SW][TLS_BASE].sendmsg = tls_sw_sendmsg; in build_protos()
988 prot[TLS_SW][TLS_BASE].sendpage = tls_sw_sendpage; in build_protos()
990 prot[TLS_BASE][TLS_SW] = prot[TLS_BASE][TLS_BASE]; in build_protos()
991 prot[TLS_BASE][TLS_SW].recvmsg = tls_sw_recvmsg; in build_protos()
992 prot[TLS_BASE][TLS_SW].sock_is_readable = tls_sw_sock_is_readable; in build_protos()
993 prot[TLS_BASE][TLS_SW].close = tls_sk_proto_close; in build_protos()
995 prot[TLS_SW][TLS_SW] = prot[TLS_SW][TLS_BASE]; in build_protos()
996 prot[TLS_SW][TLS_SW].recvmsg = tls_sw_recvmsg; in build_protos()
997 prot[TLS_SW][TLS_SW].sock_is_readable = tls_sw_sock_is_readable; in build_protos()
998 prot[TLS_SW][TLS_SW].close = tls_sk_proto_close; in build_protos()
1001 prot[TLS_HW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos()
1002 prot[TLS_HW][TLS_BASE].sendmsg = tls_device_sendmsg; in build_protos()
1003 prot[TLS_HW][TLS_BASE].sendpage = tls_device_sendpage; in build_protos()
1005 prot[TLS_HW][TLS_SW] = prot[TLS_BASE][TLS_SW]; in build_protos()
1006 prot[TLS_HW][TLS_SW].sendmsg = tls_device_sendmsg; in build_protos()
1007 prot[TLS_HW][TLS_SW].sendpage = tls_device_sendpage; in build_protos()
1009 prot[TLS_BASE][TLS_HW] = prot[TLS_BASE][TLS_SW]; in build_protos()
1011 prot[TLS_SW][TLS_HW] = prot[TLS_SW][TLS_SW]; in build_protos()
1013 prot[TLS_HW][TLS_HW] = prot[TLS_HW][TLS_SW]; in build_protos()
1016 prot[TLS_HW_RECORD][TLS_HW_RECORD] = *base; in build_protos()
1017 prot[TLS_HW_RECORD][TLS_HW_RECORD].hash = tls_toe_hash; in build_protos()
1018 prot[TLS_HW_RECORD][TLS_HW_RECORD].unhash = tls_toe_unhash; in build_protos()