Lines Matching refs:copied

18 	u32 size, copied = 0;  in bpf_tcp_ingress()  local
34 if (!copied) in bpf_tcp_ingress()
41 copied += size; in bpf_tcp_ingress()
181 int copied; in tcp_bpf_recvmsg_parser() local
192 copied = sk_msg_recvmsg(sk, psock, msg, len, flags); in tcp_bpf_recvmsg_parser()
193 if (!copied) { in tcp_bpf_recvmsg_parser()
201 copied = sock_error(sk); in tcp_bpf_recvmsg_parser()
209 copied = -ENOTCONN; in tcp_bpf_recvmsg_parser()
215 copied = -EAGAIN; in tcp_bpf_recvmsg_parser()
220 copied = sock_intr_errno(timeo); in tcp_bpf_recvmsg_parser()
227 copied = -EAGAIN; in tcp_bpf_recvmsg_parser()
232 return copied; in tcp_bpf_recvmsg_parser()
239 int copied, ret; in tcp_bpf_recvmsg() local
254 copied = sk_msg_recvmsg(sk, psock, msg, len, flags); in tcp_bpf_recvmsg()
255 if (!copied) { in tcp_bpf_recvmsg()
268 copied = -EAGAIN; in tcp_bpf_recvmsg()
270 ret = copied; in tcp_bpf_recvmsg()
277 struct sk_msg *msg, int *copied, int flags) in tcp_bpf_send_verdict() argument
318 *copied -= sk_msg_free(sk, msg); in tcp_bpf_send_verdict()
351 *copied -= free; in tcp_bpf_send_verdict()
364 *copied -= (tosend + delta); in tcp_bpf_send_verdict()
390 int copied = 0, err = 0; in tcp_bpf_sendmsg() local
440 copied += copy; in tcp_bpf_sendmsg()
453 err = tcp_bpf_send_verdict(sk, psock, msg_tx, &copied, flags); in tcp_bpf_sendmsg()
472 return copied ? copied : err; in tcp_bpf_sendmsg()
479 int err = 0, copied = 0; in tcp_bpf_sendpage() local
501 copied = size; in tcp_bpf_sendpage()
516 err = tcp_bpf_send_verdict(sk, psock, msg, &copied, flags); in tcp_bpf_sendpage()
520 return copied ? copied : err; in tcp_bpf_sendpage()