Lines Matching refs:hv_dev

90 static void print_alias_name(struct hv_device *hv_dev, char *alias_name)  in print_alias_name()  argument
94 sprintf(&alias_name[i], "%02x", hv_dev->dev_type.b[i/2]); in print_alias_name()
133 struct hv_device *hv_dev = device_to_hv_device(dev); in id_show() local
135 if (!hv_dev->channel) in id_show()
137 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.child_relid); in id_show()
144 struct hv_device *hv_dev = device_to_hv_device(dev); in state_show() local
146 if (!hv_dev->channel) in state_show()
148 return sprintf(buf, "%d\n", hv_dev->channel->state); in state_show()
155 struct hv_device *hv_dev = device_to_hv_device(dev); in monitor_id_show() local
157 if (!hv_dev->channel) in monitor_id_show()
159 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.monitorid); in monitor_id_show()
166 struct hv_device *hv_dev = device_to_hv_device(dev); in class_id_show() local
168 if (!hv_dev->channel) in class_id_show()
171 hv_dev->channel->offermsg.offer.if_type.b); in class_id_show()
178 struct hv_device *hv_dev = device_to_hv_device(dev); in device_id_show() local
180 if (!hv_dev->channel) in device_id_show()
183 hv_dev->channel->offermsg.offer.if_instance.b); in device_id_show()
190 struct hv_device *hv_dev = device_to_hv_device(dev); in modalias_show() local
193 print_alias_name(hv_dev, alias_name); in modalias_show()
202 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_pending_show() local
204 if (!hv_dev->channel) in server_monitor_pending_show()
207 channel_pending(hv_dev->channel, in server_monitor_pending_show()
216 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_pending_show() local
218 if (!hv_dev->channel) in client_monitor_pending_show()
221 channel_pending(hv_dev->channel, in client_monitor_pending_show()
230 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_latency_show() local
232 if (!hv_dev->channel) in server_monitor_latency_show()
235 channel_latency(hv_dev->channel, in server_monitor_latency_show()
244 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_latency_show() local
246 if (!hv_dev->channel) in client_monitor_latency_show()
249 channel_latency(hv_dev->channel, in client_monitor_latency_show()
258 struct hv_device *hv_dev = device_to_hv_device(dev); in server_monitor_conn_id_show() local
260 if (!hv_dev->channel) in server_monitor_conn_id_show()
263 channel_conn_id(hv_dev->channel, in server_monitor_conn_id_show()
272 struct hv_device *hv_dev = device_to_hv_device(dev); in client_monitor_conn_id_show() local
274 if (!hv_dev->channel) in client_monitor_conn_id_show()
277 channel_conn_id(hv_dev->channel, in client_monitor_conn_id_show()
285 struct hv_device *hv_dev = device_to_hv_device(dev); in out_intr_mask_show() local
288 if (!hv_dev->channel) in out_intr_mask_show()
290 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_intr_mask_show()
298 struct hv_device *hv_dev = device_to_hv_device(dev); in out_read_index_show() local
301 if (!hv_dev->channel) in out_read_index_show()
303 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_read_index_show()
312 struct hv_device *hv_dev = device_to_hv_device(dev); in out_write_index_show() local
315 if (!hv_dev->channel) in out_write_index_show()
317 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_write_index_show()
326 struct hv_device *hv_dev = device_to_hv_device(dev); in out_read_bytes_avail_show() local
329 if (!hv_dev->channel) in out_read_bytes_avail_show()
331 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_read_bytes_avail_show()
340 struct hv_device *hv_dev = device_to_hv_device(dev); in out_write_bytes_avail_show() local
343 if (!hv_dev->channel) in out_write_bytes_avail_show()
345 hv_ringbuffer_get_debuginfo(&hv_dev->channel->outbound, &outbound); in out_write_bytes_avail_show()
353 struct hv_device *hv_dev = device_to_hv_device(dev); in in_intr_mask_show() local
356 if (!hv_dev->channel) in in_intr_mask_show()
358 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_intr_mask_show()
366 struct hv_device *hv_dev = device_to_hv_device(dev); in in_read_index_show() local
369 if (!hv_dev->channel) in in_read_index_show()
371 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_read_index_show()
379 struct hv_device *hv_dev = device_to_hv_device(dev); in in_write_index_show() local
382 if (!hv_dev->channel) in in_write_index_show()
384 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_write_index_show()
393 struct hv_device *hv_dev = device_to_hv_device(dev); in in_read_bytes_avail_show() local
396 if (!hv_dev->channel) in in_read_bytes_avail_show()
398 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_read_bytes_avail_show()
407 struct hv_device *hv_dev = device_to_hv_device(dev); in in_write_bytes_avail_show() local
410 if (!hv_dev->channel) in in_write_bytes_avail_show()
412 hv_ringbuffer_get_debuginfo(&hv_dev->channel->inbound, &inbound); in in_write_bytes_avail_show()
499 struct hv_device *hv_dev = device_to_hv_device(device); in vmbus_match() local
501 if (hv_vmbus_get_id(drv->id_table, hv_dev->dev_type.b)) in vmbus_match()
590 struct hv_device *hv_dev = device_to_hv_device(device); in vmbus_device_release() local
592 kfree(hv_dev); in vmbus_device_release()