Lines Matching refs:hv_dev
117 static void print_alias_name(struct hv_device *hv_dev, char *alias_name) in print_alias_name() argument
121 sprintf(&alias_name[i], "%02x", hv_dev->dev_type.b[i/2]); in print_alias_name()
160 struct hv_device *hv_dev = device_to_hv_device(dev); in id_show() local
162 if (!hv_dev->channel) in id_show()
164 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.child_relid); in id_show()
171 struct hv_device *hv_dev = device_to_hv_device(dev); in state_show() local
173 if (!hv_dev->channel) in state_show()
175 return sprintf(buf, "%d\n", hv_dev->channel->state); in state_show()
182 struct hv_device *hv_dev = device_to_hv_device(dev); in monitor_id_show() local
184 if (!hv_dev->channel) in monitor_id_show()
186 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.monitorid); in monitor_id_show()
193 struct hv_device *hv_dev = device_to_hv_device(dev); in class_id_show() local
195 if (!hv_dev->channel) in class_id_show()
198 hv_dev->channel->offermsg.offer.if_type.b); in class_id_show()
205 struct hv_device *hv_dev = device_to_hv_device(dev); in device_id_show() local
207 if (!hv_dev->channel) in device_id_show()
210 hv_dev->channel->offermsg.offer.if_instance.b); in device_id_show()
217 struct hv_device *hv_dev = device_to_hv_device(dev); in modalias_show() local
220 print_alias_name(hv_dev, alias_name); in modalias_show()
229 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_pending_show() local
231 if (!hv_dev->channel) in server_monitor_pending_show()
234 channel_pending(hv_dev->channel, in server_monitor_pending_show()
243 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_pending_show() local
245 if (!hv_dev->channel) in client_monitor_pending_show()
248 channel_pending(hv_dev->channel, in client_monitor_pending_show()
257 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_latency_show() local
259 if (!hv_dev->channel) in server_monitor_latency_show()
262 channel_latency(hv_dev->channel, in server_monitor_latency_show()
271 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_latency_show() local
273 if (!hv_dev->channel) in client_monitor_latency_show()
276 channel_latency(hv_dev->channel, in client_monitor_latency_show()
285 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_conn_id_show() local
287 if (!hv_dev->channel) in server_monitor_conn_id_show()
290 channel_conn_id(hv_dev->channel, in server_monitor_conn_id_show()
299 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_conn_id_show() local
301 if (!hv_dev->channel) in client_monitor_conn_id_show()
304 channel_conn_id(hv_dev->channel, in client_monitor_conn_id_show()
312 struct hv_device *hv_dev = device_to_hv_device(dev); in out_intr_mask_show() local
315 if (!hv_dev->channel) in out_intr_mask_show()
317 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_intr_mask_show()
325 struct hv_device *hv_dev = device_to_hv_device(dev); in out_read_index_show() local
328 if (!hv_dev->channel) in out_read_index_show()
330 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_read_index_show()
339 struct hv_device *hv_dev = device_to_hv_device(dev); in out_write_index_show() local
342 if (!hv_dev->channel) in out_write_index_show()
344 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_write_index_show()
353 struct hv_device *hv_dev = device_to_hv_device(dev); in out_read_bytes_avail_show() local
356 if (!hv_dev->channel) in out_read_bytes_avail_show()
358 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_read_bytes_avail_show()
367 struct hv_device *hv_dev = device_to_hv_device(dev); in out_write_bytes_avail_show() local
370 if (!hv_dev->channel) in out_write_bytes_avail_show()
372 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_write_bytes_avail_show()
380 struct hv_device *hv_dev = device_to_hv_device(dev); in in_intr_mask_show() local
383 if (!hv_dev->channel) in in_intr_mask_show()
385 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_intr_mask_show()
393 struct hv_device *hv_dev = device_to_hv_device(dev); in in_read_index_show() local
396 if (!hv_dev->channel) in in_read_index_show()
398 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_read_index_show()
406 struct hv_device *hv_dev = device_to_hv_device(dev); in in_write_index_show() local
409 if (!hv_dev->channel) in in_write_index_show()
411 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_write_index_show()
420 struct hv_device *hv_dev = device_to_hv_device(dev); in in_read_bytes_avail_show() local
423 if (!hv_dev->channel) in in_read_bytes_avail_show()
425 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_read_bytes_avail_show()
434 struct hv_device *hv_dev = device_to_hv_device(dev); in in_write_bytes_avail_show() local
437 if (!hv_dev->channel) in in_write_bytes_avail_show()
439 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_write_bytes_avail_show()
448 struct hv_device *hv_dev = device_to_hv_device(dev); in channel_vp_mapping_show() local
449 struct vmbus_channel *channel = hv_dev->channel, *cur_sc; in channel_vp_mapping_show()
564 struct hv_device *hv_dev = device_to_hv_device(device); in vmbus_match() local
566 if (hv_vmbus_get_id(drv->id_table, hv_dev->dev_type.b)) in vmbus_match()
655 struct hv_device *hv_dev = device_to_hv_device(device); in vmbus_device_release() local
657 kfree(hv_dev); in vmbus_device_release()