Home
last modified time | relevance | path

Searched refs:nvchan (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/net/hyperv/
Dnetvsc.c293 struct netvsc_channel *nvchan = &net_device->chan_table[q_idx]; in netvsc_alloc_recv_comp_ring() local
294 int node = cpu_to_node(nvchan->channel->target_cpu); in netvsc_alloc_recv_comp_ring()
298 nvchan->mrc.slots = vzalloc_node(size, node); in netvsc_alloc_recv_comp_ring()
299 if (!nvchan->mrc.slots) in netvsc_alloc_recv_comp_ring()
300 nvchan->mrc.slots = vzalloc(size); in netvsc_alloc_recv_comp_ring()
302 return nvchan->mrc.slots ? 0 : -ENOMEM; in netvsc_alloc_recv_comp_ring()
820 struct netvsc_channel * const nvchan = in netvsc_send_pkt() local
822 struct vmbus_channel *out_channel = nvchan->channel; in netvsc_send_pkt()
865 atomic_inc_return(&nvchan->queue_sends); in netvsc_send_pkt()
874 if (atomic_read(&nvchan->queue_sends) < 1) { in netvsc_send_pkt()
[all …]
Drndis_filter.c939 const struct netvsc_channel *nvchan = &nvdev->chan_table[i]; in netvsc_device_idle() local
941 if (nvchan->mrc.first != nvchan->mrc.next) in netvsc_device_idle()
944 if (atomic_read(&nvchan->queue_sends) > 0) in netvsc_device_idle()
1029 struct netvsc_channel *nvchan; in netvsc_sc_open() local
1039 nvchan = nvscdev->chan_table + chn_index; in netvsc_sc_open()
1047 nvchan->channel = new_sc; in netvsc_sc_open()
1051 netvsc_channel_cb, nvchan); in netvsc_sc_open()
1053 napi_enable(&nvchan->napi); in netvsc_sc_open()
Dnetvsc_drv.c802 struct netvsc_channel *nvchan = &net_device->chan_table[q_idx]; in netvsc_recv_callback() local
810 skb = netvsc_alloc_recv_skb(net, &nvchan->napi, in netvsc_recv_callback()
825 rx_stats = &nvchan->rx_stats; in netvsc_recv_callback()
836 napi_gro_receive(&nvchan->napi, skb); in netvsc_recv_callback()
1151 const struct netvsc_channel *nvchan = &nvdev->chan_table[i]; in netvsc_get_pcpu_stats() local
1154 &pcpu_tot[nvchan->channel->target_cpu]; in netvsc_get_pcpu_stats()
1158 stats = &nvchan->tx_stats; in netvsc_get_pcpu_stats()
1168 stats = &nvchan->rx_stats; in netvsc_get_pcpu_stats()
1201 const struct netvsc_channel *nvchan = &nvdev->chan_table[i]; in netvsc_get_stats64() local
1206 stats = &nvchan->tx_stats; in netvsc_get_stats64()
[all …]