ReactOS  0.4.14-dev-342-gdc047f9
spinlock.c File Reference
#include "videoprt.h"
#include <debug.h>
Include dependency graph for spinlock.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

VP_STATUS NTAPI VideoPortCreateSpinLock (IN PVOID HwDeviceExtension, OUT PSPIN_LOCK *SpinLock)
 
VP_STATUS NTAPI VideoPortDeleteSpinLock (IN PVOID HwDeviceExtension, IN PSPIN_LOCK SpinLock)
 
VOID NTAPI VideoPortAcquireSpinLock (IN PVOID HwDeviceExtension, IN PSPIN_LOCK SpinLock, OUT PUCHAR OldIrql)
 
VOID NTAPI VideoPortAcquireSpinLockAtDpcLevel (IN PVOID HwDeviceExtension, IN PSPIN_LOCK SpinLock)
 
VOID NTAPI VideoPortReleaseSpinLock (IN PVOID HwDeviceExtension, IN PSPIN_LOCK SpinLock, IN UCHAR NewIrql)
 
VOID NTAPI VideoPortReleaseSpinLockFromDpcLevel (IN PVOID HwDeviceExtension, IN PSPIN_LOCK SpinLock)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 24 of file spinlock.c.

Function Documentation

◆ VideoPortAcquireSpinLock()

VOID NTAPI VideoPortAcquireSpinLock ( IN PVOID  HwDeviceExtension,
IN PSPIN_LOCK  SpinLock,
OUT PUCHAR  OldIrql 
)

Definition at line 63 of file spinlock.c.

67 {
68  TRACE_(VIDEOPRT, "VideoPortAcquireSpinLock\n");
70 }
VOID NTAPI KeAcquireSpinLock(PKSPIN_LOCK SpinLock, PKIRQL OldIrql)
Definition: spinlock.c:50
KSPIN_LOCK * PKSPIN_LOCK
Definition: env_spec_w32.h:73
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK SpinLock
Definition: iofuncs.h:798
#define TRACE_(x)
Definition: compat.h:66
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql
Definition: kefuncs.h:803

◆ VideoPortAcquireSpinLockAtDpcLevel()

VOID NTAPI VideoPortAcquireSpinLockAtDpcLevel ( IN PVOID  HwDeviceExtension,
IN PSPIN_LOCK  SpinLock 
)

Definition at line 77 of file spinlock.c.

80 {
81  TRACE_(VIDEOPRT, "VideoPortAcquireSpinLockAtDpcLevel\n");
83 }
VOID NTAPI KeAcquireSpinLockAtDpcLevel(IN PKSPIN_LOCK SpinLock)
Definition: spinlock.c:192
KSPIN_LOCK * PKSPIN_LOCK
Definition: env_spec_w32.h:73
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK SpinLock
Definition: iofuncs.h:798
#define TRACE_(x)
Definition: compat.h:66

◆ VideoPortCreateSpinLock()

VP_STATUS NTAPI VideoPortCreateSpinLock ( IN PVOID  HwDeviceExtension,
OUT PSPIN_LOCK SpinLock 
)

Definition at line 32 of file spinlock.c.

35 {
36  TRACE_(VIDEOPRT, "VideoPortCreateSpinLock\n");
38  if (*SpinLock == NULL)
41  return NO_ERROR;
42 }
#define ERROR_NOT_ENOUGH_MEMORY
Definition: dderror.h:7
KSPIN_LOCK * PKSPIN_LOCK
Definition: env_spec_w32.h:73
#define NO_ERROR
Definition: dderror.h:5
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK SpinLock
Definition: iofuncs.h:798
FORCEINLINE VOID KeInitializeSpinLock(_Out_ PKSPIN_LOCK SpinLock)
Definition: kefuncs.h:251
smooth NULL
Definition: ftsmooth.c:416
#define TRACE_(x)
Definition: compat.h:66
#define ExAllocatePool(type, size)
Definition: fbtusb.h:44
ULONG KSPIN_LOCK
Definition: env_spec_w32.h:72

◆ VideoPortDeleteSpinLock()

VP_STATUS NTAPI VideoPortDeleteSpinLock ( IN PVOID  HwDeviceExtension,
IN PSPIN_LOCK  SpinLock 
)

Definition at line 49 of file spinlock.c.

52 {
53  TRACE_(VIDEOPRT, "VideoPortDeleteSpinLock\n");
55  return NO_ERROR;
56 }
#define NO_ERROR
Definition: dderror.h:5
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK SpinLock
Definition: iofuncs.h:798
#define TRACE_(x)
Definition: compat.h:66
#define ExFreePool(addr)
Definition: env_spec_w32.h:352

◆ VideoPortReleaseSpinLock()

VOID NTAPI VideoPortReleaseSpinLock ( IN PVOID  HwDeviceExtension,
IN PSPIN_LOCK  SpinLock,
IN UCHAR  NewIrql 
)

Definition at line 90 of file spinlock.c.

94 {
95  TRACE_(VIDEOPRT, "VideoPortReleaseSpinLock\n");
97 }
KSPIN_LOCK * PKSPIN_LOCK
Definition: env_spec_w32.h:73
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK SpinLock
Definition: iofuncs.h:798
#define TRACE_(x)
Definition: compat.h:66
VOID NTAPI KeReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL NewIrql)
Definition: spinlock.c:73
_Requires_lock_held_ SpinLock _Releases_lock_ SpinLock _In_ _IRQL_restores_ KIRQL NewIrql
Definition: ke.h:114

◆ VideoPortReleaseSpinLockFromDpcLevel()

VOID NTAPI VideoPortReleaseSpinLockFromDpcLevel ( IN PVOID  HwDeviceExtension,
IN PSPIN_LOCK  SpinLock 
)

Definition at line 104 of file spinlock.c.

107 {
108  TRACE_(VIDEOPRT, "VideoPortReleaseSpinLockFromDpcLevel\n");
110 }
KSPIN_LOCK * PKSPIN_LOCK
Definition: env_spec_w32.h:73
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK SpinLock
Definition: iofuncs.h:798
#define TRACE_(x)
Definition: compat.h:66
VOID NTAPI KeReleaseSpinLockFromDpcLevel(IN PKSPIN_LOCK SpinLock)
Definition: spinlock.c:215