Lines Matching refs:hv_dev

165 	struct hv_device *hv_dev = device_to_hv_device(dev);
167 if (!hv_dev->channel)
169 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.child_relid);
176 struct hv_device *hv_dev = device_to_hv_device(dev);
178 if (!hv_dev->channel)
180 return sprintf(buf, "%d\n", hv_dev->channel->state);
187 struct hv_device *hv_dev = device_to_hv_device(dev);
189 if (!hv_dev->channel)
191 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.monitorid);
198 struct hv_device *hv_dev = device_to_hv_device(dev);
200 if (!hv_dev->channel)
203 &hv_dev->channel->offermsg.offer.if_type);
210 struct hv_device *hv_dev = device_to_hv_device(dev);
212 if (!hv_dev->channel)
215 &hv_dev->channel->offermsg.offer.if_instance);
222 struct hv_device *hv_dev = device_to_hv_device(dev);
224 return sprintf(buf, "vmbus:%*phN\n", UUID_SIZE, &hv_dev->dev_type);
232 struct hv_device *hv_dev = device_to_hv_device(dev);
234 if (!hv_dev->channel)
237 return sprintf(buf, "%d\n", cpu_to_node(hv_dev->channel->target_cpu));
246 struct hv_device *hv_dev = device_to_hv_device(dev);
248 if (!hv_dev->channel)
251 channel_pending(hv_dev->channel,
260 struct hv_device *hv_dev = device_to_hv_device(dev);
262 if (!hv_dev->channel)
265 channel_pending(hv_dev->channel,
274 struct hv_device *hv_dev = device_to_hv_device(dev);
276 if (!hv_dev->channel)
279 channel_latency(hv_dev->channel,
288 struct hv_device *hv_dev = device_to_hv_device(dev);
290 if (!hv_dev->channel)
293 channel_latency(hv_dev->channel,
302 struct hv_device *hv_dev = device_to_hv_device(dev);
304 if (!hv_dev->channel)
307 channel_conn_id(hv_dev->channel,
316 struct hv_device *hv_dev = device_to_hv_device(dev);
318 if (!hv_dev->channel)
321 channel_conn_id(hv_dev->channel,
329 struct hv_device *hv_dev = device_to_hv_device(dev);
333 if (!hv_dev->channel)
336 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound,
348 struct hv_device *hv_dev = device_to_hv_device(dev);
352 if (!hv_dev->channel)
355 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound,
367 struct hv_device *hv_dev = device_to_hv_device(dev);
371 if (!hv_dev->channel)
374 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound,
386 struct hv_device *hv_dev = device_to_hv_device(dev);
390 if (!hv_dev->channel)
393 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound,
405 struct hv_device *hv_dev = device_to_hv_device(dev);
409 if (!hv_dev->channel)
412 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound,
423 struct hv_device *hv_dev = device_to_hv_device(dev);
427 if (!hv_dev->channel)
430 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound);
441 struct hv_device *hv_dev = device_to_hv_device(dev);
445 if (!hv_dev->channel)
448 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound);
459 struct hv_device *hv_dev = device_to_hv_device(dev);
463 if (!hv_dev->channel)
466 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound);
478 struct hv_device *hv_dev = device_to_hv_device(dev);
482 if (!hv_dev->channel)
485 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound);
497 struct hv_device *hv_dev = device_to_hv_device(dev);
501 if (!hv_dev->channel)
504 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound);
516 struct hv_device *hv_dev = device_to_hv_device(dev);
517 struct vmbus_channel *channel = hv_dev->channel, *cur_sc;
552 struct hv_device *hv_dev = device_to_hv_device(dev);
553 return sprintf(buf, "0x%x\n", hv_dev->vendor_id);
561 struct hv_device *hv_dev = device_to_hv_device(dev);
562 return sprintf(buf, "0x%x\n", hv_dev->device_id);
570 struct hv_device *hv_dev = device_to_hv_device(dev);
586 old = hv_dev->driver_override;
588 hv_dev->driver_override = driver_override;
591 hv_dev->driver_override = NULL;
603 struct hv_device *hv_dev = device_to_hv_device(dev);
607 len = snprintf(buf, PAGE_SIZE, "%s\n", hv_dev->driver_override);
656 const struct hv_device *hv_dev = device_to_hv_device(dev);
659 if (!hv_dev->channel->offermsg.monitor_allocated &&
861 struct hv_device *hv_dev = device_to_hv_device(device);
864 if (is_hvsock_channel(hv_dev->channel))
867 if (hv_vmbus_get_id(drv, hv_dev))
984 struct hv_device *hv_dev = device_to_hv_device(device);
985 struct vmbus_channel *channel = hv_dev->channel;
987 hv_debug_rm_dev_dir(hv_dev);
992 kfree(hv_dev);