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

staging: hv: Convert camel cased local variables in channel_interface.c to lower cases

Convert camel cased local variables in channel_interface.c 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 cc58cbb8
...@@ -25,15 +25,15 @@ ...@@ -25,15 +25,15 @@
#include "osd.h" #include "osd.h"
#include "vmbus_private.h" #include "vmbus_private.h"
static int IVmbusChannelOpen(struct hv_device *device, u32 SendBufferSize, static int IVmbusChannelOpen(struct hv_device *device, u32 sendbuffer_size,
u32 RecvRingBufferSize, void *UserData, u32 recv_ringbuffer_size, void *userdata,
u32 UserDataLen, u32 userdatalen,
void (*ChannelCallback)(void *context), void (*channel_callback)(void *context),
void *Context) void *context)
{ {
return vmbus_open(device->context, SendBufferSize, return vmbus_open(device->context, sendbuffer_size,
RecvRingBufferSize, UserData, UserDataLen, recv_ringbuffer_size, userdata, userdatalen,
ChannelCallback, Context); channel_callback, context);
} }
static void IVmbusChannelClose(struct hv_device *device) static void IVmbusChannelClose(struct hv_device *device)
...@@ -41,100 +41,102 @@ static void IVmbusChannelClose(struct hv_device *device) ...@@ -41,100 +41,102 @@ static void IVmbusChannelClose(struct hv_device *device)
vmbus_close(device->context); vmbus_close(device->context);
} }
static int IVmbusChannelSendPacket(struct hv_device *device, const void *Buffer, static int IVmbusChannelSendPacket(struct hv_device *device, const void *buffer,
u32 BufferLen, u64 RequestId, u32 Type, u32 bufferlen, u64 requestid, u32 type,
u32 Flags) u32 flags)
{ {
return vmbus_sendpacket(device->context, Buffer, BufferLen, return vmbus_sendpacket(device->context, buffer, bufferlen,
RequestId, Type, Flags); requestid, type, flags);
} }
static int IVmbusChannelSendPacketPageBuffer(struct hv_device *device, static int IVmbusChannelSendPacketPageBuffer(struct hv_device *device,
struct hv_page_buffer PageBuffers[], struct hv_page_buffer pagebuffers[],
u32 PageCount, void *Buffer, u32 pagecount, void *buffer,
u32 BufferLen, u64 RequestId) u32 bufferlen, u64 requestid)
{ {
return vmbus_sendpacket_pagebuffer(device->context, PageBuffers, return vmbus_sendpacket_pagebuffer(device->context, pagebuffers,
PageCount, Buffer, BufferLen, pagecount, buffer, bufferlen,
RequestId); requestid);
} }
static int IVmbusChannelSendPacketMultiPageBuffer(struct hv_device *device, static int IVmbusChannelSendPacketMultiPageBuffer(struct hv_device *device,
struct hv_multipage_buffer *MultiPageBuffer, struct hv_multipage_buffer *multi_pagebuffer,
void *Buffer, u32 BufferLen, u64 RequestId) void *buffer, u32 bufferlen, u64 requestid)
{ {
return vmbus_sendpacket_multipagebuffer(device->context, return vmbus_sendpacket_multipagebuffer(device->context,
MultiPageBuffer, Buffer, multi_pagebuffer, buffer,
BufferLen, RequestId); bufferlen, requestid);
} }
static int IVmbusChannelRecvPacket(struct hv_device *device, void *Buffer, static int IVmbusChannelRecvPacket(struct hv_device *device, void *buffer,
u32 BufferLen, u32 *BufferActualLen, u32 bufferlen, u32 *buffer_actuallen,
u64 *RequestId) u64 *requestid)
{ {
return vmbus_recvpacket(device->context, Buffer, BufferLen, return vmbus_recvpacket(device->context, buffer, bufferlen,
BufferActualLen, RequestId); buffer_actuallen, requestid);
} }
static int IVmbusChannelRecvPacketRaw(struct hv_device *device, void *Buffer, static int IVmbusChannelRecvPacketRaw(struct hv_device *device, void *buffer,
u32 BufferLen, u32 *BufferActualLen, u32 bufferlen, u32 *buffer_actuallen,
u64 *RequestId) u64 *requestid)
{ {
return vmbus_recvpacket_raw(device->context, Buffer, BufferLen, return vmbus_recvpacket_raw(device->context, buffer, bufferlen,
BufferActualLen, RequestId); buffer_actuallen, requestid);
} }
static int IVmbusChannelEstablishGpadl(struct hv_device *device, void *Buffer, static int IVmbusChannelEstablishGpadl(struct hv_device *device, void *buffer,
u32 BufferLen, u32 *GpadlHandle) u32 bufferlen, u32 *gpadl_handle)
{ {
return vmbus_establish_gpadl(device->context, Buffer, BufferLen, return vmbus_establish_gpadl(device->context, buffer, bufferlen,
GpadlHandle); gpadl_handle);
} }
static int IVmbusChannelTeardownGpadl(struct hv_device *device, u32 GpadlHandle) static int IVmbusChannelTeardownGpadl(struct hv_device *device,
u32 gpadl_handle)
{ {
return vmbus_teardown_gpadl(device->context, GpadlHandle); return vmbus_teardown_gpadl(device->context, gpadl_handle);
} }
void GetChannelInfo(struct hv_device *device, struct hv_device_info *info) void GetChannelInfo(struct hv_device *device, struct hv_device_info *info)
{ {
struct vmbus_channel_debug_info debugInfo; struct vmbus_channel_debug_info debug_info;
if (!device->context) if (!device->context)
return; return;
vmbus_get_debug_info(device->context, &debugInfo); vmbus_get_debug_info(device->context, &debug_info);
info->ChannelId = debugInfo.RelId; info->ChannelId = debug_info.RelId;
info->ChannelState = debugInfo.State; info->ChannelState = debug_info.State;
memcpy(&info->ChannelType, &debugInfo.InterfaceType, memcpy(&info->ChannelType, &debug_info.InterfaceType,
sizeof(struct hv_guid)); sizeof(struct hv_guid));
memcpy(&info->ChannelInstance, &debugInfo.InterfaceInstance, memcpy(&info->ChannelInstance, &debug_info.InterfaceInstance,
sizeof(struct hv_guid)); sizeof(struct hv_guid));
info->MonitorId = debugInfo.MonitorId; info->MonitorId = debug_info.MonitorId;
info->ServerMonitorPending = debugInfo.ServerMonitorPending; info->ServerMonitorPending = debug_info.ServerMonitorPending;
info->ServerMonitorLatency = debugInfo.ServerMonitorLatency; info->ServerMonitorLatency = debug_info.ServerMonitorLatency;
info->ServerMonitorConnectionId = debugInfo.ServerMonitorConnectionId; info->ServerMonitorConnectionId = debug_info.ServerMonitorConnectionId;
info->ClientMonitorPending = debugInfo.ClientMonitorPending; info->ClientMonitorPending = debug_info.ClientMonitorPending;
info->ClientMonitorLatency = debugInfo.ClientMonitorLatency; info->ClientMonitorLatency = debug_info.ClientMonitorLatency;
info->ClientMonitorConnectionId = debugInfo.ClientMonitorConnectionId; info->ClientMonitorConnectionId = debug_info.ClientMonitorConnectionId;
info->Inbound.InterruptMask = debugInfo.Inbound.CurrentInterruptMask; info->Inbound.InterruptMask = debug_info.Inbound.CurrentInterruptMask;
info->Inbound.ReadIndex = debugInfo.Inbound.CurrentReadIndex; info->Inbound.ReadIndex = debug_info.Inbound.CurrentReadIndex;
info->Inbound.WriteIndex = debugInfo.Inbound.CurrentWriteIndex; info->Inbound.WriteIndex = debug_info.Inbound.CurrentWriteIndex;
info->Inbound.BytesAvailToRead = debugInfo.Inbound.BytesAvailToRead; info->Inbound.BytesAvailToRead = debug_info.Inbound.BytesAvailToRead;
info->Inbound.BytesAvailToWrite = debugInfo.Inbound.BytesAvailToWrite; info->Inbound.BytesAvailToWrite = debug_info.Inbound.BytesAvailToWrite;
info->Outbound.InterruptMask = debugInfo.Outbound.CurrentInterruptMask; info->Outbound.InterruptMask = debug_info.Outbound.CurrentInterruptMask;
info->Outbound.ReadIndex = debugInfo.Outbound.CurrentReadIndex; info->Outbound.ReadIndex = debug_info.Outbound.CurrentReadIndex;
info->Outbound.WriteIndex = debugInfo.Outbound.CurrentWriteIndex; info->Outbound.WriteIndex = debug_info.Outbound.CurrentWriteIndex;
info->Outbound.BytesAvailToRead = debugInfo.Outbound.BytesAvailToRead; info->Outbound.BytesAvailToRead = debug_info.Outbound.BytesAvailToRead;
info->Outbound.BytesAvailToWrite = debugInfo.Outbound.BytesAvailToWrite; 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