Home
last modified time | relevance | path

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

/linux/drivers/net/hyperv/
H A Dnetvsc.c349 struct netvsc_channel *nvchan = &net_device->chan_table[q_idx]; in netvsc_alloc_recv_comp_ring() local
350 int node = cpu_to_node(nvchan->channel->target_cpu); in netvsc_alloc_recv_comp_ring()
354 nvchan->mrc.slots = vzalloc_node(size, node); in netvsc_alloc_recv_comp_ring()
355 if (!nvchan->mrc.slots) in netvsc_alloc_recv_comp_ring()
356 nvchan->mrc.slots = vzalloc(size); in netvsc_alloc_recv_comp_ring()
358 return nvchan->mrc.slots ? 0 : -ENOMEM; in netvsc_alloc_recv_comp_ring()
468 struct netvsc_channel *nvchan = &net_device->chan_table[i]; in netvsc_init_buf() local
470 nvchan->recv_buf = kzalloc(net_device->recv_section_size, GFP_KERNEL); in netvsc_init_buf()
471 if (nvchan->recv_buf == NULL) { in netvsc_init_buf()
1129 struct netvsc_channel * const nvchan in netvsc_send_pkt()
1132 struct netvsc_channel * const nvchan = netvsc_send_pkt() local
1266 struct netvsc_channel *nvchan; netvsc_send() local
1383 send_recv_completions(struct net_device * ndev,struct netvsc_device * nvdev,struct netvsc_channel * nvchan) send_recv_completions() argument
1440 struct netvsc_channel *nvchan = &nvdev->chan_table[q_idx]; enq_receive_complete() local
1468 netvsc_receive(struct net_device * ndev,struct netvsc_device * net_device,struct netvsc_channel * nvchan,const struct vmpacket_descriptor * desc) netvsc_receive() argument
1677 netvsc_process_raw_pkt(struct hv_device * device,struct netvsc_channel * nvchan,struct netvsc_device * net_device,struct net_device * ndev,const struct vmpacket_descriptor * desc,int budget) netvsc_process_raw_pkt() argument
1722 struct netvsc_channel *nvchan netvsc_poll() local
1772 struct netvsc_channel *nvchan = context; netvsc_channel_cb() local
1819 struct netvsc_channel *nvchan = &net_device->chan_table[i]; netvsc_device_add() local
[all...]
H A Drndis_filter.c305 /* Copy the request ID into nvchan->recv_buf */ in rndis_filter_receive_response()
396 /* Copy the PPIs into nvchan->recv_buf */ in rndis_get_ppi()
429 void rsc_add_data(struct netvsc_channel *nvchan, in rsc_add_data() argument
435 u32 cnt = nvchan->rsc.cnt; in rsc_add_data()
438 nvchan->rsc.pktlen += len; in rsc_add_data()
445 memcpy(&nvchan->rsc.vlan, vlan, sizeof(*vlan)); in rsc_add_data()
446 nvchan->rsc.ppi_flags |= NVSC_RSC_VLAN; in rsc_add_data()
448 nvchan->rsc.ppi_flags &= ~NVSC_RSC_VLAN; in rsc_add_data()
451 memcpy(&nvchan->rsc.csum_info, csum_info, sizeof(*csum_info)); in rsc_add_data()
452 nvchan in rsc_add_data()
472 rndis_filter_receive_data(struct net_device * ndev,struct netvsc_device * nvdev,struct netvsc_channel * nvchan,struct rndis_message * msg,void * data,u32 data_buflen) rndis_filter_receive_data() argument
575 rndis_filter_receive(struct net_device * ndev,struct netvsc_device * net_dev,struct netvsc_channel * nvchan,void * data,u32 buflen) rndis_filter_receive() argument
1140 const struct netvsc_channel *nvchan = &nvdev->chan_table[i]; netvsc_device_idle() local
1230 struct netvsc_channel *nvchan; netvsc_sc_open() local
[all...]
H A Dnetvsc_bpf.c24 u32 netvsc_run_xdp(struct net_device *ndev, struct netvsc_channel *nvchan, in netvsc_run_xdp() argument
27 struct netvsc_stats_rx *rx_stats = &nvchan->rx_stats; in netvsc_run_xdp()
28 void *data = nvchan->rsc.data[0]; in netvsc_run_xdp()
29 u32 len = nvchan->rsc.len[0]; in netvsc_run_xdp()
38 prog = rcu_dereference(nvchan->bpf_prog); in netvsc_run_xdp()
56 xdp_init_buff(xdp, PAGE_SIZE, &nvchan->xdp_rxq); in netvsc_run_xdp()
74 nvchan->xdp_flush = true; in netvsc_run_xdp()
81 rx_stats->bytes += nvchan->rsc.pktlen; in netvsc_run_xdp()
H A Dnetvsc_drv.c753 struct netvsc_channel *nvchan, in netvsc_alloc_recv_skb() argument
756 struct napi_struct *napi = &nvchan->napi; in netvsc_alloc_recv_skb()
757 const struct ndis_pkt_8021q_info *vlan = &nvchan->rsc.vlan; in netvsc_alloc_recv_skb()
759 &nvchan->rsc.csum_info; in netvsc_alloc_recv_skb()
760 const u32 *hash_info = &nvchan->rsc.hash_info; in netvsc_alloc_recv_skb()
761 u8 ppi_flags = nvchan->rsc.ppi_flags; in netvsc_alloc_recv_skb()
782 skb = napi_alloc_skb(napi, nvchan->rsc.pktlen); in netvsc_alloc_recv_skb()
790 for (i = 0; i < nvchan->rsc.cnt; i++) in netvsc_alloc_recv_skb()
791 skb_put_data(skb, nvchan->rsc.data[i], in netvsc_alloc_recv_skb()
792 nvchan->rsc.len[i]); in netvsc_alloc_recv_skb()
[all …]
H A Dhyperv_net.h240 struct netvsc_channel *nvchan);
245 u32 netvsc_run_xdp(struct net_device *ndev, struct netvsc_channel *nvchan,
274 struct netvsc_channel *nvchan,