staging: hv: Convert camel cased struct fields in vmbus_channel_interface.h to lower cases
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
ca623ad355
commit
767dff6853
3 changed files with 25 additions and 25 deletions
|
@ -128,9 +128,9 @@ void vmbus_get_debug_info(struct vmbus_channel *channel,
|
||||||
debuginfo->relid = channel->offermsg.child_relid;
|
debuginfo->relid = channel->offermsg.child_relid;
|
||||||
debuginfo->state = channel->state;
|
debuginfo->state = channel->state;
|
||||||
memcpy(&debuginfo->interfacetype,
|
memcpy(&debuginfo->interfacetype,
|
||||||
&channel->offermsg.offer.InterfaceType, sizeof(struct hv_guid));
|
&channel->offermsg.offer.if_type, sizeof(struct hv_guid));
|
||||||
memcpy(&debuginfo->interface_instance,
|
memcpy(&debuginfo->interface_instance,
|
||||||
&channel->offermsg.offer.InterfaceInstance,
|
&channel->offermsg.offer.if_instance,
|
||||||
sizeof(struct hv_guid));
|
sizeof(struct hv_guid));
|
||||||
|
|
||||||
monitorpage = (struct hv_monitor_page *)vmbus_connection.MonitorPages;
|
monitorpage = (struct hv_monitor_page *)vmbus_connection.MonitorPages;
|
||||||
|
|
|
@ -364,11 +364,11 @@ static void vmbus_process_offer(struct work_struct *work)
|
||||||
spin_lock_irqsave(&vmbus_connection.channel_lock, flags);
|
spin_lock_irqsave(&vmbus_connection.channel_lock, flags);
|
||||||
|
|
||||||
list_for_each_entry(channel, &vmbus_connection.ChannelList, listentry) {
|
list_for_each_entry(channel, &vmbus_connection.ChannelList, listentry) {
|
||||||
if (!memcmp(&channel->offermsg.offer.InterfaceType,
|
if (!memcmp(&channel->offermsg.offer.if_type,
|
||||||
&newchannel->offermsg.offer.InterfaceType,
|
&newchannel->offermsg.offer.if_type,
|
||||||
sizeof(struct hv_guid)) &&
|
sizeof(struct hv_guid)) &&
|
||||||
!memcmp(&channel->offermsg.offer.InterfaceInstance,
|
!memcmp(&channel->offermsg.offer.if_instance,
|
||||||
&newchannel->offermsg.offer.InterfaceInstance,
|
&newchannel->offermsg.offer.if_instance,
|
||||||
sizeof(struct hv_guid))) {
|
sizeof(struct hv_guid))) {
|
||||||
fnew = false;
|
fnew = false;
|
||||||
break;
|
break;
|
||||||
|
@ -394,8 +394,8 @@ static void vmbus_process_offer(struct work_struct *work)
|
||||||
* vmbus_child_dev_add()
|
* vmbus_child_dev_add()
|
||||||
*/
|
*/
|
||||||
newchannel->device_obj = vmbus_child_device_create(
|
newchannel->device_obj = vmbus_child_device_create(
|
||||||
&newchannel->offermsg.offer.InterfaceType,
|
&newchannel->offermsg.offer.if_type,
|
||||||
&newchannel->offermsg.offer.InterfaceInstance,
|
&newchannel->offermsg.offer.if_instance,
|
||||||
newchannel);
|
newchannel);
|
||||||
|
|
||||||
DPRINT_DBG(VMBUS, "child device object allocated - %p",
|
DPRINT_DBG(VMBUS, "child device object allocated - %p",
|
||||||
|
@ -427,7 +427,7 @@ static void vmbus_process_offer(struct work_struct *work)
|
||||||
|
|
||||||
/* Open IC channels */
|
/* Open IC channels */
|
||||||
for (cnt = 0; cnt < MAX_MSG_TYPES; cnt++) {
|
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,
|
&hv_cb_utils[cnt].data,
|
||||||
sizeof(struct hv_guid)) == 0 &&
|
sizeof(struct hv_guid)) == 0 &&
|
||||||
vmbus_open(newchannel, 2 * PAGE_SIZE,
|
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;
|
offer = (struct vmbus_channel_offer_channel *)hdr;
|
||||||
for (i = 0; i < MAX_NUM_DEVICE_CLASSES_SUPPORTED; i++) {
|
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) {
|
&gSupportedDeviceClasses[i], sizeof(struct hv_guid)) == 0) {
|
||||||
fsupported = 1;
|
fsupported = 1;
|
||||||
break;
|
break;
|
||||||
|
@ -474,8 +474,8 @@ static void vmbus_onoffer(struct vmbus_channel_message_header *hdr)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
guidtype = &offer->offer.InterfaceType;
|
guidtype = &offer->offer.if_type;
|
||||||
guidinstance = &offer->offer.InterfaceInstance;
|
guidinstance = &offer->offer.if_instance;
|
||||||
|
|
||||||
DPRINT_INFO(VMBUS, "Channel offer notification - "
|
DPRINT_INFO(VMBUS, "Channel offer notification - "
|
||||||
"child relid %d monitor id %d allocated %d, "
|
"child relid %d monitor id %d allocated %d, "
|
||||||
|
|
|
@ -48,19 +48,19 @@
|
||||||
* struct contains the fundamental information about an offer.
|
* struct contains the fundamental information about an offer.
|
||||||
*/
|
*/
|
||||||
struct vmbus_channel_offer {
|
struct vmbus_channel_offer {
|
||||||
struct hv_guid InterfaceType;
|
struct hv_guid if_type;
|
||||||
struct hv_guid InterfaceInstance;
|
struct hv_guid if_instance;
|
||||||
u64 InterruptLatencyIn100nsUnits;
|
u64 int_latency; /* in 100ns units */
|
||||||
u32 InterfaceRevision;
|
u32 if_revision;
|
||||||
u32 ServerContextAreaSize; /* in bytes */
|
u32 server_ctx_size; /* in bytes */
|
||||||
u16 ChannelFlags;
|
u16 chn_flags;
|
||||||
u16 MmioMegabytes; /* in bytes * 1024 * 1024 */
|
u16 mmio_megabytes; /* in bytes * 1024 * 1024 */
|
||||||
|
|
||||||
union {
|
union {
|
||||||
/* Non-pipes: The user has MAX_USER_DEFINED_BYTES bytes. */
|
/* Non-pipes: The user has MAX_USER_DEFINED_BYTES bytes. */
|
||||||
struct {
|
struct {
|
||||||
unsigned char UserDefined[MAX_USER_DEFINED_BYTES];
|
unsigned char user_def[MAX_USER_DEFINED_BYTES];
|
||||||
} Standard;
|
} std;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Pipes:
|
* Pipes:
|
||||||
|
@ -70,11 +70,11 @@ struct vmbus_channel_offer {
|
||||||
* use.
|
* use.
|
||||||
*/
|
*/
|
||||||
struct {
|
struct {
|
||||||
u32 PipeMode;
|
u32 pipe_mode;
|
||||||
unsigned char UserDefined[MAX_PIPE_USER_DEFINED_BYTES];
|
unsigned char user_def[MAX_PIPE_USER_DEFINED_BYTES];
|
||||||
} Pipe;
|
} pipe;
|
||||||
} u;
|
} u;
|
||||||
u32 Padding;
|
u32 padding;
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
/* Server Flags */
|
/* Server Flags */
|
||||||
|
|
Loading…
Reference in a new issue