staging: hv: Convert camel cased variables in connection.c to lower cases
Subsystems (2)
PATCH 1/8 staging: hv: Convert camel cased variables in connection.c to lower cases
--- drivers/staging/hv/channel.c | 48 ++++++------ drivers/staging/hv/channel_mgmt.c | 48 ++++++------ drivers/staging/hv/connection.c | 154 ++++++++++++++++++------------------ drivers/staging/hv/vmbus_drv.c | 2 +- drivers/staging/hv/vmbus_private.h | 2 +- 5 files changed, 128 insertions(+), 126 deletions(-)
drivers/staging/hv/channel.c +24 -24
@@ -77,10 +77,10 @@ static void vmbus_setevent(struct vmbus_channel *channel)if (channel->offermsg.monitor_allocated) {/* Each u32 represents 32 channels */ set_bit (channel->offermsg.child_relid &31 , - (unsigned long *) gVmbusConnection.SendInterruptPage + + (unsigned long *) vmbus_connection.SendInterruptPage + (channel->offermsg.child_relid >>5 )); - monitorpage = gVmbusConnection.MonitorPages; + monitorpage = vmbus_connection.MonitorPages; monitorpage++;/* Get the child to parent monitor page */ set_bit(channel->monitor_bit,
@@ -100,11 +100,11 @@ static void VmbusChannelClearEvent(struct vmbus_channel *channel)if (Channel->offermsg.monitor_allocated) {/* Each u32 represents 32 channels */ clear_bit (Channel->offermsg.child_relid &31 , - (unsigned long *)gVmbusConnection.SendInterruptPage + + (unsigned long *)vmbus_connection.SendInterruptPage + (Channel->offermsg.child_relid >>5 )); monitorPage = - (struct hv_monitor_page *)gVmbusConnection.MonitorPages; + (struct hv_monitor_page *)vmbus_connection.MonitorPages; monitorPage++;/* Get the child to parent monitor page */ clear_bit(Channel->monitor_bit,
@@ -133,7 +133,7 @@ void vmbus_get_debug_info(struct vmbus_channel *channel, &channel->offermsg.offer.InterfaceInstance, sizeof(struct hv_guid)); - monitorpage = (struct hv_monitor_page *)gVmbusConnection.MonitorPages; + monitorpage = (struct hv_monitor_page *)vmbus_connection.MonitorPages; debuginfo->monitorid = channel->offermsg.monitorid;
@@ -265,10 +265,10 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size,if (userdatalen)memcpy (openMsg->userdata, userdata, userdatalen); -spin_lock_irqsave (&gVmbusConnection.channelmsg_lock, flags); +spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags);list_add_tail (&openInfo->msglistentry, - &gVmbusConnection.ChannelMsgList); -spin_unlock_irqrestore (&gVmbusConnection.channelmsg_lock, flags); + &vmbus_connection.ChannelMsgList); +spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags);DPRINT_DBG (VMBUS ,"Sending channel open msg..." );
@@ -289,9 +289,9 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size, newchannel, openInfo->response.open_result.status); Cleanup: -spin_lock_irqsave (&gVmbusConnection.channelmsg_lock, flags); +spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags);list_del (&openInfo->msglistentry); -spin_unlock_irqrestore (&gVmbusConnection.channelmsg_lock, flags); +spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags);kfree (openInfo->waitevent);kfree (openInfo);
@@ -501,8 +501,8 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer,unsigned long flags;int ret =0 ; - next_gpadl_handle =atomic_read (&gVmbusConnection.NextGpadlHandle); -atomic_inc (&gVmbusConnection.NextGpadlHandle); + next_gpadl_handle =atomic_read (&vmbus_connection.NextGpadlHandle); +atomic_inc (&vmbus_connection.NextGpadlHandle); ret =create_gpadl_header (kbuffer, size, &msginfo, &msgcount);if (ret)
@@ -521,11 +521,11 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer,dump_gpadl_header (gpadlmsg); -spin_lock_irqsave (&gVmbusConnection.channelmsg_lock, flags); +spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags);list_add_tail (&msginfo->msglistentry, - &gVmbusConnection.ChannelMsgList); + &vmbus_connection.ChannelMsgList); -spin_unlock_irqrestore (&gVmbusConnection.channelmsg_lock, flags); +spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags);DPRINT_DBG (VMBUS ,"buffer %p, size %d msg cnt %d" , kbuffer, size, msgcount);
@@ -577,9 +577,9 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer, *gpadl_handle = gpadlmsg->gpadl; Cleanup: -spin_lock_irqsave (&gVmbusConnection.channelmsg_lock, flags); +spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags);list_del (&msginfo->msglistentry); -spin_unlock_irqrestore (&gVmbusConnection.channelmsg_lock, flags); +spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags);kfree (msginfo->waitevent);kfree (msginfo);
@@ -616,10 +616,10 @@ int vmbus_teardown_gpadl(struct vmbus_channel *channel, u32 gpadl_handle) msg->child_relid = channel->offermsg.child_relid; msg->gpadl = gpadl_handle; -spin_lock_irqsave (&gVmbusConnection.channelmsg_lock, flags); +spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags);list_add_tail (&info->msglistentry, - &gVmbusConnection.ChannelMsgList); -spin_unlock_irqrestore (&gVmbusConnection.channelmsg_lock, flags); + &vmbus_connection.ChannelMsgList); +spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags); ret =VmbusPostMessage (msg,sizeof (struct vmbus_channel_gpadl_teardown ));
@@ -631,9 +631,9 @@ int vmbus_teardown_gpadl(struct vmbus_channel *channel, u32 gpadl_handle)osd_waitevent_wait (info->waitevent);/* Received a torndown response */ -spin_lock_irqsave (&gVmbusConnection.channelmsg_lock, flags); +spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags);list_del (&info->msglistentry); -spin_unlock_irqrestore (&gVmbusConnection.channelmsg_lock, flags); +spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags);kfree (info->waitevent);kfree (info);
@@ -697,9 +697,9 @@ void vmbus_close(struct vmbus_channel *channel)*/ if (channel->state ==CHANNEL_OPEN_STATE ) { -spin_lock_irqsave (&gVmbusConnection.channel_lock, flags); +spin_lock_irqsave (&vmbus_connection.channel_lock, flags);list_del (&channel->listentry); -spin_unlock_irqrestore (&gVmbusConnection.channel_lock, flags); +spin_unlock_irqrestore (&vmbus_connection.channel_lock, flags);free_channel (channel); }
drivers/staging/hv/channel_mgmt.c +24 -24
148 lines not on this page · raw message
drivers/staging/hv/connection.c +78 -76
319 lines not on this page · raw message
drivers/staging/hv/vmbus_drv.c +1 -1
@@ -239,7 +239,7 @@ static void vmbus_on_msg_dpc(struct hv_driver *drv)continue ;INIT_WORK (&ctx->work, vmbus_onmessage_work);memcpy (&ctx->msg, msg,sizeof (*msg)); -queue_work (gVmbusConnection.WorkQueue, &ctx->work); +queue_work (vmbus_connection.WorkQueue, &ctx->work); } msg->header.message_type =HVMSG_NONE ;
drivers/staging/hv/vmbus_private.h +1 -1
@@ -98,7 +98,7 @@ struct VMBUS_MSGINFO { }; -extern struct VMBUS_CONNECTION gVmbusConnection; +extern struct VMBUS_CONNECTION vmbus_connection;/* General vmbus interface */
Signature · 1 line
1.6.3.2
PATCH 2/8 staging: hv: Convert camel cased functions in connection.c to lower cases
--- drivers/staging/hv/channel.c | 12 +++++----- drivers/staging/hv/channel_mgmt.c | 4 +- drivers/staging/hv/connection.c | 39 +++++++++++++++++++---------------- drivers/staging/hv/vmbus_drv.c | 6 ++-- drivers/staging/hv/vmbus_private.h | 12 +++++----- 5 files changed, 38 insertions(+), 35 deletions(-)
drivers/staging/hv/channel.c +6 -6
@@ -88,7 +88,7 @@ static void vmbus_setevent(struct vmbus_channel *channel) [channel->monitor_grp].pending); }else { -VmbusSetEvent (channel->offermsg.child_relid); +vmbus_set_event (channel->offermsg.child_relid); } }
@@ -272,7 +272,7 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size,DPRINT_DBG (VMBUS ,"Sending channel open msg..." ); - ret =VmbusPostMessage (openMsg, + ret =vmbus_post_msg (openMsg,sizeof (struct vmbus_channel_open_channel ));if (ret !=0 ) {DPRINT_ERR (VMBUS ,"unable to open channel - %d" , ret);
@@ -532,7 +532,7 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer,DPRINT_DBG (VMBUS ,"Sending GPADL Header - len %zd" , msginfo->msgsize -sizeof (*msginfo)); - ret =VmbusPostMessage (gpadlmsg, msginfo->msgsize - + ret =vmbus_post_msg (gpadlmsg, msginfo->msgsize -sizeof (*msginfo));if (ret !=0 ) {DPRINT_ERR (VMBUS ,"Unable to open channel - %d" , ret);
@@ -557,7 +557,7 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer,dump_gpadl_body (gpadl_body, submsginfo->msgsize -sizeof (*submsginfo)); - ret =VmbusPostMessage (gpadl_body, + ret =vmbus_post_msg (gpadl_body, submsginfo->msgsize -sizeof (*submsginfo));if (ret !=0 )
@@ -621,7 +621,7 @@ int vmbus_teardown_gpadl(struct vmbus_channel *channel, u32 gpadl_handle) &vmbus_connection.ChannelMsgList);spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags); - ret =VmbusPostMessage (msg, + ret =vmbus_post_msg (msg,sizeof (struct vmbus_channel_gpadl_teardown ));if (ret !=0 ) {/* TODO: */
@@ -669,7 +669,7 @@ void vmbus_close(struct vmbus_channel *channel) msg->header.msgtype =CHANNELMSG_CLOSECHANNEL ; msg->child_relid = channel->offermsg.child_relid; - ret =VmbusPostMessage (msg,sizeof (struct vmbus_channel_close_channel )); + ret =vmbus_post_msg (msg,sizeof (struct vmbus_channel_close_channel ));if (ret !=0 ) {/* TODO: */ /* something... */
drivers/staging/hv/channel_mgmt.c +2 -2
@@ -532,7 +532,7 @@ static void vmbus_onoffer_rescind(struct vmbus_channel_message_header *hdr)struct vmbus_channel *channel; rescind = (struct vmbus_channel_rescind_offer *)hdr; - channel =GetChannelFromRelId (rescind->child_relid); + channel =relid2channel (rescind->child_relid);if (channel ==NULL ) {DPRINT_DBG (VMBUS ,"channel not found for relId %d" , rescind->child_relid);
@@ -820,7 +820,7 @@ int vmbus_request_offers(void)&msgInfo->msgListEntry); SpinlockRelease(gVmbusConnection.channelMsgLock);*/ - ret =VmbusPostMessage (msg, + ret =vmbus_post_msg (msg,sizeof (struct vmbus_channel_message_header ));if (ret !=0 ) {DPRINT_ERR (VMBUS ,"Unable to request offers - %d" , ret);
drivers/staging/hv/connection.c +21 -18
@@ -35,9 +35,9 @@ struct VMBUS_CONNECTION vmbus_connection = { };/* -* VmbusConnect - Sends a connect request on the partition service connection +* vmbus_connect - Sends a connect request on the partition service connection */ -int VmbusConnect (void ) +int vmbus_connect (void ) {int ret =0 ;struct vmbus_channel_msginfo *msginfo =NULL ;
@@ -126,7 +126,7 @@ int VmbusConnect(void) msg->interrupt_page, msg->monitor_page1, msg->monitor_page2);DPRINT_DBG (VMBUS ,"Sending channel initiate msg..." ); - ret =VmbusPostMessage (msg, + ret =vmbus_post_msg (msg,sizeof (struct vmbus_channel_initiate_contact ));if (ret !=0 ) {list_del (&msginfo->msglistentry);
@@ -180,9 +180,10 @@ Cleanup: }/* -* VmbusDisconnect - Sends a disconnect request on the partition service connection +* vmbus_disconnect - +* Sends a disconnect request on the partition service connection */ -int VmbusDisconnect (void ) +int vmbus_disconnect (void ) {int ret =0 ;struct vmbus_channel_message_header *msg;
@@ -197,7 +198,7 @@ int VmbusDisconnect(void) msg->msgtype =CHANNELMSG_UNLOAD ; - ret =VmbusPostMessage (msg, + ret =vmbus_post_msg (msg,sizeof (struct vmbus_channel_message_header ));if (ret !=0 ) goto Cleanup;
@@ -217,9 +218,10 @@ Cleanup: }/* -* GetChannelFromRelId - Get the channel object given its child relative id (ie channel id) +* relid2channel - Get the channel object given its +* child relative id (ie channel id) */ -struct vmbus_channel *GetChannelFromRelId (u32 relid) +struct vmbus_channel *relid2channel (u32 relid) {struct vmbus_channel *channel;struct vmbus_channel *found_channel =NULL ;
@@ -238,9 +240,9 @@ struct vmbus_channel *GetChannelFromRelId(u32 relid) }/* -* VmbusProcessChannelEvent - Process a channel event notification +* process_chn_event - Process a channel event notification */ -static void VmbusProcessChannelEvent (void *context) +static void process_chn_event (void *context) {struct vmbus_channel *channel;u32 relid = (u32 )(unsigned long )context;
@@ -251,7 +253,7 @@ static void VmbusProcessChannelEvent(void *context)* Find the channel based on this relid and invokes the * channel callback to process the event */ - channel =GetChannelFromRelId (relid); + channel =relid2channel (relid);if (channel) {vmbus_onchannel_event (channel);
@@ -266,9 +268,9 @@ static void VmbusProcessChannelEvent(void *context) }/* -* VmbusOnEvents - Handler for events +* vmbus_on_event - Handler for events */ -void VmbusOnEvents (void ) +void vmbus_on_event (void ) {int dword;int maxdword =MAX_NUM_CHANNELS_SUPPORTED >>5 ;
@@ -294,7 +296,8 @@ void VmbusOnEvents(void) }else {/* QueueWorkItem(VmbusProcessEvent, (void*)relid); */ /* ret = WorkQueueQueueWorkItem(gVmbusConnection.workQueue, VmbusProcessChannelEvent, (void*)relid); */ -VmbusProcessChannelEvent ((void *)(unsigned long )relid); +process_chn_event ((void *) + (unsigned long )relid); } } }
@@ -305,9 +308,9 @@ void VmbusOnEvents(void) }/* -* VmbusPostMessage - Send a msg on the vmbus's message connection +* vmbus_post_msg - Send a msg on the vmbus's message connection */ -int VmbusPostMessage (void *buffer,size_t buflen) +int vmbus_post_msg (void *buffer,size_t buflen) {union hv_connection_id conn_id;
@@ -317,9 +320,9 @@ int VmbusPostMessage(void *buffer, size_t buflen) }/* -* VmbusSetEvent - Send an event notification to the parent +* vmbus_set_event - Send an event notification to the parent */ -int VmbusSetEvent (u32 child_relid) +int vmbus_set_event (u32 child_relid) {/* Each u32 represents 32 channels */ set_bit(child_relid & 31,
drivers/staging/hv/vmbus_drv.c +3 -3
@@ -174,7 +174,7 @@ static int VmbusOnDeviceAdd(struct hv_device *dev, void *AdditionalInfo)on_each_cpu (hv_synic_init, (void *)irqvector,1 );/* Connect to VMBus in the root partition */ - ret =VmbusConnect (); + ret =vmbus_connect ();/* VmbusSendEvent(device->localPortId+1); */ return ret;
@@ -188,7 +188,7 @@ static int VmbusOnDeviceRemove(struct hv_device *dev)int ret =0 ;vmbus_release_unattached_channels (); -VmbusDisconnect (); +vmbus_disconnect ();on_each_cpu (hv_synic_cleanup,NULL ,1 );return ret; }
@@ -1045,7 +1045,7 @@ static void vmbus_msg_dpc(unsigned long data)static void vmbus_event_dpc (unsigned long data) {/* Call to bus driver to handle interrupt */ -VmbusOnEvents (); +vmbus_on_event (); }static irqreturn_t vmbus_isr (int irq,void *dev_id)
drivers/staging/hv/vmbus_private.h +6 -6
@@ -115,20 +115,20 @@ void vmbus_child_device_unregister(struct hv_device *device_obj);/* VmbusChildDeviceDestroy( */ /* struct hv_device *); */ -struct vmbus_channel *GetChannelFromRelId (u32 relId); +struct vmbus_channel *relid2channel (u32 relid);/* Connection interface */ -int VmbusConnect (void ); +int vmbus_connect (void ); -int VmbusDisconnect (void ); +int vmbus_disconnect (void ); -int VmbusPostMessage (void *buffer,size_t bufSize); +int vmbus_post_msg (void *buffer,size_t buflen); -int VmbusSetEvent (u32 childRelId); +int vmbus_set_event (u32 child_relid); -void VmbusOnEvents (void ); +void vmbus_on_event (void );#endif /* _VMBUS_PRIVATE_H_ */
Signature · 1 line
1.6.3.2
PATCH 3/8 staging: hv: Convert camel cased variables in vmbus_drv.c to lower cases
--- drivers/staging/hv/vmbus_drv.c | 50 ++++++++++++++++++++-------------------- 1 files changed, 25 insertions(+), 25 deletions(-)
drivers/staging/hv/vmbus_drv.c +25 -25
@@ -113,7 +113,7 @@ static struct device_attribute vmbus_device_attrs[] = { };/* The one and only one */ -static struct vmbus_driver_context g_vmbus_drv = { +static struct vmbus_driver_context vmbus_drv = { .bus.name ="vmbus" , .bus.match = vmbus_match, .bus.shutdown = vmbus_shutdown,
@@ -123,14 +123,14 @@ static struct vmbus_driver_context g_vmbus_drv = { .bus.dev_attrs = vmbus_device_attrs, }; -static const char *gDriverName ="hyperv" ; +static const char *driver_name ="hyperv" ;/* * Windows vmbus does not defined this. * We defined this to be consistent with other devices */ /* {c5295816-f63a-4d5f-8d1a-4daf999ca185} */ -static const struct hv_guid gVmbusDeviceType = { +static const struct hv_guid device_type = { .data = {0x16 ,0x58 ,0x29 ,0xc5 ,0x3a ,0xf6 ,0x5f ,0x4d ,0x8d ,0x1a ,0x4d ,0xaf ,0x99 ,0x9c ,0xa1 ,0x85
@@ -138,35 +138,35 @@ static const struct hv_guid gVmbusDeviceType = { };/* {ac3760fc-9adf-40aa-9427-a70ed6de95c5} */ -static const struct hv_guid gVmbusDeviceId = { +static const struct hv_guid device_id = { .data = {0xfc ,0x60 ,0x37 ,0xac ,0xdf ,0x9a ,0xaa ,0x40 ,0x94 ,0x27 ,0xa7 ,0x0e ,0xd6 ,0xde ,0x95 ,0xc5 } }; -static struct hv_device *gDevice;/* vmbus root device */ +static struct hv_device *vmbus_device;/* vmbus root device */ /* * VmbusChildDeviceAdd - Registers the child device with the vmbus */ -int VmbusChildDeviceAdd (struct hv_device *ChildDevice) +int VmbusChildDeviceAdd (struct hv_device *child_dev) { -return vmbus_child_device_register (gDevice, ChildDevice); +return vmbus_child_device_register (vmbus_device, child_dev); }/* * VmbusOnDeviceAdd - Callback when the root bus device is added */ -static int VmbusOnDeviceAdd (struct hv_device *dev,void *AdditionalInfo) +static int VmbusOnDeviceAdd (struct hv_device *dev,void *info) { -u32 *irqvector = AdditionalInfo; +u32 *irqvector = info;int ret; - gDevice = dev; + vmbus_device = dev; -memcpy (&gDevice->deviceType, &gVmbusDeviceType,sizeof (struct hv_guid )); -memcpy (&gDevice->deviceInstance, &gVmbusDeviceId, +memcpy (&vmbus_device->deviceType, &device_type,sizeof (struct hv_guid )); +memcpy (&vmbus_device->deviceInstance, &device_id,sizeof (struct hv_guid ));/* strcpy(dev->name, "vmbus"); */
@@ -461,9 +461,9 @@ static ssize_t vmbus_show_device_attr(struct device *dev,*/ static int vmbus_bus_init (void ) { -struct vmbus_driver_context *vmbus_drv_ctx = &g_vmbus_drv; -struct hv_driver *driver = &g_vmbus_drv.drv_obj; -struct vm_device *dev_ctx = &g_vmbus_drv.device_ctx; +struct vmbus_driver_context *vmbus_drv_ctx = &vmbus_drv; +struct hv_driver *driver = &vmbus_drv.drv_obj; +struct vm_device *dev_ctx = &vmbus_drv.device_ctx;int ret;unsigned int vector;
@@ -478,8 +478,8 @@ static int vmbus_bus_init(void)sizeof (struct vmbus_channel_packet_page_buffer ), sizeof(struct vmbus_channel_packet_multipage_buffer)); - driver->name = gDriverName; -memcpy (&driver->deviceType, &gVmbusDeviceType,sizeof (struct hv_guid )); + driver->name = driver_name; +memcpy (&driver->deviceType, &device_type,sizeof (struct hv_guid ));/* Setup dispatch table */ driver->OnDeviceAdd = VmbusOnDeviceAdd;
@@ -590,10 +590,10 @@ cleanup:*/ static void vmbus_bus_exit (void ) { -struct hv_driver *driver = &g_vmbus_drv.drv_obj; -struct vmbus_driver_context *vmbus_drv_ctx = &g_vmbus_drv; +struct hv_driver *driver = &vmbus_drv.drv_obj; +struct vmbus_driver_context *vmbus_drv_ctx = &vmbus_drv; -struct vm_device *dev_ctx = &g_vmbus_drv.device_ctx; +struct vm_device *dev_ctx = &vmbus_drv.device_ctx;/* Remove the root device */ if (driver->OnDeviceRemove)
@@ -634,7 +634,7 @@ int vmbus_child_driver_register(struct driver_context *driver_ctx) driver_ctx, driver_ctx->driver.name);/* The child driver on this vmbus */ - driver_ctx->driver.bus = &g_vmbus_drv.bus; + driver_ctx->driver.bus = &vmbus_drv.bus; ret =driver_register (&driver_ctx->driver);
@@ -737,7 +737,7 @@ int vmbus_child_device_register(struct hv_device *root_device_obj, atomic_inc_return(&device_num));/* The new device belongs to this bus */ - child_device_ctx->device.bus = &g_vmbus_drv.bus;/* device->dev.bus; */ + child_device_ctx->device.bus = &vmbus_drv.bus;/* device->dev.bus; */ child_device_ctx->device.parent = &root_device_ctx->device; child_device_ctx->device.release = vmbus_device_release;
@@ -1050,7 +1050,7 @@ static void vmbus_event_dpc(unsigned long data)static irqreturn_t vmbus_isr (int irq,void *dev_id) { -struct hv_driver *driver = &g_vmbus_drv.drv_obj; +struct hv_driver *driver = &vmbus_drv.drv_obj;int ret;/* Call to bus driver to handle interrupt */
@@ -1059,10 +1059,10 @@ static irqreturn_t vmbus_isr(int irq, void *dev_id)/* Schedules a dpc if necessary */ if (ret >0 ) {if (test_bit (0 , (unsigned long *)&ret)) -tasklet_schedule (&g_vmbus_drv.msg_dpc); +tasklet_schedule (&vmbus_drv.msg_dpc);if (test_bit (1 , (unsigned long *)&ret)) -tasklet_schedule (&g_vmbus_drv.event_dpc); +tasklet_schedule (&vmbus_drv.event_dpc);return IRQ_HANDLED ; }else {
Signature · 1 line
1.6.3.2
PATCH 4/8 staging: hv: Convert camel cased functions in vmbus_drv.c to lower cases
--- drivers/staging/hv/channel_mgmt.c | 4 ++-- drivers/staging/hv/vmbus_drv.c | 22 +++++++++++----------- drivers/staging/hv/vmbus_private.h | 6 +++--- 3 files changed, 16 insertions(+), 16 deletions(-)
drivers/staging/hv/channel_mgmt.c +2 -2
@@ -391,7 +391,7 @@ static void vmbus_process_offer(struct work_struct *work)/* * Start the process of binding this offer to the driver * We need to set the DeviceObject field before calling -* VmbusChildDeviceAdd() +* vmbus_child_dev_add() */ newchannel->device_obj = vmbus_child_device_create( &newchannel->offermsg.offer.InterfaceType,
@@ -406,7 +406,7 @@ static void vmbus_process_offer(struct work_struct *work)* binding which eventually invokes the device driver's AddDevice() * method. */ - ret =VmbusChildDeviceAdd (newchannel->device_obj); + ret =vmbus_child_dev_add (newchannel->device_obj);if (ret !=0 ) { DPRINT_ERR(VMBUS, "unable to add child device object (relid %d)",
drivers/staging/hv/vmbus_drv.c +11 -11
@@ -148,17 +148,17 @@ static const struct hv_guid device_id = {static struct hv_device *vmbus_device;/* vmbus root device */ /* -* VmbusChildDeviceAdd - Registers the child device with the vmbus +* vmbus_child_dev_add - Registers the child device with the vmbus */ -int VmbusChildDeviceAdd (struct hv_device *child_dev) +int vmbus_child_dev_add (struct hv_device *child_dev) {return vmbus_child_device_register (vmbus_device, child_dev); }/* -* VmbusOnDeviceAdd - Callback when the root bus device is added +* vmbus_dev_add - Callback when the root bus device is added */ -static int VmbusOnDeviceAdd (struct hv_device *dev,void *info) +static int vmbus_dev_add (struct hv_device *dev,void *info) {u32 *irqvector = info;int ret;
@@ -181,9 +181,9 @@ static int VmbusOnDeviceAdd(struct hv_device *dev, void *info) }/* -* VmbusOnDeviceRemove - Callback when the root bus device is removed +* vmbus_dev_rm - Callback when the root bus device is removed */ -static int VmbusOnDeviceRemove (struct hv_device *dev) +static int vmbus_dev_rm (struct hv_device *dev) {int ret =0 ;
@@ -194,9 +194,9 @@ static int VmbusOnDeviceRemove(struct hv_device *dev) }/* -* VmbusOnCleanup - Perform any cleanup when the driver is removed +* vmbus_cleanup - Perform any cleanup when the driver is removed */ -static void VmbusOnCleanup (struct hv_driver *drv) +static void vmbus_cleanup (struct hv_driver *drv) {/* struct vmbus_driver *driver = (struct vmbus_driver *)drv; */
@@ -482,9 +482,9 @@ static int vmbus_bus_init(void)memcpy (&driver->deviceType, &device_type,sizeof (struct hv_guid ));/* Setup dispatch table */ - driver->OnDeviceAdd = VmbusOnDeviceAdd; - driver->OnDeviceRemove = VmbusOnDeviceRemove; - driver->OnCleanup = VmbusOnCleanup; + driver->OnDeviceAdd = vmbus_dev_add; + driver->OnDeviceRemove = vmbus_dev_rm; + driver->OnCleanup = vmbus_cleanup;/* Hypervisor initialization...setup hypercall page..etc */ ret =hv_init ();
drivers/staging/hv/vmbus_private.h +3 -3
@@ -102,11 +102,11 @@ extern struct VMBUS_CONNECTION vmbus_connection;/* General vmbus interface */ -struct hv_device *vmbus_child_device_create (struct hv_guid *deviceType, -struct hv_guid *deviceInstance, +struct hv_device *vmbus_child_device_create (struct hv_guid *type, +struct hv_guid *instance,struct vmbus_channel *channel); -int VmbusChildDeviceAdd (struct hv_device *Device); +int vmbus_child_dev_add (struct hv_device *device);int vmbus_child_device_register (struct hv_device *root_device_obj,struct hv_device *child_device_obj);void vmbus_child_device_unregister (struct hv_device *device_obj);
Signature · 1 line
1.6.3.2
PATCH 5/8 staging: hv: Convert camel cased struct fields in vmbus_api.h to lower cases
--- drivers/staging/hv/blkvsc.c | 20 ++-- drivers/staging/hv/blkvsc_drv.c | 56 ++++++------ drivers/staging/hv/channel.c | 20 ++-- drivers/staging/hv/channel_mgmt.c | 2 +- drivers/staging/hv/netvsc.c | 58 ++++++------ drivers/staging/hv/netvsc_drv.c | 38 ++++---- drivers/staging/hv/rndis_filter.c | 52 ++++++------ drivers/staging/hv/storvsc.c | 34 ++++---- drivers/staging/hv/storvsc_drv.c | 28 +++--- drivers/staging/hv/vmbus_api.h | 68 +++++++------- drivers/staging/hv/vmbus_drv.c | 181 +++++++++++++++++++------------------ 11 files changed, 279 insertions(+), 278 deletions(-)
drivers/staging/hv/blkvsc.c +10 -10
@@ -51,13 +51,13 @@ static int blk_vsc_on_device_add(struct hv_device *device, void *additional_info* id. For IDE devices, the device instance id is formatted as * <bus id> * - <device id> - 8899 - 000000000000. */ - device_info->path_id = device->deviceInstance.data[3 ] <<24 | - device->deviceInstance.data[2 ] <<16 | - device->deviceInstance.data[1 ] <<8 | - device->deviceInstance.data[0 ]; + device_info->path_id = device->dev_instance.data[3 ] <<24 | + device->dev_instance.data[2 ] <<16 | + device->dev_instance.data[1 ] <<8 | + device->dev_instance.data[0 ]; - device_info->target_id = device->deviceInstance.data[5 ] <<8 | - device->deviceInstance.data[4 ]; + device_info->target_id = device->dev_instance.data[5 ] <<8 | + device->dev_instance.data[4 ];return ret; }
@@ -73,7 +73,7 @@ int blk_vsc_initialize(struct hv_driver *driver)/* ASSERT(stor_driver->RingBufferSize >= (PAGE_SIZE << 1)); */ driver->name = g_blk_driver_name; -memcpy (&driver->deviceType, &g_blk_device_type,sizeof (struct hv_guid )); +memcpy (&driver->dev_type, &g_blk_device_type,sizeof (struct hv_guid )); stor_driver->request_ext_size =sizeof (struct storvsc_request_extension );
@@ -93,9 +93,9 @@ int blk_vsc_initialize(struct hv_driver *driver) stor_driver->max_outstanding_req_per_channel);/* Setup the dispatch table */ - stor_driver->base.OnDeviceAdd = blk_vsc_on_device_add; - stor_driver->base.OnDeviceRemove = stor_vsc_on_device_remove; - stor_driver->base.OnCleanup = stor_vsc_on_cleanup; + stor_driver->base.dev_add = blk_vsc_on_device_add; + stor_driver->base.dev_rm = stor_vsc_on_device_remove; + stor_driver->base.cleanup = stor_vsc_on_cleanup; stor_driver->on_io_request = stor_vsc_on_io_request;return ret;
drivers/staging/hv/blkvsc_drv.c +28 -28
149 lines not on this page · raw message
drivers/staging/hv/channel.c +10 -10
@@ -806,9 +806,9 @@ int vmbus_sendpacket_pagebuffer(struct vmbus_channel *channel, desc.rangecount = pagecount;for (i =0 ; i < pagecount; i++) { - desc.range[i].Length = pagebuffers[i].Length; - desc.range[i].Offset = pagebuffers[i].Offset; - desc.range[i].Pfn = pagebuffers[i].Pfn; + desc.range[i].len = pagebuffers[i].len; + desc.range[i].offset = pagebuffers[i].offset; + desc.range[i].pfn = pagebuffers[i].pfn; }sg_init_table (bufferlist,3 );
@@ -842,14 +842,14 @@ int vmbus_sendpacket_multipagebuffer(struct vmbus_channel *channel,u32 packetlen_aligned;struct scatterlist bufferlist[3 ];u64 aligned_data =0 ; -u32 pfncount =NUM_PAGES_SPANNED (multi_pagebuffer->Offset, - multi_pagebuffer->Length); +u32 pfncount =NUM_PAGES_SPANNED (multi_pagebuffer->offset, + multi_pagebuffer->len);dump_vmbus_channel (channel);DPRINT_DBG (VMBUS ,"data buffer - offset %u len %u pfn count %u" , - multi_pagebuffer->Offset, - multi_pagebuffer->Length, pfncount); + multi_pagebuffer->offset, + multi_pagebuffer->len, pfncount);if ((pfncount <0 ) || (pfncount >MAX_MULTIPAGE_BUFFER_COUNT ))return -EINVAL ;
@@ -874,10 +874,10 @@ int vmbus_sendpacket_multipagebuffer(struct vmbus_channel *channel, desc.transactionid = requestid; desc.rangecount =1 ; - desc.range.Length = multi_pagebuffer->Length; - desc.range.Offset = multi_pagebuffer->Offset; + desc.range.len = multi_pagebuffer->len; + desc.range.offset = multi_pagebuffer->offset; -memcpy (desc.range.PfnArray, multi_pagebuffer->PfnArray, +memcpy (desc.range.pfn_array, multi_pagebuffer->pfn_array, pfncount *sizeof (u64));sg_init_table (bufferlist,3 );
drivers/staging/hv/channel_mgmt.c +1 -1
@@ -864,7 +864,7 @@ void vmbus_release_unattached_channels(void)if (channel == start)break ; -if (!channel->device_obj->Driver) { +if (!channel->device_obj->drv) {list_del (&channel->listentry); DPRINT_INFO(VMBUS, "Releasing unattached device object %p",
drivers/staging/hv/netvsc.c +29 -29
176 lines not on this page · raw message
drivers/staging/hv/netvsc_drv.c +19 -19
@@ -178,18 +178,18 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net) packet->total_data_buflen = skb->len;/* Start filling in the page buffers starting after RNDIS buffer. */ - packet->page_buf[1 ].Pfn =virt_to_phys (skb->data) >>PAGE_SHIFT ; - packet->page_buf[1 ].Offset + packet->page_buf[1 ].pfn =virt_to_phys (skb->data) >>PAGE_SHIFT ; + packet->page_buf[1 ].offset = (unsigned long )skb->data & (PAGE_SIZE -1 ); - packet->page_buf[1 ].Length =skb_headlen (skb); + packet->page_buf[1 ].len =skb_headlen (skb);/* Additional fragments are after SKB data */ for (i =0 ; i <skb_shinfo (skb)->nr_frags; i++) {skb_frag_t *f = &skb_shinfo (skb)->frags[i]; - packet->page_buf[i+2 ].Pfn =page_to_pfn (f->page); - packet->page_buf[i+2 ].Offset = f->page_offset; - packet->page_buf[i+2 ].Length = f->size; + packet->page_buf[i+2 ].pfn =page_to_pfn (f->page); + packet->page_buf[i+2 ].offset = f->page_offset; + packet->page_buf[i+2 ].len = f->size; }/* Set the completion routine */
@@ -277,16 +277,16 @@ static int netvsc_recv_callback(struct hv_device *device_obj,* hv_netvsc_packet cannot be deallocated */ for (i =0 ; i < packet->page_buf_cnt; i++) { - data =kmap_atomic (pfn_to_page (packet->page_buf[i].Pfn), + data =kmap_atomic (pfn_to_page (packet->page_buf[i].pfn),KM_IRQ1 ); data = (void *)(unsigned long )data + - packet->page_buf[i].Offset; + packet->page_buf[i].offset; -memcpy (skb_put (skb, packet->page_buf[i].Length), data, - packet->page_buf[i].Length); +memcpy (skb_put (skb, packet->page_buf[i].len), data, + packet->page_buf[i].len);kunmap_atomic ((void *)((unsigned long )data - - packet->page_buf[i].Offset),KM_IRQ1 ); + packet->page_buf[i].offset),KM_IRQ1 ); }local_irq_restore (flags);
@@ -349,7 +349,7 @@ static int netvsc_probe(struct device *device)struct netvsc_device_info device_info;int ret; -if (!net_drv_obj->base.OnDeviceAdd) +if (!net_drv_obj->base.dev_add)return -1 ; net =alloc_etherdev (sizeof (struct net_device_context ));
@@ -365,7 +365,7 @@ static int netvsc_probe(struct device *device)dev_set_drvdata (device, net);/* Notify the netvsc driver of the new device */ - ret = net_drv_obj->base.OnDeviceAdd (device_obj, &device_info); + ret = net_drv_obj->base.dev_add (device_obj, &device_info);if (ret !=0 ) {free_netdev (net);dev_set_drvdata (device,NULL );
@@ -400,7 +400,7 @@ static int netvsc_probe(struct device *device) ret =register_netdev (net);if (ret !=0 ) {/* Remove the device and release the resource */ - net_drv_obj->base.OnDeviceRemove (device_obj); + net_drv_obj->base.dev_rm (device_obj);free_netdev (net); }
@@ -424,7 +424,7 @@ static int netvsc_remove(struct device *device)return 0 ; } -if (!net_drv_obj->base.OnDeviceRemove) +if (!net_drv_obj->base.dev_rm)return -1 ;/* Stop outbound asap */
@@ -437,7 +437,7 @@ static int netvsc_remove(struct device *device)* Call to the vsc driver to let it know that the device is being * removed */ - ret = net_drv_obj->base.OnDeviceRemove (device_obj); + ret = net_drv_obj->base.dev_rm (device_obj);if (ret !=0 ) {/* TODO: */ DPRINT_ERR (NETVSC ,"unable to remove vsc device (ret %d)" , ret);
@@ -483,8 +483,8 @@ static void netvsc_drv_exit(void)device_unregister (current_dev); } -if (netvsc_drv_obj->base.OnCleanup) - netvsc_drv_obj->base.OnCleanup (&netvsc_drv_obj->base); +if (netvsc_drv_obj->base.cleanup) + netvsc_drv_obj->base.cleanup (&netvsc_drv_obj->base);vmbus_child_driver_unregister (drv_ctx);
@@ -505,7 +505,7 @@ static int netvsc_drv_init(int (*drv_init)(struct hv_driver *drv))drv_init (&net_drv_obj->base); drv_ctx->driver.name = net_drv_obj->base.name; -memcpy (&drv_ctx->class_id, &net_drv_obj->base.deviceType, +memcpy (&drv_ctx->class_id, &net_drv_obj->base.dev_type,sizeof (struct hv_guid )); drv_ctx->probe = netvsc_probe;
drivers/staging/hv/rndis_filter.c +26 -26
146 lines not on this page · raw message
drivers/staging/hv/storvsc.c +17 -17
@@ -94,7 +94,7 @@ static inline struct storvsc_device *alloc_stor_device(struct hv_device *device)atomic_cmpxchg (&stor_device->ref_count,0 ,2 ); stor_device->device = device; - device->Extension = stor_device; + device->ext = stor_device;return stor_device; }
@@ -110,7 +110,7 @@ static inline struct storvsc_device *get_stor_device(struct hv_device *device) {struct storvsc_device *stor_device; - stor_device = (struct storvsc_device *)device->Extension; + stor_device = (struct storvsc_device *)device->ext;if (stor_device &&atomic_read (&stor_device->ref_count) >1 )atomic_inc (&stor_device->ref_count);else
@@ -125,7 +125,7 @@ static inline struct storvsc_device *must_get_stor_device( {struct storvsc_device *stor_device; - stor_device = (struct storvsc_device *)device->Extension; + stor_device = (struct storvsc_device *)device->ext;if (stor_device &&atomic_read (&stor_device->ref_count))atomic_inc (&stor_device->ref_count);else
@@ -138,7 +138,7 @@ static inline void put_stor_device(struct hv_device *device) {struct storvsc_device *stor_device; - stor_device = (struct storvsc_device *)device->Extension; + stor_device = (struct storvsc_device *)device->ext;/* ASSERT(stor_device); */ atomic_dec (&stor_device->ref_count);
@@ -151,7 +151,7 @@ static inline struct storvsc_device *release_stor_device( {struct storvsc_device *stor_device; - stor_device = (struct storvsc_device *)device->Extension; + stor_device = (struct storvsc_device *)device->ext;/* ASSERT(stor_device); */ /* Busy wait until the ref drop to 2, then set it to 1 */
@@ -167,14 +167,14 @@ static inline struct storvsc_device *final_release_stor_device( {struct storvsc_device *stor_device; - stor_device = (struct storvsc_device *)device->Extension; + stor_device = (struct storvsc_device *)device->ext;/* ASSERT(stor_device); */ /* Busy wait until the ref drop to 1, then set it to 0 */ while (atomic_cmpxchg (&stor_device->ref_count,1 ,0 ) !=1 )udelay (100 ); - device->Extension =NULL ; + device->ext =NULL ;return stor_device; }
@@ -499,7 +499,7 @@ static int stor_vsc_connect_to_vsp(struct hv_device *device)struct storvsc_driver_object *stor_driver;int ret; - stor_driver = (struct storvsc_driver_object *)device->Driver; + stor_driver = (struct storvsc_driver_object *)device->drv;memset (&props,0 ,sizeof (struct vmstorage_channel_properties ));/* Open the channel */
@@ -581,7 +581,7 @@ static int stor_vsc_on_device_remove(struct hv_device *device)struct storvsc_device *stor_device;DPRINT_INFO (STORVSC ,"disabling storage device (%p)..." , - device->Extension); + device->ext); stor_device =release_stor_device (device);
@@ -597,7 +597,7 @@ static int stor_vsc_on_device_remove(struct hv_device *device) }DPRINT_INFO (STORVSC ,"removing storage device (%p)..." , - device->Extension); + device->ext); stor_device =final_release_stor_device (device);
@@ -687,7 +687,7 @@ static int stor_vsc_on_io_request(struct hv_device *device, request_extension);DPRINT_DBG (STORVSC ,"req %p len %d bus %d, target %d, lun %d cdblen %d" , - request, request->data_buffer.Length, request->bus, + request, request->data_buffer.len, request->bus, request->target_id, request->lun_id, request->cdb_len);if (!stor_device) {
@@ -720,7 +720,7 @@ static int stor_vsc_on_io_request(struct hv_device *device,memcpy (&vstor_packet->vm_srb.cdb, request->cdb, request->cdb_len); vstor_packet->vm_srb.data_in = request->type; - vstor_packet->vm_srb.data_transfer_length = request->data_buffer.Length; + vstor_packet->vm_srb.data_transfer_length = request->data_buffer.len; vstor_packet->operation =VSTOR_OPERATION_EXECUTE_SRB ;
@@ -734,7 +734,7 @@ static int stor_vsc_on_io_request(struct hv_device *device, vstor_packet->vm_srb.sense_info_length, vstor_packet->vm_srb.cdb_length); -if (request_extension->request->data_buffer.Length) { +if (request_extension->request->data_buffer.len) { ret = vmbus_sendpacket_multipagebuffer(device->channel, &request_extension->request->data_buffer, vstor_packet,
@@ -788,7 +788,7 @@ int stor_vsc_initialize(struct hv_driver *driver)/* ASSERT(stor_driver->RingBufferSize >= (PAGE_SIZE << 1)); */ driver->name = g_driver_name; -memcpy (&driver->deviceType, &gStorVscDeviceType, +memcpy (&driver->dev_type, &gStorVscDeviceType,sizeof (struct hv_guid )); stor_driver->request_ext_size =
@@ -811,9 +811,9 @@ int stor_vsc_initialize(struct hv_driver *driver) STORVSC_MAX_IO_REQUESTS);/* Setup the dispatch table */ - stor_driver->base.OnDeviceAdd = stor_vsc_on_device_add; - stor_driver->base.OnDeviceRemove = stor_vsc_on_device_remove; - stor_driver->base.OnCleanup = stor_vsc_on_cleanup; + stor_driver->base.dev_add = stor_vsc_on_device_add; + stor_driver->base.dev_rm = stor_vsc_on_device_remove; + stor_driver->base.cleanup = stor_vsc_on_cleanup; stor_driver->on_io_request = stor_vsc_on_io_request;
drivers/staging/hv/storvsc_drv.c +14 -14
@@ -161,7 +161,7 @@ static int storvsc_drv_init(int (*drv_init)(struct hv_driver *drv)) } drv_ctx->driver.name = storvsc_drv_obj->base.name; -memcpy (&drv_ctx->class_id, &storvsc_drv_obj->base.deviceType, +memcpy (&drv_ctx->class_id, &storvsc_drv_obj->base.dev_type,sizeof (struct hv_guid )); drv_ctx->probe = storvsc_probe;
@@ -206,8 +206,8 @@ static void storvsc_drv_exit(void)device_unregister (current_dev); } -if (storvsc_drv_obj->base.OnCleanup) - storvsc_drv_obj->base.OnCleanup (&storvsc_drv_obj->base); +if (storvsc_drv_obj->base.cleanup) + storvsc_drv_obj->base.cleanup (&storvsc_drv_obj->base);vmbus_child_driver_unregister (drv_ctx);return ;
@@ -231,7 +231,7 @@ static int storvsc_probe(struct device *device)struct host_device_context *host_device_ctx;struct storvsc_device_info device_info; -if (!storvsc_drv_obj->base.OnDeviceAdd) +if (!storvsc_drv_obj->base.dev_add)return -1 ; host = scsi_host_alloc(&scsi_driver,
@@ -262,7 +262,7 @@ static int storvsc_probe(struct device *device) device_info.port_number = host->host_no;/* Call to the vsc driver to add the device */ - ret = storvsc_drv_obj->base.OnDeviceAdd (device_obj, + ret = storvsc_drv_obj->base.dev_add (device_obj, (void *)&device_info);if (ret !=0 ) {DPRINT_ERR (STORVSC_DRV ,"unable to add scsi vsc device" );
@@ -287,7 +287,7 @@ static int storvsc_probe(struct device *device)if (ret !=0 ) {DPRINT_ERR (STORVSC_DRV ,"unable to add scsi host device" ); - storvsc_drv_obj->base.OnDeviceRemove (device_obj); + storvsc_drv_obj->base.dev_rm (device_obj);kmem_cache_destroy (host_device_ctx->request_pool);scsi_host_put (host);
@@ -317,14 +317,14 @@ static int storvsc_remove(struct device *device) (struct host_device_context *)host->hostdata; -if (!storvsc_drv_obj->base.OnDeviceRemove) +if (!storvsc_drv_obj->base.dev_rm)return -1 ;/* * Call to the vsc driver to let it know that the device is being * removed */ - ret = storvsc_drv_obj->base.OnDeviceRemove (device_obj); + ret = storvsc_drv_obj->base.dev_rm (device_obj);if (ret !=0 ) {/* TODO: */ DPRINT_ERR(STORVSC, "unable to remove vsc device (ret %d)",
@@ -385,7 +385,7 @@ static void storvsc_commmand_completion(struct hv_storvsc_request *request)/* ASSERT(request->BytesXfer <= request->data_buffer.Length); */ scsi_set_resid (scmnd, - request->data_buffer.Length - request->bytes_xfer); + request->data_buffer.len - request->bytes_xfer); scsi_done_fn = scmnd->scsi_done;
@@ -693,7 +693,7 @@ static int storvsc_queuecommand_lck(struct scsi_cmnd *scmnd, request->sense_buffer_size =SCSI_SENSE_BUFFERSIZE ; - request->data_buffer.Length =scsi_bufflen (scmnd); + request->data_buffer.len =scsi_bufflen (scmnd);if (scsi_sg_count (scmnd)) { sgl = (struct scatterlist *)scsi_sglist (scmnd); sg_count =scsi_sg_count (scmnd);
@@ -734,19 +734,19 @@ static int storvsc_queuecommand_lck(struct scsi_cmnd *scmnd, sg_count = cmd_request->bounce_sgl_count; } - request->data_buffer.Offset = sgl[0 ].offset; + request->data_buffer.offset = sgl[0 ].offset;for (i =0 ; i < sg_count; i++) {DPRINT_DBG (STORVSC_DRV ,"sgl[%d] len %d offset %d\n" , i, sgl[i].length, sgl[i].offset); - request->data_buffer.PfnArray[i] = + request->data_buffer.pfn_array[i] =page_to_pfn (sg_page ((&sgl[i]))); } }else if (scsi_sglist (scmnd)) {/* ASSERT(scsi_bufflen(scmnd) <= PAGE_SIZE); */ - request->data_buffer.Offset = + request->data_buffer.offset =virt_to_phys (scsi_sglist (scmnd)) & (PAGE_SIZE -1 ); - request->data_buffer.PfnArray[0 ] = + request->data_buffer.pfn_array[0 ] =virt_to_phys (scsi_sglist (scmnd)) >>PAGE_SHIFT ; }
drivers/staging/hv/vmbus_api.h +34 -34
110 lines not on this page · raw message
drivers/staging/hv/vmbus_drv.c +91 -90
286 lines not on this page · raw message
Signature · 1 line
1.6.3.2
PATCH 6/8 staging: hv: Convert camel cased struct fields in vmbus_channel_interface.h to lower cases
--- drivers/staging/hv/channel.c | 4 ++-- drivers/staging/hv/channel_mgmt.c | 20 ++++++++++---------- drivers/staging/hv/vmbus_channel_interface.h | 26 +++++++++++++------------- 3 files changed, 25 insertions(+), 25 deletions(-)
drivers/staging/hv/channel.c +2 -2
@@ -128,9 +128,9 @@ void vmbus_get_debug_info(struct vmbus_channel *channel, debuginfo->relid = channel->offermsg.child_relid; debuginfo->state = channel->state;memcpy (&debuginfo->interfacetype, - &channel->offermsg.offer.InterfaceType,sizeof (struct hv_guid )); + &channel->offermsg.offer.if_type,sizeof (struct hv_guid ));memcpy (&debuginfo->interface_instance, - &channel->offermsg.offer.InterfaceInstance, + &channel->offermsg.offer.if_instance,sizeof (struct hv_guid )); monitorpage = (struct hv_monitor_page *)vmbus_connection.MonitorPages;
drivers/staging/hv/channel_mgmt.c +10 -10
@@ -364,11 +364,11 @@ static void vmbus_process_offer(struct work_struct *work)spin_lock_irqsave (&vmbus_connection.channel_lock, flags);list_for_each_entry (channel, &vmbus_connection.ChannelList, listentry) { -if (!memcmp (&channel->offermsg.offer.InterfaceType, - &newchannel->offermsg.offer.InterfaceType, +if (!memcmp (&channel->offermsg.offer.if_type, + &newchannel->offermsg.offer.if_type,sizeof (struct hv_guid )) && - !memcmp (&channel->offermsg.offer.InterfaceInstance, - &newchannel->offermsg.offer.InterfaceInstance, + !memcmp (&channel->offermsg.offer.if_instance, + &newchannel->offermsg.offer.if_instance,sizeof (struct hv_guid ))) { fnew = false;break ;
@@ -394,8 +394,8 @@ static void vmbus_process_offer(struct work_struct *work)* vmbus_child_dev_add() */ newchannel->device_obj =vmbus_child_device_create ( - &newchannel->offermsg.offer.InterfaceType, - &newchannel->offermsg.offer.InterfaceInstance, + &newchannel->offermsg.offer.if_type, + &newchannel->offermsg.offer.if_instance, newchannel); DPRINT_DBG(VMBUS, "child device object allocated - %p",
@@ -427,7 +427,7 @@ static void vmbus_process_offer(struct work_struct *work)/* Open IC channels */ for (cnt = 0; cnt < MAX_MSG_TYPES; cnt++) { - if (memcmp(&newchannel->offermsg.offer.InterfaceType, + if (memcmp(&newchannel->offermsg.offer.if_type, &hv_cb_utils[cnt].data, sizeof(struct hv_guid)) == 0 && vmbus_open(newchannel, 2 * PAGE_SIZE,
@@ -461,7 +461,7 @@ static void vmbus_onoffer(struct vmbus_channel_message_header *hdr) offer = (struct vmbus_channel_offer_channel *)hdr;for (i =0 ; i <MAX_NUM_DEVICE_CLASSES_SUPPORTED ; i++) { -if (memcmp (&offer->offer.InterfaceType, +if (memcmp (&offer->offer.if_type, &gSupportedDeviceClasses[i],sizeof (struct hv_guid )) ==0 ) { fsupported =1 ;break ;
@@ -474,8 +474,8 @@ static void vmbus_onoffer(struct vmbus_channel_message_header *hdr)return ; } - guidtype = &offer->offer.InterfaceType; - guidinstance = &offer->offer.InterfaceInstance; + guidtype = &offer->offer.if_type; + guidinstance = &offer->offer.if_instance;DPRINT_INFO (VMBUS ,"Channel offer notification - " "child relid %d monitor id %d allocated %d, "
drivers/staging/hv/vmbus_channel_interface.h +13 -13
@@ -48,19 +48,19 @@* struct contains the fundamental information about an offer. */ struct vmbus_channel_offer { -struct hv_guid InterfaceType; -struct hv_guid InterfaceInstance; -u64 InterruptLatencyIn100nsUnits; -u32 InterfaceRevision; -u32 ServerContextAreaSize;/* in bytes */ -u16 ChannelFlags; -u16 MmioMegabytes;/* in bytes * 1024 * 1024 */ +struct hv_guid if_type; +struct hv_guid if_instance; +u64 int_latency;/* in 100ns units */ +u32 if_revision; +u32 server_ctx_size;/* in bytes */ +u16 chn_flags; +u16 mmio_megabytes;/* in bytes * 1024 * 1024 */ union {/* Non-pipes: The user has MAX_USER_DEFINED_BYTES bytes. */ struct { -unsigned char UserDefined[MAX_USER_DEFINED_BYTES ]; - } Standard; +unsigned char user_def[MAX_USER_DEFINED_BYTES ]; + } std;/* * Pipes:
@@ -70,11 +70,11 @@ struct vmbus_channel_offer {* use. */ struct { -u32 PipeMode; -unsigned char UserDefined[MAX_PIPE_USER_DEFINED_BYTES ]; - } Pipe; +u32 pipe_mode; +unsigned char user_def[MAX_PIPE_USER_DEFINED_BYTES ]; + } pipe; } u; -u32 Padding; +u32 padding; } __attribute__((packed));/* Server Flags */
Signature · 1 line
1.6.3.2
PATCH 7/8 staging: hv: Convert camel cased struct fields in vmbus_packet_format.h to lower cases
--- drivers/staging/hv/blkvsc_drv.c | 2 +- drivers/staging/hv/channel.c | 56 +++++++------- drivers/staging/hv/channel_mgmt.c | 2 +- drivers/staging/hv/hv_kvp.c | 4 +- drivers/staging/hv/hv_util.c | 6 +- drivers/staging/hv/netvsc.c | 68 +++++++++--------- drivers/staging/hv/storvsc.c | 12 ++-- drivers/staging/hv/vmbus_packet_format.h | 118 +++++++++++++++--------------- 8 files changed, 134 insertions(+), 134 deletions(-)
drivers/staging/hv/blkvsc_drv.c +1 -1
@@ -873,7 +873,7 @@ static int blkvsc_submit_request(struct blkvsc_request *blkvsc_req,DPRINT_DBG (BLKVSC_DRV ,"blkvsc_submit_request() - " "req %p pfn[%d] %llx\n" , blkvsc_req, i, - blkvsc_req->request.data_buffer.PfnArray[i]); + blkvsc_req->request.data_buffer.pfn_array[i]); }#endif
drivers/staging/hv/channel.c +28 -28
135 lines not on this page · raw message
drivers/staging/hv/channel_mgmt.c +1 -1
@@ -194,7 +194,7 @@ void chn_cb_negotiate(void *context)vmbus_sendpacket (channel, buf, recvlen, requestid, - VmbusPacketTypeDataInBand,0 ); +VM_PKT_DATA_INBAND ,0 ); }kfree (buf);
drivers/staging/hv/hv_kvp.c +2 -2
@@ -224,7 +224,7 @@ response_done: icmsghdrp->icflags =ICMSGHDRFLAG_TRANSACTION |ICMSGHDRFLAG_RESPONSE ;vmbus_sendpacket (channel, recv_buffer, buf_len, req_id, - VmbusPacketTypeDataInBand,0 ); +VM_PKT_DATA_INBAND ,0 ); kvp_transaction.active = false; }
@@ -318,7 +318,7 @@ callback_done:vmbus_sendpacket (channel, recv_buffer, recvlen, requestid, - VmbusPacketTypeDataInBand,0 ); +VM_PKT_DATA_INBAND ,0 ); } }
drivers/staging/hv/hv_util.c +3 -3
@@ -97,7 +97,7 @@ static void shutdown_onchannelcallback(void *context)vmbus_sendpacket (channel, shut_txf_buf, recvlen, requestid, - VmbusPacketTypeDataInBand,0 ); +VM_PKT_DATA_INBAND ,0 ); }if (execute_shutdown == true)
@@ -179,7 +179,7 @@ static void timesync_onchannelcallback(void *context)vmbus_sendpacket (channel, time_txf_buf, recvlen, requestid, - VmbusPacketTypeDataInBand,0 ); +VM_PKT_DATA_INBAND ,0 ); } }
@@ -225,7 +225,7 @@ static void heartbeat_onchannelcallback(void *context)vmbus_sendpacket (channel, hbeat_txf_buf, recvlen, requestid, - VmbusPacketTypeDataInBand,0 ); +VM_PKT_DATA_INBAND ,0 ); } }
drivers/staging/hv/netvsc.c +34 -34
222 lines not on this page · raw message
drivers/staging/hv/storvsc.c +6 -6
@@ -218,7 +218,7 @@ static int stor_vsc_channel_init(struct hv_device *device) ret =vmbus_sendpacket (device->channel, vstor_packet,sizeof (struct vstor_packet ), (unsigned long )request, - VmbusPacketTypeDataInBand, +VM_PKT_DATA_INBAND ,VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED );if (ret !=0 ) { DPRINT_ERR(STORVSC,
@@ -249,7 +249,7 @@ static int stor_vsc_channel_init(struct hv_device *device) ret =vmbus_sendpacket (device->channel, vstor_packet,sizeof (struct vstor_packet ), (unsigned long )request, - VmbusPacketTypeDataInBand, +VM_PKT_DATA_INBAND ,VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED );if (ret !=0 ) { DPRINT_ERR(STORVSC,
@@ -280,7 +280,7 @@ static int stor_vsc_channel_init(struct hv_device *device) ret =vmbus_sendpacket (device->channel, vstor_packet,sizeof (struct vstor_packet ), (unsigned long )request, - VmbusPacketTypeDataInBand, +VM_PKT_DATA_INBAND ,VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED );if (ret !=0 ) {
@@ -317,7 +317,7 @@ static int stor_vsc_channel_init(struct hv_device *device) ret =vmbus_sendpacket (device->channel, vstor_packet,sizeof (struct vstor_packet ), (unsigned long )request, - VmbusPacketTypeDataInBand, +VM_PKT_DATA_INBAND ,VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED );if (ret !=0 ) {
@@ -642,7 +642,7 @@ int stor_vsc_on_host_reset(struct hv_device *device) ret =vmbus_sendpacket (device->channel, vstor_packet,sizeof (struct vstor_packet ), (unsigned long )&stor_device->reset_request, - VmbusPacketTypeDataInBand, +VM_PKT_DATA_INBAND ,VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED );if (ret !=0 ) { DPRINT_ERR(STORVSC, "Unable to send reset packet %p ret %d",
@@ -744,7 +744,7 @@ static int stor_vsc_on_io_request(struct hv_device *device, ret =vmbus_sendpacket (device->channel, vstor_packet,sizeof (struct vstor_packet ), (unsigned long )request_extension, - VmbusPacketTypeDataInBand, +VM_PKT_DATA_INBAND ,VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED ); }
drivers/staging/hv/vmbus_packet_format.h +59 -59
184 lines not on this page · raw message
Signature · 1 line
1.6.3.2
PATCH 8/8 staging: hv: Convert camel cased struct fields in vmbus_private.h to lower cases
--- drivers/staging/hv/channel.c | 22 +++++----- drivers/staging/hv/channel_mgmt.c | 16 ++++---- drivers/staging/hv/connection.c | 74 ++++++++++++++++++------------------ drivers/staging/hv/vmbus_drv.c | 2 +- drivers/staging/hv/vmbus_private.h | 40 ++++++++++---------- 5 files changed, 77 insertions(+), 77 deletions(-)
drivers/staging/hv/channel.c +11 -11
@@ -77,10 +77,10 @@ static void vmbus_setevent(struct vmbus_channel *channel)if (channel->offermsg.monitor_allocated) {/* Each u32 represents 32 channels */ set_bit (channel->offermsg.child_relid &31 , - (unsigned long *) vmbus_connection.SendInterruptPage + + (unsigned long *) vmbus_connection.send_int_page + (channel->offermsg.child_relid >>5 )); - monitorpage = vmbus_connection.MonitorPages; + monitorpage = vmbus_connection.monitor_pages; monitorpage++;/* Get the child to parent monitor page */ set_bit(channel->monitor_bit,
@@ -100,11 +100,11 @@ static void VmbusChannelClearEvent(struct vmbus_channel *channel)if (Channel->offermsg.monitor_allocated) {/* Each u32 represents 32 channels */ clear_bit (Channel->offermsg.child_relid &31 , - (unsigned long *)vmbus_connection.SendInterruptPage + + (unsigned long *)vmbus_connection.send_int_page + (Channel->offermsg.child_relid >>5 )); - monitorPage = - (struct hv_monitor_page *)vmbus_connection.MonitorPages; + monitorPage = (struct hv_monitor_page *) + vmbus_connection.monitor_pages; monitorPage++;/* Get the child to parent monitor page */ clear_bit(Channel->monitor_bit,
@@ -133,7 +133,7 @@ void vmbus_get_debug_info(struct vmbus_channel *channel, &channel->offermsg.offer.if_instance, sizeof(struct hv_guid)); - monitorpage = (struct hv_monitor_page *)vmbus_connection.MonitorPages; + monitorpage = (struct hv_monitor_page *)vmbus_connection.monitor_pages; debuginfo->monitorid = channel->offermsg.monitorid;
@@ -267,7 +267,7 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size,spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags);list_add_tail (&openInfo->msglistentry, - &vmbus_connection.ChannelMsgList); + &vmbus_connection.chn_msg_list);spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags);DPRINT_DBG (VMBUS ,"Sending channel open msg..." );
@@ -501,8 +501,8 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer,unsigned long flags;int ret =0 ; - next_gpadl_handle =atomic_read (&vmbus_connection.NextGpadlHandle); -atomic_inc (&vmbus_connection.NextGpadlHandle); + next_gpadl_handle =atomic_read (&vmbus_connection.next_gpadl_handle); +atomic_inc (&vmbus_connection.next_gpadl_handle); ret =create_gpadl_header (kbuffer, size, &msginfo, &msgcount);if (ret)
@@ -523,7 +523,7 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer,spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags);list_add_tail (&msginfo->msglistentry, - &vmbus_connection.ChannelMsgList); + &vmbus_connection.chn_msg_list);spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags); DPRINT_DBG(VMBUS, "buffer %p, size %d msg cnt %d",
@@ -618,7 +618,7 @@ int vmbus_teardown_gpadl(struct vmbus_channel *channel, u32 gpadl_handle)spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags);list_add_tail (&info->msglistentry, - &vmbus_connection.ChannelMsgList); + &vmbus_connection.chn_msg_list);spin_unlock_irqrestore (&vmbus_connection.channelmsg_lock, flags); ret = vmbus_post_msg(msg,
drivers/staging/hv/channel_mgmt.c +8 -8
@@ -308,7 +308,7 @@ void free_channel(struct vmbus_channel *channel)* ie we can't destroy ourselves. */ INIT_WORK (&channel->work, release_channel); -queue_work (vmbus_connection.WorkQueue, &channel->work); +queue_work (vmbus_connection.work_queue, &channel->work); }
@@ -363,7 +363,7 @@ static void vmbus_process_offer(struct work_struct *work)/* Make sure this is a new offer */ spin_lock_irqsave (&vmbus_connection.channel_lock, flags); -list_for_each_entry (channel, &vmbus_connection.ChannelList, listentry) { +list_for_each_entry (channel, &vmbus_connection.chn_list, listentry) { if (!memcmp(&channel->offermsg.offer.if_type, &newchannel->offermsg.offer.if_type, sizeof(struct hv_guid)) &&
@@ -377,7 +377,7 @@ static void vmbus_process_offer(struct work_struct *work)if (fnew)list_add_tail (&newchannel->listentry, - &vmbus_connection.ChannelList); + &vmbus_connection.chn_list);spin_unlock_irqrestore (&vmbus_connection.channel_lock, flags);
@@ -579,7 +579,7 @@ static void vmbus_onopen_result(struct vmbus_channel_message_header *hdr)*/ spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags); -list_for_each (curr, &vmbus_connection.ChannelMsgList) { +list_for_each (curr, &vmbus_connection.chn_msg_list) {/* FIXME: this should probably use list_entry() instead */ msginfo = (struct vmbus_channel_msginfo *)curr; requestheader =
@@ -627,7 +627,7 @@ static void vmbus_ongpadl_created(struct vmbus_channel_message_header *hdr)*/ spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags); -list_for_each (curr, &vmbus_connection.ChannelMsgList) { +list_for_each (curr, &vmbus_connection.chn_msg_list) {/* FIXME: this should probably use list_entry() instead */ msginfo = (struct vmbus_channel_msginfo *)curr; requestheader =
@@ -675,7 +675,7 @@ static void vmbus_ongpadl_torndown(*/ spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags); -list_for_each (curr, &vmbus_connection.ChannelMsgList) { +list_for_each (curr, &vmbus_connection.chn_msg_list) {/* FIXME: this should probably use list_entry() instead */ msginfo = (struct vmbus_channel_msginfo *)curr; requestheader =
@@ -717,7 +717,7 @@ static void vmbus_onversion_response( version_response = (struct vmbus_channel_version_response *)hdr;spin_lock_irqsave (&vmbus_connection.channelmsg_lock, flags); -list_for_each (curr, &vmbus_connection.ChannelMsgList) { +list_for_each (curr, &vmbus_connection.chn_msg_list) {/* FIXME: this should probably use list_entry() instead */ msginfo = (struct vmbus_channel_msginfo *)curr; requestheader =
@@ -859,7 +859,7 @@ void vmbus_release_unattached_channels(void)spin_lock_irqsave (&vmbus_connection.channel_lock, flags); -list_for_each_entry_safe (channel, pos, &vmbus_connection.ChannelList, +list_for_each_entry_safe (channel, pos, &vmbus_connection.chn_list, listentry) {if (channel == start)break ;
drivers/staging/hv/connection.c +37 -37
173 lines not on this page · raw message
drivers/staging/hv/vmbus_drv.c +1 -1
@@ -239,7 +239,7 @@ static void vmbus_on_msg_dpc(struct hv_driver *drv)continue ;INIT_WORK (&ctx->work, vmbus_onmessage_work);memcpy (&ctx->msg, msg,sizeof (*msg)); -queue_work (vmbus_connection.WorkQueue, &ctx->work); +queue_work (vmbus_connection.work_queue, &ctx->work); } msg->header.message_type =HVMSG_NONE ;
drivers/staging/hv/vmbus_private.h +20 -20
@@ -45,19 +45,19 @@#define MAX_NUM_CHANNELS_SUPPORTED 256 -enum VMBUS_CONNECT_STATE { - Disconnected, - Connecting, - Connected, - Disconnecting +enum vmbus_connect_state { +DISCONNECTED , +CONNECTING , +CONNECTED , +DISCONNECTING };#define MAX_SIZE_CHANNEL_MESSAGE HV_MESSAGE_PAYLOAD_BYTE_COUNT -struct VMBUS_CONNECTION { -enum VMBUS_CONNECT_STATE ConnectState; +struct vmbus_connection { +enum vmbus_connect_state conn_state; -atomic_t NextGpadlHandle; +atomic_t next_gpadl_handle;/* * Represents channel interrupts. Each bit position represents a
@@ -66,39 +66,39 @@ struct VMBUS_CONNECTION {* event. The other end receives the port event and parse the * recvInterruptPage to see which bit is set */ -void *InterruptPage; -void *SendInterruptPage; -void *RecvInterruptPage; +void *int_page; +void *send_int_page; +void *recv_int_page;/* * 2 pages - 1st page for parent->child notification and 2nd * is child->parent notification */ -void *MonitorPages; -struct list_head ChannelMsgList; +void *monitor_pages; +struct list_head chn_msg_list;spinlock_t channelmsg_lock;/* List of channels */ -struct list_head ChannelList; +struct list_head chn_list;spinlock_t channel_lock; -struct workqueue_struct *WorkQueue; +struct workqueue_struct *work_queue; }; -struct VMBUS_MSGINFO { +struct vmbus_msginfo {/* Bookkeeping stuff */ -struct list_head MsgListEntry; +struct list_head msglist_entry;/* Synchronize the request/response if needed */ -struct osd_waitevent *WaitEvent; +struct osd_waitevent *wait_event;/* The message itself */ -unsigned char Msg[0 ]; +unsigned char msg[0 ]; }; -extern struct VMBUS_CONNECTION vmbus_connection; +extern struct vmbus_connection vmbus_connection;/* General vmbus interface */
Signature · 1 line
1.6.3.2
Re: [PATCH 7/8] staging: hv: Convert camel cased struct fields in vmbus_packet_format.h to lower cases
In reply to Haiyang Zhangdrivers/staging/hv/vmbus_packet_format.h struct vmteardown_gpadl { · line 146
Quoted 4 lines · Haiyang Zhang
drivers/staging/hv/vmbus_packet_format.h +4
-0+VM_PKT_INVALID =0x0 , +VM_PKT_SYNCH =0x1 , +VM_PKT_ADD_XFER_PAGESET =0x2 , + VM_PKT_RM_XFER_PAGESET = 0x3,
^^^^
drivers/staging/hv/vmbus_packet_format.h struct vmteardown_gpadl { · line 154
Quoted 8 lines
drivers/staging/hv/vmbus_packet_format.h +8
-0+VM_PKT_ESTABLISH_GPADL =0x4 , +VM_PKT_TEARDOWN_GPADL =0x5 , +VM_PKT_DATA_INBAND =0x6 , +VM_PKT_DATA_USING_XFER_PAGES =0x7 , +VM_PKT_DATA_USING_GPADL =0x8 , +VM_PKT_DATA_USING_GPA_DIRECT =0x9 , +VM_PKT_CANCEL_REQUEST =0xa , + VM_PKT_COMP = 0xb,
^^^^^^
drivers/staging/hv/vmbus_packet_format.h struct vmteardown_gpadl { · line 156
Quoted 2 lines
drivers/staging/hv/vmbus_packet_format.h +2
-0+VM_PKT_DATA_USING_ADDITIONAL_PKT =0xc , +VM_PKT_ADDITIONAL_DATA =0xd
These don't line up with the others.
regards,
dan carpenter
RE: [PATCH 7/8] staging: hv: Convert camel cased struct fields in vmbus_packet_format.h to lower cases
Quoted 15 lines
From: Dan Carpenter [mailto:[email protected]]
drivers/staging/hv/vmbus_packet_format.h struct vmteardown_gpadl { · line 146
Quoted 4 lines
drivers/staging/hv/vmbus_packet_format.h +4
-0+VM_PKT_INVALID =0x0 , +VM_PKT_SYNCH =0x1 , +VM_PKT_ADD_XFER_PAGESET =0x2 , + VM_PKT_RM_XFER_PAGESET = 0x3,^^^^drivers/staging/hv/vmbus_packet_format.h struct vmteardown_gpadl { · line 154
Quoted 8 lines
drivers/staging/hv/vmbus_packet_format.h +8
-0+VM_PKT_ESTABLISH_GPADL =0x4 , +VM_PKT_TEARDOWN_GPADL =0x5 , +VM_PKT_DATA_INBAND =0x6 , +VM_PKT_DATA_USING_XFER_PAGES =0x7 , +VM_PKT_DATA_USING_GPADL =0x8 , +VM_PKT_DATA_USING_GPA_DIRECT =0x9 , +VM_PKT_CANCEL_REQUEST =0xa , + VM_PKT_COMP = 0xb,^^^^^^
Quoted 5 lines
drivers/staging/hv/vmbus_packet_format.h struct vmteardown_gpadl { · line 156
Quoted 2 lines
drivers/staging/hv/vmbus_packet_format.h +2
-0+VM_PKT_DATA_USING_ADDITIONAL_PKT =0xc , +VM_PKT_ADDITIONAL_DATA =0xd These don't line up with the others.
I have corrected and resubmitted them.
Thanks,
- Haiyang
Re: [PATCH 7/8] staging: hv: Convert camel cased struct fields in vmbus_packet_format.h to lower cases
Quoted 6 lines · Haiyang Zhang
Quoted 3 lines
These don't line up with the others.
I have corrected and resubmitted them.
You could have just resubmitted the one. Overall the patchset makes things way better than before. I didn't want to make more work for you. :/
If you're going to redo the set, it probably would have been better to wait for a day in case anyone else says anything. The patches are pretty straight forward so it's doubtful that it needs changes but it also doesn't hurt to wait.
Anyway, I diffed the two threads and it looks good. Thanks for doing that.
regards,
dan carpenter