Lines Matching refs:copy
65 int copy; in __tcp_bpf_recvmsg() local
68 copy = sge->length; in __tcp_bpf_recvmsg()
70 if (copied + copy > len) in __tcp_bpf_recvmsg()
71 copy = len - copied; in __tcp_bpf_recvmsg()
72 copy = copy_page_to_iter(page, sge->offset, copy, iter); in __tcp_bpf_recvmsg()
73 if (!copy) in __tcp_bpf_recvmsg()
76 copied += copy; in __tcp_bpf_recvmsg()
78 sge->offset += copy; in __tcp_bpf_recvmsg()
79 sge->length -= copy; in __tcp_bpf_recvmsg()
81 sk_mem_uncharge(sk, copy); in __tcp_bpf_recvmsg()
82 msg_rx->sg.size -= copy; in __tcp_bpf_recvmsg()
93 if (copy != sge->length) in __tcp_bpf_recvmsg()
444 u32 copy, osize; in tcp_bpf_sendmsg() local
451 copy = msg_data_left(msg); in tcp_bpf_sendmsg()
462 err = sk_msg_alloc(sk, msg_tx, msg_tx->sg.size + copy, msg_tx->sg.end - 1); in tcp_bpf_sendmsg()
467 copy = msg_tx->sg.size - osize; in tcp_bpf_sendmsg()
471 copy); in tcp_bpf_sendmsg()
477 copied += copy; in tcp_bpf_sendmsg()