Lines Matching refs:prot

65 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG],
642 struct proto *prot = READ_ONCE(sk->sk_prot); in tls_build_proto() local
646 unlikely(prot != smp_load_acquire(&saved_tcpv6_prot))) { in tls_build_proto()
648 if (likely(prot != saved_tcpv6_prot)) { in tls_build_proto()
649 build_protos(tls_prots[TLSV6], prot); in tls_build_proto()
650 smp_store_release(&saved_tcpv6_prot, prot); in tls_build_proto()
656 unlikely(prot != smp_load_acquire(&saved_tcpv4_prot))) { in tls_build_proto()
658 if (likely(prot != saved_tcpv4_prot)) { in tls_build_proto()
659 build_protos(tls_prots[TLSV4], prot); in tls_build_proto()
660 smp_store_release(&saved_tcpv4_prot, prot); in tls_build_proto()
666 static void build_protos(struct proto prot[TLS_NUM_CONFIG][TLS_NUM_CONFIG], in build_protos()
669 prot[TLS_BASE][TLS_BASE] = *base; in build_protos()
670 prot[TLS_BASE][TLS_BASE].setsockopt = tls_setsockopt; in build_protos()
671 prot[TLS_BASE][TLS_BASE].getsockopt = tls_getsockopt; in build_protos()
672 prot[TLS_BASE][TLS_BASE].close = tls_sk_proto_close; in build_protos()
674 prot[TLS_SW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos()
675 prot[TLS_SW][TLS_BASE].sendmsg = tls_sw_sendmsg; in build_protos()
676 prot[TLS_SW][TLS_BASE].sendpage = tls_sw_sendpage; in build_protos()
678 prot[TLS_BASE][TLS_SW] = prot[TLS_BASE][TLS_BASE]; in build_protos()
679 prot[TLS_BASE][TLS_SW].recvmsg = tls_sw_recvmsg; in build_protos()
680 prot[TLS_BASE][TLS_SW].stream_memory_read = tls_sw_stream_read; in build_protos()
681 prot[TLS_BASE][TLS_SW].close = tls_sk_proto_close; in build_protos()
683 prot[TLS_SW][TLS_SW] = prot[TLS_SW][TLS_BASE]; in build_protos()
684 prot[TLS_SW][TLS_SW].recvmsg = tls_sw_recvmsg; in build_protos()
685 prot[TLS_SW][TLS_SW].stream_memory_read = tls_sw_stream_read; in build_protos()
686 prot[TLS_SW][TLS_SW].close = tls_sk_proto_close; in build_protos()
689 prot[TLS_HW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos()
690 prot[TLS_HW][TLS_BASE].sendmsg = tls_device_sendmsg; in build_protos()
691 prot[TLS_HW][TLS_BASE].sendpage = tls_device_sendpage; in build_protos()
693 prot[TLS_HW][TLS_SW] = prot[TLS_BASE][TLS_SW]; in build_protos()
694 prot[TLS_HW][TLS_SW].sendmsg = tls_device_sendmsg; in build_protos()
695 prot[TLS_HW][TLS_SW].sendpage = tls_device_sendpage; in build_protos()
697 prot[TLS_BASE][TLS_HW] = prot[TLS_BASE][TLS_SW]; in build_protos()
699 prot[TLS_SW][TLS_HW] = prot[TLS_SW][TLS_SW]; in build_protos()
701 prot[TLS_HW][TLS_HW] = prot[TLS_HW][TLS_SW]; in build_protos()
704 prot[TLS_HW_RECORD][TLS_HW_RECORD] = *base; in build_protos()
705 prot[TLS_HW_RECORD][TLS_HW_RECORD].hash = tls_toe_hash; in build_protos()
706 prot[TLS_HW_RECORD][TLS_HW_RECORD].unhash = tls_toe_unhash; in build_protos()