Lines Matching refs:sk_prot
383 #define sk_prot __sk_common.skc_prot macro
1280 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc()
1285 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec()
1287 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec()
1294 sk->sk_prot->name, sk, refcount_read(&sk->sk_refcnt)); in sk_refcnt_debug_release()
1307 return sk->sk_prot->stream_memory_free ? in __sk_stream_memory_free()
1308 sk->sk_prot->stream_memory_free(sk, wake) : true; in __sk_stream_memory_free()
1340 return sk->sk_prot->memory_pressure != NULL; in sk_has_memory_pressure()
1345 if (!sk->sk_prot->memory_pressure) in sk_under_memory_pressure()
1352 return !!*sk->sk_prot->memory_pressure; in sk_under_memory_pressure()
1358 return atomic_long_read(sk->sk_prot->memory_allocated); in sk_memory_allocated()
1364 return atomic_long_add_return(amt, sk->sk_prot->memory_allocated); in sk_memory_allocated_add()
1370 atomic_long_sub(amt, sk->sk_prot->memory_allocated); in sk_memory_allocated_sub()
1375 percpu_counter_dec(sk->sk_prot->sockets_allocated); in sk_sockets_allocated_dec()
1380 percpu_counter_inc(sk->sk_prot->sockets_allocated); in sk_sockets_allocated_inc()
1386 return percpu_counter_read_positive(sk->sk_prot->sockets_allocated); in sk_sockets_allocated_read_positive()
1428 sk->sk_prot->unhash(sk); in __sk_prot_rehash()
1429 return sk->sk_prot->hash(sk); in __sk_prot_rehash()
1481 long val = READ_ONCE(sk->sk_prot->sysctl_mem[index]); in sk_prot_mem_limits()
1499 return !!sk->sk_prot->memory_allocated; in sk_has_account()