Lines Matching refs:to

19  *		Alan Cox	:	Rewrote skb_read_datagram to avoid the
85 * Wait for the last received packet to be different from skb
144 /* We have to unshare an skb before modifying it. */
209 * @queue: socket queue from which to receive
211 * @off: an offset in bytes to peek skb from. Returns an offset
214 * @last: set to last peeked message to inform the wait function
215 * what to look for when peeking
224 * the caller needs to unlock the socket in that case (usually by
225 * calling skb_free_datagram). Returns NULL with @err set to
226 * -EAGAIN if no data was available or to some other value if an
232 * * when data copying to user space takes lots of time.
249 * Caller is allowed not to check sk->sk_err before skb_recv_datagram()
389 struct iov_iter *to, int len, bool fault_short,
402 skb->data + offset, copy, data, to);
426 copy, data, to);
447 to, copy, fault_short, cb, data))
464 iov_iter_revert(to, offset - start_off);
468 if (fault_short || iov_iter_count(to))
493 * skb_copy_and_hash_datagram_iter - Copy datagram to an iovec iterator
495 * @skb: buffer to copy
496 * @offset: offset in the buffer to start copying from
497 * @to: iovec iterator to copy to
498 * @len: amount of data to copy from buffer to iovec
499 * @hash: hash request to update
502 struct iov_iter *to, int len,
505 return __skb_datagram_iter(skb, offset, to, len, true,
517 * skb_copy_datagram_iter - Copy a datagram to an iovec iterator.
518 * @skb: buffer to copy
519 * @offset: offset in the buffer to start copying from
520 * @to: iovec iterator to copy to
521 * @len: amount of data to copy from buffer to iovec
524 struct iov_iter *to, int len)
527 return __skb_datagram_iter(skb, offset, to, len, false,
534 * @skb: buffer to copy
535 * @offset: offset in the buffer to start copying to
537 * @len: amount of data to copy to buffer from iovec
674 /* We combined this page, we need to release
677 * adjustments to limit false sharing.
699 * @skb: buffer to copy
700 * @from: the source to copy from
702 * The function will first copy up to headlen, and then pin the userspace
711 /* copy up to skb headlen */
774 * skb_copy_and_csum_datagram - Copy datagram to an iovec iterator
776 * @skb: buffer to copy
777 * @offset: offset in the buffer to start copying from
778 * @to: iovec iterator to copy to
779 * @len: amount of data to copy from buffer to iovec
783 struct iov_iter *to, int len,
789 ret = __skb_datagram_iter(skb, offset, to, len, true,
799 * skb_copy_and_csum_datagram_msg - Copy and checksum skb to user iovec.
804 * Caller _must_ check that skb will fit to this iovec.
853 * is only ever holding data ready to receive.
885 /* Connection-based need to check for termination and startup */