Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: hv: Convert camel cased functions in hv.c to lower cases

staging: hv: Convert camel cased functions in hv.c 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>

authored by

Haiyang Zhang and committed by
Greg Kroah-Hartman
d44890c8 b8dfb264

+41 -38
+2 -2
drivers/staging/hv/connection.c
··· 311 311 312 312 connId.asu32 = 0; 313 313 connId.u.id = VMBUS_MESSAGE_CONNECTION_ID; 314 - return HvPostMessage(connId, 1, buffer, bufferLen); 314 + return hv_post_message(connId, 1, buffer, bufferLen); 315 315 } 316 316 317 317 /* ··· 324 324 (unsigned long *)gVmbusConnection.SendInterruptPage + 325 325 (childRelId >> 5)); 326 326 327 - return HvSignalEvent(); 327 + return hv_signal_event(); 328 328 }
+25 -22
drivers/staging/hv/hv.c
··· 36 36 }; 37 37 38 38 /* 39 - * HvQueryHypervisorPresence - Query the cpuid for presense of windows hypervisor 39 + * query_hypervisor_presence 40 + * - Query the cpuid for presense of windows hypervisor 40 41 */ 41 - static int HvQueryHypervisorPresence(void) 42 + static int query_hypervisor_presence(void) 42 43 { 43 44 unsigned int eax; 44 45 unsigned int ebx; ··· 58 57 } 59 58 60 59 /* 61 - * HvQueryHypervisorInfo - Get version info of the windows hypervisor 60 + * query_hypervisor_info - Get version info of the windows hypervisor 62 61 */ 63 - static int HvQueryHypervisorInfo(void) 62 + static int query_hypervisor_info(void) 64 63 { 65 64 unsigned int eax; 66 65 unsigned int ebx; ··· 127 126 } 128 127 129 128 /* 130 - * HvDoHypercall - Invoke the specified hypercall 129 + * do_hypercall- Invoke the specified hypercall 131 130 */ 132 - static u64 HvDoHypercall(u64 control, void *input, void *output) 131 + static u64 do_hypercall(u64 control, void *input, void *output) 133 132 { 134 133 #ifdef CONFIG_X86_64 135 134 u64 hv_status = 0; ··· 182 181 } 183 182 184 183 /* 185 - * HvInit - Main initialization routine. 184 + * hv_init - Main initialization routine. 186 185 * 187 186 * This routine must be called before any other routines in here are called 188 187 */ 189 - int HvInit(void) 188 + int hv_init(void) 190 189 { 191 190 int ret = 0; 192 191 int max_leaf; ··· 197 196 memset(hv_context.synic_message_page, 0, 198 197 sizeof(void *) * MAX_NUM_CPUS); 199 198 200 - if (!HvQueryHypervisorPresence()) { 199 + if (!query_hypervisor_presence()) { 201 200 DPRINT_ERR(VMBUS, "No Windows hypervisor detected!!"); 202 201 goto Cleanup; 203 202 } ··· 205 204 DPRINT_INFO(VMBUS, 206 205 "Windows hypervisor detected! Retrieving more info..."); 207 206 208 - max_leaf = HvQueryHypervisorInfo(); 207 + max_leaf = query_hypervisor_info(); 209 208 /* HvQueryHypervisorFeatures(maxLeaf); */ 210 209 211 210 /* ··· 292 291 } 293 292 294 293 /* 295 - * HvCleanup - Cleanup routine. 294 + * hv_cleanup - Cleanup routine. 296 295 * 297 296 * This routine is called normally during driver unloading or exiting. 298 297 */ 299 - void HvCleanup(void) 298 + void hv_cleanup(void) 300 299 { 301 300 union hv_x64_msr_hypercall_contents hypercall_msr; 302 301 ··· 313 312 } 314 313 315 314 /* 316 - * HvPostMessage - Post a message using the hypervisor message IPC. 315 + * hv_post_message - Post a message using the hypervisor message IPC. 317 316 * 318 317 * This involves a hypercall. 319 318 */ 320 - u16 HvPostMessage(union hv_connection_id connection_id, 319 + u16 hv_post_message(union hv_connection_id connection_id, 321 320 enum hv_message_type message_type, 322 321 void *payload, size_t payload_size) 323 322 { ··· 345 344 aligned_msg->payload_size = payload_size; 346 345 memcpy((void *)aligned_msg->payload, payload, payload_size); 347 346 348 - status = HvDoHypercall(HVCALL_POST_MESSAGE, aligned_msg, NULL) & 0xFFFF; 347 + status = do_hypercall(HVCALL_POST_MESSAGE, aligned_msg, NULL) 348 + & 0xFFFF; 349 349 350 350 kfree((void *)addr); 351 351 ··· 355 353 356 354 357 355 /* 358 - * HvSignalEvent - Signal an event on the specified connection using the hypervisor event IPC. 356 + * hv_signal_event - 357 + * Signal an event on the specified connection using the hypervisor event IPC. 359 358 * 360 359 * This involves a hypercall. 361 360 */ 362 - u16 HvSignalEvent(void) 361 + u16 hv_signal_event(void) 363 362 { 364 363 u16 status; 365 364 366 - status = HvDoHypercall(HVCALL_SIGNAL_EVENT, 365 + status = do_hypercall(HVCALL_SIGNAL_EVENT, 367 366 hv_context.signal_event_param, 368 367 NULL) & 0xFFFF; 369 368 return status; 370 369 } 371 370 372 371 /* 373 - * HvSynicInit - Initialize the Synthethic Interrupt Controller. 372 + * hv_synic_init - Initialize the Synthethic Interrupt Controller. 374 373 * 375 374 * If it is already initialized by another entity (ie x2v shim), we need to 376 375 * retrieve the initialized message and event pages. Otherwise, we create and 377 376 * initialize the message and event pages. 378 377 */ 379 - void HvSynicInit(void *irqarg) 378 + void hv_synic_init(void *irqarg) 380 379 { 381 380 u64 version; 382 381 union hv_synic_simp simp; ··· 470 467 } 471 468 472 469 /* 473 - * HvSynicCleanup - Cleanup routine for HvSynicInit(). 470 + * hv_synic_cleanup - Cleanup routine for hv_synic_init(). 474 471 */ 475 - void HvSynicCleanup(void *arg) 472 + void hv_synic_cleanup(void *arg) 476 473 { 477 474 union hv_synic_sint shared_sint; 478 475 union hv_synic_simp simp;
+8 -8
drivers/staging/hv/hv.h
··· 123 123 124 124 /* Hv Interface */ 125 125 126 - extern int HvInit(void); 126 + extern int hv_init(void); 127 127 128 - extern void HvCleanup(void); 128 + extern void hv_cleanup(void); 129 129 130 - extern u16 HvPostMessage(union hv_connection_id connectionId, 131 - enum hv_message_type messageType, 132 - void *payload, size_t payloadSize); 130 + extern u16 hv_post_message(union hv_connection_id connection_id, 131 + enum hv_message_type message_type, 132 + void *payload, size_t payload_size); 133 133 134 - extern u16 HvSignalEvent(void); 134 + extern u16 hv_signal_event(void); 135 135 136 - extern void HvSynicInit(void *irqarg); 136 + extern void hv_synic_init(void *irqarg); 137 137 138 - extern void HvSynicCleanup(void *arg); 138 + extern void hv_synic_cleanup(void *arg); 139 139 140 140 #endif /* __HV_H__ */
+2 -2
drivers/staging/hv/hv_api.h
··· 836 836 HVCALL_SIGNAL_EVENT = 0x005d, 837 837 }; 838 838 839 - /* Definition of the HvPostMessage hypercall input structure. */ 839 + /* Definition of the hv_post_message hypercall input structure. */ 840 840 struct hv_input_post_message { 841 841 union hv_connection_id connectionid; 842 842 u32 reserved; ··· 845 845 u64 payload[HV_MESSAGE_PAYLOAD_QWORD_COUNT]; 846 846 }; 847 847 848 - /* Definition of the HvSignalEvent hypercall input structure. */ 848 + /* Definition of the hv_signal_event hypercall input structure. */ 849 849 struct hv_input_signal_event { 850 850 union hv_connection_id connectionid; 851 851 u16 flag_number;
+4 -4
drivers/staging/hv/vmbus.c
··· 109 109 110 110 /* strcpy(dev->name, "vmbus"); */ 111 111 /* SynIC setup... */ 112 - on_each_cpu(HvSynicInit, (void *)irqvector, 1); 112 + on_each_cpu(hv_synic_init, (void *)irqvector, 1); 113 113 114 114 /* Connect to VMBus in the root partition */ 115 115 ret = VmbusConnect(); ··· 127 127 128 128 vmbus_release_unattached_channels(); 129 129 VmbusDisconnect(); 130 - on_each_cpu(HvSynicCleanup, NULL, 1); 130 + on_each_cpu(hv_synic_cleanup, NULL, 1); 131 131 return ret; 132 132 } 133 133 ··· 138 138 { 139 139 /* struct vmbus_driver *driver = (struct vmbus_driver *)drv; */ 140 140 141 - HvCleanup(); 141 + hv_cleanup(); 142 142 } 143 143 144 144 /* ··· 264 264 driver->GetChannelOffers = VmbusGetChannelOffers; 265 265 266 266 /* Hypervisor initialization...setup hypercall page..etc */ 267 - ret = HvInit(); 267 + ret = hv_init(); 268 268 if (ret != 0) 269 269 DPRINT_ERR(VMBUS, "Unable to initialize the hypervisor - 0x%x", 270 270 ret);