Lines Matching defs:sk_prot
279 * @sk_prot_creator: sk_prot of original sock creator (see ipv6_setsockopt,
372 #define sk_prot __sk_common.skc_prot
1331 if (sk->sk_prot->forward_alloc_get)
1332 return sk->sk_prot->forward_alloc_get(sk);
1342 return sk->sk_prot->stream_memory_free ?
1343 INDIRECT_CALL_INET_1(sk->sk_prot->stream_memory_free,
1376 return sk->sk_prot->memory_pressure != NULL;
1381 return sk->sk_prot->memory_pressure &&
1382 !!READ_ONCE(*sk->sk_prot->memory_pressure);
1387 if (!sk->sk_prot->memory_pressure)
1394 return !!READ_ONCE(*sk->sk_prot->memory_pressure);
1406 return proto_memory_allocated(sk->sk_prot);
1424 struct proto *proto = sk->sk_prot;
1435 struct proto *proto = sk->sk_prot;
1447 percpu_counter_add_batch(sk->sk_prot->sockets_allocated, -1,
1453 percpu_counter_add_batch(sk->sk_prot->sockets_allocated, 1,
1460 return percpu_counter_read_positive(sk->sk_prot->sockets_allocated);
1515 sk->sk_prot->unhash(sk);
1516 return sk->sk_prot->hash(sk);
1561 return READ_ONCE(sk->sk_prot->sysctl_mem[index]);
1572 return !!sk->sk_prot->memory_allocated;
1856 WRITE_ONCE(sk->sk_prot, proto);
2963 if (sk->sk_prot->sock_is_readable)
2964 return sk->sk_prot->sock_is_readable(sk);