/net/bluetooth/ |
D | af_bluetooth.c | 503 long amount; in bt_sock_ioctl() local 513 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in bt_sock_ioctl() 514 if (amount < 0) in bt_sock_ioctl() 515 amount = 0; in bt_sock_ioctl() 516 err = put_user(amount, (int __user *)arg); in bt_sock_ioctl() 525 amount = skb ? skb->len : 0; in bt_sock_ioctl() 527 err = put_user(amount, (int __user *)arg); in bt_sock_ioctl()
|
/net/ax25/ |
D | af_ax25.c | 1762 long amount; in ax25_ioctl() local 1764 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in ax25_ioctl() 1765 if (amount < 0) in ax25_ioctl() 1766 amount = 0; in ax25_ioctl() 1767 res = put_user(amount, (int __user *)argp); in ax25_ioctl() 1773 long amount = 0L; in ax25_ioctl() local 1776 amount = skb->len; in ax25_ioctl() 1777 res = put_user(amount, (int __user *) argp); in ax25_ioctl() 1794 long amount; in ax25_ioctl() local 1799 if (get_user(amount, (long __user *)argp)) { in ax25_ioctl() [all …]
|
/net/atm/ |
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) ? -EFAULT : 0; in do_vcc_ioctl()
|
/net/netrom/ |
D | af_netrom.c | 1214 long amount; in nr_ioctl() local 1217 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in nr_ioctl() 1218 if (amount < 0) in nr_ioctl() 1219 amount = 0; in nr_ioctl() 1221 return put_user(amount, (int __user *)argp); in nr_ioctl() 1226 long amount = 0L; in nr_ioctl() local 1231 amount = skb->len; in nr_ioctl() 1233 return put_user(amount, (int __user *)argp); in nr_ioctl()
|
/net/l2tp/ |
D | l2tp_ip.c | 566 int amount; in l2tp_ioctl() local 570 amount = sk_wmem_alloc_get(sk); in l2tp_ioctl() 575 amount = skb ? skb->len : 0; in l2tp_ioctl() 583 return put_user(amount, (int __user *)arg); in l2tp_ioctl()
|
/net/ieee802154/ |
D | socket.c | 539 int amount = sk_wmem_alloc_get(sk); in dgram_ioctl() local 541 return put_user(amount, (int __user *)arg); in dgram_ioctl() 547 unsigned long amount; in dgram_ioctl() local 549 amount = 0; in dgram_ioctl() 557 amount = skb->len - ieee802154_hdr_length(skb); in dgram_ioctl() 560 return put_user(amount, (int __user *)arg); in dgram_ioctl()
|
/net/rose/ |
D | af_rose.c | 1328 long amount; in rose_ioctl() local 1330 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in rose_ioctl() 1331 if (amount < 0) in rose_ioctl() 1332 amount = 0; in rose_ioctl() 1333 return put_user(amount, (unsigned int __user *) argp); in rose_ioctl() 1338 long amount = 0L; in rose_ioctl() local 1342 amount = skb->len; in rose_ioctl() 1344 return put_user(amount, (unsigned int __user *) argp); in rose_ioctl()
|
/net/x25/ |
D | af_x25.c | 1383 int amount; in x25_ioctl() local 1385 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in x25_ioctl() 1386 if (amount < 0) in x25_ioctl() 1387 amount = 0; in x25_ioctl() 1388 rc = put_user(amount, (unsigned int __user *)argp); in x25_ioctl() 1394 int amount = 0; in x25_ioctl() local 1401 amount = skb->len; in x25_ioctl() 1403 rc = put_user(amount, (unsigned int __user *)argp); in x25_ioctl()
|
/net/dccp/ |
D | proto.c | 389 int amount = sk_wmem_alloc_get(sk); in dccp_ioctl() local 394 rc = put_user(amount, (int __user *)arg); in dccp_ioctl() 399 unsigned long amount = 0; in dccp_ioctl() local 407 amount = skb->len; in dccp_ioctl() 409 rc = put_user(amount, (int __user *)arg); in dccp_ioctl()
|
/net/ipv4/ |
D | raw.c | 891 int amount = sk_wmem_alloc_get(sk); in raw_ioctl() local 893 return put_user(amount, (int __user *)arg); in raw_ioctl() 897 int amount = 0; in raw_ioctl() local 902 amount = skb->len; in raw_ioctl() 904 return put_user(amount, (int __user *)arg); in raw_ioctl()
|
D | udp.c | 1725 int amount = sk_wmem_alloc_get(sk); in udp_ioctl() local 1727 return put_user(amount, (int __user *)arg); in udp_ioctl() 1732 int amount = max_t(int, 0, first_packet_length(sk)); in udp_ioctl() local 1734 return put_user(amount, (int __user *)arg); in udp_ioctl()
|
/net/mptcp/ |
D | protocol.c | 289 int amount = sk_mem_pages(skb->truesize) << SK_MEM_QUANTUM_SHIFT; in __mptcp_move_skb() local 291 if (ssk->sk_forward_alloc < amount) in __mptcp_move_skb() 294 ssk->sk_forward_alloc -= amount; in __mptcp_move_skb() 295 sk->sk_forward_alloc += amount; in __mptcp_move_skb() 958 int amount = mptcp_wmem_with_overhead(size); in __mptcp_wmem_reserve() local 962 if (WARN_ON_ONCE(amount < 0)) in __mptcp_wmem_reserve() 963 amount = 0; in __mptcp_wmem_reserve() 965 if (amount <= sk->sk_forward_alloc) in __mptcp_wmem_reserve() 972 if ((tcp_under_memory_pressure(sk) && amount > PAGE_SIZE) || in __mptcp_wmem_reserve() 973 !sk_wmem_schedule(sk, amount)) { in __mptcp_wmem_reserve() [all …]
|
/net/appletalk/ |
D | ddp.c | 1807 long amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in atalk_ioctl() local 1809 if (amount < 0) in atalk_ioctl() 1810 amount = 0; in atalk_ioctl() 1811 rc = put_user(amount, (int __user *)argp); in atalk_ioctl() 1816 long amount = 0; in atalk_ioctl() local 1821 amount = skb->len - sizeof(struct ddpehdr); in atalk_ioctl() 1823 rc = put_user(amount, (int __user *)argp); in atalk_ioctl()
|
/net/ipv6/ |
D | raw.c | 1160 int amount = sk_wmem_alloc_get(sk); in rawv6_ioctl() local 1162 return put_user(amount, (int __user *)arg); in rawv6_ioctl() 1166 int amount = 0; in rawv6_ioctl() local 1171 amount = skb->len; in rawv6_ioctl() 1173 return put_user(amount, (int __user *)arg); in rawv6_ioctl()
|
/net/unix/ |
D | af_unix.c | 2932 long amount = 0; in unix_inq_len() local 2941 amount += unix_skb_len(skb); in unix_inq_len() 2945 amount = skb->len; in unix_inq_len() 2949 return amount; in unix_inq_len() 2998 long amount = 0; in unix_ioctl() local 3003 amount = unix_outq_len(sk); in unix_ioctl() 3004 err = put_user(amount, (int __user *)arg); in unix_ioctl() 3007 amount = unix_inq_len(sk); in unix_ioctl() 3008 if (amount < 0) in unix_ioctl() 3009 err = amount; in unix_ioctl() [all …]
|
/net/core/ |
D | sock.c | 2898 void __sk_mem_reduce_allocated(struct sock *sk, int amount) in __sk_mem_reduce_allocated() argument 2900 sk_memory_allocated_sub(sk, amount); in __sk_mem_reduce_allocated() 2903 mem_cgroup_uncharge_skmem(sk->sk_memcg, amount); in __sk_mem_reduce_allocated() 2916 void __sk_mem_reclaim(struct sock *sk, int amount) in __sk_mem_reclaim() argument 2918 amount >>= SK_MEM_QUANTUM_SHIFT; in __sk_mem_reclaim() 2919 sk->sk_forward_alloc -= amount << SK_MEM_QUANTUM_SHIFT; in __sk_mem_reclaim() 2920 __sk_mem_reduce_allocated(sk, amount); in __sk_mem_reclaim()
|
/net/can/ |
D | Kconfig | 62 As CAN frames can only transport a small amount of data bytes
|
/net/netfilter/ipvs/ |
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/ |
D | af_packet.c | 4171 int amount = sk_wmem_alloc_get(sk); in packet_ioctl() local 4173 return put_user(amount, (int __user *)arg); in packet_ioctl() 4178 int amount = 0; in packet_ioctl() local 4183 amount = skb->len; in packet_ioctl() 4185 return put_user(amount, (int __user *)arg); in packet_ioctl()
|
/net/sctp/ |
D | socket.c | 4922 unsigned int amount = 0; in sctp_ioctl() local 4930 amount = skb->len; in sctp_ioctl() 4932 rc = put_user(amount, (int __user *)arg); in sctp_ioctl()
|