Lines Matching refs:amt
1463 sk_memory_allocated_add(struct sock *sk, int amt)
1468 local_reserve = __this_cpu_add_return(*sk->sk_prot->per_cpu_fw_alloc, amt);
1477 sk_memory_allocated_sub(struct sock *sk, int amt)
1482 local_reserve = __this_cpu_sub_return(*sk->sk_prot->per_cpu_fw_alloc, amt);
1597 int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind);
1611 static inline int sk_mem_pages(int amt)
1613 return (amt + PAGE_SIZE - 1) >> PAGE_SHIFT;
2516 int amt = 0;
2519 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc);
2520 if (amt < 0)
2521 amt = 0;
2523 return amt;