static int NetVscInitializeReceiveBufferWithNetVsp(struct hv_device *Device);
-static int NetVscDestroySendBuffer(struct NETVSC_DEVICE *NetDevice);
+static int NetVscDestroySendBuffer(struct netvsc_device *NetDevice);
-static int NetVscDestroyReceiveBuffer(struct NETVSC_DEVICE *NetDevice);
+static int NetVscDestroyReceiveBuffer(struct netvsc_device *NetDevice);
static int NetVscConnectToVsp(struct hv_device *Device);
u64 TransactionId);
-static struct NETVSC_DEVICE *AllocNetDevice(struct hv_device *Device)
+static struct netvsc_device *AllocNetDevice(struct hv_device *Device)
{
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
- netDevice = kzalloc(sizeof(struct NETVSC_DEVICE), GFP_KERNEL);
+ netDevice = kzalloc(sizeof(struct netvsc_device), GFP_KERNEL);
if (!netDevice)
return NULL;
return netDevice;
}
-static void FreeNetDevice(struct NETVSC_DEVICE *Device)
+static void FreeNetDevice(struct netvsc_device *Device)
{
ASSERT(atomic_read(&Device->RefCount) == 0);
Device->Device->Extension = NULL;
/* Get the net device object iff exists and its refcount > 1 */
-static struct NETVSC_DEVICE *GetOutboundNetDevice(struct hv_device *Device)
+static struct netvsc_device *GetOutboundNetDevice(struct hv_device *Device)
{
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
netDevice = Device->Extension;
if (netDevice && atomic_read(&netDevice->RefCount) > 1)
}
/* Get the net device object iff exists and its refcount > 0 */
-static struct NETVSC_DEVICE *GetInboundNetDevice(struct hv_device *Device)
+static struct netvsc_device *GetInboundNetDevice(struct hv_device *Device)
{
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
netDevice = Device->Extension;
if (netDevice && atomic_read(&netDevice->RefCount))
static void PutNetDevice(struct hv_device *Device)
{
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
netDevice = Device->Extension;
ASSERT(netDevice);
atomic_dec(&netDevice->RefCount);
}
-static struct NETVSC_DEVICE *ReleaseOutboundNetDevice(struct hv_device *Device)
+static struct netvsc_device *ReleaseOutboundNetDevice(struct hv_device *Device)
{
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
netDevice = Device->Extension;
if (netDevice == NULL)
return netDevice;
}
-static struct NETVSC_DEVICE *ReleaseInboundNetDevice(struct hv_device *Device)
+static struct netvsc_device *ReleaseInboundNetDevice(struct hv_device *Device)
{
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
netDevice = Device->Extension;
if (netDevice == NULL)
static int NetVscInitializeReceiveBufferWithNetVsp(struct hv_device *Device)
{
int ret = 0;
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
struct nvsp_message *initPacket;
DPRINT_ENTER(NETVSC);
static int NetVscInitializeSendBufferWithNetVsp(struct hv_device *Device)
{
int ret = 0;
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
struct nvsp_message *initPacket;
DPRINT_ENTER(NETVSC);
return ret;
}
-static int NetVscDestroyReceiveBuffer(struct NETVSC_DEVICE *NetDevice)
+static int NetVscDestroyReceiveBuffer(struct netvsc_device *NetDevice)
{
struct nvsp_message *revokePacket;
int ret = 0;
return ret;
}
-static int NetVscDestroySendBuffer(struct NETVSC_DEVICE *NetDevice)
+static int NetVscDestroySendBuffer(struct netvsc_device *NetDevice)
{
struct nvsp_message *revokePacket;
int ret = 0;
static int NetVscConnectToVsp(struct hv_device *Device)
{
int ret;
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
struct nvsp_message *initPacket;
int ndisVersion;
return ret;
}
-static void NetVscDisconnectFromVsp(struct NETVSC_DEVICE *NetDevice)
+static void NetVscDisconnectFromVsp(struct netvsc_device *NetDevice)
{
DPRINT_ENTER(NETVSC);
{
int ret = 0;
int i;
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
struct hv_netvsc_packet *packet;
LIST_ENTRY *entry;
struct netvsc_driver *netDriver =
*/
static int NetVscOnDeviceRemove(struct hv_device *Device)
{
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
struct hv_netvsc_packet *netvscPacket;
LIST_ENTRY *entry;
static void NetVscOnSendCompletion(struct hv_device *Device,
struct vmpacket_descriptor *Packet)
{
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
struct nvsp_message *nvspPacket;
struct hv_netvsc_packet *nvscPacket;
static int NetVscOnSend(struct hv_device *Device,
struct hv_netvsc_packet *Packet)
{
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
int ret = 0;
struct nvsp_message sendMessage;
static void NetVscOnReceive(struct hv_device *Device,
struct vmpacket_descriptor *Packet)
{
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
struct vmtransfer_page_packet_header *vmxferpagePacket;
struct nvsp_message *nvspPacket;
struct hv_netvsc_packet *netvscPacket = NULL;
{
struct hv_netvsc_packet *packet = Context;
struct hv_device *device = (struct hv_device *)packet->Device;
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
u64 transactionId = 0;
bool fSendReceiveComp = false;
unsigned long flags;
const int netPacketSize = 2048;
int ret;
struct hv_device *device = Context;
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
u32 bytesRecvd;
u64 requestId;
unsigned char packet[netPacketSize];
};
struct rndis_device {
- struct NETVSC_DEVICE *NetDevice;
+ struct netvsc_device *NetDevice;
enum rndis_device_state State;
u32 LinkStatus;
static int RndisFilterOnReceive(struct hv_device *Device,
struct hv_netvsc_packet *Packet)
{
- struct NETVSC_DEVICE *netDevice = Device->Extension;
+ struct netvsc_device *netDevice = Device->Extension;
struct rndis_device *rndisDevice;
struct rndis_message rndisMessage;
struct rndis_message *rndisHeader;
void *AdditionalInfo)
{
int ret;
- struct NETVSC_DEVICE *netDevice;
+ struct netvsc_device *netDevice;
struct rndis_device *rndisDevice;
struct netvsc_device_info *deviceInfo = AdditionalInfo;
static int RndisFilterOnDeviceRemove(struct hv_device *Device)
{
- struct NETVSC_DEVICE *netDevice = Device->Extension;
+ struct netvsc_device *netDevice = Device->Extension;
struct rndis_device *rndisDevice = netDevice->Extension;
DPRINT_ENTER(NETVSC);
static int RndisFilterOnOpen(struct hv_device *Device)
{
int ret;
- struct NETVSC_DEVICE *netDevice = Device->Extension;
+ struct netvsc_device *netDevice = Device->Extension;
DPRINT_ENTER(NETVSC);
static int RndisFilterOnClose(struct hv_device *Device)
{
int ret;
- struct NETVSC_DEVICE *netDevice = Device->Extension;
+ struct netvsc_device *netDevice = Device->Extension;
DPRINT_ENTER(NETVSC);