Lines Matching refs:channel
97 static u8 channel_monitor_group(struct vmbus_channel *channel) in channel_monitor_group() argument
99 return (u8)channel->offermsg.monitorid / 32; in channel_monitor_group()
102 static u8 channel_monitor_offset(struct vmbus_channel *channel) in channel_monitor_offset() argument
104 return (u8)channel->offermsg.monitorid % 32; in channel_monitor_offset()
107 static u32 channel_pending(struct vmbus_channel *channel, in channel_pending() argument
110 u8 monitor_group = channel_monitor_group(channel); in channel_pending()
114 static u32 channel_latency(struct vmbus_channel *channel, in channel_latency() argument
117 u8 monitor_group = channel_monitor_group(channel); in channel_latency()
118 u8 monitor_offset = channel_monitor_offset(channel); in channel_latency()
122 static u32 channel_conn_id(struct vmbus_channel *channel, in channel_conn_id() argument
125 u8 monitor_group = channel_monitor_group(channel); in channel_conn_id()
126 u8 monitor_offset = channel_monitor_offset(channel); in channel_conn_id()
135 if (!hv_dev->channel) in id_show()
137 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.child_relid); in id_show()
146 if (!hv_dev->channel) in state_show()
148 return sprintf(buf, "%d\n", hv_dev->channel->state); in state_show()
157 if (!hv_dev->channel) in monitor_id_show()
159 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.monitorid); in monitor_id_show()
168 if (!hv_dev->channel) in class_id_show()
171 hv_dev->channel->offermsg.offer.if_type.b); in class_id_show()
180 if (!hv_dev->channel) in device_id_show()
183 hv_dev->channel->offermsg.offer.if_instance.b); in device_id_show()
204 if (!hv_dev->channel) in server_monitor_pending_show()
207 channel_pending(hv_dev->channel, in server_monitor_pending_show()
218 if (!hv_dev->channel) in client_monitor_pending_show()
221 channel_pending(hv_dev->channel, in client_monitor_pending_show()
232 if (!hv_dev->channel) in server_monitor_latency_show()
235 channel_latency(hv_dev->channel, in server_monitor_latency_show()
246 if (!hv_dev->channel) in client_monitor_latency_show()
249 channel_latency(hv_dev->channel, in client_monitor_latency_show()
260 if (!hv_dev->channel) in server_monitor_conn_id_show()
263 channel_conn_id(hv_dev->channel, in server_monitor_conn_id_show()
274 if (!hv_dev->channel) in client_monitor_conn_id_show()
277 channel_conn_id(hv_dev->channel, in client_monitor_conn_id_show()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
540 u32 relid = dev->channel->offermsg.child_relid; in vmbus_remove()
547 hv_process_channel_removal(dev->channel, relid); in vmbus_remove()
556 hv_process_channel_removal(dev->channel, relid); in vmbus_remove()
919 struct vmbus_channel *channel) in vmbus_device_create() argument
929 child_device_obj->channel = channel; in vmbus_device_create()
946 child_device_obj->channel->id); in vmbus_device_register()