Lines Matching defs:prot
1372 int proto_register(struct proto *prot, int alloc_slab);
1373 void proto_unregister(struct proto *prot);
1448 proto_memory_allocated(const struct proto *prot)
1450 return max(0L, atomic_long_read(prot->memory_allocated));
1511 proto_sockets_allocated_sum_positive(struct proto *prot)
1513 return percpu_counter_sum_positive(prot->sockets_allocated);
1517 proto_memory_pressure(struct proto *prot)
1519 if (!prot->memory_pressure)
1521 return !!READ_ONCE(*prot->memory_pressure);
1533 const struct proto *prot, int val)
1535 this_cpu_add(net->core.prot_inuse->val[prot->inuse_idx], val);
1547 const struct proto *prot, int val)
1842 struct proto *prot, int kern);