diff options
-rw-r--r-- | drivers/staging/hv/osd.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/drivers/staging/hv/osd.c b/drivers/staging/hv/osd.c index 8c3eb278a81..b39ec250aef 100644 --- a/drivers/staging/hv/osd.c +++ b/drivers/staging/hv/osd.c | |||
@@ -130,9 +130,9 @@ EXPORT_SYMBOL_GPL(osd_WaitEventCreate); | |||
130 | 130 | ||
131 | /** | 131 | /** |
132 | * osd_WaitEventSet() - Wake up the process | 132 | * osd_WaitEventSet() - Wake up the process |
133 | * @waitEvent: Structure to event to be woken up | 133 | * @wait_event: Structure to event to be woken up |
134 | * | 134 | * |
135 | * @waitevent is of type &struct osd_waitevent | 135 | * @wait_event is of type &struct osd_waitevent |
136 | * | 136 | * |
137 | * Wake up the sleeping process so it can do some work. | 137 | * Wake up the sleeping process so it can do some work. |
138 | * And set condition indicator in &struct osd_waitevent to indicate | 138 | * And set condition indicator in &struct osd_waitevent to indicate |
@@ -140,18 +140,18 @@ EXPORT_SYMBOL_GPL(osd_WaitEventCreate); | |||
140 | * | 140 | * |
141 | * Only used by Network and Storage Hyper-V drivers. | 141 | * Only used by Network and Storage Hyper-V drivers. |
142 | */ | 142 | */ |
143 | void osd_WaitEventSet(struct osd_waitevent *waitEvent) | 143 | void osd_WaitEventSet(struct osd_waitevent *wait_event) |
144 | { | 144 | { |
145 | waitEvent->condition = 1; | 145 | wait_event->condition = 1; |
146 | wake_up_interruptible(&waitEvent->event); | 146 | wake_up_interruptible(&wait_event->event); |
147 | } | 147 | } |
148 | EXPORT_SYMBOL_GPL(osd_WaitEventSet); | 148 | EXPORT_SYMBOL_GPL(osd_WaitEventSet); |
149 | 149 | ||
150 | /** | 150 | /** |
151 | * osd_WaitEventWait() - Wait for event till condition is true | 151 | * osd_WaitEventWait() - Wait for event till condition is true |
152 | * @waitEvent: Structure to event to be put to sleep | 152 | * @wait_event: Structure to event to be put to sleep |
153 | * | 153 | * |
154 | * @waitevent is of type &struct osd_waitevent | 154 | * @wait_event is of type &struct osd_waitevent |
155 | * | 155 | * |
156 | * Set up the process to sleep until waitEvent->condition get true. | 156 | * Set up the process to sleep until waitEvent->condition get true. |
157 | * And set condition indicator in &struct osd_waitevent to indicate | 157 | * And set condition indicator in &struct osd_waitevent to indicate |
@@ -161,25 +161,25 @@ EXPORT_SYMBOL_GPL(osd_WaitEventSet); | |||
161 | * | 161 | * |
162 | * Mainly used by Hyper-V drivers. | 162 | * Mainly used by Hyper-V drivers. |
163 | */ | 163 | */ |
164 | int osd_WaitEventWait(struct osd_waitevent *waitEvent) | 164 | int osd_WaitEventWait(struct osd_waitevent *wait_event) |
165 | { | 165 | { |
166 | int ret = 0; | 166 | int ret = 0; |
167 | 167 | ||
168 | ret = wait_event_interruptible(waitEvent->event, | 168 | ret = wait_event_interruptible(wait_event->event, |
169 | waitEvent->condition); | 169 | wait_event->condition); |
170 | waitEvent->condition = 0; | 170 | wait_event->condition = 0; |
171 | return ret; | 171 | return ret; |
172 | } | 172 | } |
173 | EXPORT_SYMBOL_GPL(osd_WaitEventWait); | 173 | EXPORT_SYMBOL_GPL(osd_WaitEventWait); |
174 | 174 | ||
175 | /** | 175 | /** |
176 | * osd_WaitEventWaitEx() - Wait for event or timeout for process wakeup | 176 | * osd_WaitEventWaitEx() - Wait for event or timeout for process wakeup |
177 | * @waitEvent: Structure to event to be put to sleep | 177 | * @wait_event: Structure to event to be put to sleep |
178 | * @TimeoutInMs: Total number of Milliseconds to wait before waking up | 178 | * @timeout_in_ms: Total number of Milliseconds to wait before waking up |
179 | * | 179 | * |
180 | * @waitevent is of type &struct osd_waitevent | 180 | * @wait_event is of type &struct osd_waitevent |
181 | * Set up the process to sleep until @waitEvent->condition get true or | 181 | * Set up the process to sleep until @waitEvent->condition get true or |
182 | * @TimeoutInMs (Time out in Milliseconds) has been reached. | 182 | * @timeout_in_ms (Time out in Milliseconds) has been reached. |
183 | * And set condition indicator in &struct osd_waitevent to indicate | 183 | * And set condition indicator in &struct osd_waitevent to indicate |
184 | * the process is in a sleeping state. | 184 | * the process is in a sleeping state. |
185 | * | 185 | * |
@@ -187,14 +187,14 @@ EXPORT_SYMBOL_GPL(osd_WaitEventWait); | |||
187 | * | 187 | * |
188 | * Mainly used by Hyper-V drivers. | 188 | * Mainly used by Hyper-V drivers. |
189 | */ | 189 | */ |
190 | int osd_WaitEventWaitEx(struct osd_waitevent *waitEvent, u32 TimeoutInMs) | 190 | int osd_WaitEventWaitEx(struct osd_waitevent *wait_event, u32 timeout_in_ms) |
191 | { | 191 | { |
192 | int ret = 0; | 192 | int ret = 0; |
193 | 193 | ||
194 | ret = wait_event_interruptible_timeout(waitEvent->event, | 194 | ret = wait_event_interruptible_timeout(wait_event->event, |
195 | waitEvent->condition, | 195 | wait_event->condition, |
196 | msecs_to_jiffies(TimeoutInMs)); | 196 | msecs_to_jiffies(timeout_in_ms)); |
197 | waitEvent->condition = 0; | 197 | wait_event->condition = 0; |
198 | return ret; | 198 | return ret; |
199 | } | 199 | } |
200 | EXPORT_SYMBOL_GPL(osd_WaitEventWaitEx); | 200 | EXPORT_SYMBOL_GPL(osd_WaitEventWaitEx); |