Lines Matching refs:proto
200 struct proto *proto; in mem_cgroup_sockets_init() local
204 list_for_each_entry(proto, &proto_list, node) { in mem_cgroup_sockets_init()
205 if (proto->init_cgroup) { in mem_cgroup_sockets_init()
206 ret = proto->init_cgroup(memcg, ss); in mem_cgroup_sockets_init()
215 list_for_each_entry_continue_reverse(proto, &proto_list, node) in mem_cgroup_sockets_init()
216 if (proto->destroy_cgroup) in mem_cgroup_sockets_init()
217 proto->destroy_cgroup(memcg); in mem_cgroup_sockets_init()
224 struct proto *proto; in mem_cgroup_sockets_destroy() local
227 list_for_each_entry_reverse(proto, &proto_list, node) in mem_cgroup_sockets_destroy()
228 if (proto->destroy_cgroup) in mem_cgroup_sockets_destroy()
229 proto->destroy_cgroup(memcg); in mem_cgroup_sockets_destroy()
1319 static struct sock *sk_prot_alloc(struct proto *prot, gfp_t priority, in sk_prot_alloc()
1362 static void sk_prot_free(struct proto *prot, struct sock *sk) in sk_prot_free()
1397 struct proto *prot) in sk_alloc()
2003 struct proto *prot = sk->sk_prot; in __sk_mem_schedule()
2644 void sock_prot_inuse_add(struct net *net, struct proto *prot, int val) in sock_prot_inuse_add()
2650 int sock_prot_inuse_get(struct net *net, struct proto *prot) in sock_prot_inuse_get()
2690 void sock_prot_inuse_add(struct net *net, struct proto *prot, int val) in sock_prot_inuse_add()
2696 int sock_prot_inuse_get(struct net *net, struct proto *prot) in sock_prot_inuse_get()
2709 static void assign_proto_idx(struct proto *prot) in assign_proto_idx()
2721 static void release_proto_idx(struct proto *prot) in release_proto_idx()
2727 static inline void assign_proto_idx(struct proto *prot) in assign_proto_idx()
2731 static inline void release_proto_idx(struct proto *prot) in release_proto_idx()
2748 static int req_prot_init(const struct proto *prot) in req_prot_init()
2772 int proto_register(struct proto *prot, int alloc_slab) in proto_register()
2823 void proto_unregister(struct proto *prot) in proto_unregister()
2868 static long sock_prot_memory_allocated(struct proto *proto) in sock_prot_memory_allocated() argument
2870 return proto->memory_allocated != NULL ? proto_memory_allocated(proto) : -1L; in sock_prot_memory_allocated()
2873 static char *sock_prot_memory_pressure(struct proto *proto) in sock_prot_memory_pressure() argument
2875 return proto->memory_pressure != NULL ? in sock_prot_memory_pressure()
2876 proto_memory_pressure(proto) ? "yes" : "no" : "NI"; in sock_prot_memory_pressure()
2879 static void proto_seq_printf(struct seq_file *seq, struct proto *proto) in proto_seq_printf() argument
2884 proto->name, in proto_seq_printf()
2885 proto->obj_size, in proto_seq_printf()
2886 sock_prot_inuse_get(seq_file_net(seq), proto), in proto_seq_printf()
2887 sock_prot_memory_allocated(proto), in proto_seq_printf()
2888 sock_prot_memory_pressure(proto), in proto_seq_printf()
2889 proto->max_header, in proto_seq_printf()
2890 proto->slab == NULL ? "no" : "yes", in proto_seq_printf()
2891 module_name(proto->owner), in proto_seq_printf()
2892 proto_method_implemented(proto->close), in proto_seq_printf()
2893 proto_method_implemented(proto->connect), in proto_seq_printf()
2894 proto_method_implemented(proto->disconnect), in proto_seq_printf()
2895 proto_method_implemented(proto->accept), in proto_seq_printf()
2896 proto_method_implemented(proto->ioctl), in proto_seq_printf()
2897 proto_method_implemented(proto->init), in proto_seq_printf()
2898 proto_method_implemented(proto->destroy), in proto_seq_printf()
2899 proto_method_implemented(proto->shutdown), in proto_seq_printf()
2900 proto_method_implemented(proto->setsockopt), in proto_seq_printf()
2901 proto_method_implemented(proto->getsockopt), in proto_seq_printf()
2902 proto_method_implemented(proto->sendmsg), in proto_seq_printf()
2903 proto_method_implemented(proto->recvmsg), in proto_seq_printf()
2904 proto_method_implemented(proto->sendpage), in proto_seq_printf()
2905 proto_method_implemented(proto->bind), in proto_seq_printf()
2906 proto_method_implemented(proto->backlog_rcv), in proto_seq_printf()
2907 proto_method_implemented(proto->hash), in proto_seq_printf()
2908 proto_method_implemented(proto->unhash), in proto_seq_printf()
2909 proto_method_implemented(proto->get_port), in proto_seq_printf()
2910 proto_method_implemented(proto->enter_memory_pressure)); in proto_seq_printf()
2927 proto_seq_printf(seq, list_entry(v, struct proto, node)); in proto_seq_show()