Lines Matching refs:amt
1440 sk_memory_allocated_add(struct sock *sk, int amt) in sk_memory_allocated_add() argument
1445 local_reserve = __this_cpu_add_return(*sk->sk_prot->per_cpu_fw_alloc, amt); in sk_memory_allocated_add()
1454 sk_memory_allocated_sub(struct sock *sk, int amt) in sk_memory_allocated_sub() argument
1459 local_reserve = __this_cpu_sub_return(*sk->sk_prot->per_cpu_fw_alloc, amt); in sk_memory_allocated_sub()
1574 int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind);
1588 static inline int sk_mem_pages(int amt) in sk_mem_pages() argument
1590 return (amt + PAGE_SIZE - 1) >> PAGE_SHIFT; in sk_mem_pages()
2482 int amt = 0; in sock_wspace() local
2485 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc); in sock_wspace()
2486 if (amt < 0) in sock_wspace()
2487 amt = 0; in sock_wspace()
2489 return amt; in sock_wspace()