Lines Matching refs:nvchan

321 	struct netvsc_channel *nvchan = &net_device->chan_table[q_idx];  in netvsc_alloc_recv_comp_ring()  local
322 int node = cpu_to_node(nvchan->channel->target_cpu); in netvsc_alloc_recv_comp_ring()
326 nvchan->mrc.slots = vzalloc_node(size, node); in netvsc_alloc_recv_comp_ring()
327 if (!nvchan->mrc.slots) in netvsc_alloc_recv_comp_ring()
328 nvchan->mrc.slots = vzalloc(size); in netvsc_alloc_recv_comp_ring()
330 return nvchan->mrc.slots ? 0 : -ENOMEM; in netvsc_alloc_recv_comp_ring()
437 struct netvsc_channel *nvchan = &net_device->chan_table[i]; in netvsc_init_buf() local
439 nvchan->recv_buf = kzalloc(net_device->recv_section_size, GFP_KERNEL); in netvsc_init_buf()
440 if (nvchan->recv_buf == NULL) { in netvsc_init_buf()
960 struct netvsc_channel * const nvchan = in netvsc_send_pkt() local
962 struct vmbus_channel *out_channel = nvchan->channel; in netvsc_send_pkt()
1006 atomic_inc_return(&nvchan->queue_sends); in netvsc_send_pkt()
1023 atomic_read(&nvchan->queue_sends) < 1 && in netvsc_send_pkt()
1079 struct netvsc_channel *nvchan; in netvsc_send() local
1091 nvchan = &net_device->chan_table[packet->q_idx]; in netvsc_send()
1103 msdp = &nvchan->msd; in netvsc_send()
1196 struct netvsc_channel *nvchan) in send_recv_completions() argument
1198 struct multi_recv_comp *mrc = &nvchan->mrc; in send_recv_completions()
1213 ret = vmbus_sendpacket(nvchan->channel, &msg, sizeof(msg), in send_recv_completions()
1253 struct netvsc_channel *nvchan = &nvdev->chan_table[q_idx]; in enq_receive_complete() local
1254 struct multi_recv_comp *mrc = &nvchan->mrc; in enq_receive_complete()
1261 send_recv_completions(ndev, nvdev, nvchan); in enq_receive_complete()
1281 struct netvsc_channel *nvchan, in netvsc_receive() argument
1285 struct vmbus_channel *channel = nvchan->channel; in netvsc_receive()
1347 nvchan->rsc.cnt = 0; in netvsc_receive()
1360 nvchan->rsc.cnt = 0; in netvsc_receive()
1371 nvchan->rsc.is_last = (i == count - 1); in netvsc_receive()
1377 nvchan, data, buflen); in netvsc_receive()
1381 nvchan->rsc.cnt = 0; in netvsc_receive()
1486 struct netvsc_channel *nvchan, in netvsc_process_raw_pkt() argument
1492 struct vmbus_channel *channel = nvchan->channel; in netvsc_process_raw_pkt()
1503 return netvsc_receive(ndev, net_device, nvchan, desc); in netvsc_process_raw_pkt()
1532 struct netvsc_channel *nvchan in netvsc_poll() local
1534 struct netvsc_device *net_device = nvchan->net_device; in netvsc_poll()
1535 struct vmbus_channel *channel = nvchan->channel; in netvsc_poll()
1542 if (!nvchan->desc) in netvsc_poll()
1543 nvchan->desc = hv_pkt_iter_first(channel); in netvsc_poll()
1545 while (nvchan->desc && work_done < budget) { in netvsc_poll()
1546 work_done += netvsc_process_raw_pkt(device, nvchan, net_device, in netvsc_poll()
1547 ndev, nvchan->desc, budget); in netvsc_poll()
1548 nvchan->desc = hv_pkt_iter_next(channel, nvchan->desc); in netvsc_poll()
1552 ret = send_recv_completions(ndev, net_device, nvchan); in netvsc_poll()
1577 struct netvsc_channel *nvchan = context; in netvsc_channel_cb() local
1578 struct vmbus_channel *channel = nvchan->channel; in netvsc_channel_cb()
1584 if (napi_schedule_prep(&nvchan->napi)) { in netvsc_channel_cb()
1588 __napi_schedule_irqoff(&nvchan->napi); in netvsc_channel_cb()
1624 struct netvsc_channel *nvchan = &net_device->chan_table[i]; in netvsc_device_add() local
1626 nvchan->channel = device->channel; in netvsc_device_add()
1627 nvchan->net_device = net_device; in netvsc_device_add()
1628 u64_stats_init(&nvchan->tx_stats.syncp); in netvsc_device_add()
1629 u64_stats_init(&nvchan->rx_stats.syncp); in netvsc_device_add()
1631 ret = xdp_rxq_info_reg(&nvchan->xdp_rxq, ndev, i, 0); in netvsc_device_add()
1638 ret = xdp_rxq_info_reg_mem_model(&nvchan->xdp_rxq, in netvsc_device_add()