Searched refs:AdapterContext (Results 1 – 6 of 6) sorted by relevance
/reactos/drivers/network/ndisuio/ |
H A D | protocol.c | 25 AdapterContext->AsyncStatus = Status; in NduOpenAdapterComplete() 376 ExFreePool(AdapterContext); in UnbindAdapterByContext() 393 AdapterContext = ExAllocatePool(NonPagedPool, sizeof(*AdapterContext)); in BindAdapterByName() 394 if (!AdapterContext) in BindAdapterByName() 400 RtlZeroMemory(AdapterContext, sizeof(*AdapterContext)); in BindAdapterByName() 406 AdapterContext->OpenCount = 0; in BindAdapterByName() 413 ExFreePool(AdapterContext); in BindAdapterByName() 430 ExFreePool(AdapterContext); in BindAdapterByName() 444 ExFreePool(AdapterContext); in BindAdapterByName() 456 AdapterContext, in BindAdapterByName() [all …]
|
H A D | ioctl.c | 36 PNDISUIO_ADAPTER_CONTEXT AdapterContext = NULL; in QueryBinding() local 61 if (AdapterContext) in QueryBinding() 178 AdapterContext->BindingHandle, in SetAdapterOid() 189 Status = AdapterContext->AsyncStatus; in SetAdapterOid() 252 AdapterContext->BindingHandle, in QueryAdapterOid() 263 Status = AdapterContext->AsyncStatus; in QueryAdapterOid() 300 PNDISUIO_ADAPTER_CONTEXT AdapterContext; in OpenDeviceReadWrite() local 312 if (AdapterContext != NULL) in OpenDeviceReadWrite() 318 if (AdapterContext->OpenCount != 0) in OpenDeviceReadWrite() 394 PNDISUIO_ADAPTER_CONTEXT AdapterContext; [all …]
|
H A D | misc.c | 15 AllocateAndChainBuffer(PNDISUIO_ADAPTER_CONTEXT AdapterContext, in AllocateAndChainBuffer() argument 27 AdapterContext->BufferPoolHandle, in AllocateAndChainBuffer() 62 AdapterContext->PacketPoolHandle); in CreatePacketFromPoolBuffer() 70 Status = AllocateAndChainBuffer(AdapterContext, Packet, in CreatePacketFromPoolBuffer() 119 PNDISUIO_ADAPTER_CONTEXT AdapterContext; in FindAdapterContextByName() local 131 return AdapterContext; in FindAdapterContextByName() 142 ReferenceAdapterContext(PNDISUIO_ADAPTER_CONTEXT AdapterContext) in ReferenceAdapterContext() argument 145 AdapterContext->OpenCount++; in ReferenceAdapterContext() 155 KeAcquireSpinLock(&AdapterContext->Spinlock, &OldIrql); in DereferenceAdapterContextWithOpenEntry() 158 AdapterContext->OpenCount--; in DereferenceAdapterContextWithOpenEntry() [all …]
|
H A D | readwrite.c | 32 ExInterlockedInsertHeadList(&AdapterContext->PacketList, in ReadIrpCancel() 34 &AdapterContext->Spinlock); in ReadIrpCancel() 83 KeAcquireSpinLock(&AdapterContext->Spinlock, &OldIrql); in NduDispatchRead() 86 if (IsListEmpty(&AdapterContext->PacketList)) in NduDispatchRead() 88 KeReleaseSpinLock(&AdapterContext->Spinlock, OldIrql); in NduDispatchRead() 114 ListEntry = RemoveHeadList(&AdapterContext->PacketList); in NduDispatchRead() 118 KeReleaseSpinLock(&AdapterContext->Spinlock, OldIrql); in NduDispatchRead() 170 Packet = CreatePacketFromPoolBuffer(AdapterContext, in NduDispatchWrite() 177 AdapterContext->BindingHandle, in NduDispatchWrite() 183 KeWaitForSingleObject(&AdapterContext->AsyncEvent, in NduDispatchWrite() [all …]
|
H A D | createclose.c | 44 PNDISUIO_ADAPTER_CONTEXT AdapterContext = IrpSp->FileObject->FsContext; in NduDispatchClose() local 52 if (AdapterContext != NULL) in NduDispatchClose() 56 DPRINT("Removing binding to adapter %wZ\n", &AdapterContext->DeviceName); in NduDispatchClose() 59 DereferenceAdapterContextWithOpenEntry(AdapterContext, OpenEntry); in NduDispatchClose()
|
H A D | ndisuio.h | 100 AllocateAndChainBuffer(PNDISUIO_ADAPTER_CONTEXT AdapterContext, 107 CreatePacketFromPoolBuffer(PNDISUIO_ADAPTER_CONTEXT AdapterContext, 119 ReferenceAdapterContext(PNDISUIO_ADAPTER_CONTEXT AdapterContext); 122 DereferenceAdapterContextWithOpenEntry(PNDISUIO_ADAPTER_CONTEXT AdapterContext,
|