Lines Matching defs:channel

59 	ret = vmbus_sendpacket(dev->channel, init_pkt,
116 /* fallback to only primary channel */
203 ret = vmbus_sendpacket(device->channel,
208 /* If the failure is because the channel is rescinded;
210 * channel. This would allow us to properly cleanup
211 * even when the channel is rescinded.
213 if (device->channel->rescind)
253 ret = vmbus_sendpacket(device->channel,
259 /* If the failure is because the channel is rescinded;
261 * channel. This would allow us to properly cleanup
262 * even when the channel is rescinded.
264 if (device->channel->rescind)
286 ret = vmbus_teardown_gpadl(device->channel,
307 ret = vmbus_teardown_gpadl(device->channel,
324 int node = cpu_to_node(nvchan->channel->target_cpu);
367 * channel. Note: This call uses the vmbus connection rather
368 * than the channel to establish the gpadl handle.
370 ret = vmbus_establish_gpadl(device->channel, net_device->recv_buf,
391 ret = vmbus_sendpacket(device->channel, init_packet,
470 * channel. Note: This call uses the vmbus connection rather
471 * than the channel to establish the gpadl handle.
473 ret = vmbus_establish_gpadl(device->channel, net_device->send_buf,
493 ret = vmbus_sendpacket(device->channel, init_packet,
569 ret = vmbus_sendpacket(device->channel, init_packet,
608 ret = vmbus_sendpacket(device->channel, init_packet,
672 ret = vmbus_sendpacket(device->channel, init_packet,
714 /* only disable enabled NAPI channel */
727 /* Now, we can close the channel safely */
728 vmbus_close(device->channel);
754 struct vmbus_channel *channel,
764 cmd_rqst = channel->request_addr_callback(channel, desc->trans_id);
804 (hv_get_avail_to_write_percent(&channel->outbound) >
1064 struct vmbus_channel *out_channel = nvchan->channel;
1326 ret = vmbus_sendpacket(nvchan->channel, &msg, sizeof(msg),
1398 struct vmbus_channel *channel = nvchan->channel;
1403 u16 q_idx = channel->offermsg.offer.sub_channel_index;
1609 struct vmbus_channel *channel = nvchan->channel;
1612 trace_nvsp_recv(ndev, channel, nvmsg);
1616 netvsc_send_completion(ndev, net_device, channel, desc, budget);
1635 static struct hv_device *netvsc_channel_to_device(struct vmbus_channel *channel)
1637 struct vmbus_channel *primary = channel->primary_channel;
1639 return primary ? primary->device_obj : channel->device_obj;
1651 struct vmbus_channel *channel = nvchan->channel;
1652 struct hv_device *device = netvsc_channel_to_device(channel);
1659 nvchan->desc = hv_pkt_iter_first(channel);
1666 nvchan->desc = hv_pkt_iter_next(channel, nvchan->desc);
1683 (ret || hv_end_read(&channel->inbound)) &&
1685 hv_begin_read(&channel->inbound);
1699 struct vmbus_channel *channel = nvchan->channel;
1700 struct hv_ring_buffer_info *rbi = &channel->inbound;
1733 * control is done via Net softirq, not the channel handling
1735 set_channel_read_mode(device->channel, HV_CALL_ISR);
1738 * chn_table with the default channel to use it before subchannels are
1740 * Initialize the channel state before we open;
1741 * we can be interrupted as soon as we open the channel.
1747 nvchan->channel = device->channel;
1771 /* Open the channel */
1772 device->channel->next_request_id_callback = vmbus_next_request_id;
1773 device->channel->request_addr_callback = vmbus_request_addr;
1774 device->channel->rqstor_size = netvsc_rqstor_size(netvsc_ring_bytes);
1775 device->channel->max_pkt_size = NETVSC_MAX_PKT_SIZE;
1777 ret = vmbus_open(device->channel, netvsc_ring_bytes,
1782 netdev_err(ndev, "unable to open channel: %d\n", ret);
1787 netdev_dbg(ndev, "hv_netvsc channel opened successfully\n");
1810 /* Now, we can close the channel safely */
1811 vmbus_close(device->channel);