Lines Matching refs:amt
1383 sk_memory_allocated_add(struct sock *sk, int amt)
1385 return atomic_long_add_return(amt, sk->sk_prot->memory_allocated);
1389 sk_memory_allocated_sub(struct sock *sk, int amt)
1391 atomic_long_sub(amt, sk->sk_prot->memory_allocated);
1486 int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind);
1512 static inline int sk_mem_pages(int amt)
1514 return (amt + SK_MEM_QUANTUM - 1) >> SK_MEM_QUANTUM_SHIFT;
2343 int amt = 0;
2346 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc);
2347 if (amt < 0)
2348 amt = 0;
2350 return amt;