/reactos/ntoskrnl/io/iomgr/ |
H A D | remlock.c | 33 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 D | devctrl.c | 65 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 D | rw.c | 241 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 D | serial.h | 53 IO_REMOVE_LOCK RemoveLock; member
|
/reactos/sdk/lib/drivers/wdf/shared/inc/primitives/um/ |
H A D | mxgeneralum.h | 381 __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 D | compbatt.c | 561 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 D | comppnp.c | 55 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 D | compbatt.h | 85 IO_REMOVE_LOCK RemoveLock; member
|
/reactos/sdk/lib/drivers/wdf/shared/inc/primitives/km/ |
H A D | mxgeneralkm.h | 269 __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 D | vfdpnp.c | 85 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 D | vfdioctl.c | 47 status = IoAcquireRemoveLock(&device_extension->RemoveLock, Irp); in VfdDeviceControl() 531 IoReleaseRemoveLock(&device_extension->RemoveLock, Irp); in VfdDeviceControl()
|
H A D | vfdrdwr.c | 64 status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, Irp); in VfdReadWrite()
|
H A D | vfddrv.h | 112 IO_REMOVE_LOCK RemoveLock; // avoid abnormal removal member
|
/reactos/drivers/input/inport/ |
H A D | inport.c | 91 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 D | pnp.c | 197 IoReleaseRemoveLockAndWait(&DeviceExtension->RemoveLock, Irp); in InPortRemoveDevice() 234 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, Irp); in InPortPnp() 275 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, Irp); in InPortPnp()
|
H A D | wmi.c | 165 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, Irp); in InPortWmi() 195 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, Irp); in InPortWmi()
|
H A D | inport.h | 48 IO_REMOVE_LOCK RemoveLock; member
|
/reactos/drivers/acpi/cmbatt/ |
H A D | cmbpnp.c | 162 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 D | cmbwmi.c | 161 Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, 0); in CmBattSystemControl() 219 IoReleaseRemoveLock(&DeviceExtension->RemoveLock, 0); in CmBattSystemControl()
|
/reactos/drivers/storage/class/classpnp/ |
H A D | lock.c | 138 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 D | ramdisk.c | 79 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 D | mxgeneral.h | 238 __in MdRemoveLock RemoveLock, 246 __in MdRemoveLock RemoveLock, 254 __in MdRemoveLock RemoveLock,
|
/reactos/drivers/serial/serenum/ |
H A D | serenum.h | 37 IO_REMOVE_LOCK RemoveLock; member
|
H A D | fdo.c | 57 IoInitializeRemoveLock(&DeviceExtension->RemoveLock, SERENUM_TAG, 0, 0); in SerenumAddDevice()
|
/reactos/sdk/include/xdk/ |
H A D | iofuncs.h | 15 #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,
|