static int
NetVscDestroySendBuffer(
- NETVSC_DEVICE *NetDevice
+ struct NETVSC_DEVICE *NetDevice
);
static int
NetVscDestroyReceiveBuffer(
- NETVSC_DEVICE *NetDevice
+ struct NETVSC_DEVICE *NetDevice
);
static int
u64 TransactionId
);
-static inline NETVSC_DEVICE* AllocNetDevice(DEVICE_OBJECT *Device)
+static inline struct NETVSC_DEVICE *AllocNetDevice(DEVICE_OBJECT *Device)
{
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
- netDevice = kzalloc(sizeof(NETVSC_DEVICE), GFP_KERNEL);
+ netDevice = kzalloc(sizeof(struct NETVSC_DEVICE), GFP_KERNEL);
if (!netDevice)
return NULL;
return netDevice;
}
-static inline void FreeNetDevice(NETVSC_DEVICE *Device)
+static inline void FreeNetDevice(struct NETVSC_DEVICE *Device)
{
ASSERT(Device->RefCount == 0);
Device->Device->Extension = NULL;
/* Get the net device object iff exists and its refcount > 1 */
-static inline NETVSC_DEVICE* GetOutboundNetDevice(DEVICE_OBJECT *Device)
+static inline struct NETVSC_DEVICE *GetOutboundNetDevice(DEVICE_OBJECT *Device)
{
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
- netDevice = (NETVSC_DEVICE*)Device->Extension;
+ netDevice = (struct NETVSC_DEVICE*)Device->Extension;
if (netDevice && netDevice->RefCount > 1)
{
InterlockedIncrement(&netDevice->RefCount);
}
/* Get the net device object iff exists and its refcount > 0 */
-static inline NETVSC_DEVICE* GetInboundNetDevice(DEVICE_OBJECT *Device)
+static inline struct NETVSC_DEVICE *GetInboundNetDevice(DEVICE_OBJECT *Device)
{
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
- netDevice = (NETVSC_DEVICE*)Device->Extension;
+ netDevice = (struct NETVSC_DEVICE*)Device->Extension;
if (netDevice && netDevice->RefCount)
{
InterlockedIncrement(&netDevice->RefCount);
static inline void PutNetDevice(DEVICE_OBJECT *Device)
{
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
- netDevice = (NETVSC_DEVICE*)Device->Extension;
+ netDevice = (struct NETVSC_DEVICE*)Device->Extension;
ASSERT(netDevice);
InterlockedDecrement(&netDevice->RefCount);
}
-static inline NETVSC_DEVICE* ReleaseOutboundNetDevice(DEVICE_OBJECT *Device)
+static inline struct NETVSC_DEVICE *ReleaseOutboundNetDevice(DEVICE_OBJECT *Device)
{
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
- netDevice = (NETVSC_DEVICE*)Device->Extension;
+ netDevice = (struct NETVSC_DEVICE*)Device->Extension;
if (netDevice == NULL)
return NULL;
return netDevice;
}
-static inline NETVSC_DEVICE* ReleaseInboundNetDevice(DEVICE_OBJECT *Device)
+static inline struct NETVSC_DEVICE *ReleaseInboundNetDevice(DEVICE_OBJECT *Device)
{
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
- netDevice = (NETVSC_DEVICE*)Device->Extension;
+ netDevice = (struct NETVSC_DEVICE*)Device->Extension;
if (netDevice == NULL)
return NULL;
)
{
int ret=0;
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
NVSP_MESSAGE *initPacket;
DPRINT_ENTER(NETVSC);
)
{
int ret=0;
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
NVSP_MESSAGE *initPacket;
DPRINT_ENTER(NETVSC);
static int
NetVscDestroyReceiveBuffer(
- NETVSC_DEVICE *NetDevice
+ struct NETVSC_DEVICE *NetDevice
)
{
NVSP_MESSAGE *revokePacket;
static int
NetVscDestroySendBuffer(
- NETVSC_DEVICE *NetDevice
+ struct NETVSC_DEVICE *NetDevice
)
{
NVSP_MESSAGE *revokePacket;
)
{
int ret=0;
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
NVSP_MESSAGE *initPacket;
int ndisVersion;
static void
NetVscDisconnectFromVsp(
- NETVSC_DEVICE *NetDevice
+ struct NETVSC_DEVICE *NetDevice
)
{
DPRINT_ENTER(NETVSC);
int ret=0;
int i;
- NETVSC_DEVICE* netDevice;
+ struct NETVSC_DEVICE *netDevice;
NETVSC_PACKET* packet;
LIST_ENTRY *entry;
DEVICE_OBJECT *Device
)
{
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
NETVSC_PACKET *netvscPacket;
int ret=0;
LIST_ENTRY *entry;
VMPACKET_DESCRIPTOR *Packet
)
{
- NETVSC_DEVICE* netDevice;
+ struct NETVSC_DEVICE *netDevice;
NVSP_MESSAGE *nvspPacket;
NETVSC_PACKET *nvscPacket;
NETVSC_PACKET *Packet
)
{
- NETVSC_DEVICE* netDevice;
+ struct NETVSC_DEVICE *netDevice;
int ret=0;
NVSP_MESSAGE sendMessage;
VMPACKET_DESCRIPTOR *Packet
)
{
- NETVSC_DEVICE* netDevice;
+ struct NETVSC_DEVICE *netDevice;
VMTRANSFER_PAGE_PACKET_HEADER *vmxferpagePacket;
NVSP_MESSAGE *nvspPacket;
NETVSC_PACKET *netvscPacket=NULL;
{
NETVSC_PACKET *packet = (NETVSC_PACKET*)Context;
DEVICE_OBJECT *device = (DEVICE_OBJECT*)packet->Device;
- NETVSC_DEVICE* netDevice;
+ struct NETVSC_DEVICE *netDevice;
u64 transactionId=0;
bool fSendReceiveComp = false;
unsigned long flags;
const int netPacketSize=2048;
int ret=0;
DEVICE_OBJECT *device=(DEVICE_OBJECT*)Context;
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
u32 bytesRecvd;
u64 requestId;
} RNDIS_DEVICE_STATE;
typedef struct _RNDIS_DEVICE {
- NETVSC_DEVICE *NetDevice;
+ struct NETVSC_DEVICE *NetDevice;
RNDIS_DEVICE_STATE State;
u32 LinkStatus;
NETVSC_PACKET *Packet
)
{
- NETVSC_DEVICE *netDevice = (NETVSC_DEVICE*)Device->Extension;
+ struct NETVSC_DEVICE *netDevice = (struct NETVSC_DEVICE*)Device->Extension;
RNDIS_DEVICE *rndisDevice;
RNDIS_MESSAGE rndisMessage;
RNDIS_MESSAGE *rndisHeader;
)
{
int ret;
- NETVSC_DEVICE *netDevice;
+ struct NETVSC_DEVICE *netDevice;
RNDIS_DEVICE *rndisDevice;
NETVSC_DEVICE_INFO *deviceInfo = (NETVSC_DEVICE_INFO*)AdditionalInfo;
/* Initialize the rndis device */
- netDevice = (NETVSC_DEVICE*)Device->Extension;
+ netDevice = (struct NETVSC_DEVICE*)Device->Extension;
ASSERT(netDevice);
ASSERT(netDevice->Device);
DEVICE_OBJECT *Device
)
{
- NETVSC_DEVICE *netDevice = (NETVSC_DEVICE*)Device->Extension;
+ struct NETVSC_DEVICE *netDevice = (struct NETVSC_DEVICE*)Device->Extension;
RNDIS_DEVICE *rndisDevice = (RNDIS_DEVICE*)netDevice->Extension;
DPRINT_ENTER(NETVSC);
)
{
int ret;
- NETVSC_DEVICE *netDevice = (NETVSC_DEVICE*)Device->Extension;
+ struct NETVSC_DEVICE *netDevice = (struct NETVSC_DEVICE*)Device->Extension;
DPRINT_ENTER(NETVSC);
)
{
int ret;
- NETVSC_DEVICE *netDevice = (NETVSC_DEVICE*)Device->Extension;
+ struct NETVSC_DEVICE *netDevice = (struct NETVSC_DEVICE*)Device->Extension;
DPRINT_ENTER(NETVSC);