Lines Matching refs:nvchan

283 	struct netvsc_channel *nvchan = &net_device->chan_table[q_idx];  in netvsc_alloc_recv_comp_ring()  local
284 int node = cpu_to_node(nvchan->channel->target_cpu); in netvsc_alloc_recv_comp_ring()
288 nvchan->mrc.slots = vzalloc_node(size, node); in netvsc_alloc_recv_comp_ring()
289 if (!nvchan->mrc.slots) in netvsc_alloc_recv_comp_ring()
290 nvchan->mrc.slots = vzalloc(size); in netvsc_alloc_recv_comp_ring()
292 return nvchan->mrc.slots ? 0 : -ENOMEM; in netvsc_alloc_recv_comp_ring()
813 struct netvsc_channel * const nvchan = in netvsc_send_pkt() local
815 struct vmbus_channel *out_channel = nvchan->channel; in netvsc_send_pkt()
858 atomic_inc_return(&nvchan->queue_sends); in netvsc_send_pkt()
875 atomic_read(&nvchan->queue_sends) < 1 && in netvsc_send_pkt()
910 struct netvsc_channel *nvchan; in netvsc_send() local
922 nvchan = &net_device->chan_table[packet->q_idx]; in netvsc_send()
933 msdp = &nvchan->msd; in netvsc_send()
1026 struct netvsc_channel *nvchan) in send_recv_completions() argument
1028 struct multi_recv_comp *mrc = &nvchan->mrc; in send_recv_completions()
1043 ret = vmbus_sendpacket(nvchan->channel, &msg, sizeof(msg), in send_recv_completions()
1083 struct netvsc_channel *nvchan = &nvdev->chan_table[q_idx]; in enq_receive_complete() local
1084 struct multi_recv_comp *mrc = &nvchan->mrc; in enq_receive_complete()
1091 send_recv_completions(ndev, nvdev, nvchan); in enq_receive_complete()
1111 struct netvsc_channel *nvchan, in netvsc_receive() argument
1116 struct vmbus_channel *channel = nvchan->channel; in netvsc_receive()
1151 nvchan->rsc.cnt = 0; in netvsc_receive()
1162 nvchan->rsc.is_last = (i == count - 1); in netvsc_receive()
1168 nvchan, data, buflen); in netvsc_receive()
1248 struct netvsc_channel *nvchan, in netvsc_process_raw_pkt() argument
1254 struct vmbus_channel *channel = nvchan->channel; in netvsc_process_raw_pkt()
1267 return netvsc_receive(ndev, net_device, nvchan, in netvsc_process_raw_pkt()
1297 struct netvsc_channel *nvchan in netvsc_poll() local
1299 struct netvsc_device *net_device = nvchan->net_device; in netvsc_poll()
1300 struct vmbus_channel *channel = nvchan->channel; in netvsc_poll()
1307 if (!nvchan->desc) in netvsc_poll()
1308 nvchan->desc = hv_pkt_iter_first(channel); in netvsc_poll()
1310 while (nvchan->desc && work_done < budget) { in netvsc_poll()
1311 work_done += netvsc_process_raw_pkt(device, nvchan, net_device, in netvsc_poll()
1312 ndev, nvchan->desc, budget); in netvsc_poll()
1313 nvchan->desc = hv_pkt_iter_next(channel, nvchan->desc); in netvsc_poll()
1317 ret = send_recv_completions(ndev, net_device, nvchan); in netvsc_poll()
1342 struct netvsc_channel *nvchan = context; in netvsc_channel_cb() local
1343 struct vmbus_channel *channel = nvchan->channel; in netvsc_channel_cb()
1349 if (napi_schedule_prep(&nvchan->napi)) { in netvsc_channel_cb()
1353 __napi_schedule_irqoff(&nvchan->napi); in netvsc_channel_cb()
1389 struct netvsc_channel *nvchan = &net_device->chan_table[i]; in netvsc_device_add() local
1391 nvchan->channel = device->channel; in netvsc_device_add()
1392 nvchan->net_device = net_device; in netvsc_device_add()
1393 u64_stats_init(&nvchan->tx_stats.syncp); in netvsc_device_add()
1394 u64_stats_init(&nvchan->rx_stats.syncp); in netvsc_device_add()