Lines Matching refs:hv_dev

48 static struct device  *hv_dev;
85 if (hv_dev == NULL)
130 struct hv_device *hv_dev = device_to_hv_device(dev);
132 if (!hv_dev->channel)
134 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.child_relid);
141 struct hv_device *hv_dev = device_to_hv_device(dev);
143 if (!hv_dev->channel)
145 return sprintf(buf, "%d\n", hv_dev->channel->state);
152 struct hv_device *hv_dev = device_to_hv_device(dev);
154 if (!hv_dev->channel)
156 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.monitorid);
163 struct hv_device *hv_dev = device_to_hv_device(dev);
165 if (!hv_dev->channel)
168 &hv_dev->channel->offermsg.offer.if_type);
175 struct hv_device *hv_dev = device_to_hv_device(dev);
177 if (!hv_dev->channel)
180 &hv_dev->channel->offermsg.offer.if_instance);
187 struct hv_device *hv_dev = device_to_hv_device(dev);
189 return sprintf(buf, "vmbus:%*phN\n", UUID_SIZE, &hv_dev->dev_type);
197 struct hv_device *hv_dev = device_to_hv_device(dev);
199 if (!hv_dev->channel)
202 return sprintf(buf, "%d\n", cpu_to_node(hv_dev->channel->target_cpu));
211 struct hv_device *hv_dev = device_to_hv_device(dev);
213 if (!hv_dev->channel)
216 channel_pending(hv_dev->channel,
225 struct hv_device *hv_dev = device_to_hv_device(dev);
227 if (!hv_dev->channel)
230 channel_pending(hv_dev->channel,
239 struct hv_device *hv_dev = device_to_hv_device(dev);
241 if (!hv_dev->channel)
244 channel_latency(hv_dev->channel,
253 struct hv_device *hv_dev = device_to_hv_device(dev);
255 if (!hv_dev->channel)
258 channel_latency(hv_dev->channel,
267 struct hv_device *hv_dev = device_to_hv_device(dev);
269 if (!hv_dev->channel)
272 channel_conn_id(hv_dev->channel,
281 struct hv_device *hv_dev = device_to_hv_device(dev);
283 if (!hv_dev->channel)
286 channel_conn_id(hv_dev->channel,
294 struct hv_device *hv_dev = device_to_hv_device(dev);
298 if (!hv_dev->channel)
301 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound,
313 struct hv_device *hv_dev = device_to_hv_device(dev);
317 if (!hv_dev->channel)
320 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound,
332 struct hv_device *hv_dev = device_to_hv_device(dev);
336 if (!hv_dev->channel)
339 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound,
351 struct hv_device *hv_dev = device_to_hv_device(dev);
355 if (!hv_dev->channel)
358 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound,
370 struct hv_device *hv_dev = device_to_hv_device(dev);
374 if (!hv_dev->channel)
377 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound,
388 struct hv_device *hv_dev = device_to_hv_device(dev);
392 if (!hv_dev->channel)
395 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound);
406 struct hv_device *hv_dev = device_to_hv_device(dev);
410 if (!hv_dev->channel)
413 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound);
424 struct hv_device *hv_dev = device_to_hv_device(dev);
428 if (!hv_dev->channel)
431 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound);
443 struct hv_device *hv_dev = device_to_hv_device(dev);
447 if (!hv_dev->channel)
450 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound);
462 struct hv_device *hv_dev = device_to_hv_device(dev);
466 if (!hv_dev->channel)
469 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound);
481 struct hv_device *hv_dev = device_to_hv_device(dev);
482 struct vmbus_channel *channel = hv_dev->channel, *cur_sc;
517 struct hv_device *hv_dev = device_to_hv_device(dev);
519 return sprintf(buf, "0x%x\n", hv_dev->vendor_id);
527 struct hv_device *hv_dev = device_to_hv_device(dev);
529 return sprintf(buf, "0x%x\n", hv_dev->device_id);
537 struct hv_device *hv_dev = device_to_hv_device(dev);
540 ret = driver_set_override(dev, &hv_dev->driver_override, buf, count);
550 struct hv_device *hv_dev = device_to_hv_device(dev);
554 len = snprintf(buf, PAGE_SIZE, "%s\n", hv_dev->driver_override);
603 const struct hv_device *hv_dev = device_to_hv_device(dev);
606 if (!hv_dev->channel->offermsg.monitor_allocated &&
825 struct hv_device *hv_dev = device_to_hv_device(device);
828 if (is_hvsock_channel(hv_dev->channel))
831 if (hv_vmbus_get_id(drv, hv_dev))
874 device_get_dma_attr(hv_dev) == DEV_DMA_COHERENT);
960 struct hv_device *hv_dev = device_to_hv_device(device);
961 struct vmbus_channel *channel = hv_dev->channel;
963 hv_debug_rm_dev_dir(hv_dev);
968 kfree(hv_dev);
1905 child_device_obj->device.parent = hv_dev;
2264 hv_dev = &device->dev;
2325 hv_dev = &pdev->dev;
2638 if (!hv_dev) {
2669 hv_dev = NULL;