Lines Matching refs:copied
316 ssize_t orig, copied, use, offset; in sk_msg_zerocopy_from_iter() local
327 copied = iov_iter_get_pages(from, pages, bytes, maxpages, in sk_msg_zerocopy_from_iter()
329 if (copied <= 0) { in sk_msg_zerocopy_from_iter()
334 iov_iter_advance(from, copied); in sk_msg_zerocopy_from_iter()
335 bytes -= copied; in sk_msg_zerocopy_from_iter()
336 msg->sg.size += copied; in sk_msg_zerocopy_from_iter()
338 while (copied) { in sk_msg_zerocopy_from_iter()
339 use = min_t(int, copied, PAGE_SIZE - offset); in sk_msg_zerocopy_from_iter()
346 copied -= use; in sk_msg_zerocopy_from_iter()
435 int num_sge, copied; in sk_psock_skb_ingress_enqueue() local
448 copied = skb->len; in sk_psock_skb_ingress_enqueue()
450 msg->sg.size = copied; in sk_psock_skb_ingress_enqueue()
456 return copied; in sk_psock_skb_ingress_enqueue()