Lines Matching refs:hv_dev

169 	struct hv_device *hv_dev = device_to_hv_device(dev);  in id_show()  local
171 if (!hv_dev->channel) in id_show()
173 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.child_relid); in id_show()
180 struct hv_device *hv_dev = device_to_hv_device(dev); in state_show() local
182 if (!hv_dev->channel) in state_show()
184 return sprintf(buf, "%d\n", hv_dev->channel->state); in state_show()
191 struct hv_device *hv_dev = device_to_hv_device(dev); in monitor_id_show() local
193 if (!hv_dev->channel) in monitor_id_show()
195 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.monitorid); in monitor_id_show()
202 struct hv_device *hv_dev = device_to_hv_device(dev); in class_id_show() local
204 if (!hv_dev->channel) in class_id_show()
207 &hv_dev->channel->offermsg.offer.if_type); in class_id_show()
214 struct hv_device *hv_dev = device_to_hv_device(dev); in device_id_show() local
216 if (!hv_dev->channel) in device_id_show()
219 &hv_dev->channel->offermsg.offer.if_instance); in device_id_show()
226 struct hv_device *hv_dev = device_to_hv_device(dev); in modalias_show() local
228 return sprintf(buf, "vmbus:%*phN\n", UUID_SIZE, &hv_dev->dev_type); in modalias_show()
236 struct hv_device *hv_dev = device_to_hv_device(dev); in numa_node_show() local
238 if (!hv_dev->channel) in numa_node_show()
241 return sprintf(buf, "%d\n", cpu_to_node(hv_dev->channel->target_cpu)); in numa_node_show()
250 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_pending_show() local
252 if (!hv_dev->channel) in server_monitor_pending_show()
255 channel_pending(hv_dev->channel, in server_monitor_pending_show()
264 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_pending_show() local
266 if (!hv_dev->channel) in client_monitor_pending_show()
269 channel_pending(hv_dev->channel, in client_monitor_pending_show()
278 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_latency_show() local
280 if (!hv_dev->channel) in server_monitor_latency_show()
283 channel_latency(hv_dev->channel, in server_monitor_latency_show()
292 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_latency_show() local
294 if (!hv_dev->channel) in client_monitor_latency_show()
297 channel_latency(hv_dev->channel, in client_monitor_latency_show()
306 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_conn_id_show() local
308 if (!hv_dev->channel) in server_monitor_conn_id_show()
311 channel_conn_id(hv_dev->channel, in server_monitor_conn_id_show()
320 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_conn_id_show() local
322 if (!hv_dev->channel) in client_monitor_conn_id_show()
325 channel_conn_id(hv_dev->channel, in client_monitor_conn_id_show()
333 struct hv_device *hv_dev = device_to_hv_device(dev); in out_intr_mask_show() local
337 if (!hv_dev->channel) in out_intr_mask_show()
340 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_intr_mask_show()
352 struct hv_device *hv_dev = device_to_hv_device(dev); in out_read_index_show() local
356 if (!hv_dev->channel) in out_read_index_show()
359 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_read_index_show()
371 struct hv_device *hv_dev = device_to_hv_device(dev); in out_write_index_show() local
375 if (!hv_dev->channel) in out_write_index_show()
378 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_write_index_show()
390 struct hv_device *hv_dev = device_to_hv_device(dev); in out_read_bytes_avail_show() local
394 if (!hv_dev->channel) in out_read_bytes_avail_show()
397 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_read_bytes_avail_show()
409 struct hv_device *hv_dev = device_to_hv_device(dev); in out_write_bytes_avail_show() local
413 if (!hv_dev->channel) in out_write_bytes_avail_show()
416 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_write_bytes_avail_show()
427 struct hv_device *hv_dev = device_to_hv_device(dev); in in_intr_mask_show() local
431 if (!hv_dev->channel) in in_intr_mask_show()
434 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_intr_mask_show()
445 struct hv_device *hv_dev = device_to_hv_device(dev); in in_read_index_show() local
449 if (!hv_dev->channel) in in_read_index_show()
452 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_read_index_show()
463 struct hv_device *hv_dev = device_to_hv_device(dev); in in_write_index_show() local
467 if (!hv_dev->channel) in in_write_index_show()
470 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_write_index_show()
482 struct hv_device *hv_dev = device_to_hv_device(dev); in in_read_bytes_avail_show() local
486 if (!hv_dev->channel) in in_read_bytes_avail_show()
489 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_read_bytes_avail_show()
501 struct hv_device *hv_dev = device_to_hv_device(dev); in in_write_bytes_avail_show() local
505 if (!hv_dev->channel) in in_write_bytes_avail_show()
508 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_write_bytes_avail_show()
520 struct hv_device *hv_dev = device_to_hv_device(dev); in channel_vp_mapping_show() local
521 struct vmbus_channel *channel = hv_dev->channel, *cur_sc; in channel_vp_mapping_show()
556 struct hv_device *hv_dev = device_to_hv_device(dev); in vendor_show() local
558 return sprintf(buf, "0x%x\n", hv_dev->vendor_id); in vendor_show()
566 struct hv_device *hv_dev = device_to_hv_device(dev); in device_show() local
568 return sprintf(buf, "0x%x\n", hv_dev->device_id); in device_show()
576 struct hv_device *hv_dev = device_to_hv_device(dev); in driver_override_store() local
592 old = hv_dev->driver_override; in driver_override_store()
594 hv_dev->driver_override = driver_override; in driver_override_store()
597 hv_dev->driver_override = NULL; in driver_override_store()
609 struct hv_device *hv_dev = device_to_hv_device(dev); in driver_override_show() local
613 len = snprintf(buf, PAGE_SIZE, "%s\n", hv_dev->driver_override); in driver_override_show()
662 const struct hv_device *hv_dev = device_to_hv_device(dev); in vmbus_dev_attr_is_visible() local
665 if (!hv_dev->channel->offermsg.monitor_allocated && in vmbus_dev_attr_is_visible()
884 struct hv_device *hv_dev = device_to_hv_device(device); in vmbus_match() local
887 if (is_hvsock_channel(hv_dev->channel)) in vmbus_match()
890 if (hv_vmbus_get_id(drv, hv_dev)) in vmbus_match()
1004 struct hv_device *hv_dev = device_to_hv_device(device); in vmbus_device_release() local
1005 struct vmbus_channel *channel = hv_dev->channel; in vmbus_device_release()
1007 hv_debug_rm_dev_dir(hv_dev); in vmbus_device_release()
1012 kfree(hv_dev); in vmbus_device_release()