• Home
  • Raw
  • Download

Lines Matching refs:prot

65 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG],
681 struct proto *prot = READ_ONCE(sk->sk_prot); in tls_build_proto() local
685 unlikely(prot != smp_load_acquire(&saved_tcpv6_prot))) { in tls_build_proto()
687 if (likely(prot != saved_tcpv6_prot)) { in tls_build_proto()
688 build_protos(tls_prots[TLSV6], prot); in tls_build_proto()
691 smp_store_release(&saved_tcpv6_prot, prot); in tls_build_proto()
697 unlikely(prot != smp_load_acquire(&saved_tcpv4_prot))) { in tls_build_proto()
699 if (likely(prot != saved_tcpv4_prot)) { in tls_build_proto()
700 build_protos(tls_prots[TLSV4], prot); in tls_build_proto()
703 smp_store_release(&saved_tcpv4_prot, prot); in tls_build_proto()
709 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG], in build_protos()
712 prot[TLS_BASE][TLS_BASE] = *base; in build_protos()
713 prot[TLS_BASE][TLS_BASE].setsockopt = tls_setsockopt; in build_protos()
714 prot[TLS_BASE][TLS_BASE].getsockopt = tls_getsockopt; in build_protos()
715 prot[TLS_BASE][TLS_BASE].close = tls_sk_proto_close; in build_protos()
717 prot[TLS_SW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos()
718 prot[TLS_SW][TLS_BASE].sendmsg = tls_sw_sendmsg; in build_protos()
719 prot[TLS_SW][TLS_BASE].sendpage = tls_sw_sendpage; in build_protos()
721 prot[TLS_BASE][TLS_SW] = prot[TLS_BASE][TLS_BASE]; in build_protos()
722 prot[TLS_BASE][TLS_SW].recvmsg = tls_sw_recvmsg; in build_protos()
723 prot[TLS_BASE][TLS_SW].sock_is_readable = tls_sw_sock_is_readable; in build_protos()
724 prot[TLS_BASE][TLS_SW].close = tls_sk_proto_close; in build_protos()
726 prot[TLS_SW][TLS_SW] = prot[TLS_SW][TLS_BASE]; in build_protos()
727 prot[TLS_SW][TLS_SW].recvmsg = tls_sw_recvmsg; in build_protos()
728 prot[TLS_SW][TLS_SW].sock_is_readable = tls_sw_sock_is_readable; in build_protos()
729 prot[TLS_SW][TLS_SW].close = tls_sk_proto_close; in build_protos()
732 prot[TLS_HW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos()
733 prot[TLS_HW][TLS_BASE].sendmsg = tls_device_sendmsg; in build_protos()
734 prot[TLS_HW][TLS_BASE].sendpage = tls_device_sendpage; in build_protos()
736 prot[TLS_HW][TLS_SW] = prot[TLS_BASE][TLS_SW]; in build_protos()
737 prot[TLS_HW][TLS_SW].sendmsg = tls_device_sendmsg; in build_protos()
738 prot[TLS_HW][TLS_SW].sendpage = tls_device_sendpage; in build_protos()
740 prot[TLS_BASE][TLS_HW] = prot[TLS_BASE][TLS_SW]; in build_protos()
742 prot[TLS_SW][TLS_HW] = prot[TLS_SW][TLS_SW]; in build_protos()
744 prot[TLS_HW][TLS_HW] = prot[TLS_HW][TLS_SW]; in build_protos()
747 prot[TLS_HW_RECORD][TLS_HW_RECORD] = *base; in build_protos()
748 prot[TLS_HW_RECORD][TLS_HW_RECORD].hash = tls_toe_hash; in build_protos()
749 prot[TLS_HW_RECORD][TLS_HW_RECORD].unhash = tls_toe_unhash; in build_protos()