Searched refs:amount (Results 1 – 13 of 13) sorted by relevance
| /net/bluetooth/ |
| A D | af_bluetooth.c | 660 long amount; in bt_sock_ioctl() local 670 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in bt_sock_ioctl() 671 if (amount < 0) in bt_sock_ioctl() 672 amount = 0; in bt_sock_ioctl() 673 err = put_user(amount, (int __user *)arg); in bt_sock_ioctl() 682 amount = skb ? skb->len : 0; in bt_sock_ioctl() 685 err = put_user(amount, (int __user *)arg); in bt_sock_ioctl()
|
| /net/ax25/ |
| A D | af_ax25.c | 1777 long amount; in ax25_ioctl() local 1780 if (amount < 0) in ax25_ioctl() 1781 amount = 0; in ax25_ioctl() 1782 res = put_user(amount, (int __user *)argp); in ax25_ioctl() 1788 long amount = 0L; in ax25_ioctl() local 1791 amount = skb->len; in ax25_ioctl() 1792 res = put_user(amount, (int __user *) argp); in ax25_ioctl() 1809 long amount; in ax25_ioctl() local 1814 if (get_user(amount, (long __user *)argp)) { in ax25_ioctl() 1818 if (amount < 0 || amount > AX25_NOUID_BLOCK) { in ax25_ioctl() [all …]
|
| /net/atm/ |
| A D | ioctl.c | 76 int amount; in do_vcc_ioctl() local 84 amount = skb ? skb->len : 0; in do_vcc_ioctl() 86 error = put_user(amount, (int __user *)argp); in do_vcc_ioctl()
|
| /net/netrom/ |
| A D | af_netrom.c | 1215 long amount; in nr_ioctl() local 1218 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in nr_ioctl() 1219 if (amount < 0) in nr_ioctl() 1220 amount = 0; in nr_ioctl() 1222 return put_user(amount, (int __user *)argp); in nr_ioctl() 1227 long amount = 0L; in nr_ioctl() local 1232 amount = skb->len; in nr_ioctl() 1234 return put_user(amount, (int __user *)argp); in nr_ioctl()
|
| /net/x25/ |
| A D | af_x25.c | 1387 int amount; in x25_ioctl() local 1389 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in x25_ioctl() 1390 if (amount < 0) in x25_ioctl() 1391 amount = 0; in x25_ioctl() 1392 rc = put_user(amount, (unsigned int __user *)argp); in x25_ioctl() 1398 int amount = 0; in x25_ioctl() local 1405 amount = skb->len; in x25_ioctl() 1407 rc = put_user(amount, (unsigned int __user *)argp); in x25_ioctl()
|
| /net/rose/ |
| A D | af_rose.c | 1344 long amount; in rose_ioctl() local 1346 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in rose_ioctl() 1347 if (amount < 0) in rose_ioctl() 1348 amount = 0; in rose_ioctl() 1349 return put_user(amount, (unsigned int __user *) argp); in rose_ioctl() 1354 long amount = 0L; in rose_ioctl() local 1358 amount = skb->len; in rose_ioctl() 1360 return put_user(amount, (unsigned int __user *) argp); in rose_ioctl()
|
| /net/appletalk/ |
| A D | ddp.c | 1784 long amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in atalk_ioctl() local 1786 if (amount < 0) in atalk_ioctl() 1787 amount = 0; in atalk_ioctl() 1788 rc = put_user(amount, (int __user *)argp); in atalk_ioctl() 1793 long amount = 0; in atalk_ioctl() local 1798 amount = skb->len - sizeof(struct ddpehdr); in atalk_ioctl() 1800 rc = put_user(amount, (int __user *)argp); in atalk_ioctl()
|
| /net/unix/ |
| A D | af_unix.c | 3258 long amount = 0; in unix_inq_len() local 3269 amount += unix_skb_len(skb); in unix_inq_len() 3273 amount = skb->len; in unix_inq_len() 3277 return amount; in unix_inq_len() 3318 long amount = 0; in unix_ioctl() local 3323 amount = unix_outq_len(sk); in unix_ioctl() 3324 err = put_user(amount, (int __user *)arg); in unix_ioctl() 3327 amount = unix_inq_len(sk); in unix_ioctl() 3328 if (amount < 0) in unix_ioctl() 3329 err = amount; in unix_ioctl() [all …]
|
| /net/can/ |
| A D | Kconfig | 66 As CAN frames can only transport a small amount of data bytes
|
| /net/core/ |
| A D | sock.c | 3397 void __sk_mem_reduce_allocated(struct sock *sk, int amount) in __sk_mem_reduce_allocated() argument 3399 sk_memory_allocated_sub(sk, amount); in __sk_mem_reduce_allocated() 3402 mem_cgroup_uncharge_skmem(sk->sk_memcg, amount); in __sk_mem_reduce_allocated() 3414 void __sk_mem_reclaim(struct sock *sk, int amount) in __sk_mem_reclaim() argument 3416 amount >>= PAGE_SHIFT; in __sk_mem_reclaim() 3417 sk_forward_alloc_add(sk, -(amount << PAGE_SHIFT)); in __sk_mem_reclaim() 3418 __sk_mem_reduce_allocated(sk, amount); in __sk_mem_reclaim()
|
| /net/netfilter/ipvs/ |
| A D | Kconfig | 297 tiled an amount proportional to the weights specified. The table 314 receive more connections, the table is assigned an amount
|
| /net/packet/ |
| A D | af_packet.c | 4302 int amount = sk_wmem_alloc_get(sk); in packet_ioctl() local 4304 return put_user(amount, (int __user *)arg); in packet_ioctl() 4309 int amount = 0; in packet_ioctl() local 4314 amount = skb->len; in packet_ioctl() 4316 return put_user(amount, (int __user *)arg); in packet_ioctl()
|
| /net/ipv4/ |
| A D | tcp_output.c | 2700 static void tcp_grow_skb(struct sock *sk, struct sk_buff *skb, int amount) in tcp_grow_skb() argument 2711 nlen = min_t(u32, amount, next_skb->len); in tcp_grow_skb()
|
Completed in 50 milliseconds