Lines Matching full:copied
20 int i, copied = 0; in __tcp_bpf_recvmsg() local
25 while (copied != len) { in __tcp_bpf_recvmsg()
39 if (copied + copy > len) in __tcp_bpf_recvmsg()
40 copy = len - copied; in __tcp_bpf_recvmsg()
43 return copied ? copied : -EFAULT; in __tcp_bpf_recvmsg()
45 copied += copy; in __tcp_bpf_recvmsg()
63 return copied; in __tcp_bpf_recvmsg()
67 if (copied == len) in __tcp_bpf_recvmsg()
90 return copied; in __tcp_bpf_recvmsg()
99 u32 size, copied = 0; in bpf_tcp_ingress() local
115 if (!copied) in bpf_tcp_ingress()
122 copied += size; in bpf_tcp_ingress()
275 int copied, ret; in tcp_bpf_recvmsg() local
290 copied = __tcp_bpf_recvmsg(sk, psock, msg, len, flags); in tcp_bpf_recvmsg()
291 if (!copied) { in tcp_bpf_recvmsg()
308 copied = -EAGAIN; in tcp_bpf_recvmsg()
310 ret = copied; in tcp_bpf_recvmsg()
318 struct sk_msg *msg, int *copied, int flags) in tcp_bpf_send_verdict() argument
329 * returned to user copied size. This ensures user doesn't in tcp_bpf_send_verdict()
360 *copied -= sk_msg_free(sk, msg); in tcp_bpf_send_verdict()
393 *copied -= free; in tcp_bpf_send_verdict()
406 *copied -= (tosend + delta); in tcp_bpf_send_verdict()
429 int copied = 0, err = 0; in tcp_bpf_sendmsg() local
479 copied += copy; in tcp_bpf_sendmsg()
492 err = tcp_bpf_send_verdict(sk, psock, msg_tx, &copied, flags); in tcp_bpf_sendmsg()
511 return copied > 0 ? copied : err; in tcp_bpf_sendmsg()
518 int err = 0, copied = 0; in tcp_bpf_sendpage() local
540 copied = size; in tcp_bpf_sendpage()
555 err = tcp_bpf_send_verdict(sk, psock, msg, &copied, flags); in tcp_bpf_sendpage()
559 return copied ? copied : err; in tcp_bpf_sendpage()