Lines Matching refs:amt
1463 sk_memory_allocated_add(struct sock *sk, int amt) in sk_memory_allocated_add() argument
1468 local_reserve = __this_cpu_add_return(*sk->sk_prot->per_cpu_fw_alloc, amt); in sk_memory_allocated_add()
1477 sk_memory_allocated_sub(struct sock *sk, int amt) in sk_memory_allocated_sub() argument
1482 local_reserve = __this_cpu_sub_return(*sk->sk_prot->per_cpu_fw_alloc, amt); in sk_memory_allocated_sub()
1597 int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind);
1611 static inline int sk_mem_pages(int amt) in sk_mem_pages() argument
1613 return (amt + PAGE_SIZE - 1) >> PAGE_SHIFT; in sk_mem_pages()
2504 int amt = 0; in sock_wspace() local
2507 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc); in sock_wspace()
2508 if (amt < 0) in sock_wspace()
2509 amt = 0; in sock_wspace()
2511 return amt; in sock_wspace()