• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/IONetworkingFamily-101/

Lines Matching defs:packet

104 // Copy the src packet into the destination packet. The amount to copy is
186 mbuf_t packet, /* input packet mbuf */
199 mbuf_t in = packet; // save the original input packet pointer.
211 /* Initialise outgoing packet controls */
221 // Loop through the input packet mbuf 'in' and construct a new mbuf chain
313 // packet->pkthdr.len;
315 coalesceSegments(packet, newPacket);
318 // linked to the new packet chain.
321 // All that remains is to set packet's len to 0 (to "free" the contents that coalesceSegments copied out)
324 mbuf_setlen(packet , 0 );
325 mbuf_setnext(packet, newPacket);
336 UInt32 IOMbufMemoryCursor::genPhysicalSegments(mbuf_t packet, void *vector,
341 if (!packet || !(mbuf_flags(packet) & MBUF_PKTHDR))
350 if ( mbuf_next(packet) == 0 )
356 * the packet consists of only 1 mbuf
360 src = (uintptr_t)mbuf_data(packet);
362 if ( trunc_page(src) == trunc_page(src + mbuf_len(packet) - 1) )
367 physSeg.length = mbuf_len(packet);
387 if ( mbuf_pkthdr_len(packet) > MCLBYTES ) return 0;
389 m = packet;
417 m = mbuf_next(packet);
426 // and linked to the new packet chain.
428 mbuf_setlen(packet , 0);
429 mbuf_setnext(packet , out);
440 // packet represents.
448 mbuf_t m = packet;
450 // For each mbuf in incoming packet.
474 genPhysicalSegments(packet, vector, 1, true) : 0;
503 && (UInt) mbuf_pkthdr_len(packet) <= maxSegs * maxSegmentSize) {
507 analysisRet = analyseSegments(packet,
547 IOMbufBigMemoryCursor *self, void *packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments)
549 return self->getPhysicalSegments((mbuf_t)packet, vector,numVectorSegments);
553 IOMbufBigMemoryCursor::getPhysicalSegments(mbuf_t packet,
557 return genPhysicalSegments(packet, vector, numVectorSegments, false);
561 IOMbufBigMemoryCursor *self, void *packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments)
563 return self->getPhysicalSegmentsWithCoalesce((mbuf_t)packet, vector,numVectorSegments);
567 IOMbufBigMemoryCursor::getPhysicalSegmentsWithCoalesce(mbuf_t packet,
571 return genPhysicalSegments(packet, vector, numVectorSegments, true);
591 IOMbufNaturalMemoryCursor *self, void *packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments)
593 return self->getPhysicalSegments((mbuf_t)packet, vector,numVectorSegments);
597 IOMbufNaturalMemoryCursor::getPhysicalSegments(mbuf_t packet,
601 return genPhysicalSegments(packet, vector, numVectorSegments, false);
605 IOMbufNaturalMemoryCursor *self, void *packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments)
607 return self->getPhysicalSegmentsWithCoalesce((mbuf_t)packet, vector,numVectorSegments);
612 IOMbufNaturalMemoryCursor::getPhysicalSegmentsWithCoalesce(mbuf_t packet,
616 return genPhysicalSegments(packet, vector, numVectorSegments, true);
636 IOMbufLittleMemoryCursor *self, void *packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments)
638 return self->getPhysicalSegments((mbuf_t)packet, vector,numVectorSegments);
642 IOMbufLittleMemoryCursor::getPhysicalSegments(mbuf_t packet,
646 return genPhysicalSegments(packet, vector, numVectorSegments, false);
650 IOMbufLittleMemoryCursor *self, void *packet, struct IOPhysicalSegment *vector, UInt32 numVectorSegments)
652 return self->getPhysicalSegmentsWithCoalesce((mbuf_t)packet, vector,numVectorSegments);
657 IOMbufLittleMemoryCursor::getPhysicalSegmentsWithCoalesce(mbuf_t packet,
661 return genPhysicalSegments(packet, vector, numVectorSegments, true);
683 IOMbufDBDMAMemoryCursor *self, void *packet, struct IODBDMADescriptor *vector, UInt32 numVectorSegments)
685 return self->getPhysicalSegments((mbuf_t)packet, vector, numVectorSegments);
689 IOMbufDBDMAMemoryCursor::getPhysicalSegments(mbuf_t packet,
693 return genPhysicalSegments(packet, vector, numVectorSegments, false);
697 IOMbufDBDMAMemoryCursor *self, void *packet, struct IODBDMADescriptor *vector, UInt32 numVectorSegments)
699 return self->getPhysicalSegmentsWithCoalesce((mbuf_t)packet, vector, numVectorSegments);
704 IOMbufDBDMAMemoryCursor::getPhysicalSegmentsWithCoalesce(mbuf_t packet,
708 return genPhysicalSegments(packet, vector, numVectorSegments, true);