Lines Matching refs:sk_prot
294 * @sk_prot_creator: sk_prot of original sock creator (see ipv6_setsockopt,
388 #define sk_prot __sk_common.skc_prot
1159 * [1] : sk_state and sk_prot are in the same cache line.
1381 if (sk->sk_prot->forward_alloc_get)
1382 return sk->sk_prot->forward_alloc_get(sk);
1392 return sk->sk_prot->stream_memory_free ?
1393 INDIRECT_CALL_INET_1(sk->sk_prot->stream_memory_free,
1426 return sk->sk_prot->memory_pressure != NULL;
1431 return sk->sk_prot->memory_pressure &&
1432 !!READ_ONCE(*sk->sk_prot->memory_pressure);
1437 if (!sk->sk_prot->memory_pressure)
1444 return !!READ_ONCE(*sk->sk_prot->memory_pressure);
1456 return proto_memory_allocated(sk->sk_prot);
1468 local_reserve = __this_cpu_add_return(*sk->sk_prot->per_cpu_fw_alloc, amt);
1470 __this_cpu_sub(*sk->sk_prot->per_cpu_fw_alloc, local_reserve);
1471 atomic_long_add(local_reserve, sk->sk_prot->memory_allocated);
1482 local_reserve = __this_cpu_sub_return(*sk->sk_prot->per_cpu_fw_alloc, amt);
1484 __this_cpu_sub(*sk->sk_prot->per_cpu_fw_alloc, local_reserve);
1485 atomic_long_add(local_reserve, sk->sk_prot->memory_allocated);
1494 percpu_counter_add_batch(sk->sk_prot->sockets_allocated, -1,
1500 percpu_counter_add_batch(sk->sk_prot->sockets_allocated, 1,
1507 return percpu_counter_read_positive(sk->sk_prot->sockets_allocated);
1562 sk->sk_prot->unhash(sk);
1563 return sk->sk_prot->hash(sk);
1608 return READ_ONCE(sk->sk_prot->sysctl_mem[index]);
1619 return !!sk->sk_prot->memory_allocated;
1895 WRITE_ONCE(sk->sk_prot, proto);
3028 if (sk->sk_prot->sock_is_readable)
3029 return sk->sk_prot->sock_is_readable(sk);