• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/core/

Lines Matching refs:offset

297  *	@offset: offset in the buffer to start copying from
303 int skb_copy_datagram_iovec(const struct sk_buff *skb, int offset,
307 int i, copy = start - offset;
316 if (memcpy_toiovec(to, skb->data + offset, copy))
320 offset += copy;
327 WARN_ON(start > offset + len);
330 if ((copy = end - offset) > 0) {
340 offset - start, copy);
346 offset += copy;
354 WARN_ON(start > offset + len);
357 if ((copy = end - offset) > 0) {
361 offset - start,
366 offset += copy;
381 * @offset: offset in the buffer to start copying from
383 * @to_offset: offset in the io vector to start copying to
389 int skb_copy_datagram_const_iovec(const struct sk_buff *skb, int offset,
394 int i, copy = start - offset;
401 if (memcpy_toiovecend(to, skb->data + offset, to_offset, copy))
405 offset += copy;
413 WARN_ON(start > offset + len);
416 if ((copy = end - offset) > 0) {
426 offset - start, to_offset, copy);
432 offset += copy;
441 WARN_ON(start > offset + len);
444 if ((copy = end - offset) > 0) {
448 offset - start,
454 offset += copy;
470 * @offset: offset in the buffer to start copying to
472 * @from_offset: offset in the io vector to start copying from
478 int skb_copy_datagram_from_iovec(struct sk_buff *skb, int offset,
483 int i, copy = start - offset;
490 if (memcpy_fromiovecend(skb->data + offset, from, from_offset,
495 offset += copy;
503 WARN_ON(start > offset + len);
506 if ((copy = end - offset) > 0) {
516 offset - start,
524 offset += copy;
533 WARN_ON(start > offset + len);
536 if ((copy = end - offset) > 0) {
540 offset - start,
547 offset += copy;
560 static int skb_copy_and_csum_datagram(const struct sk_buff *skb, int offset,
565 int i, copy = start - offset;
574 *csump = csum_and_copy_to_user(skb->data + offset, to, copy,
580 offset += copy;
588 WARN_ON(start > offset + len);
591 if ((copy = end - offset) > 0) {
603 offset - start,
611 offset += copy;
621 WARN_ON(start > offset + len);
624 if ((copy = end - offset) > 0) {
629 offset - start,
636 offset += copy;