Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/hyperv/
H A Dnetvsc_drv.c98 nvdev = rcu_dereference(ndev_ctx->nvdev); in netvsc_set_rx_mode()
99 if (nvdev) in netvsc_set_rx_mode()
210 if (!nvdev) in netvsc_close()
1126 if (!nvdev || nvdev->destroy) in netvsc_set_channels()
1217 if (!nvdev || nvdev->destroy) in netvsc_change_mtu()
1355 nvdev = rcu_dereference(ndev_ctx->nvdev); in netvsc_get_stats64()
1866 if (!nvdev || nvdev->destroy) in netvsc_set_ringparam()
1913 if (!nvdev || nvdev->destroy) in netvsc_fix_features()
1934 if (!nvdev || nvdev->destroy) in netvsc_set_features()
2689 nvdev = rtnl_dereference(ndev_ctx->nvdev); in netvsc_remove()
[all …]
H A Dnetvsc_bpf.c121 return rtnl_dereference(nvdev->chan_table[0].bpf_prog); in netvsc_xdp_get()
126 struct netvsc_device *nvdev) in netvsc_xdp_set() argument
131 old_prog = netvsc_xdp_get(nvdev); in netvsc_xdp_set()
153 bpf_prog_add(prog, nvdev->num_chn - 1); in netvsc_xdp_set()
155 for (i = 0; i < nvdev->num_chn; i++) in netvsc_xdp_set()
159 for (i = 0; i < nvdev->num_chn; i++) in netvsc_xdp_set()
197 struct netvsc_device *nvdev = rtnl_dereference(ndevctx->nvdev); in netvsc_bpf() local
202 if (!nvdev || nvdev->destroy) { in netvsc_bpf()
208 ret = netvsc_xdp_set(dev, bpf->prog, extack, nvdev); in netvsc_bpf()
219 netvsc_xdp_set(dev, NULL, extack, nvdev); in netvsc_bpf()
[all …]
H A Drndis_filter.c291 struct netvsc_device *nvdev, in rndis_filter_receive_response() argument
866 struct netvsc_device *nvdev, in rndis_filter_set_offload_params() argument
1189 nvdev->destroy = true; in rndis_filter_halt_device()
1195 wait_event(nvdev->wait_drain, netvsc_device_idle(nvdev)); in rndis_filter_halt_device()
1287 struct netvsc_device *nvdev, in rndis_set_subchannel() argument
1302 nvdev->num_chn - 1; in rndis_set_subchannel()
1326 nvdev->num_chn = 1 + in rndis_set_subchannel()
1330 wait_event(nvdev->subchan_open, in rndis_set_subchannel()
1331 atomic_read(&nvdev->open_chn) == nvdev->num_chn); in rndis_set_subchannel()
1629 if (!nvdev) in rndis_filter_open()
[all …]
H A Dnetvsc.c99 struct netvsc_device *nvdev = in netvsc_subchan_work() local
110 rdev = nvdev->extension; in netvsc_subchan_work()
120 nvdev->max_chn = 1; in netvsc_subchan_work()
121 nvdev->num_chn = 1; in netvsc_subchan_work()
152 struct netvsc_device *nvdev in free_netvsc_device() local
156 kfree(nvdev->extension); in free_netvsc_device()
159 vfree(nvdev->recv_buf); in free_netvsc_device()
161 vfree(nvdev->send_buf); in free_netvsc_device()
170 kfree(nvdev); in free_netvsc_device()
1338 if (unlikely(nvdev->destroy)) in send_recv_completions()
[all …]
H A Dhyperv_net.h238 struct netvsc_device *nvdev,
247 struct bpf_prog *netvsc_xdp_get(struct netvsc_device *nvdev);
250 struct netvsc_device *nvdev);
257 struct netvsc_device *nvdev,
259 int rndis_filter_open(struct netvsc_device *nvdev);
260 int rndis_filter_close(struct netvsc_device *nvdev);
263 void rndis_filter_update(struct netvsc_device *nvdev);
265 struct netvsc_device *nvdev);
269 struct netvsc_device *nvdev,
1021 struct netvsc_device __rcu *nvdev; member