Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220418
b: refs/heads/master
c: cae5b84
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Oct 21, 2010
1 parent aba372a commit 17c5440
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7053a27a4c7fb3cf02944a7077c88a23b226c5f0
refs/heads/master: cae5b843c82d76e643d6822597a9ea2866e9b30d
14 changes: 7 additions & 7 deletions trunk/drivers/staging/hv/channel_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ static int ivmbus_open(struct hv_device *device, u32 sendbuffer_size,
void (*channel_callback)(void *context),
void *context)
{
return vmbus_open(device->context, sendbuffer_size,
return vmbus_open(device->channel, sendbuffer_size,
recv_ringbuffer_size, userdata, userdatalen,
channel_callback, context);
}

static void ivmbus_close(struct hv_device *device)
{
vmbus_close(device->context);
vmbus_close(device->channel);
}

static int ivmbus_sendpacket(struct hv_device *device, const void *buffer,
u32 bufferlen, u64 requestid, u32 type,
u32 flags)
{
return vmbus_sendpacket(device->context, buffer, bufferlen,
return vmbus_sendpacket(device->channel, buffer, bufferlen,
requestid, type, flags);
}

Expand All @@ -54,7 +54,7 @@ static int ivmbus_sendpacket_pagebuffer(struct hv_device *device,
u32 pagecount, void *buffer,
u32 bufferlen, u64 requestid)
{
return vmbus_sendpacket_pagebuffer(device->context, pagebuffers,
return vmbus_sendpacket_pagebuffer(device->channel, pagebuffers,
pagecount, buffer, bufferlen,
requestid);
}
Expand All @@ -63,7 +63,7 @@ static int ivmbus_sendpacket_multipagebuffer(struct hv_device *device,
struct hv_multipage_buffer *multi_pagebuffer,
void *buffer, u32 bufferlen, u64 requestid)
{
return vmbus_sendpacket_multipagebuffer(device->context,
return vmbus_sendpacket_multipagebuffer(device->channel,
multi_pagebuffer, buffer,
bufferlen, requestid);
}
Expand All @@ -72,15 +72,15 @@ static int ivmbus_recvpacket(struct hv_device *device, void *buffer,
u32 bufferlen, u32 *buffer_actuallen,
u64 *requestid)
{
return vmbus_recvpacket(device->context, buffer, bufferlen,
return vmbus_recvpacket(device->channel, buffer, bufferlen,
buffer_actuallen, requestid);
}

static int ivmbus_recvpacket_raw(struct hv_device *device, void *buffer,
u32 bufferlen, u32 *buffer_actuallen,
u64 *requestid)
{
return vmbus_recvpacket_raw(device->context, buffer, bufferlen,
return vmbus_recvpacket_raw(device->channel, buffer, bufferlen,
buffer_actuallen, requestid);
}

Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/staging/hv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ static int NetVscInitializeReceiveBufferWithNetVsp(struct hv_device *Device)
* channel. Note: This call uses the vmbus connection rather
* than the channel to establish the gpadl handle.
*/
ret = vmbus_establish_gpadl(Device->context, netDevice->ReceiveBuffer,
ret = vmbus_establish_gpadl(Device->channel, netDevice->ReceiveBuffer,
netDevice->ReceiveBufferSize,
&netDevice->ReceiveBufferGpadlHandle);
if (ret != 0) {
Expand Down Expand Up @@ -368,7 +368,7 @@ static int NetVscInitializeSendBufferWithNetVsp(struct hv_device *Device)
* channel. Note: This call uses the vmbus connection rather
* than the channel to establish the gpadl handle.
*/
ret = vmbus_establish_gpadl(Device->context, netDevice->SendBuffer,
ret = vmbus_establish_gpadl(Device->channel, netDevice->SendBuffer,
netDevice->SendBufferSize,
&netDevice->SendBufferGpadlHandle);
if (ret != 0) {
Expand Down Expand Up @@ -467,7 +467,7 @@ static int NetVscDestroyReceiveBuffer(struct netvsc_device *NetDevice)
if (NetDevice->ReceiveBufferGpadlHandle) {
DPRINT_INFO(NETVSC, "Tearing down receive buffer's GPADL...");

ret = vmbus_teardown_gpadl(NetDevice->Device->context,
ret = vmbus_teardown_gpadl(NetDevice->Device->channel,
NetDevice->ReceiveBufferGpadlHandle);

/* If we failed here, we might as well return and have a leak rather than continue and a bugchk */
Expand Down Expand Up @@ -538,7 +538,7 @@ static int NetVscDestroySendBuffer(struct netvsc_device *NetDevice)
/* Teardown the gpadl on the vsp end */
if (NetDevice->SendBufferGpadlHandle) {
DPRINT_INFO(NETVSC, "Tearing down send buffer's GPADL...");
ret = vmbus_teardown_gpadl(NetDevice->Device->context,
ret = vmbus_teardown_gpadl(NetDevice->Device->channel,
NetDevice->SendBufferGpadlHandle);

/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/hv/vmbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ static void VmbusGetChannelOffers(void)
*/
struct hv_device *VmbusChildDeviceCreate(struct hv_guid *DeviceType,
struct hv_guid *DeviceInstance,
void *Context)
struct vmbus_channel *channel)
{
struct vmbus_driver *vmbusDriver = (struct vmbus_driver *)gDriver;

return vmbusDriver->OnChildDeviceCreate(DeviceType, DeviceInstance,
Context);
channel);
}

/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/hv/vmbus_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ struct hv_device {
/* the device instance id of this device */
struct hv_guid deviceInstance;

struct vmbus_channel *context;
struct vmbus_channel *channel;

/* Device extension; */
void *Extension;
Expand All @@ -167,7 +167,7 @@ struct vmbus_driver {
/* Set by the caller */
struct hv_device * (*OnChildDeviceCreate)(struct hv_guid *DeviceType,
struct hv_guid *DeviceInstance,
void *Context);
struct vmbus_channel *channel);
void (*OnChildDeviceDestroy)(struct hv_device *device);
int (*OnChildDeviceAdd)(struct hv_device *RootDevice,
struct hv_device *ChildDevice);
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static void vmbus_bus_release(struct device *device);

static struct hv_device *vmbus_child_device_create(struct hv_guid *type,
struct hv_guid *instance,
void *context);
struct vmbus_channel *channel);
static void vmbus_child_device_destroy(struct hv_device *device_obj);
static int vmbus_child_device_register(struct hv_device *root_device_obj,
struct hv_device *child_device_obj);
Expand Down Expand Up @@ -134,10 +134,10 @@ static void get_channel_info(struct hv_device *device,
{
struct vmbus_channel_debug_info debug_info;

if (!device->context)
if (!device->channel)
return;

vmbus_get_debug_info(device->context, &debug_info);
vmbus_get_debug_info(device->channel, &debug_info);

info->ChannelId = debug_info.RelId;
info->ChannelState = debug_info.State;
Expand Down Expand Up @@ -508,7 +508,7 @@ EXPORT_SYMBOL(vmbus_get_interface);
*/
static struct hv_device *vmbus_child_device_create(struct hv_guid *type,
struct hv_guid *instance,
void *context)
struct vmbus_channel *channel)
{
struct vm_device *child_device_ctx;
struct hv_device *child_device_obj;
Expand Down Expand Up @@ -541,7 +541,7 @@ static struct hv_device *vmbus_child_device_create(struct hv_guid *type,
instance->data[14], instance->data[15]);

child_device_obj = &child_device_ctx->device_obj;
child_device_obj->context = context;
child_device_obj->channel = channel;
memcpy(&child_device_obj->deviceType, type, sizeof(struct hv_guid));
memcpy(&child_device_obj->deviceInstance, instance,
sizeof(struct hv_guid));
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/hv/vmbus_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ extern struct VMBUS_CONNECTION gVmbusConnection;

struct hv_device *VmbusChildDeviceCreate(struct hv_guid *deviceType,
struct hv_guid *deviceInstance,
void *context);
struct vmbus_channel *channel);

int VmbusChildDeviceAdd(struct hv_device *Device);

Expand Down

0 comments on commit 17c5440

Please sign in to comment.