Lines Matching refs:copied

19 	int i, copied = 0;  in __tcp_bpf_recvmsg()  local
24 while (copied != len) { in __tcp_bpf_recvmsg()
38 if (copied + copy > len) in __tcp_bpf_recvmsg()
39 copy = len - copied; in __tcp_bpf_recvmsg()
42 return copied ? copied : -EFAULT; in __tcp_bpf_recvmsg()
44 copied += copy; in __tcp_bpf_recvmsg()
62 return copied; in __tcp_bpf_recvmsg()
66 if (copied == len) in __tcp_bpf_recvmsg()
89 return copied; in __tcp_bpf_recvmsg()
98 u32 size, copied = 0; in bpf_tcp_ingress() local
114 if (!copied) in bpf_tcp_ingress()
121 copied += size; in bpf_tcp_ingress()
271 int copied, ret; in tcp_bpf_recvmsg() local
286 copied = __tcp_bpf_recvmsg(sk, psock, msg, len, flags); in tcp_bpf_recvmsg()
287 if (!copied) { in tcp_bpf_recvmsg()
304 copied = -EAGAIN; in tcp_bpf_recvmsg()
306 ret = copied; in tcp_bpf_recvmsg()
314 struct sk_msg *msg, int *copied, int flags) in tcp_bpf_send_verdict() argument
355 *copied -= sk_msg_free(sk, msg); in tcp_bpf_send_verdict()
388 *copied -= free; in tcp_bpf_send_verdict()
401 *copied -= (tosend + delta); in tcp_bpf_send_verdict()
427 int copied = 0, err = 0; in tcp_bpf_sendmsg() local
477 copied += copy; in tcp_bpf_sendmsg()
490 err = tcp_bpf_send_verdict(sk, psock, msg_tx, &copied, flags); in tcp_bpf_sendmsg()
509 return copied ? copied : err; in tcp_bpf_sendmsg()
516 int err = 0, copied = 0; in tcp_bpf_sendpage() local
538 copied = size; in tcp_bpf_sendpage()
553 err = tcp_bpf_send_verdict(sk, psock, msg, &copied, flags); in tcp_bpf_sendpage()
557 return copied ? copied : err; in tcp_bpf_sendpage()