Lines Matching refs:prot

65 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG],
646 struct proto *prot = READ_ONCE(sk->sk_prot); in tls_build_proto() local
650 unlikely(prot != smp_load_acquire(&saved_tcpv6_prot))) { in tls_build_proto()
652 if (likely(prot != saved_tcpv6_prot)) { in tls_build_proto()
653 build_protos(tls_prots[TLSV6], prot); in tls_build_proto()
654 smp_store_release(&saved_tcpv6_prot, prot); in tls_build_proto()
660 unlikely(prot != smp_load_acquire(&saved_tcpv4_prot))) { in tls_build_proto()
662 if (likely(prot != saved_tcpv4_prot)) { in tls_build_proto()
663 build_protos(tls_prots[TLSV4], prot); in tls_build_proto()
664 smp_store_release(&saved_tcpv4_prot, prot); in tls_build_proto()
670 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG], in build_protos()
673 prot[TLS_BASE][TLS_BASE] = *base; in build_protos()
674 prot[TLS_BASE][TLS_BASE].setsockopt = tls_setsockopt; in build_protos()
675 prot[TLS_BASE][TLS_BASE].getsockopt = tls_getsockopt; in build_protos()
676 prot[TLS_BASE][TLS_BASE].close = tls_sk_proto_close; in build_protos()
678 prot[TLS_SW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos()
679 prot[TLS_SW][TLS_BASE].sendmsg = tls_sw_sendmsg; in build_protos()
680 prot[TLS_SW][TLS_BASE].sendpage = tls_sw_sendpage; in build_protos()
682 prot[TLS_BASE][TLS_SW] = prot[TLS_BASE][TLS_BASE]; in build_protos()
683 prot[TLS_BASE][TLS_SW].recvmsg = tls_sw_recvmsg; in build_protos()
684 prot[TLS_BASE][TLS_SW].sock_is_readable = tls_sw_sock_is_readable; in build_protos()
685 prot[TLS_BASE][TLS_SW].close = tls_sk_proto_close; in build_protos()
687 prot[TLS_SW][TLS_SW] = prot[TLS_SW][TLS_BASE]; in build_protos()
688 prot[TLS_SW][TLS_SW].recvmsg = tls_sw_recvmsg; in build_protos()
689 prot[TLS_SW][TLS_SW].sock_is_readable = tls_sw_sock_is_readable; in build_protos()
690 prot[TLS_SW][TLS_SW].close = tls_sk_proto_close; in build_protos()
693 prot[TLS_HW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos()
694 prot[TLS_HW][TLS_BASE].sendmsg = tls_device_sendmsg; in build_protos()
695 prot[TLS_HW][TLS_BASE].sendpage = tls_device_sendpage; in build_protos()
697 prot[TLS_HW][TLS_SW] = prot[TLS_BASE][TLS_SW]; in build_protos()
698 prot[TLS_HW][TLS_SW].sendmsg = tls_device_sendmsg; in build_protos()
699 prot[TLS_HW][TLS_SW].sendpage = tls_device_sendpage; in build_protos()
701 prot[TLS_BASE][TLS_HW] = prot[TLS_BASE][TLS_SW]; in build_protos()
703 prot[TLS_SW][TLS_HW] = prot[TLS_SW][TLS_SW]; in build_protos()
705 prot[TLS_HW][TLS_HW] = prot[TLS_HW][TLS_SW]; in build_protos()
708 prot[TLS_HW_RECORD][TLS_HW_RECORD] = *base; in build_protos()
709 prot[TLS_HW_RECORD][TLS_HW_RECORD].hash = tls_toe_hash; in build_protos()
710 prot[TLS_HW_RECORD][TLS_HW_RECORD].unhash = tls_toe_unhash; in build_protos()