Lines Matching refs:channel

124 static u8 channel_monitor_group(struct vmbus_channel *channel)  in channel_monitor_group()  argument
126 return (u8)channel->offermsg.monitorid / 32; in channel_monitor_group()
129 static u8 channel_monitor_offset(struct vmbus_channel *channel) in channel_monitor_offset() argument
131 return (u8)channel->offermsg.monitorid % 32; in channel_monitor_offset()
134 static u32 channel_pending(struct vmbus_channel *channel, in channel_pending() argument
137 u8 monitor_group = channel_monitor_group(channel); in channel_pending()
141 static u32 channel_latency(struct vmbus_channel *channel, in channel_latency() argument
144 u8 monitor_group = channel_monitor_group(channel); in channel_latency()
145 u8 monitor_offset = channel_monitor_offset(channel); in channel_latency()
149 static u32 channel_conn_id(struct vmbus_channel *channel, in channel_conn_id() argument
152 u8 monitor_group = channel_monitor_group(channel); in channel_conn_id()
153 u8 monitor_offset = channel_monitor_offset(channel); in channel_conn_id()
162 if (!hv_dev->channel) in id_show()
164 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.child_relid); in id_show()
173 if (!hv_dev->channel) in state_show()
175 return sprintf(buf, "%d\n", hv_dev->channel->state); in state_show()
184 if (!hv_dev->channel) in monitor_id_show()
186 return sprintf(buf, "%d\n", hv_dev->channel->offermsg.monitorid); in monitor_id_show()
195 if (!hv_dev->channel) in class_id_show()
198 hv_dev->channel->offermsg.offer.if_type.b); in class_id_show()
207 if (!hv_dev->channel) in device_id_show()
210 hv_dev->channel->offermsg.offer.if_instance.b); in device_id_show()
231 if (!hv_dev->channel) in server_monitor_pending_show()
234 channel_pending(hv_dev->channel, in server_monitor_pending_show()
245 if (!hv_dev->channel) in client_monitor_pending_show()
248 channel_pending(hv_dev->channel, in client_monitor_pending_show()
259 if (!hv_dev->channel) in server_monitor_latency_show()
262 channel_latency(hv_dev->channel, in server_monitor_latency_show()
273 if (!hv_dev->channel) in client_monitor_latency_show()
276 channel_latency(hv_dev->channel, in client_monitor_latency_show()
287 if (!hv_dev->channel) in server_monitor_conn_id_show()
290 channel_conn_id(hv_dev->channel, in server_monitor_conn_id_show()
301 if (!hv_dev->channel) in client_monitor_conn_id_show()
304 channel_conn_id(hv_dev->channel, in client_monitor_conn_id_show()
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()
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()
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()
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()
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()
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()
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()
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()
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()
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()
449 struct vmbus_channel *channel = hv_dev->channel, *cur_sc; in channel_vp_mapping_show() local
454 if (!channel) in channel_vp_mapping_show()
458 channel->offermsg.child_relid, channel->target_cpu); in channel_vp_mapping_show()
460 spin_lock_irqsave(&channel->lock, flags); in channel_vp_mapping_show()
462 list_for_each(cur, &channel->sc_list) { in channel_vp_mapping_show()
475 spin_unlock_irqrestore(&channel->lock, flags); in channel_vp_mapping_show()
605 u32 relid = dev->channel->offermsg.child_relid; in vmbus_remove()
612 hv_process_channel_removal(dev->channel, relid); in vmbus_remove()
621 hv_process_channel_removal(dev->channel, relid); in vmbus_remove()
955 struct vmbus_channel *channel) in vmbus_device_create() argument
965 child_device_obj->channel = channel; in vmbus_device_create()
982 child_device_obj->channel->id); in vmbus_device_register()