| /net/tls/ |
| A D | tls_sw.c | 558 prot->iv_size + prot->salt_size); in tls_do_encryption() 1089 prot->overhead_size; in tls_sw_sendmsg_locked() 1573 prot->iv_size + prot->salt_size); in tls_decrypt_sg() 1577 prot->iv_size); in tls_decrypt_sg() 1586 prot->tail_size, in tls_decrypt_sg() 1648 if (prot->tail_size) in tls_decrypt_sg() 1938 max_rec = prot->overhead_size - prot->tail_size + TLS_MAX_PAYLOAD_SIZE; in tls_read_flush_backlog() 2451 prot->tail_size) { in tls_rx_msg_size() 2724 prot->tail_size = 1; in init_prot_info() 2727 prot->tail_size = 0; in init_prot_info() [all …]
|
| A D | tls.h | 145 int init_prot_info(struct tls_prot_info *prot, 314 if (prot->version != TLS_1_3_VERSION && in tls_advance_record_sn() 317 prot->iv_size); in tls_advance_record_sn() 325 if (prot->version == TLS_1_3_VERSION || in tls_xor_iv_with_seq() 337 size_t pkt_len, iv_size = prot->iv_size; in tls_fill_prepend() 339 pkt_len = plaintext_len + prot->tag_size; in tls_fill_prepend() 340 if (prot->version != TLS_1_3_VERSION && in tls_fill_prepend() 351 buf[0] = prot->version == TLS_1_3_VERSION ? in tls_fill_prepend() 365 if (prot->version != TLS_1_3_VERSION) { in tls_make_aad() 369 size += prot->tag_size; in tls_make_aad() [all …]
|
| A D | tls_main.c | 928 build_protos(tls_prots[TLSV6], prot); in tls_build_proto() 940 build_protos(tls_prots[TLSV4], prot); in tls_build_proto() 952 prot[TLS_BASE][TLS_BASE] = *base; in build_protos() 958 prot[TLS_SW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos() 962 prot[TLS_BASE][TLS_SW] = prot[TLS_BASE][TLS_BASE]; in build_protos() 967 prot[TLS_SW][TLS_SW] = prot[TLS_SW][TLS_BASE]; in build_protos() 973 prot[TLS_HW][TLS_BASE] = prot[TLS_BASE][TLS_BASE]; in build_protos() 977 prot[TLS_HW][TLS_SW] = prot[TLS_BASE][TLS_SW]; in build_protos() 981 prot[TLS_BASE][TLS_HW] = prot[TLS_BASE][TLS_SW]; in build_protos() 983 prot[TLS_SW][TLS_HW] = prot[TLS_SW][TLS_SW]; in build_protos() [all …]
|
| A D | tls_device.c | 283 struct tls_prot_info *prot = &ctx->prot_info; in tls_push_record() local 295 tls_advance_record_sn(sk, prot, &ctx->tx); in tls_push_record() 317 struct tls_prot_info *prot = &ctx->prot_info; in tls_device_record_close() local 332 tls_append_frag(record, pfrag, prot->tag_size); in tls_device_record_close() 336 record->len - prot->overhead_size, in tls_device_record_close() 463 prot->prepend_size; in tls_push_data() 483 } else if (record->len > prot->prepend_size) { in tls_push_data() 771 struct tls_prot_info *prot; in tls_device_rx_resync_new_rec() local 781 prot = &tls_ctx->prot_info; in tls_device_rx_resync_new_rec() 1063 struct tls_prot_info *prot; in tls_set_device_offload() local [all …]
|
| A D | tls_device_fallback.c | 45 struct tls_prot_info *prot) in tls_enc_record() argument 55 cipher_desc = get_cipher_desc(prot->cipher_type); in tls_enc_record() 71 tls_make_aad(aad, len - cipher_desc->tag, (char *)&rcd_sn, buf[0], prot); in tls_enc_record() 134 u64 rcd_sn, int len, struct tls_prot_info *prot) in tls_enc_records() argument 144 cpu_to_be64(rcd_sn), &in, &out, &len, prot); in tls_enc_records()
|
| /net/ipv6/ |
| A D | protocol.c | 28 int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char protocol) in inet6_add_protocol() argument 31 NULL, prot) ? 0 : -1; in inet6_add_protocol() 35 int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char protocol) in inet6_del_protocol() argument 40 prot, NULL) == prot) ? 0 : -1; in inet6_del_protocol() 52 int inet6_add_offload(const struct net_offload *prot, unsigned char protocol) in inet6_add_offload() argument 55 NULL, prot) ? 0 : -1; in inet6_add_offload() 59 int inet6_del_offload(const struct net_offload *prot, unsigned char protocol) in inet6_del_offload() argument 64 prot, NULL) == prot) ? 0 : -1; in inet6_del_offload()
|
| A D | af_inet6.c | 186 answer_prot = answer->prot; in inet6_create() 444 const struct proto *prot; in inet6_bind_sk() local 448 prot = READ_ONCE(sk->sk_prot); in inet6_bind_sk() 450 if (prot->bind) in inet6_bind_sk() 568 const struct proto *prot; in inet6_ioctl() local 587 prot = READ_ONCE(sk->sk_prot); in inet6_ioctl() 588 if (!prot->ioctl) in inet6_ioctl() 652 const struct proto *prot; in inet6_sendmsg() local 658 prot = READ_ONCE(sk->sk_prot); in inet6_sendmsg() 669 const struct proto *prot; in inet6_recvmsg() local [all …]
|
| A D | udplite.c | 76 .prot = &udplitev6_prot,
|
| /net/ipv4/ |
| A D | protocol.c | 32 int inet_add_protocol(const struct net_protocol *prot, unsigned char protocol) in inet_add_protocol() argument 35 NULL, prot) ? 0 : -1; in inet_add_protocol() 39 int inet_add_offload(const struct net_offload *prot, unsigned char protocol) in inet_add_offload() argument 42 NULL, prot) ? 0 : -1; in inet_add_offload() 46 int inet_del_protocol(const struct net_protocol *prot, unsigned char protocol) in inet_del_protocol() argument 51 prot, NULL) == prot) ? 0 : -1; in inet_del_protocol() 59 int inet_del_offload(const struct net_offload *prot, unsigned char protocol) in inet_del_offload() argument 64 prot, NULL) == prot) ? 0 : -1; in inet_del_offload()
|
| A D | tcp_bpf.c | 604 prot[TCP_BPF_BASE] = *base; in tcp_bpf_rebuild_protos() 605 prot[TCP_BPF_BASE].destroy = sock_map_destroy; in tcp_bpf_rebuild_protos() 606 prot[TCP_BPF_BASE].close = sock_map_close; in tcp_bpf_rebuild_protos() 607 prot[TCP_BPF_BASE].recvmsg = tcp_bpf_recvmsg; in tcp_bpf_rebuild_protos() 610 prot[TCP_BPF_TX] = prot[TCP_BPF_BASE]; in tcp_bpf_rebuild_protos() 611 prot[TCP_BPF_TX].sendmsg = tcp_bpf_sendmsg; in tcp_bpf_rebuild_protos() 613 prot[TCP_BPF_RX] = prot[TCP_BPF_BASE]; in tcp_bpf_rebuild_protos() 614 prot[TCP_BPF_RX].recvmsg = tcp_bpf_recvmsg_parser; in tcp_bpf_rebuild_protos() 616 prot[TCP_BPF_TXRX] = prot[TCP_BPF_TX]; in tcp_bpf_rebuild_protos() 731 struct proto *prot = newsk->sk_prot; in tcp_bpf_clone() local [all …]
|
| A D | udp_bpf.c | 114 static void udp_bpf_rebuild_protos(struct proto *prot, const struct proto *base) in udp_bpf_rebuild_protos() argument 116 *prot = *base; in udp_bpf_rebuild_protos() 117 prot->close = sock_map_close; in udp_bpf_rebuild_protos() 118 prot->recvmsg = udp_bpf_recvmsg; in udp_bpf_rebuild_protos() 119 prot->sock_is_readable = sk_msg_is_readable; in udp_bpf_rebuild_protos()
|
| A D | af_inet.c | 319 answer_prot = answer->prot; in inet_create() 572 const struct proto *prot; in inet_dgram_connect() local 579 prot = READ_ONCE(sk->sk_prot); in inet_dgram_connect() 858 const struct proto *prot; in inet_splice_eof() local 865 prot = READ_ONCE(sk->sk_prot); in inet_splice_eof() 866 if (prot->splice_eof) in inet_splice_eof() 867 prot->splice_eof(sock); in inet_splice_eof() 1158 .prot = &tcp_prot, 1167 .prot = &udp_prot, 1175 .prot = &ping_prot, [all …]
|
| A D | udplite.c | 77 .prot = &udplite_prot,
|
| A D | fou_core.c | 145 int prot; in gue_udp_recv() local 149 prot = IPPROTO_IPIP; in gue_udp_recv() 152 prot = IPPROTO_IPV6; in gue_udp_recv() 161 return -prot; in gue_udp_recv()
|
| /net/unix/ |
| A D | unix_bpf.c | 106 static void unix_dgram_bpf_rebuild_protos(struct proto *prot, const struct proto *base) in unix_dgram_bpf_rebuild_protos() argument 108 *prot = *base; in unix_dgram_bpf_rebuild_protos() 109 prot->close = sock_map_close; in unix_dgram_bpf_rebuild_protos() 110 prot->recvmsg = unix_bpf_recvmsg; in unix_dgram_bpf_rebuild_protos() 111 prot->sock_is_readable = sk_msg_is_readable; in unix_dgram_bpf_rebuild_protos() 114 static void unix_stream_bpf_rebuild_protos(struct proto *prot, in unix_stream_bpf_rebuild_protos() argument 117 *prot = *base; in unix_stream_bpf_rebuild_protos() 118 prot->close = sock_map_close; in unix_stream_bpf_rebuild_protos() 119 prot->recvmsg = unix_bpf_recvmsg; in unix_stream_bpf_rebuild_protos() 120 prot->sock_is_readable = sk_msg_is_readable; in unix_stream_bpf_rebuild_protos() [all …]
|
| /net/core/ |
| A D | sock.c | 2231 slab = prot->slab; in sk_prot_alloc() 2267 slab = prot->slab; in sk_prot_free() 4093 prot->name); in tw_prot_init() 4118 prot->name); in req_prot_init() 4129 prot->name); in req_prot_init() 4139 if (prot->memory_allocated && !prot->sysctl_mem) { in proto_register() 4143 if (prot->memory_allocated && !prot->per_cpu_fw_alloc) { in proto_register() 4148 prot->slab = kmem_cache_create_usercopy(prot->name, in proto_register() 4152 prot->useroffset, prot->usersize, in proto_register() 4157 prot->name); in proto_register() [all …]
|
| A D | skmsg.c | 731 struct proto *prot; in sk_psock_init() local 751 prot = READ_ONCE(sk->sk_prot); in sk_psock_init() 754 psock->sk_proto = prot; in sk_psock_init() 755 psock->saved_unhash = prot->unhash; in sk_psock_init() 756 psock->saved_destroy = prot->destroy; in sk_psock_init() 757 psock->saved_close = prot->close; in sk_psock_init()
|
| /net/dsa/ |
| A D | tag_rtl4_a.c | 75 u8 prot; in rtl4a_tag_rcv() local 92 prot = (protport >> RTL4_A_PROTOCOL_SHIFT) & 0x0f; in rtl4a_tag_rcv() 93 if (prot != RTL4_A_PROTOCOL_RTL8366RB) { in rtl4a_tag_rcv() 94 netdev_err(dev, "unknown realtek protocol 0x%01x\n", prot); in rtl4a_tag_rcv()
|
| /net/vmw_vsock/ |
| A D | vsock_bpf.c | 126 static void vsock_bpf_rebuild_protos(struct proto *prot, const struct proto *base) in vsock_bpf_rebuild_protos() argument 128 *prot = *base; in vsock_bpf_rebuild_protos() 129 prot->close = sock_map_close; in vsock_bpf_rebuild_protos() 130 prot->recvmsg = vsock_bpf_recvmsg; in vsock_bpf_rebuild_protos() 131 prot->sock_is_readable = sk_msg_is_readable; in vsock_bpf_rebuild_protos()
|
| A D | af_vsock.c | 1401 const struct proto *prot; in vsock_dgram_recvmsg() local 1403 prot = READ_ONCE(sk->sk_prot); in vsock_dgram_recvmsg() 1404 if (prot != &vsock_proto) in vsock_dgram_recvmsg() 1405 return prot->recvmsg(sk, msg, len, flags, NULL); in vsock_dgram_recvmsg() 2448 const struct proto *prot; in vsock_connectible_recvmsg() local 2450 prot = READ_ONCE(sk->sk_prot); in vsock_connectible_recvmsg() 2451 if (prot != &vsock_proto) in vsock_connectible_recvmsg() 2452 return prot->recvmsg(sk, msg, len, flags, NULL); in vsock_connectible_recvmsg()
|
| /net/phonet/ |
| A D | af_phonet.c | 36 if (pp && !try_module_get(pp->prot->owner)) in phonet_proto_get() 45 module_put(pp->prot->owner); in phonet_proto_put() 87 sk = sk_alloc(net, PF_PHONET, GFP_KERNEL, pnp->prot, kern); in pn_socket_create() 466 err = proto_register(pp->prot, 1); in phonet_proto_register() 489 proto_unregister(pp->prot); in phonet_proto_unregister()
|
| /net/can/ |
| A D | af_can.c | 102 if (cp && !try_module_get(cp->prot->owner)) in can_get_proto() 111 module_put(cp->prot->owner); in can_put_proto() 158 sk = sk_alloc(net, PF_CAN, GFP_KERNEL, cp->prot, kern); in can_create() 746 err = proto_register(cp->prot, 0); in can_proto_register() 762 proto_unregister(cp->prot); in can_proto_register() 783 proto_unregister(cp->prot); in can_proto_unregister()
|
| /net/smc/ |
| A D | smc_diag.c | 196 static int smc_diag_dump_proto(struct proto *prot, struct sk_buff *skb, in smc_diag_dump_proto() argument 207 read_lock(&prot->h.smc_hash->lock); in smc_diag_dump_proto() 208 head = &prot->h.smc_hash->ht; in smc_diag_dump_proto() 225 read_unlock(&prot->h.smc_hash->lock); in smc_diag_dump_proto()
|
| A D | smc_inet.c | 57 .prot = &smc_inet_prot, 105 .prot = &smc_inet6_prot,
|
| /net/sunrpc/ |
| A D | rpcb_clnt.c | 454 int rpcb_register(struct net *net, u32 prog, u32 vers, int prot, unsigned short port) in rpcb_register() argument 459 .r_prot = prot, in rpcb_register() 468 trace_pmap_register(prog, vers, prot, port); in rpcb_register() 732 xprt->prot, bind_version, in rpcb_getport_async() 747 map->r_prot = xprt->prot; in rpcb_getport_async()
|