32 DPRINT1(
"No free buffer descriptors\n");
65 DPRINT1(
"No free packet descriptors\n");
131 return AdapterContext;
134 CurrentEntry = CurrentEntry->
Flink;
161 if (OpenEntry !=
NULL)
VOID EXPORT NdisAllocateBuffer(OUT PNDIS_STATUS Status, OUT PNDIS_BUFFER *Buffer, IN NDIS_HANDLE PoolHandle, IN PVOID VirtualAddress, IN UINT Length)
VOID EXPORT NdisFreePacket(IN PNDIS_PACKET Packet)
VOID EXPORT NdisAllocatePacket(OUT PNDIS_STATUS Status, OUT PNDIS_PACKET *Packet, IN NDIS_HANDLE PoolHandle)
VOID EXPORT NdisUnchainBufferAtFront(IN OUT PNDIS_PACKET Packet, OUT PNDIS_BUFFER *Buffer)
LIST_ENTRY GlobalAdapterList
KSPIN_LOCK GlobalAdapterListLock
VOID DereferenceAdapterContextWithOpenEntry(PNDISUIO_ADAPTER_CONTEXT AdapterContext, PNDISUIO_OPEN_ENTRY OpenEntry)
NDIS_STATUS AllocateAndChainBuffer(PNDISUIO_ADAPTER_CONTEXT AdapterContext, PNDIS_PACKET Packet, PVOID Buffer, ULONG BufferSize, BOOLEAN Front)
PNDISUIO_ADAPTER_CONTEXT FindAdapterContextByName(PNDIS_STRING DeviceName)
PNDIS_PACKET CreatePacketFromPoolBuffer(PNDISUIO_ADAPTER_CONTEXT AdapterContext, PVOID Buffer, ULONG BufferSize)
VOID ReferenceAdapterContext(PNDISUIO_ADAPTER_CONTEXT AdapterContext)
VOID CleanupAndFreePacket(PNDIS_PACKET Packet, BOOLEAN FreePool)
#define RemoveEntryList(Entry)
#define KeReleaseSpinLock(sl, irql)
#define KeAcquireSpinLock(sl, irql)
_In_ NDIS_HANDLE _In_ PNDIS_PACKET Packet
#define NdisChainBufferAtBack(Packet, Buffer)
#define NDIS_STATUS_SUCCESS
#define NdisQueryBuffer(_Buffer, _VirtualAddress, _Length)
#define NdisChainBufferAtFront(Packet, Buffer)
NTSYSAPI BOOLEAN NTAPI RtlEqualUnicodeString(PUNICODE_STRING String1, PUNICODE_STRING String2, BOOLEAN CaseInSensitive)
_In_ ULONG _In_ ULONG _In_ ULONG Length
struct _LIST_ENTRY * Flink
NDIS_HANDLE PacketPoolHandle
NDIS_HANDLE BufferPoolHandle
UNICODE_STRING DeviceName
#define CONTAINING_RECORD(address, type, field)
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql