81 if (
SkipToOffset(DstBuffer, DstOffset, &DstData, &DstSize) == -1)
138 if (
SkipToOffset(SrcBuffer, SrcOffset, &SrcData, &SrcSize) == -1)
230 PCHAR DstData, SrcData;
231 UINT DstSize, SrcSize;
234 TI_DbgPrint(
DEBUG_PBUFFER, (
"DstBuffer (0x%X) DstOffset (0x%X) SrcPacket (0x%X) SrcOffset (0x%X) Length (%d)\n", DstBuffer, DstOffset, SrcPacket, SrcOffset,
Length));
238 if (
SkipToOffset(DstBuffer, DstOffset, &DstData, &DstSize) == -1)
243 if (
SkipToOffset(SrcBuffer, SrcOffset, &SrcData, &SrcSize) == -1)
307 OldSize = NdisBuffer->ByteCount;
310 NdisBuffer->ByteCount =
Size;
VOID EXPORT NdisAllocateBuffer(OUT PNDIS_STATUS Status, OUT PNDIS_BUFFER *Buffer, IN NDIS_HANDLE PoolHandle, IN PVOID VirtualAddress, IN UINT Length)
UINT CopyBufferToBufferChain(PNDIS_BUFFER DstBuffer, UINT DstOffset, PUCHAR SrcData, UINT Length)
FORCEINLINE ULONG SkipToOffset(IN PNDIS_BUFFER Buffer, IN UINT Offset, IN OUT PUCHAR *Data, IN OUT PUINT Size)
UINT CopyBufferChainToBuffer(PUCHAR DstData, PNDIS_BUFFER SrcBuffer, UINT SrcOffset, UINT Length)
VOID EXPORT NdisFreePacket(IN PNDIS_PACKET Packet)
UINT CopyPacketToBufferChain(PNDIS_BUFFER DstBuffer, UINT DstOffset, PNDIS_PACKET SrcPacket, UINT SrcOffset, UINT Length)
VOID EXPORT NdisAllocatePacket(OUT PNDIS_STATUS Status, OUT PNDIS_PACKET *Packet, IN NDIS_HANDLE PoolHandle)
UINT CopyPacketToBuffer(PUCHAR DstData, PNDIS_PACKET SrcPacket, UINT SrcOffset, UINT Length)
VOID EXPORT NdisGetFirstBufferFromPacket(IN PNDIS_PACKET _Packet, OUT PNDIS_BUFFER *_FirstBuffer, OUT PVOID *_FirstBufferVA, OUT PUINT _FirstBufferLength, OUT PUINT _TotalBufferLength)
#define TI_DbgPrint(_t_, _x_)
void GetDataPtr(PNDIS_PACKET Packet, UINT Offset, PCHAR *DataOut, PUINT Size)
UINT ResizePacket(PNDIS_PACKET Packet, UINT Size)
#define ExAllocatePoolWithTag(hernya, size, tag)
NDIS_HANDLE GlobalBufferPool
NDIS_HANDLE GlobalPacketPool
#define AllocatePacketWithBuffer(x, y, z)
#define FreeNdisPacket(x)
#define ExFreePoolWithTag(_P, _T)
#define NdisGetNextBuffer(CurrentBuffer, NextBuffer)
_In_ NDIS_HANDLE _In_ PNDIS_PACKET Packet
static __inline VOID NdisQueryPacket(IN PNDIS_PACKET Packet, OUT PUINT PhysicalBufferCount OPTIONAL, OUT PUINT BufferCount OPTIONAL, OUT PNDIS_BUFFER *FirstBuffer OPTIONAL, OUT PUINT TotalPacketLength OPTIONAL)
_In_ UINT _In_ UINT _In_ PNDIS_PACKET _In_ UINT _Out_ PUINT BytesCopied
_In_ UINT _In_ UINT BytesToCopy
#define NDIS_STATUS_SUCCESS
#define NdisQueryBuffer(_Buffer, _VirtualAddress, _Length)
#define NdisChainBufferAtFront(Packet, Buffer)
#define NDIS_STATUS_RESOURCES
_In_ ULONG _In_ ULONG Offset
_In_ ULONG _In_ ULONG _In_ ULONG Length
#define RtlCopyMemory(Destination, Source, Length)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size