Lines Matching refs:proto
17 proto_memory_pressure(const struct proto *prot) in proto_memory_pressure()
42 proto_memory_allocated(const struct proto *prot) in proto_memory_allocated()
53 static inline void proto_memory_pcpu_drain(struct proto *proto) in proto_memory_pcpu_drain() argument
55 int val = this_cpu_xchg(*proto->per_cpu_fw_alloc, 0); in proto_memory_pcpu_drain()
58 atomic_long_add(val, proto->memory_allocated); in proto_memory_pcpu_drain()
64 struct proto *proto = sk->sk_prot; in sk_memory_allocated_add() local
66 val = this_cpu_add_return(*proto->per_cpu_fw_alloc, val); in sk_memory_allocated_add()
69 proto_memory_pcpu_drain(proto); in sk_memory_allocated_add()
75 struct proto *proto = sk->sk_prot; in sk_memory_allocated_sub() local
77 val = this_cpu_sub_return(*proto->per_cpu_fw_alloc, val); in sk_memory_allocated_sub()
80 proto_memory_pcpu_drain(proto); in sk_memory_allocated_sub()