10#define DC_LIST_ENTRY_FROM_PACKET(Packet) \
11 ((PLIST_ENTRY)(&(Packet)->MiniportReservedEx[0]))
13#define DC_PACKET_FROM_LIST_ENTRY(ListEntry) \
14 (CONTAINING_RECORD(ListEntry, NDIS_PACKET, MiniportReservedEx))
16#define DC_RCB_FROM_PACKET(Packet) \
17 ((PDC_RCB*)&(Packet)->MiniportReservedEx[0])
19#define DC_RBD_FROM_PACKET(Packet) \
20 ((PDC_RBD*)&(Packet)->MiniportReservedEx[sizeof(PVOID)])
46#define DC_RCB_FLAG_RECLAIM 0x80000000
64 PushEntryList(&Adapter->SendBufferList, &Tcb->Buffer->ListEntry);
69 Adapter->TbdSlots += Tcb->SlotsUsed;
78 if (Tcb++ == Adapter->TailTcb)
79 return Adapter->HeadTcb;
90 if (Tbd++ == Adapter->TailTbd)
91 return Adapter->HeadTbd;
102 if (Rbd++ == Adapter->TailRbd)
103 return Adapter->HeadRbd;
114 return Adapter->RcbArray + (((
ULONG_PTR)(Rbd - Adapter->HeadRbd)));
struct _DC_COALESCE_BUFFER DC_COALESCE_BUFFER
FORCEINLINE PDC_TBD DC_NEXT_TBD(_In_ PDC21X4_ADAPTER Adapter, _In_ PDC_TBD Tbd)
struct _DC_COALESCE_BUFFER * PDC_COALESCE_BUFFER
FORCEINLINE PDC_TCB DC_NEXT_TCB(_In_ PDC21X4_ADAPTER Adapter, _In_ PDC_TCB Tcb)
FORCEINLINE PDC_RBD DC_NEXT_RBD(_In_ PDC21X4_ADAPTER Adapter, _In_ PDC_RBD Rbd)
FORCEINLINE PDC_RCB * DC_GET_RCB_SLOT(_In_ PDC21X4_ADAPTER Adapter, _In_ PDC_RBD Rbd)
FORCEINLINE VOID DC_RELEASE_TCB(_In_ PDC21X4_ADAPTER Adapter, _In_ PDC_TCB Tcb)
SINGLE_LIST_ENTRY ListEntry
PVOID VirtualAddressOriginal
SINGLE_LIST_ENTRY ListEntry
NDIS_PHYSICAL_ADDRESS PhysicalAddressOriginal
SINGLE_LIST_ENTRY AllocListEntry
PDC_COALESCE_BUFFER Buffer
FORCEINLINE VOID PushEntryList(_Inout_ PSINGLE_LIST_ENTRY ListHead, _Inout_ __drv_aliasesMem PSINGLE_LIST_ENTRY Entry)