Lines Matching refs:hv_dev
103 static void print_alias_name(struct hv_device *hv_dev, char *alias_name) in print_alias_name() argument
107 sprintf(&alias_name[i], "%02x", hv_dev->dev_type.b[i/2]); in print_alias_name()
148 struct hv_device *hv_dev = device_to_hv_device(dev); in id_show() local
150 if (!hv_dev->channel) in id_show()
152 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.child_relid); in id_show()
159 struct hv_device *hv_dev = device_to_hv_device(dev); in state_show() local
161 if (!hv_dev->channel) in state_show()
163 return sprintf(buf, "%d\n", hv_dev->channel->state); in state_show()
170 struct hv_device *hv_dev = device_to_hv_device(dev); in monitor_id_show() local
172 if (!hv_dev->channel) in monitor_id_show()
174 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.monitorid); in monitor_id_show()
181 struct hv_device *hv_dev = device_to_hv_device(dev); in class_id_show() local
183 if (!hv_dev->channel) in class_id_show()
186 hv_dev->channel->offermsg.offer.if_type.b); in class_id_show()
193 struct hv_device *hv_dev = device_to_hv_device(dev); in device_id_show() local
195 if (!hv_dev->channel) in device_id_show()
198 hv_dev->channel->offermsg.offer.if_instance.b); in device_id_show()
205 struct hv_device *hv_dev = device_to_hv_device(dev); in modalias_show() local
208 print_alias_name(hv_dev, alias_name); in modalias_show()
217 struct hv_device *hv_dev = device_to_hv_device(dev); in numa_node_show() local
219 if (!hv_dev->channel) in numa_node_show()
222 return sprintf(buf, "%d\n", hv_dev->channel->numa_node); in numa_node_show()
231 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_pending_show() local
233 if (!hv_dev->channel) in server_monitor_pending_show()
236 channel_pending(hv_dev->channel, in server_monitor_pending_show()
245 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_pending_show() local
247 if (!hv_dev->channel) in client_monitor_pending_show()
250 channel_pending(hv_dev->channel, in client_monitor_pending_show()
259 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_latency_show() local
261 if (!hv_dev->channel) in server_monitor_latency_show()
264 channel_latency(hv_dev->channel, in server_monitor_latency_show()
273 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_latency_show() local
275 if (!hv_dev->channel) in client_monitor_latency_show()
278 channel_latency(hv_dev->channel, in client_monitor_latency_show()
287 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_conn_id_show() local
289 if (!hv_dev->channel) in server_monitor_conn_id_show()
292 channel_conn_id(hv_dev->channel, in server_monitor_conn_id_show()
301 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_conn_id_show() local
303 if (!hv_dev->channel) in client_monitor_conn_id_show()
306 channel_conn_id(hv_dev->channel, in client_monitor_conn_id_show()
314 struct hv_device *hv_dev = device_to_hv_device(dev); in out_intr_mask_show() local
317 if (!hv_dev->channel) in out_intr_mask_show()
319 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_intr_mask_show()
327 struct hv_device *hv_dev = device_to_hv_device(dev); in out_read_index_show() local
330 if (!hv_dev->channel) in out_read_index_show()
332 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_read_index_show()
341 struct hv_device *hv_dev = device_to_hv_device(dev); in out_write_index_show() local
344 if (!hv_dev->channel) in out_write_index_show()
346 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_write_index_show()
355 struct hv_device *hv_dev = device_to_hv_device(dev); in out_read_bytes_avail_show() local
358 if (!hv_dev->channel) in out_read_bytes_avail_show()
360 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_read_bytes_avail_show()
369 struct hv_device *hv_dev = device_to_hv_device(dev); in out_write_bytes_avail_show() local
372 if (!hv_dev->channel) in out_write_bytes_avail_show()
374 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_write_bytes_avail_show()
382 struct hv_device *hv_dev = device_to_hv_device(dev); in in_intr_mask_show() local
385 if (!hv_dev->channel) in in_intr_mask_show()
387 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_intr_mask_show()
395 struct hv_device *hv_dev = device_to_hv_device(dev); in in_read_index_show() local
398 if (!hv_dev->channel) in in_read_index_show()
400 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_read_index_show()
408 struct hv_device *hv_dev = device_to_hv_device(dev); in in_write_index_show() local
411 if (!hv_dev->channel) in in_write_index_show()
413 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_write_index_show()
422 struct hv_device *hv_dev = device_to_hv_device(dev); in in_read_bytes_avail_show() local
425 if (!hv_dev->channel) in in_read_bytes_avail_show()
427 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_read_bytes_avail_show()
436 struct hv_device *hv_dev = device_to_hv_device(dev); in in_write_bytes_avail_show() local
439 if (!hv_dev->channel) in in_write_bytes_avail_show()
441 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_write_bytes_avail_show()
450 struct hv_device *hv_dev = device_to_hv_device(dev); in channel_vp_mapping_show() local
451 struct vmbus_channel *channel = hv_dev->channel, *cur_sc; in channel_vp_mapping_show()
487 struct hv_device *hv_dev = device_to_hv_device(dev); in vendor_show() local
488 return sprintf(buf, "0x%x\n", hv_dev->vendor_id); in vendor_show()
496 struct hv_device *hv_dev = device_to_hv_device(dev); in device_show() local
497 return sprintf(buf, "0x%x\n", hv_dev->device_id); in device_show()
705 struct hv_device *hv_dev = device_to_hv_device(device); in vmbus_match() local
708 if (is_hvsock_channel(hv_dev->channel)) in vmbus_match()
711 if (hv_vmbus_get_id(drv, &hv_dev->dev_type)) in vmbus_match()
786 struct hv_device *hv_dev = device_to_hv_device(device); in vmbus_device_release() local
787 struct vmbus_channel *channel = hv_dev->channel; in vmbus_device_release()
792 kfree(hv_dev); in vmbus_device_release()