Home
last modified time | relevance | path

Searched refs:sk_prot (Results 1 – 25 of 51) sorted by relevance

123

/OK3568_Linux_fs/kernel/include/net/
H A Dtimewait_sock.h25 if (sk->sk_prot->twsk_prot->twsk_unique != NULL) in twsk_unique()
26 return sk->sk_prot->twsk_prot->twsk_unique(sk, sktw, twp); in twsk_unique()
32 if (sk->sk_prot->twsk_prot->twsk_destructor != NULL) in twsk_destructor()
33 sk->sk_prot->twsk_prot->twsk_destructor(sk); in twsk_destructor()
H A Dsock.h377 #define sk_prot __sk_common.skc_prot macro
1293 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc()
1298 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec()
1300 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec()
1307 sk->sk_prot->name, sk, refcount_read(&sk->sk_refcnt)); in sk_refcnt_debug_release()
1320 return sk->sk_prot->stream_memory_free ? in __sk_stream_memory_free()
1321 sk->sk_prot->stream_memory_free(sk, wake) : true; in __sk_stream_memory_free()
1353 return sk->sk_prot->memory_pressure != NULL; in sk_has_memory_pressure()
1358 if (!sk->sk_prot->memory_pressure) in sk_under_memory_pressure()
1365 return !!*sk->sk_prot->memory_pressure; in sk_under_memory_pressure()
[all …]
H A Drequest_sock.h103 req_to_sk(req)->sk_prot = sk_listener->sk_prot; in reqsk_alloc()
/OK3568_Linux_fs/kernel/net/ipv4/
H A Daf_inet.c183 if (sk->sk_prot->get_port(sk, 0)) { in inet_autobind()
352 sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in inet_create()
372 err = sk->sk_prot->hash(sk); in inet_create()
379 if (sk->sk_prot->init) { in inet_create()
380 err = sk->sk_prot->init(sk); in inet_create()
431 sk->sk_prot->close(sk, timeout); in inet_release()
444 if (sk->sk_prot->bind) { in inet_bind()
445 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet_bind()
532 if (sk->sk_prot->get_port(sk, snum)) { in __inet_bind()
571 return sk->sk_prot->disconnect(sk, flags); in inet_dgram_connect()
[all …]
H A Dinet_hashtables.c108 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_put_port()
133 struct inet_hashinfo *table = sk->sk_prot->h.hashinfo; in __inet_inherit_port()
489 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_check_established()
558 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in inet_ehash_insert()
594 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in inet_ehash_nolisten()
596 percpu_counter_inc(sk->sk_prot->orphan_count); in inet_ehash_nolisten()
630 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_hash()
657 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_hash()
684 struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo; in __inet_unhash()
690 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in __inet_unhash()
[all …]
H A Dinet_connection_sock.c184 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_find_open_port()
357 struct inet_hashinfo *hinfo = sk->sk_prot->h.hashinfo; in inet_csk_get_port()
693 struct inet_hashinfo *hashinfo = req_to_sk(req)->sk_prot->h.hashinfo; in reqsk_queue_unlink()
887 sk->sk_prot->destroy(sk); in inet_csk_destroy_sock()
895 percpu_counter_dec(sk->sk_prot->orphan_count); in inet_csk_destroy_sock()
932 if (!sk->sk_prot->get_port(sk, inet->inet_num)) { in inet_csk_listen_start()
936 err = sk->sk_prot->hash(sk); in inet_csk_listen_start()
950 sk->sk_prot->disconnect(child, O_NONBLOCK); in inet_child_forget()
954 percpu_counter_inc(sk->sk_prot->orphan_count); in inet_child_forget()
H A Ddatagram.c68 if (sk->sk_prot->rehash) in __ip4_datagram_connect()
69 sk->sk_prot->rehash(sk); in __ip4_datagram_connect()
H A Draw.c95 struct raw_hashinfo *h = sk->sk_prot->h.raw_hash; in raw_hash_sk()
102 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in raw_hash_sk()
111 struct raw_hashinfo *h = sk->sk_prot->h.raw_hash; in raw_unhash_sk()
115 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in raw_unhash_sk()
/OK3568_Linux_fs/kernel/net/dccp/
H A Doutput.c463 skb = alloc_skb(sk->sk_prot->max_header, GFP_ATOMIC); in dccp_ctl_make_reset()
467 skb_reserve(skb, sk->sk_prot->max_header); in dccp_ctl_make_reset()
517 skb = sock_wmalloc(sk, sk->sk_prot->max_header, 1, GFP_ATOMIC); in dccp_send_reset()
522 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_reset()
551 skb = alloc_skb(sk->sk_prot->max_header, sk->sk_allocation); in dccp_connect()
556 skb_reserve(skb, sk->sk_prot->max_header); in dccp_connect()
576 struct sk_buff *skb = alloc_skb(sk->sk_prot->max_header, in dccp_send_ack()
589 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_ack()
638 struct sk_buff *skb = alloc_skb(sk->sk_prot->max_header, GFP_ATOMIC); in dccp_send_sync()
647 skb_reserve(skb, sk->sk_prot->max_header); in dccp_send_sync()
[all …]
H A Dproto.c100 sk->sk_prot->unhash(sk); in dccp_set_state()
761 size = sk->sk_prot->max_header + len; in dccp_sendmsg()
778 skb_reserve(skb, sk->sk_prot->max_header); in dccp_sendmsg()
1021 sk->sk_prot->disconnect(sk, 0); in dccp_close()
1058 percpu_counter_inc(sk->sk_prot->orphan_count); in dccp_close()
/OK3568_Linux_fs/kernel/net/ieee802154/
H A Dsocket.c87 sk->sk_prot->close(sk, 0); in ieee802154_sock_release()
97 return sk->sk_prot->sendmsg(sk, msg, len); in ieee802154_sock_sendmsg()
105 if (sk->sk_prot->bind) in ieee802154_sock_bind()
106 return sk->sk_prot->bind(sk, uaddr, addr_len); in ieee802154_sock_bind()
120 return sk->sk_prot->disconnect(sk, flags); in ieee802154_sock_connect()
122 return sk->sk_prot->connect(sk, uaddr, addr_len); in ieee802154_sock_connect()
164 if (!sk->sk_prot->ioctl) in ieee802154_sock_ioctl()
166 return sk->sk_prot->ioctl(sk, cmd, arg); in ieee802154_sock_ioctl()
178 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in raw_hash()
188 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in raw_unhash()
[all …]
/OK3568_Linux_fs/kernel/net/phonet/
H A Dsocket.c34 sk->sk_prot->close(sk, 0); in pn_socket_release()
165 if (sk->sk_prot->bind) in pn_socket_bind()
166 return sk->sk_prot->bind(sk, addr, len); in pn_socket_bind()
185 err = sk->sk_prot->get_port(sk, pn_port(handle)); in pn_socket_bind()
194 err = sk->sk_prot->hash(sk); in pn_socket_bind()
255 err = sk->sk_prot->connect(sk, addr, len); in pn_socket_connect()
304 newsk = sk->sk_prot->accept(sk, flags, &err, kern); in pn_socket_accept()
391 return sk->sk_prot->ioctl(sk, cmd, arg); in pn_socket_ioctl()
426 return sk->sk_prot->sendmsg(sk, m, total_len); in pn_socket_sendmsg()
H A Daf_phonet.c96 sk->sk_backlog_rcv = sk->sk_prot->backlog_rcv; in pn_socket_create()
102 sk->sk_prot->init(sk); in pn_socket_create()
/OK3568_Linux_fs/kernel/net/ipv6/
H A Daf_inet6.c105 const int offset = sk->sk_prot->obj_size - sizeof(struct ipv6_pinfo); in inet6_sk_generic()
249 err = sk->sk_prot->hash(sk); in inet6_create()
255 if (sk->sk_prot->init) { in inet6_create()
256 err = sk->sk_prot->init(sk); in inet6_create()
408 if (sk->sk_prot->get_port(sk, snum)) { in __inet6_bind()
447 if (sk->sk_prot->bind) in inet6_bind()
448 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet6_bind()
572 if (!sk->sk_prot->ioctl) in inet6_ioctl()
574 return sk->sk_prot->ioctl(sk, cmd, arg); in inet6_ioctl()
640 return INDIRECT_CALL_2(sk->sk_prot->sendmsg, tcp_sendmsg, udpv6_sendmsg, in inet6_sendmsg()
[all …]
H A Dipv6_sockglue.c446 if (sk->sk_prot != &tcpv6_prot) { in do_ipv6_setsockopt()
479 sock_prot_inuse_add(net, sk->sk_prot, -1); in do_ipv6_setsockopt()
482 sk->sk_prot = &tcp_prot; in do_ipv6_setsockopt()
493 sock_prot_inuse_add(net, sk->sk_prot, -1); in do_ipv6_setsockopt()
496 sk->sk_prot = prot; in do_ipv6_setsockopt()
H A Ddatagram.c102 if (sk->sk_prot->rehash) in ip6_datagram_dst_update()
103 sk->sk_prot->rehash(sk); in ip6_datagram_dst_update()
207 if (sk->sk_prot->rehash) in __ip6_datagram_connect()
208 sk->sk_prot->rehash(sk); in __ip6_datagram_connect()
/OK3568_Linux_fs/kernel/net/core/
H A Dsock.c576 if (sk->sk_prot->rehash) in sock_bindtoindex_locked()
577 sk->sk_prot->rehash(sk); in sock_bindtoindex_locked()
775 if (sk->sk_prot->keepalive) in sock_set_keepalive()
776 sk->sk_prot->keepalive(sk, true); in sock_set_keepalive()
939 if (sk->sk_prot->keepalive) in sock_setsockopt()
940 sk->sk_prot->keepalive(sk, valbool); in sock_setsockopt()
1663 const struct proto *prot = READ_ONCE(osk->sk_prot); in sock_copy()
1753 sk->sk_prot = sk->sk_prot_creator = prot; in sk_alloc()
1886 struct proto *prot = READ_ONCE(sk->sk_prot); in sk_clone_lock()
1996 if (newsk->sk_prot->sockets_allocated) in sk_clone_lock()
[all …]
H A Dsock_diag.c302 if (!sk->sk_prot->diag_destroy) in sock_diag_destroy()
305 return sk->sk_prot->diag_destroy(sk, err); in sock_diag_destroy()
/OK3568_Linux_fs/kernel/net/xfrm/
H A Despintcp.c435 return sk->sk_prot == &espintcp_prot || sk->sk_prot == &espintcp6_prot; in tcp_is_ulp_esp()
472 sk->sk_prot = &espintcp_prot; in espintcp_init_sk()
477 build_protos(&espintcp6_prot, &espintcp6_ops, sk->sk_prot, sk->sk_socket->ops); in espintcp_init_sk()
480 sk->sk_prot = &espintcp6_prot; in espintcp_init_sk()
524 sk->sk_prot = &tcp_prot; in espintcp_close()
/OK3568_Linux_fs/kernel/net/tls/
H A Dtls_main.c72 WRITE_ONCE(sk->sk_prot, in update_sk_prot()
318 WRITE_ONCE(sk->sk_prot, ctx->sk_proto); in tls_sk_proto_close()
635 ctx->sk_proto = READ_ONCE(sk->sk_prot); in tls_ctx_create()
676 struct proto *prot = READ_ONCE(sk->sk_prot); in tls_build_proto()
796 WRITE_ONCE(sk->sk_prot, p); in tls_update()
/OK3568_Linux_fs/kernel/include/linux/
H A Dskmsg.h347 WRITE_ONCE(sk->sk_prot, ops); in sk_psock_update_proto()
359 WRITE_ONCE(sk->sk_prot->unhash, psock->saved_unhash); in sk_psock_restore_proto()
364 WRITE_ONCE(sk->sk_prot, psock->sk_proto); in sk_psock_restore_proto()
/OK3568_Linux_fs/kernel/net/smc/
H A Daf_smc.c69 smc->clcsock->sk->sk_prot->keepalive(smc->clcsock->sk, val); in smc_set_keepalive()
82 struct smc_hashinfo *h = sk->sk_prot->h.smc_hash; in smc_hash_sk()
89 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in smc_hash_sk()
98 struct smc_hashinfo *h = sk->sk_prot->h.smc_hash; in smc_unhash_sk()
102 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in smc_unhash_sk()
164 sk->sk_prot->unhash(sk); in __smc_release()
258 sk->sk_prot->hash(sk); in smc_sock_alloc()
1168 new_sk->sk_prot->unhash(new_sk); in smc_clcsock_accept()
1227 new_sk->sk_prot->unhash(new_sk); in smc_accept_dequeue()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_main.c594 sk->sk_prot = &chtls_cpl_prot; in chtls_install_cpl_ops()
596 sk->sk_prot = &chtls_cpl_protv6; in chtls_install_cpl_ops()
H A Dchtls_cm.h98 #define INC_ORPHAN_COUNT(sk) percpu_counter_inc((sk)->sk_prot->orphan_count)
/OK3568_Linux_fs/kernel/net/can/
H A Daf_can.c167 if (sk->sk_prot->init) in can_create()
168 err = sk->sk_prot->init(sk); in can_create()

123