Commit c50f7fb2 authored by Haiyang Zhang's avatar Haiyang Zhang Committed by Greg Kroah-Hartman

staging: hv: Convert camel cased struct fields in channel_mgmt.h to lower cases

staging: hv: Convert camel cased struct fields in channel_mgmt.h to lower cases
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a32d4aca
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -95,19 +95,19 @@ int VmbusConnect(void) ...@@ -95,19 +95,19 @@ int VmbusConnect(void)
goto Cleanup; goto Cleanup;
} }
msgInfo->WaitEvent = osd_WaitEventCreate(); msgInfo->waitevent = osd_WaitEventCreate();
if (!msgInfo->WaitEvent) { if (!msgInfo->waitevent) {
ret = -ENOMEM; ret = -ENOMEM;
goto Cleanup; goto Cleanup;
} }
msg = (struct vmbus_channel_initiate_contact *)msgInfo->Msg; msg = (struct vmbus_channel_initiate_contact *)msgInfo->msg;
msg->Header.MessageType = ChannelMessageInitiateContact; msg->header.msgtype = CHANNELMSG_INITIATE_CONTACT;
msg->VMBusVersionRequested = VMBUS_REVISION_NUMBER; msg->vmbus_version_requested = VMBUS_REVISION_NUMBER;
msg->InterruptPage = virt_to_phys(gVmbusConnection.InterruptPage); msg->interrupt_page = virt_to_phys(gVmbusConnection.InterruptPage);
msg->MonitorPage1 = virt_to_phys(gVmbusConnection.MonitorPages); msg->monitor_page1 = virt_to_phys(gVmbusConnection.MonitorPages);
msg->MonitorPage2 = virt_to_phys( msg->monitor_page2 = virt_to_phys(
(void *)((unsigned long)gVmbusConnection.MonitorPages + (void *)((unsigned long)gVmbusConnection.MonitorPages +
PAGE_SIZE)); PAGE_SIZE));
...@@ -116,30 +116,30 @@ int VmbusConnect(void) ...@@ -116,30 +116,30 @@ int VmbusConnect(void)
* receive the response before returning from this routine * receive the response before returning from this routine
*/ */
spin_lock_irqsave(&gVmbusConnection.channelmsg_lock, flags); spin_lock_irqsave(&gVmbusConnection.channelmsg_lock, flags);
list_add_tail(&msgInfo->MsgListEntry, list_add_tail(&msgInfo->msglistentry,
&gVmbusConnection.ChannelMsgList); &gVmbusConnection.ChannelMsgList);
spin_unlock_irqrestore(&gVmbusConnection.channelmsg_lock, flags); spin_unlock_irqrestore(&gVmbusConnection.channelmsg_lock, flags);
DPRINT_DBG(VMBUS, "Vmbus connection - interrupt pfn %llx, " DPRINT_DBG(VMBUS, "Vmbus connection - interrupt pfn %llx, "
"monitor1 pfn %llx,, monitor2 pfn %llx", "monitor1 pfn %llx,, monitor2 pfn %llx",
msg->InterruptPage, msg->MonitorPage1, msg->MonitorPage2); msg->interrupt_page, msg->monitor_page1, msg->monitor_page2);
DPRINT_DBG(VMBUS, "Sending channel initiate msg..."); DPRINT_DBG(VMBUS, "Sending channel initiate msg...");
ret = VmbusPostMessage(msg, ret = VmbusPostMessage(msg,
sizeof(struct vmbus_channel_initiate_contact)); sizeof(struct vmbus_channel_initiate_contact));
if (ret != 0) { if (ret != 0) {
list_del(&msgInfo->MsgListEntry); list_del(&msgInfo->msglistentry);
goto Cleanup; goto Cleanup;
} }
/* Wait for the connection response */ /* Wait for the connection response */
osd_WaitEventWait(msgInfo->WaitEvent); osd_WaitEventWait(msgInfo->waitevent);
list_del(&msgInfo->MsgListEntry); list_del(&msgInfo->msglistentry);
/* Check if successful */ /* Check if successful */
if (msgInfo->Response.VersionResponse.VersionSupported) { if (msgInfo->response.version_response.version_supported) {
DPRINT_INFO(VMBUS, "Vmbus connected!!"); DPRINT_INFO(VMBUS, "Vmbus connected!!");
gVmbusConnection.ConnectState = Connected; gVmbusConnection.ConnectState = Connected;
...@@ -151,7 +151,7 @@ int VmbusConnect(void) ...@@ -151,7 +151,7 @@ int VmbusConnect(void)
goto Cleanup; goto Cleanup;
} }
kfree(msgInfo->WaitEvent); kfree(msgInfo->waitevent);
kfree(msgInfo); kfree(msgInfo);
return 0; return 0;
...@@ -172,7 +172,7 @@ int VmbusConnect(void) ...@@ -172,7 +172,7 @@ int VmbusConnect(void)
} }
if (msgInfo) { if (msgInfo) {
kfree(msgInfo->WaitEvent); kfree(msgInfo->waitevent);
kfree(msgInfo); kfree(msgInfo);
} }
...@@ -195,7 +195,7 @@ int VmbusDisconnect(void) ...@@ -195,7 +195,7 @@ int VmbusDisconnect(void)
if (!msg) if (!msg)
return -ENOMEM; return -ENOMEM;
msg->MessageType = ChannelMessageUnload; msg->msgtype = CHANNELMSG_UNLOAD;
ret = VmbusPostMessage(msg, ret = VmbusPostMessage(msg,
sizeof(struct vmbus_channel_message_header)); sizeof(struct vmbus_channel_message_header));
...@@ -226,8 +226,8 @@ struct vmbus_channel *GetChannelFromRelId(u32 relId) ...@@ -226,8 +226,8 @@ struct vmbus_channel *GetChannelFromRelId(u32 relId)
unsigned long flags; unsigned long flags;
spin_lock_irqsave(&gVmbusConnection.channel_lock, flags); spin_lock_irqsave(&gVmbusConnection.channel_lock, flags);
list_for_each_entry(channel, &gVmbusConnection.ChannelList, ListEntry) { list_for_each_entry(channel, &gVmbusConnection.ChannelList, listentry) {
if (channel->OfferMsg.ChildRelId == relId) { if (channel->offermsg.child_relid == relId) {
foundChannel = channel; foundChannel = channel;
break; break;
} }
......
...@@ -271,15 +271,15 @@ static int __init init_hyperv_utils(void) ...@@ -271,15 +271,15 @@ static int __init init_hyperv_utils(void)
if (!dmi_check_system(hv_utils_dmi_table)) if (!dmi_check_system(hv_utils_dmi_table))
return -ENODEV; return -ENODEV;
hv_cb_utils[HV_SHUTDOWN_MSG].channel->OnChannelCallback = hv_cb_utils[HV_SHUTDOWN_MSG].channel->onchannel_callback =
&shutdown_onchannelcallback; &shutdown_onchannelcallback;
hv_cb_utils[HV_SHUTDOWN_MSG].callback = &shutdown_onchannelcallback; hv_cb_utils[HV_SHUTDOWN_MSG].callback = &shutdown_onchannelcallback;
hv_cb_utils[HV_TIMESYNC_MSG].channel->OnChannelCallback = hv_cb_utils[HV_TIMESYNC_MSG].channel->onchannel_callback =
&timesync_onchannelcallback; &timesync_onchannelcallback;
hv_cb_utils[HV_TIMESYNC_MSG].callback = &timesync_onchannelcallback; hv_cb_utils[HV_TIMESYNC_MSG].callback = &timesync_onchannelcallback;
hv_cb_utils[HV_HEARTBEAT_MSG].channel->OnChannelCallback = hv_cb_utils[HV_HEARTBEAT_MSG].channel->onchannel_callback =
&heartbeat_onchannelcallback; &heartbeat_onchannelcallback;
hv_cb_utils[HV_HEARTBEAT_MSG].callback = &heartbeat_onchannelcallback; hv_cb_utils[HV_HEARTBEAT_MSG].callback = &heartbeat_onchannelcallback;
...@@ -290,15 +290,15 @@ static void exit_hyperv_utils(void) ...@@ -290,15 +290,15 @@ static void exit_hyperv_utils(void)
{ {
printk(KERN_INFO "De-Registered HyperV Utility Driver\n"); printk(KERN_INFO "De-Registered HyperV Utility Driver\n");
hv_cb_utils[HV_SHUTDOWN_MSG].channel->OnChannelCallback = hv_cb_utils[HV_SHUTDOWN_MSG].channel->onchannel_callback =
&chn_cb_negotiate; &chn_cb_negotiate;
hv_cb_utils[HV_SHUTDOWN_MSG].callback = &chn_cb_negotiate; hv_cb_utils[HV_SHUTDOWN_MSG].callback = &chn_cb_negotiate;
hv_cb_utils[HV_TIMESYNC_MSG].channel->OnChannelCallback = hv_cb_utils[HV_TIMESYNC_MSG].channel->onchannel_callback =
&chn_cb_negotiate; &chn_cb_negotiate;
hv_cb_utils[HV_TIMESYNC_MSG].callback = &chn_cb_negotiate; hv_cb_utils[HV_TIMESYNC_MSG].callback = &chn_cb_negotiate;
hv_cb_utils[HV_HEARTBEAT_MSG].channel->OnChannelCallback = hv_cb_utils[HV_HEARTBEAT_MSG].channel->onchannel_callback =
&chn_cb_negotiate; &chn_cb_negotiate;
hv_cb_utils[HV_HEARTBEAT_MSG].callback = &chn_cb_negotiate; hv_cb_utils[HV_HEARTBEAT_MSG].callback = &chn_cb_negotiate;
} }
......
...@@ -139,35 +139,35 @@ static void get_channel_info(struct hv_device *device, ...@@ -139,35 +139,35 @@ static void get_channel_info(struct hv_device *device,
vmbus_get_debug_info(device->channel, &debug_info); vmbus_get_debug_info(device->channel, &debug_info);
info->ChannelId = debug_info.RelId; info->ChannelId = debug_info.relid;
info->ChannelState = debug_info.State; info->ChannelState = debug_info.state;
memcpy(&info->ChannelType, &debug_info.InterfaceType, memcpy(&info->ChannelType, &debug_info.interfacetype,
sizeof(struct hv_guid)); sizeof(struct hv_guid));
memcpy(&info->ChannelInstance, &debug_info.InterfaceInstance, memcpy(&info->ChannelInstance, &debug_info.interface_instance,
sizeof(struct hv_guid)); sizeof(struct hv_guid));
info->MonitorId = debug_info.MonitorId; info->MonitorId = debug_info.monitorid;
info->ServerMonitorPending = debug_info.ServerMonitorPending; info->ServerMonitorPending = debug_info.servermonitor_pending;
info->ServerMonitorLatency = debug_info.ServerMonitorLatency; info->ServerMonitorLatency = debug_info.servermonitor_latency;
info->ServerMonitorConnectionId = debug_info.ServerMonitorConnectionId; info->ServerMonitorConnectionId = debug_info.servermonitor_connectionid;
info->ClientMonitorPending = debug_info.ClientMonitorPending; info->ClientMonitorPending = debug_info.clientmonitor_pending;
info->ClientMonitorLatency = debug_info.ClientMonitorLatency; info->ClientMonitorLatency = debug_info.clientmonitor_latency;
info->ClientMonitorConnectionId = debug_info.ClientMonitorConnectionId; info->ClientMonitorConnectionId = debug_info.clientmonitor_connectionid;
info->Inbound.InterruptMask = debug_info.Inbound.CurrentInterruptMask; info->Inbound.InterruptMask = debug_info.inbound.CurrentInterruptMask;
info->Inbound.ReadIndex = debug_info.Inbound.CurrentReadIndex; info->Inbound.ReadIndex = debug_info.inbound.CurrentReadIndex;
info->Inbound.WriteIndex = debug_info.Inbound.CurrentWriteIndex; info->Inbound.WriteIndex = debug_info.inbound.CurrentWriteIndex;
info->Inbound.BytesAvailToRead = debug_info.Inbound.BytesAvailToRead; info->Inbound.BytesAvailToRead = debug_info.inbound.BytesAvailToRead;
info->Inbound.BytesAvailToWrite = debug_info.Inbound.BytesAvailToWrite; info->Inbound.BytesAvailToWrite = debug_info.inbound.BytesAvailToWrite;
info->Outbound.InterruptMask = debug_info.Outbound.CurrentInterruptMask; info->Outbound.InterruptMask = debug_info.outbound.CurrentInterruptMask;
info->Outbound.ReadIndex = debug_info.Outbound.CurrentReadIndex; info->Outbound.ReadIndex = debug_info.outbound.CurrentReadIndex;
info->Outbound.WriteIndex = debug_info.Outbound.CurrentWriteIndex; info->Outbound.WriteIndex = debug_info.outbound.CurrentWriteIndex;
info->Outbound.BytesAvailToRead = debug_info.Outbound.BytesAvailToRead; info->Outbound.BytesAvailToRead = debug_info.outbound.BytesAvailToRead;
info->Outbound.BytesAvailToWrite = info->Outbound.BytesAvailToWrite =
debug_info.Outbound.BytesAvailToWrite; debug_info.outbound.BytesAvailToWrite;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment