Lines Matching defs:channel
51 vmbus_sendpacket(dev->channel, init_pkt,
80 /* fallback to only primary channel */
163 ret = vmbus_sendpacket(device->channel,
168 /* If the failure is because the channel is rescinded;
170 * channel. This would allow us to properly cleanup
171 * even when the channel is rescinded.
173 if (device->channel->rescind)
213 ret = vmbus_sendpacket(device->channel,
219 /* If the failure is because the channel is rescinded;
221 * channel. This would allow us to properly cleanup
222 * even when the channel is rescinded.
224 if (device->channel->rescind)
246 ret = vmbus_teardown_gpadl(device->channel,
268 ret = vmbus_teardown_gpadl(device->channel,
286 int node = cpu_to_node(nvchan->channel->target_cpu);
330 * channel. Note: This call uses the vmbus connection rather
331 * than the channel to establish the gpadl handle.
333 ret = vmbus_establish_gpadl(device->channel, net_device->recv_buf,
354 ret = vmbus_sendpacket(device->channel, init_packet,
422 * channel. Note: This call uses the vmbus connection rather
423 * than the channel to establish the gpadl handle.
425 ret = vmbus_establish_gpadl(device->channel, net_device->send_buf,
445 ret = vmbus_sendpacket(device->channel, init_packet,
522 ret = vmbus_sendpacket(device->channel, init_packet,
558 ret = vmbus_sendpacket(device->channel, init_packet,
615 ret = vmbus_sendpacket(device->channel, init_packet,
657 /* only disable enabled NAPI channel */
670 /* Now, we can close the channel safely */
671 vmbus_close(device->channel);
697 struct vmbus_channel *channel,
737 (hv_get_avail_to_write_percent(&channel->outbound) >
876 struct vmbus_channel *out_channel = nvchan->channel;
1106 ret = vmbus_sendpacket(nvchan->channel, &msg, sizeof(msg),
1178 struct vmbus_channel *channel = nvchan->channel;
1183 u16 q_idx = channel->offermsg.offer.sub_channel_index;
1373 struct vmbus_channel *channel = nvchan->channel;
1376 trace_nvsp_recv(ndev, channel, nvmsg);
1380 netvsc_send_completion(ndev, net_device, channel, desc, budget);
1400 static struct hv_device *netvsc_channel_to_device(struct vmbus_channel *channel)
1402 struct vmbus_channel *primary = channel->primary_channel;
1404 return primary ? primary->device_obj : channel->device_obj;
1416 struct vmbus_channel *channel = nvchan->channel;
1417 struct hv_device *device = netvsc_channel_to_device(channel);
1424 nvchan->desc = hv_pkt_iter_first(channel);
1429 nvchan->desc = hv_pkt_iter_next(channel, nvchan->desc);
1443 (ret || hv_end_read(&channel->inbound)) &&
1445 hv_begin_read(&channel->inbound);
1459 struct vmbus_channel *channel = nvchan->channel;
1460 struct hv_ring_buffer_info *rbi = &channel->inbound;
1493 * control is done via Net softirq, not the channel handling
1495 set_channel_read_mode(device->channel, HV_CALL_ISR);
1498 * chn_table with the default channel to use it before subchannels are
1500 * Initialize the channel state before we open;
1501 * we can be interrupted as soon as we open the channel.
1507 nvchan->channel = device->channel;
1532 /* Open the channel */
1533 ret = vmbus_open(device->channel, netvsc_ring_bytes,
1538 netdev_err(ndev, "unable to open channel: %d\n", ret);
1543 netdev_dbg(ndev, "hv_netvsc channel opened successfully\n");
1566 /* Now, we can close the channel safely */
1567 vmbus_close(device->channel);