Lines Matching refs:copied
50 int i, ret, copied = 0; in __tcp_bpf_recvmsg() local
56 while (copied != len) { in __tcp_bpf_recvmsg()
70 if (copied + copy > len) in __tcp_bpf_recvmsg()
71 copy = len - copied; in __tcp_bpf_recvmsg()
78 copied += copy; in __tcp_bpf_recvmsg()
94 if (copied == len) in __tcp_bpf_recvmsg()
114 return copied; in __tcp_bpf_recvmsg()
122 int copied, ret; in tcp_bpf_recvmsg() local
134 copied = __tcp_bpf_recvmsg(sk, psock, msg, len, flags); in tcp_bpf_recvmsg()
135 if (!copied) { in tcp_bpf_recvmsg()
152 copied = -EAGAIN; in tcp_bpf_recvmsg()
154 ret = copied; in tcp_bpf_recvmsg()
166 u32 size, copied = 0; in bpf_tcp_ingress() local
182 if (!copied) in bpf_tcp_ingress()
189 copied += size; in bpf_tcp_ingress()
302 struct sk_msg *msg, int *copied, int flags) in tcp_bpf_send_verdict() argument
345 *copied -= sk_msg_free(sk, msg); in tcp_bpf_send_verdict()
365 *copied -= free; in tcp_bpf_send_verdict()
378 *copied -= (tosend + delta); in tcp_bpf_send_verdict()
401 int copied = 0, err = 0; in tcp_bpf_sendmsg() local
451 copied += copy; in tcp_bpf_sendmsg()
464 err = tcp_bpf_send_verdict(sk, psock, msg_tx, &copied, flags); in tcp_bpf_sendmsg()
483 return copied ? copied : err; in tcp_bpf_sendmsg()
490 int err = 0, copied = 0; in tcp_bpf_sendpage() local
512 copied = size; in tcp_bpf_sendpage()
527 err = tcp_bpf_send_verdict(sk, psock, msg, &copied, flags); in tcp_bpf_sendpage()
531 return copied ? copied : err; in tcp_bpf_sendpage()