Lines Matching refs:proto

2052 	const struct proto *prot = READ_ONCE(osk->sk_prot);  in sock_copy()
2077 static struct sock *sk_prot_alloc(struct proto *prot, gfp_t priority, in sk_prot_alloc()
2113 static void sk_prot_free(struct proto *prot, struct sock *sk) in sk_prot_free()
2140 struct proto *prot, int kern) in sk_alloc()
2290 struct proto *prot = READ_ONCE(sk->sk_prot); in sk_clone_lock()
3047 struct proto *prot = sk->sk_prot; in __sk_mem_raise_allocated()
3761 int sock_prot_inuse_get(struct net *net, struct proto *prot) in sock_prot_inuse_get()
3813 static int assign_proto_idx(struct proto *prot) in assign_proto_idx()
3826 static void release_proto_idx(struct proto *prot) in release_proto_idx()
3832 static inline int assign_proto_idx(struct proto *prot) in assign_proto_idx()
3837 static inline void release_proto_idx(struct proto *prot) in release_proto_idx()
3853 static int tw_prot_init(const struct proto *prot) in tw_prot_init()
3889 static int req_prot_init(const struct proto *prot) in req_prot_init()
3914 int proto_register(struct proto *prot, int alloc_slab) in proto_register()
3972 void proto_unregister(struct proto *prot) in proto_unregister()
4033 static long sock_prot_memory_allocated(struct proto *proto) in sock_prot_memory_allocated() argument
4035 return proto->memory_allocated != NULL ? proto_memory_allocated(proto) : -1L; in sock_prot_memory_allocated()
4038 static const char *sock_prot_memory_pressure(struct proto *proto) in sock_prot_memory_pressure() argument
4040 return proto->memory_pressure != NULL ? in sock_prot_memory_pressure()
4041 proto_memory_pressure(proto) ? "yes" : "no" : "NI"; in sock_prot_memory_pressure()
4044 static void proto_seq_printf(struct seq_file *seq, struct proto *proto) in proto_seq_printf() argument
4049 proto->name, in proto_seq_printf()
4050 proto->obj_size, in proto_seq_printf()
4051 sock_prot_inuse_get(seq_file_net(seq), proto), in proto_seq_printf()
4052 sock_prot_memory_allocated(proto), in proto_seq_printf()
4053 sock_prot_memory_pressure(proto), in proto_seq_printf()
4054 proto->max_header, in proto_seq_printf()
4055 proto->slab == NULL ? "no" : "yes", in proto_seq_printf()
4056 module_name(proto->owner), in proto_seq_printf()
4057 proto_method_implemented(proto->close), in proto_seq_printf()
4058 proto_method_implemented(proto->connect), in proto_seq_printf()
4059 proto_method_implemented(proto->disconnect), in proto_seq_printf()
4060 proto_method_implemented(proto->accept), in proto_seq_printf()
4061 proto_method_implemented(proto->ioctl), in proto_seq_printf()
4062 proto_method_implemented(proto->init), in proto_seq_printf()
4063 proto_method_implemented(proto->destroy), in proto_seq_printf()
4064 proto_method_implemented(proto->shutdown), in proto_seq_printf()
4065 proto_method_implemented(proto->setsockopt), in proto_seq_printf()
4066 proto_method_implemented(proto->getsockopt), in proto_seq_printf()
4067 proto_method_implemented(proto->sendmsg), in proto_seq_printf()
4068 proto_method_implemented(proto->recvmsg), in proto_seq_printf()
4069 proto_method_implemented(proto->bind), in proto_seq_printf()
4070 proto_method_implemented(proto->backlog_rcv), in proto_seq_printf()
4071 proto_method_implemented(proto->hash), in proto_seq_printf()
4072 proto_method_implemented(proto->unhash), in proto_seq_printf()
4073 proto_method_implemented(proto->get_port), in proto_seq_printf()
4074 proto_method_implemented(proto->enter_memory_pressure)); in proto_seq_printf()
4091 proto_seq_printf(seq, list_entry(v, struct proto, node)); in proto_seq_show()