Lines Matching refs:proto
114 struct proto;
197 struct proto *skc_prot;
482 struct proto *sk_prot_creator;
1174 struct proto {
1288 int proto_register(struct proto *prot, int alloc_slab);
1289 void proto_unregister(struct proto *prot);
1411 proto_sockets_allocated_sum_positive(struct proto *prot)
1417 proto_memory_allocated(struct proto *prot)
1423 proto_memory_pressure(struct proto *prot)
1433 void sock_prot_inuse_add(struct net *net, struct proto *prot, int inc);
1434 int sock_prot_inuse_get(struct net *net, struct proto *proto);
1437 static inline void sock_prot_inuse_add(struct net *net, struct proto *prot,
1719 struct proto *prot, int kern);
2765 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto)
2767 /* Does this proto have per netns sysctl_wmem ? */
2768 if (proto->sysctl_wmem_offset)
2769 return READ_ONCE(*(int *)((void *)sock_net(sk) + proto->sysctl_wmem_offset));
2771 return READ_ONCE(*proto->sysctl_wmem);
2774 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto)
2776 /* Does this proto have per netns sysctl_rmem ? */
2777 if (proto->sysctl_rmem_offset)
2778 return READ_ONCE(*(int *)((void *)sock_net(sk) + proto->sysctl_rmem_offset));
2780 return READ_ONCE(*proto->sysctl_rmem);