Lines Matching refs:hv_dev

170 	struct hv_device *hv_dev = device_to_hv_device(dev);  in id_show()  local
172 if (!hv_dev->channel) in id_show()
174 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.child_relid); in id_show()
181 struct hv_device *hv_dev = device_to_hv_device(dev); in state_show() local
183 if (!hv_dev->channel) in state_show()
185 return sprintf(buf, "%d\n", hv_dev->channel->state); in state_show()
192 struct hv_device *hv_dev = device_to_hv_device(dev); in monitor_id_show() local
194 if (!hv_dev->channel) in monitor_id_show()
196 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.monitorid); in monitor_id_show()
203 struct hv_device *hv_dev = device_to_hv_device(dev); in class_id_show() local
205 if (!hv_dev->channel) in class_id_show()
208 &hv_dev->channel->offermsg.offer.if_type); in class_id_show()
215 struct hv_device *hv_dev = device_to_hv_device(dev); in device_id_show() local
217 if (!hv_dev->channel) in device_id_show()
220 &hv_dev->channel->offermsg.offer.if_instance); in device_id_show()
227 struct hv_device *hv_dev = device_to_hv_device(dev); in modalias_show() local
229 return sprintf(buf, "vmbus:%*phN\n", UUID_SIZE, &hv_dev->dev_type); in modalias_show()
237 struct hv_device *hv_dev = device_to_hv_device(dev); in numa_node_show() local
239 if (!hv_dev->channel) in numa_node_show()
242 return sprintf(buf, "%d\n", cpu_to_node(hv_dev->channel->target_cpu)); in numa_node_show()
251 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_pending_show() local
253 if (!hv_dev->channel) in server_monitor_pending_show()
256 channel_pending(hv_dev->channel, in server_monitor_pending_show()
265 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_pending_show() local
267 if (!hv_dev->channel) in client_monitor_pending_show()
270 channel_pending(hv_dev->channel, in client_monitor_pending_show()
279 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_latency_show() local
281 if (!hv_dev->channel) in server_monitor_latency_show()
284 channel_latency(hv_dev->channel, in server_monitor_latency_show()
293 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_latency_show() local
295 if (!hv_dev->channel) in client_monitor_latency_show()
298 channel_latency(hv_dev->channel, in client_monitor_latency_show()
307 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_conn_id_show() local
309 if (!hv_dev->channel) in server_monitor_conn_id_show()
312 channel_conn_id(hv_dev->channel, in server_monitor_conn_id_show()
321 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_conn_id_show() local
323 if (!hv_dev->channel) in client_monitor_conn_id_show()
326 channel_conn_id(hv_dev->channel, in client_monitor_conn_id_show()
334 struct hv_device *hv_dev = device_to_hv_device(dev); in out_intr_mask_show() local
338 if (!hv_dev->channel) in out_intr_mask_show()
341 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_intr_mask_show()
353 struct hv_device *hv_dev = device_to_hv_device(dev); in out_read_index_show() local
357 if (!hv_dev->channel) in out_read_index_show()
360 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_read_index_show()
372 struct hv_device *hv_dev = device_to_hv_device(dev); in out_write_index_show() local
376 if (!hv_dev->channel) in out_write_index_show()
379 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_write_index_show()
391 struct hv_device *hv_dev = device_to_hv_device(dev); in out_read_bytes_avail_show() local
395 if (!hv_dev->channel) in out_read_bytes_avail_show()
398 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_read_bytes_avail_show()
410 struct hv_device *hv_dev = device_to_hv_device(dev); in out_write_bytes_avail_show() local
414 if (!hv_dev->channel) in out_write_bytes_avail_show()
417 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_write_bytes_avail_show()
428 struct hv_device *hv_dev = device_to_hv_device(dev); in in_intr_mask_show() local
432 if (!hv_dev->channel) in in_intr_mask_show()
435 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_intr_mask_show()
446 struct hv_device *hv_dev = device_to_hv_device(dev); in in_read_index_show() local
450 if (!hv_dev->channel) in in_read_index_show()
453 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_read_index_show()
464 struct hv_device *hv_dev = device_to_hv_device(dev); in in_write_index_show() local
468 if (!hv_dev->channel) in in_write_index_show()
471 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_write_index_show()
483 struct hv_device *hv_dev = device_to_hv_device(dev); in in_read_bytes_avail_show() local
487 if (!hv_dev->channel) in in_read_bytes_avail_show()
490 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_read_bytes_avail_show()
502 struct hv_device *hv_dev = device_to_hv_device(dev); in in_write_bytes_avail_show() local
506 if (!hv_dev->channel) in in_write_bytes_avail_show()
509 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_write_bytes_avail_show()
521 struct hv_device *hv_dev = device_to_hv_device(dev); in channel_vp_mapping_show() local
522 struct vmbus_channel *channel = hv_dev->channel, *cur_sc; in channel_vp_mapping_show()
557 struct hv_device *hv_dev = device_to_hv_device(dev); in vendor_show() local
559 return sprintf(buf, "0x%x\n", hv_dev->vendor_id); in vendor_show()
567 struct hv_device *hv_dev = device_to_hv_device(dev); in device_show() local
569 return sprintf(buf, "0x%x\n", hv_dev->device_id); in device_show()
577 struct hv_device *hv_dev = device_to_hv_device(dev); in driver_override_store() local
580 ret = driver_set_override(dev, &hv_dev->driver_override, buf, count); in driver_override_store()
590 struct hv_device *hv_dev = device_to_hv_device(dev); in driver_override_show() local
594 len = snprintf(buf, PAGE_SIZE, "%s\n", hv_dev->driver_override); in driver_override_show()
643 const struct hv_device *hv_dev = device_to_hv_device(dev); in vmbus_dev_attr_is_visible() local
646 if (!hv_dev->channel->offermsg.monitor_allocated && in vmbus_dev_attr_is_visible()
865 struct hv_device *hv_dev = device_to_hv_device(device); in vmbus_match() local
868 if (is_hvsock_channel(hv_dev->channel)) in vmbus_match()
871 if (hv_vmbus_get_id(drv, hv_dev)) in vmbus_match()
1000 struct hv_device *hv_dev = device_to_hv_device(device); in vmbus_device_release() local
1001 struct vmbus_channel *channel = hv_dev->channel; in vmbus_device_release()
1003 hv_debug_rm_dev_dir(hv_dev); in vmbus_device_release()
1008 kfree(hv_dev); in vmbus_device_release()