Lines Matching refs:sk_prot
384 #define sk_prot __sk_common.skc_prot macro
1361 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc()
1366 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec()
1368 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec()
1375 sk->sk_prot->name, sk, refcount_read(&sk->sk_refcnt)); in sk_refcnt_debug_release()
1388 if (sk->sk_prot->forward_alloc_get) in sk_forward_alloc_get()
1389 return sk->sk_prot->forward_alloc_get(sk); in sk_forward_alloc_get()
1399 return sk->sk_prot->stream_memory_free ? in __sk_stream_memory_free()
1400 INDIRECT_CALL_INET_1(sk->sk_prot->stream_memory_free, in __sk_stream_memory_free()
1433 return sk->sk_prot->memory_pressure != NULL; in sk_has_memory_pressure()
1438 if (!sk->sk_prot->memory_pressure) in sk_under_memory_pressure()
1445 return !!*sk->sk_prot->memory_pressure; in sk_under_memory_pressure()
1457 return proto_memory_allocated(sk->sk_prot); in sk_memory_allocated()
1469 local_reserve = __this_cpu_add_return(*sk->sk_prot->per_cpu_fw_alloc, amt); in sk_memory_allocated_add()
1471 __this_cpu_sub(*sk->sk_prot->per_cpu_fw_alloc, local_reserve); in sk_memory_allocated_add()
1472 atomic_long_add(local_reserve, sk->sk_prot->memory_allocated); in sk_memory_allocated_add()
1483 local_reserve = __this_cpu_sub_return(*sk->sk_prot->per_cpu_fw_alloc, amt); in sk_memory_allocated_sub()
1485 __this_cpu_sub(*sk->sk_prot->per_cpu_fw_alloc, local_reserve); in sk_memory_allocated_sub()
1486 atomic_long_add(local_reserve, sk->sk_prot->memory_allocated); in sk_memory_allocated_sub()
1495 percpu_counter_add_batch(sk->sk_prot->sockets_allocated, -1, in sk_sockets_allocated_dec()
1501 percpu_counter_add_batch(sk->sk_prot->sockets_allocated, 1, in sk_sockets_allocated_inc()
1508 return percpu_counter_read_positive(sk->sk_prot->sockets_allocated); in sk_sockets_allocated_read_positive()
1563 sk->sk_prot->unhash(sk); in __sk_prot_rehash()
1564 return sk->sk_prot->hash(sk); in __sk_prot_rehash()
1609 return READ_ONCE(sk->sk_prot->sysctl_mem[index]); in sk_prot_mem_limits()
1620 return !!sk->sk_prot->memory_allocated; in sk_has_account()
1896 WRITE_ONCE(sk->sk_prot, proto); in sock_replace_proto()
2974 if (sk->sk_prot->sock_is_readable) in sk_is_readable()
2975 return sk->sk_prot->sock_is_readable(sk); in sk_is_readable()