Home
last modified time | relevance | path

Searched refs:RemoveLock (Results 1 – 25 of 31) sorted by relevance

12

/reactos/ntoskrnl/io/iomgr/
H A Dremlock.c33 IoInitializeRemoveLockEx(IN PIO_REMOVE_LOCK RemoveLock, in IoInitializeRemoveLockEx() argument
39 PEXTENDED_IO_REMOVE_LOCK Lock = (PEXTENDED_IO_REMOVE_LOCK)RemoveLock; in IoInitializeRemoveLockEx()
80 IoAcquireRemoveLockEx(IN PIO_REMOVE_LOCK RemoveLock, in IoAcquireRemoveLockEx() argument
89 PEXTENDED_IO_REMOVE_LOCK Lock = (PEXTENDED_IO_REMOVE_LOCK)RemoveLock; in IoAcquireRemoveLockEx()
91 DPRINT("%s(%p %p %s %u %u)\n", __FUNCTION__, RemoveLock, Tag, File, Line, RemlockSize); in IoAcquireRemoveLockEx()
149 IoReleaseRemoveLockEx(IN PIO_REMOVE_LOCK RemoveLock, in IoReleaseRemoveLockEx() argument
159 PEXTENDED_IO_REMOVE_LOCK Lock = (PEXTENDED_IO_REMOVE_LOCK)RemoveLock; in IoReleaseRemoveLockEx()
161 DPRINT("%s(%p %p %u)\n", __FUNCTION__, RemoveLock, Tag, RemlockSize); in IoReleaseRemoveLockEx()
243 IoReleaseRemoveLockAndWaitEx(IN PIO_REMOVE_LOCK RemoveLock, in IoReleaseRemoveLockAndWaitEx() argument
249 PEXTENDED_IO_REMOVE_LOCK Lock = (PEXTENDED_IO_REMOVE_LOCK)RemoveLock; in IoReleaseRemoveLockAndWaitEx()
[all …]
/reactos/drivers/serial/serial/
H A Ddevctrl.c65 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, ULongToPtr(DeviceExtension->ComPort)); in SerialSetBaudRate()
79 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, ULongToPtr(DeviceExtension->ComPort)); in SerialSetBaudRate()
146 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, ULongToPtr(DeviceExtension->ComPort)); in SerialSetLineControl()
153 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, ULongToPtr(DeviceExtension->ComPort)); in SerialSetLineControl()
328 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, ULongToPtr(DeviceExtension->ComPort)); in SerialDeviceControl()
342 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, ULongToPtr(DeviceExtension->ComPort)); in SerialDeviceControl()
596 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, ULongToPtr(DeviceExtension->ComPort)); in SerialDeviceControl()
674 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, ULongToPtr(DeviceExtension->ComPort)); in SerialDeviceControl()
692 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, ULongToPtr(DeviceExtension->ComPort)); in SerialDeviceControl()
729 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, ULongToPtr(DeviceExtension->ComPort)); in SerialDeviceControl()
[all …]
H A Drw.c241 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, ULongToPtr(DeviceExtension->ComPort)); in SerialRead()
250 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, ULongToPtr(DeviceExtension->ComPort)); in SerialRead()
287 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, ULongToPtr(DeviceExtension->ComPort)); in SerialWrite()
315 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, ULongToPtr(DeviceExtension->ComPort)); in SerialWrite()
H A Dserial.h53 IO_REMOVE_LOCK RemoveLock; member
/reactos/sdk/lib/drivers/wdf/shared/inc/primitives/um/
H A Dmxgeneralum.h381 __in MdRemoveLock RemoveLock, in MxAcquireRemoveLock() argument
393 if (! RemoveLock->Removed) { in MxAcquireRemoveLock()
398 if (! SetEvent(RemoveLock->RemoveEvent)) { in MxAcquireRemoveLock()
412 __in MdRemoveLock RemoveLock, in MxReleaseRemoveLock() argument
424 ASSERT (RemoveLock->Removed); in MxReleaseRemoveLock()
430 if (! SetEvent(RemoveLock->RemoveEvent)) { in MxReleaseRemoveLock()
440 __in MdRemoveLock RemoveLock, in MxReleaseRemoveLockAndWait() argument
448 RemoveLock->Removed = TRUE; in MxReleaseRemoveLockAndWait()
450 ioCount = InterlockedDecrement (&RemoveLock->IoCount); in MxReleaseRemoveLockAndWait()
453 if (0 < InterlockedDecrement (&RemoveLock->IoCount)) { in MxReleaseRemoveLockAndWait()
[all …]
/reactos/drivers/battery/compbatt/
H A Dcompbatt.c561 if (!NT_SUCCESS(IoAcquireRemoveLock(&BatteryData->RemoveLock, BatteryData->Irp))) in CompBattCalculateTotalRateAndLinkedBatteries()
629 IoReleaseRemoveLock(&BatteryData->RemoveLock, BatteryData->Irp); in CompBattCalculateTotalRateAndLinkedBatteries()
879 IoReleaseRemoveLock(&BatteryData->RemoveLock, BatteryData->Irp); in CompBattSetStatusNotify()
1034 IoReleaseRemoveLock(&BatteryData->RemoveLock, BatteryData->Irp); in CompBattQueryStatus()
1100 IoReleaseRemoveLock(&BatteryData->RemoveLock, BatteryData->Irp); in CompBattQueryStatus()
1259 IoReleaseRemoveLock(&BatteryData->RemoveLock, BatteryData->Irp); in CompBattGetBatteryInformation()
1360 IoReleaseRemoveLock(&BatteryData->RemoveLock, BatteryData->Irp); in CompBattGetBatteryGranularity()
1380 IoReleaseRemoveLock(&BatteryData->RemoveLock, BatteryData->Irp); in CompBattGetBatteryGranularity()
1468 IoReleaseRemoveLock(&BatteryData->RemoveLock, BatteryData->Irp); in CompBattCalculateAtRateTime()
1616 IoReleaseRemoveLock(&BatteryData->RemoveLock, BatteryData->Irp); in CompBattGetEstimatedTime()
[all …]
H A Dcomppnp.c55 IoAcquireRemoveLock(&BatteryData->RemoveLock, 0); in RemoveBatteryFromList()
57 IoReleaseRemoveLockAndWait(&BatteryData->RemoveLock, 0); in RemoveBatteryFromList()
179 IoInitializeRemoveLock(&BatteryData->RemoveLock, COMPBATT_TAG, 0, 0); in CompBattAddNewBattery()
H A Dcompbatt.h85 IO_REMOVE_LOCK RemoveLock; member
/reactos/sdk/lib/drivers/wdf/shared/inc/primitives/km/
H A Dmxgeneralkm.h269 __in MdRemoveLock RemoveLock, in MxAcquireRemoveLock() argument
273 return IoAcquireRemoveLock(RemoveLock, Tag); in MxAcquireRemoveLock()
279 __in MdRemoveLock RemoveLock, in MxReleaseRemoveLock() argument
283 IoReleaseRemoveLock(RemoveLock, Tag); in MxReleaseRemoveLock()
289 __in MdRemoveLock RemoveLock, in MxReleaseRemoveLockAndWait() argument
293 IoReleaseRemoveLockAndWait(RemoveLock, Tag); in MxReleaseRemoveLockAndWait()
/reactos/modules/rosapps/drivers/vfd/
H A Dvfdpnp.c85 status = IoAcquireRemoveLock(&device_extension->RemoveLock, Irp); in VfdPlugAndPlay()
140 IoReleaseRemoveLockAndWait(&device_extension->RemoveLock, Irp); in VfdPlugAndPlay()
293 IoReleaseRemoveLock(&device_extension->RemoveLock, Irp); in VfdPlugAndPlay()
403 &device_extension->RemoveLock, in VfdAddDevice()
H A Dvfdioctl.c47 status = IoAcquireRemoveLock(&device_extension->RemoveLock, Irp); in VfdDeviceControl()
531 IoReleaseRemoveLock(&device_extension->RemoveLock, Irp); in VfdDeviceControl()
H A Dvfdrdwr.c64 status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, Irp); in VfdReadWrite()
H A Dvfddrv.h112 IO_REMOVE_LOCK RemoveLock; // avoid abnormal removal member
/reactos/drivers/input/inport/
H A Dinport.c91 IoInitializeRemoveLock(&FdoExtension->RemoveLock, INPORT_TAG, 0, 0); in InPortAddDevice()
184 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, Irp); in InPortPower()
198 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, Irp); in InPortPower()
H A Dpnp.c197 IoReleaseRemoveLockAndWait(&DeviceExtension->RemoveLock, Irp); in InPortRemoveDevice()
234 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, Irp); in InPortPnp()
275 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, Irp); in InPortPnp()
H A Dwmi.c165 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, Irp); in InPortWmi()
195 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, Irp); in InPortWmi()
H A Dinport.h48 IO_REMOVE_LOCK RemoveLock; member
/reactos/drivers/acpi/cmbatt/
H A Dcmbpnp.c162 IoReleaseRemoveLockAndWait(&DeviceExtension->RemoveLock, 0); in CmBattRemoveDevice()
279 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, Irp); in CmBattPnpDispatch()
323 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, Irp); in CmBattPnpDispatch()
489 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, Irp); in CmBattPnpDispatch()
501 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, Irp); in CmBattPnpDispatch()
607 IoInitializeRemoveLock(&FdoExtension->RemoveLock, 'RbmC', 0, 0); in CmBattCreateFdo()
H A Dcmbwmi.c161 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, 0); in CmBattSystemControl()
219 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, 0); in CmBattSystemControl()
/reactos/drivers/storage/class/classpnp/
H A Dlock.c138 lockValue = InterlockedIncrement(&commonExtension->RemoveLock); in ClassAcquireRemoveLockEx()
277 InterlockedDecrement(&(commonExtension->RemoveLock)); in ClassReleaseRemoveLock()
314 lockValue = InterlockedDecrement(&commonExtension->RemoveLock); in ClassReleaseRemoveLock()
/reactos/drivers/storage/class/ramdisk/
H A Dramdisk.c79 IO_REMOVE_LOCK RemoveLock; member
829 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, Irp); in RamdiskWorkerThread()
898 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, Irp); in RamdiskWorkerThread()
1123 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, Irp); in RamdiskDeviceControl()
1352 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, Irp); in RamdiskDeviceControl()
1577 IoAcquireRemoveLock(&DriveExtension->RemoveLock, NULL); in RamdiskRemoveBusDevice()
1602 IoReleaseRemoveLockAndWait(&DeviceExtension->RemoveLock, Irp); in RamdiskRemoveBusDevice()
1910 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, Irp); in RamdiskPnp()
2133 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, Irp); in RamdiskPnp()
2254 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, Irp); in RamdiskScsi()
[all …]
/reactos/sdk/lib/drivers/wdf/shared/inc/primitives/common/
H A Dmxgeneral.h238 __in MdRemoveLock RemoveLock,
246 __in MdRemoveLock RemoveLock,
254 __in MdRemoveLock RemoveLock,
/reactos/drivers/serial/serenum/
H A Dserenum.h37 IO_REMOVE_LOCK RemoveLock; member
H A Dfdo.c57 IoInitializeRemoveLock(&DeviceExtension->RemoveLock, SERENUM_TAG, 0, 0); in SerenumAddDevice()
/reactos/sdk/include/xdk/
H A Diofuncs.h15 #define IoAcquireRemoveLock(RemoveLock, Tag) \ argument
16 IoAcquireRemoveLockEx(RemoveLock, Tag, __FILE__, __LINE__, sizeof (IO_REMOVE_LOCK))
18 #define IoAcquireRemoveLock(RemoveLock, Tag) \
19 IoAcquireRemoveLockEx(RemoveLock, Tag, "", 1, sizeof (IO_REMOVE_LOCK))
616 _Inout_ PIO_REMOVE_LOCK RemoveLock,
1180 _Inout_ PIO_REMOVE_LOCK RemoveLock,
1188 _Inout_ PIO_REMOVE_LOCK RemoveLock,

12