Lines Matching refs:amt
1423 sk_memory_allocated_add(struct sock *sk, int amt) in sk_memory_allocated_add() argument
1425 return atomic_long_add_return(amt, sk->sk_prot->memory_allocated); in sk_memory_allocated_add()
1429 sk_memory_allocated_sub(struct sock *sk, int amt) in sk_memory_allocated_sub() argument
1431 atomic_long_sub(amt, sk->sk_prot->memory_allocated); in sk_memory_allocated_sub()
1528 int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind);
1554 static inline int sk_mem_pages(int amt) in sk_mem_pages() argument
1556 return (amt + SK_MEM_QUANTUM - 1) >> SK_MEM_QUANTUM_SHIFT; in sk_mem_pages()
2429 int amt = 0; in sock_wspace() local
2432 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc); in sock_wspace()
2433 if (amt < 0) in sock_wspace()
2434 amt = 0; in sock_wspace()
2436 return amt; in sock_wspace()