Lines Matching refs:sk_prot
387 #define sk_prot __sk_common.skc_prot macro
1364 if (sk->sk_prot->forward_alloc_get) in sk_forward_alloc_get()
1365 return sk->sk_prot->forward_alloc_get(sk); in sk_forward_alloc_get()
1375 return sk->sk_prot->stream_memory_free ? in __sk_stream_memory_free()
1376 INDIRECT_CALL_INET_1(sk->sk_prot->stream_memory_free, in __sk_stream_memory_free()
1409 return sk->sk_prot->memory_pressure != NULL; in sk_has_memory_pressure()
1414 if (!sk->sk_prot->memory_pressure) in sk_under_memory_pressure()
1421 return !!*sk->sk_prot->memory_pressure; in sk_under_memory_pressure()
1433 return proto_memory_allocated(sk->sk_prot); in sk_memory_allocated()
1445 local_reserve = __this_cpu_add_return(*sk->sk_prot->per_cpu_fw_alloc, amt); in sk_memory_allocated_add()
1447 __this_cpu_sub(*sk->sk_prot->per_cpu_fw_alloc, local_reserve); in sk_memory_allocated_add()
1448 atomic_long_add(local_reserve, sk->sk_prot->memory_allocated); in sk_memory_allocated_add()
1459 local_reserve = __this_cpu_sub_return(*sk->sk_prot->per_cpu_fw_alloc, amt); in sk_memory_allocated_sub()
1461 __this_cpu_sub(*sk->sk_prot->per_cpu_fw_alloc, local_reserve); in sk_memory_allocated_sub()
1462 atomic_long_add(local_reserve, sk->sk_prot->memory_allocated); in sk_memory_allocated_sub()
1471 percpu_counter_add_batch(sk->sk_prot->sockets_allocated, -1, in sk_sockets_allocated_dec()
1477 percpu_counter_add_batch(sk->sk_prot->sockets_allocated, 1, in sk_sockets_allocated_inc()
1484 return percpu_counter_read_positive(sk->sk_prot->sockets_allocated); in sk_sockets_allocated_read_positive()
1539 sk->sk_prot->unhash(sk); in __sk_prot_rehash()
1540 return sk->sk_prot->hash(sk); in __sk_prot_rehash()
1585 return READ_ONCE(sk->sk_prot->sysctl_mem[index]); in sk_prot_mem_limits()
1596 return !!sk->sk_prot->memory_allocated; in sk_has_account()
1872 WRITE_ONCE(sk->sk_prot, proto); in sock_replace_proto()
2966 if (sk->sk_prot->sock_is_readable) in sk_is_readable()
2967 return sk->sk_prot->sock_is_readable(sk); in sk_is_readable()