Lines Matching refs:copy
33 int copy; in __tcp_bpf_recvmsg() local
36 copy = sge->length; in __tcp_bpf_recvmsg()
38 if (copied + copy > len) in __tcp_bpf_recvmsg()
39 copy = len - copied; in __tcp_bpf_recvmsg()
40 copy = copy_page_to_iter(page, sge->offset, copy, iter); in __tcp_bpf_recvmsg()
41 if (!copy) in __tcp_bpf_recvmsg()
44 copied += copy; in __tcp_bpf_recvmsg()
46 sge->offset += copy; in __tcp_bpf_recvmsg()
47 sge->length -= copy; in __tcp_bpf_recvmsg()
49 sk_mem_uncharge(sk, copy); in __tcp_bpf_recvmsg()
50 msg_rx->sg.size -= copy; in __tcp_bpf_recvmsg()
61 if (copy != sge->length) in __tcp_bpf_recvmsg()
448 u32 copy, osize; in tcp_bpf_sendmsg() local
455 copy = msg_data_left(msg); in tcp_bpf_sendmsg()
466 err = sk_msg_alloc(sk, msg_tx, msg_tx->sg.size + copy, msg_tx->sg.end - 1); in tcp_bpf_sendmsg()
471 copy = msg_tx->sg.size - osize; in tcp_bpf_sendmsg()
475 copy); in tcp_bpf_sendmsg()
481 copied += copy; in tcp_bpf_sendmsg()