Lines Matching refs:amt
1464 sk_memory_allocated_add(struct sock *sk, int amt) in sk_memory_allocated_add() argument
1469 local_reserve = __this_cpu_add_return(*sk->sk_prot->per_cpu_fw_alloc, amt); in sk_memory_allocated_add()
1478 sk_memory_allocated_sub(struct sock *sk, int amt) in sk_memory_allocated_sub() argument
1483 local_reserve = __this_cpu_sub_return(*sk->sk_prot->per_cpu_fw_alloc, amt); in sk_memory_allocated_sub()
1598 int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind);
1612 static inline int sk_mem_pages(int amt) in sk_mem_pages() argument
1614 return (amt + PAGE_SIZE - 1) >> PAGE_SHIFT; in sk_mem_pages()
2488 int amt = 0; in sock_wspace() local
2491 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc); in sock_wspace()
2492 if (amt < 0) in sock_wspace()
2493 amt = 0; in sock_wspace()
2495 return amt; in sock_wspace()