Searched refs:nvdev (Results 1 – 6 of 6) sorted by relevance
/linux/drivers/vfio/pci/nvgrace-gpu/ |
H A D | main.c | 53 struct nvgrace_gpu_pci_core_device *nvdev = in nvgrace_gpu_init_fake_bar_emu_regs() local 57 nvdev->resmem.bar_val = 0; in nvgrace_gpu_init_fake_bar_emu_regs() 58 nvdev->usemem.bar_val = 0; in nvgrace_gpu_init_fake_bar_emu_regs() 64 struct nvgrace_gpu_pci_core_device *nvdev) in nvgrace_gpu_memregion() argument 67 return &nvdev->usemem; in nvgrace_gpu_memregion() 70 return &nvdev->resmem; in nvgrace_gpu_memregion() 79 struct nvgrace_gpu_pci_core_device *nvdev = in nvgrace_gpu_open_device() local 88 if (nvdev->usemem.memlength) { in nvgrace_gpu_open_device() 90 mutex_init(&nvdev->remap_lock); in nvgrace_gpu_open_device() 100 struct nvgrace_gpu_pci_core_device *nvdev = in nvgrace_gpu_close_device() local [all …]
|
/linux/drivers/net/hyperv/ |
H A D | netvsc_drv.c | 89 struct netvsc_device *nvdev; in netvsc_set_rx_mode() local 98 nvdev = rcu_dereference(ndev_ctx->nvdev); in netvsc_set_rx_mode() 99 if (nvdev) in netvsc_set_rx_mode() 100 rndis_filter_update(nvdev); in netvsc_set_rx_mode() 117 struct netvsc_device *nvdev = rtnl_dereference(ndev_ctx->nvdev); in netvsc_open() local 124 ret = rndis_filter_open(nvdev); in netvsc_open() 130 rdev = nvdev->extension; in netvsc_open() 133 netvsc_tx_enable(nvdev, net); in netvsc_open() 150 static int netvsc_wait_until_empty(struct netvsc_device *nvdev) in netvsc_wait_until_empty() argument 159 for (i = 0; i < nvdev->num_chn; i++) { in netvsc_wait_until_empty() [all …]
|
H A D | netvsc_bpf.c | 119 struct bpf_prog *netvsc_xdp_get(struct netvsc_device *nvdev) in netvsc_xdp_get() argument 121 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() 156 rcu_assign_pointer(nvdev->chan_table[i].bpf_prog, prog); 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() [all …]
|
H A D | rndis_filter.c | 290 struct netvsc_device *nvdev, in rndis_filter_receive_response() argument 295 struct rndis_device *dev = nvdev->extension; in rndis_filter_receive_response() 485 struct netvsc_device *nvdev, in rndis_filter_receive_data() argument 578 ret = netvsc_recv_callback(ndev, nvdev, nvchan); in rndis_filter_receive_data() 641 struct netvsc_device *nvdev, in rndis_filter_query_device() argument 671 u32 nvsp_version = nvdev->nvsp_version; in rndis_filter_query_device() 799 int rndis_filter_set_device_mac(struct netvsc_device *nvdev, in rndis_filter_set_device_mac() argument 802 struct rndis_device *rdev = nvdev->extension; in rndis_filter_set_device_mac() 865 struct netvsc_device *nvdev, in rndis_filter_set_offload_params() argument 868 struct rndis_device *rdev = nvdev->extension; in rndis_filter_set_offload_params() [all …]
|
H A D | netvsc.c | 39 struct netvsc_device *nv_dev = rtnl_dereference(net_device_ctx->nvdev); in netvsc_switch_datapath() 99 struct netvsc_device *nvdev = in netvsc_subchan_work() local 110 rdev = nvdev->extension; in netvsc_subchan_work() 112 ret = rndis_set_subchannel(rdev->ndev, nvdev, NULL); in netvsc_subchan_work() 117 for (i = 1; i < nvdev->num_chn; i++) in netvsc_subchan_work() 118 netif_napi_del(&nvdev->chan_table[i].napi); 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() [all …]
|
H A D | hyperv_net.h | 238 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
|