Lines Matching refs:hv_dev
165 struct hv_device *hv_dev = device_to_hv_device(dev); in id_show() local
167 if (!hv_dev->channel) in id_show()
169 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.child_relid); in id_show()
176 struct hv_device *hv_dev = device_to_hv_device(dev); in state_show() local
178 if (!hv_dev->channel) in state_show()
180 return sprintf(buf, "%d\n", hv_dev->channel->state); in state_show()
187 struct hv_device *hv_dev = device_to_hv_device(dev); in monitor_id_show() local
189 if (!hv_dev->channel) in monitor_id_show()
191 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.monitorid); in monitor_id_show()
198 struct hv_device *hv_dev = device_to_hv_device(dev); in class_id_show() local
200 if (!hv_dev->channel) in class_id_show()
203 &hv_dev->channel->offermsg.offer.if_type); in class_id_show()
210 struct hv_device *hv_dev = device_to_hv_device(dev); in device_id_show() local
212 if (!hv_dev->channel) in device_id_show()
215 &hv_dev->channel->offermsg.offer.if_instance); in device_id_show()
222 struct hv_device *hv_dev = device_to_hv_device(dev); in modalias_show() local
224 return sprintf(buf, "vmbus:%*phN\n", UUID_SIZE, &hv_dev->dev_type); in modalias_show()
232 struct hv_device *hv_dev = device_to_hv_device(dev); in numa_node_show() local
234 if (!hv_dev->channel) in numa_node_show()
237 return sprintf(buf, "%d\n", cpu_to_node(hv_dev->channel->target_cpu)); in numa_node_show()
246 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_pending_show() local
248 if (!hv_dev->channel) in server_monitor_pending_show()
251 channel_pending(hv_dev->channel, in server_monitor_pending_show()
260 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_pending_show() local
262 if (!hv_dev->channel) in client_monitor_pending_show()
265 channel_pending(hv_dev->channel, in client_monitor_pending_show()
274 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_latency_show() local
276 if (!hv_dev->channel) in server_monitor_latency_show()
279 channel_latency(hv_dev->channel, in server_monitor_latency_show()
288 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_latency_show() local
290 if (!hv_dev->channel) in client_monitor_latency_show()
293 channel_latency(hv_dev->channel, in client_monitor_latency_show()
302 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_conn_id_show() local
304 if (!hv_dev->channel) in server_monitor_conn_id_show()
307 channel_conn_id(hv_dev->channel, in server_monitor_conn_id_show()
316 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_conn_id_show() local
318 if (!hv_dev->channel) in client_monitor_conn_id_show()
321 channel_conn_id(hv_dev->channel, in client_monitor_conn_id_show()
329 struct hv_device *hv_dev = device_to_hv_device(dev); in out_intr_mask_show() local
333 if (!hv_dev->channel) in out_intr_mask_show()
336 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_intr_mask_show()
348 struct hv_device *hv_dev = device_to_hv_device(dev); in out_read_index_show() local
352 if (!hv_dev->channel) in out_read_index_show()
355 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_read_index_show()
367 struct hv_device *hv_dev = device_to_hv_device(dev); in out_write_index_show() local
371 if (!hv_dev->channel) in out_write_index_show()
374 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_write_index_show()
386 struct hv_device *hv_dev = device_to_hv_device(dev); in out_read_bytes_avail_show() local
390 if (!hv_dev->channel) in out_read_bytes_avail_show()
393 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_read_bytes_avail_show()
405 struct hv_device *hv_dev = device_to_hv_device(dev); in out_write_bytes_avail_show() local
409 if (!hv_dev->channel) in out_write_bytes_avail_show()
412 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, in out_write_bytes_avail_show()
423 struct hv_device *hv_dev = device_to_hv_device(dev); in in_intr_mask_show() local
427 if (!hv_dev->channel) in in_intr_mask_show()
430 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_intr_mask_show()
441 struct hv_device *hv_dev = device_to_hv_device(dev); in in_read_index_show() local
445 if (!hv_dev->channel) in in_read_index_show()
448 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_read_index_show()
459 struct hv_device *hv_dev = device_to_hv_device(dev); in in_write_index_show() local
463 if (!hv_dev->channel) in in_write_index_show()
466 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_write_index_show()
478 struct hv_device *hv_dev = device_to_hv_device(dev); in in_read_bytes_avail_show() local
482 if (!hv_dev->channel) in in_read_bytes_avail_show()
485 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_read_bytes_avail_show()
497 struct hv_device *hv_dev = device_to_hv_device(dev); in in_write_bytes_avail_show() local
501 if (!hv_dev->channel) in in_write_bytes_avail_show()
504 ret = hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_write_bytes_avail_show()
516 struct hv_device *hv_dev = device_to_hv_device(dev); in channel_vp_mapping_show() local
517 struct vmbus_channel *channel = hv_dev->channel, *cur_sc; in channel_vp_mapping_show()
552 struct hv_device *hv_dev = device_to_hv_device(dev); in vendor_show() local
553 return sprintf(buf, "0x%x\n", hv_dev->vendor_id); in vendor_show()
561 struct hv_device *hv_dev = device_to_hv_device(dev); in device_show() local
562 return sprintf(buf, "0x%x\n", hv_dev->device_id); in device_show()
570 struct hv_device *hv_dev = device_to_hv_device(dev); in driver_override_store() local
586 old = hv_dev->driver_override; in driver_override_store()
588 hv_dev->driver_override = driver_override; in driver_override_store()
591 hv_dev->driver_override = NULL; in driver_override_store()
603 struct hv_device *hv_dev = device_to_hv_device(dev); in driver_override_show() local
607 len = snprintf(buf, PAGE_SIZE, "%s\n", hv_dev->driver_override); in driver_override_show()
656 const struct hv_device *hv_dev = device_to_hv_device(dev); in vmbus_dev_attr_is_visible() local
659 if (!hv_dev->channel->offermsg.monitor_allocated && in vmbus_dev_attr_is_visible()
861 struct hv_device *hv_dev = device_to_hv_device(device); in vmbus_match() local
864 if (is_hvsock_channel(hv_dev->channel)) in vmbus_match()
867 if (hv_vmbus_get_id(drv, hv_dev)) in vmbus_match()
984 struct hv_device *hv_dev = device_to_hv_device(device); in vmbus_device_release() local
985 struct vmbus_channel *channel = hv_dev->channel; in vmbus_device_release()
987 hv_debug_rm_dev_dir(hv_dev); in vmbus_device_release()
992 kfree(hv_dev); in vmbus_device_release()