Lines Matching refs:proto

201 	struct proto *proto;  in mem_cgroup_sockets_init()  local
205 list_for_each_entry(proto, &proto_list, node) { in mem_cgroup_sockets_init()
206 if (proto->init_cgroup) { in mem_cgroup_sockets_init()
207 ret = proto->init_cgroup(memcg, ss); in mem_cgroup_sockets_init()
216 list_for_each_entry_continue_reverse(proto, &proto_list, node) in mem_cgroup_sockets_init()
217 if (proto->destroy_cgroup) in mem_cgroup_sockets_init()
218 proto->destroy_cgroup(memcg); in mem_cgroup_sockets_init()
225 struct proto *proto; in mem_cgroup_sockets_destroy() local
228 list_for_each_entry_reverse(proto, &proto_list, node) in mem_cgroup_sockets_destroy()
229 if (proto->destroy_cgroup) in mem_cgroup_sockets_destroy()
230 proto->destroy_cgroup(memcg); in mem_cgroup_sockets_destroy()
1336 static struct sock *sk_prot_alloc(struct proto *prot, gfp_t priority, in sk_prot_alloc()
1379 static void sk_prot_free(struct proto *prot, struct sock *sk) in sk_prot_free()
1415 struct proto *prot, int kern) in sk_alloc()
2069 struct proto *prot = sk->sk_prot; in __sk_mem_schedule()
2711 void sock_prot_inuse_add(struct net *net, struct proto *prot, int val) in sock_prot_inuse_add()
2717 int sock_prot_inuse_get(struct net *net, struct proto *prot) in sock_prot_inuse_get()
2757 void sock_prot_inuse_add(struct net *net, struct proto *prot, int val) in sock_prot_inuse_add()
2763 int sock_prot_inuse_get(struct net *net, struct proto *prot) in sock_prot_inuse_get()
2776 static void assign_proto_idx(struct proto *prot) in assign_proto_idx()
2788 static void release_proto_idx(struct proto *prot) in release_proto_idx()
2794 static inline void assign_proto_idx(struct proto *prot) in assign_proto_idx()
2798 static inline void release_proto_idx(struct proto *prot) in release_proto_idx()
2813 static int req_prot_init(const struct proto *prot) in req_prot_init()
2837 int proto_register(struct proto *prot, int alloc_slab) in proto_register()
2888 void proto_unregister(struct proto *prot) in proto_unregister()
2931 static long sock_prot_memory_allocated(struct proto *proto) in sock_prot_memory_allocated() argument
2933 return proto->memory_allocated != NULL ? proto_memory_allocated(proto) : -1L; in sock_prot_memory_allocated()
2936 static char *sock_prot_memory_pressure(struct proto *proto) in sock_prot_memory_pressure() argument
2938 return proto->memory_pressure != NULL ? in sock_prot_memory_pressure()
2939 proto_memory_pressure(proto) ? "yes" : "no" : "NI"; in sock_prot_memory_pressure()
2942 static void proto_seq_printf(struct seq_file *seq, struct proto *proto) in proto_seq_printf() argument
2947 proto->name, in proto_seq_printf()
2948 proto->obj_size, in proto_seq_printf()
2949 sock_prot_inuse_get(seq_file_net(seq), proto), in proto_seq_printf()
2950 sock_prot_memory_allocated(proto), in proto_seq_printf()
2951 sock_prot_memory_pressure(proto), in proto_seq_printf()
2952 proto->max_header, in proto_seq_printf()
2953 proto->slab == NULL ? "no" : "yes", in proto_seq_printf()
2954 module_name(proto->owner), in proto_seq_printf()
2955 proto_method_implemented(proto->close), in proto_seq_printf()
2956 proto_method_implemented(proto->connect), in proto_seq_printf()
2957 proto_method_implemented(proto->disconnect), in proto_seq_printf()
2958 proto_method_implemented(proto->accept), in proto_seq_printf()
2959 proto_method_implemented(proto->ioctl), in proto_seq_printf()
2960 proto_method_implemented(proto->init), in proto_seq_printf()
2961 proto_method_implemented(proto->destroy), in proto_seq_printf()
2962 proto_method_implemented(proto->shutdown), in proto_seq_printf()
2963 proto_method_implemented(proto->setsockopt), in proto_seq_printf()
2964 proto_method_implemented(proto->getsockopt), in proto_seq_printf()
2965 proto_method_implemented(proto->sendmsg), in proto_seq_printf()
2966 proto_method_implemented(proto->recvmsg), in proto_seq_printf()
2967 proto_method_implemented(proto->sendpage), in proto_seq_printf()
2968 proto_method_implemented(proto->bind), in proto_seq_printf()
2969 proto_method_implemented(proto->backlog_rcv), in proto_seq_printf()
2970 proto_method_implemented(proto->hash), in proto_seq_printf()
2971 proto_method_implemented(proto->unhash), in proto_seq_printf()
2972 proto_method_implemented(proto->get_port), in proto_seq_printf()
2973 proto_method_implemented(proto->enter_memory_pressure)); in proto_seq_printf()
2990 proto_seq_printf(seq, list_entry(v, struct proto, node)); in proto_seq_show()