Home
last modified time | relevance | path

Searched refs:vdev (Results 1 – 25 of 482) sorted by relevance

12345678910>>...20

/drivers/net/ethernet/cisco/enic/
Dvnic_dev.c39 void *vnic_dev_priv(struct vnic_dev *vdev) in vnic_dev_priv() argument
41 return vdev->priv; in vnic_dev_priv()
44 static int vnic_dev_discover_res(struct vnic_dev *vdev, in vnic_dev_discover_res() argument
56 vdev_err(vdev, "vNIC BAR0 res hdr length error\n"); in vnic_dev_discover_res()
63 vdev_err(vdev, "vNIC BAR0 res hdr not mem-mapped\n"); in vnic_dev_discover_res()
72 vdev_err(vdev, "vNIC BAR0 res magic/version error exp (%lx/%lx) or (%lx/%lx), curr (%x/%x)\n", in vnic_dev_discover_res()
109 vdev_err(vdev, "vNIC BAR0 resource %d out-of-bounds, offset 0x%x + size 0x%x > bar len 0x%lx\n", in vnic_dev_discover_res()
124 vdev->res[type].count = count; in vnic_dev_discover_res()
125 vdev->res[type].vaddr = (char __iomem *)bar[bar_num].vaddr + in vnic_dev_discover_res()
127 vdev->res[type].bus_addr = bar[bar_num].bus_addr + bar_offset; in vnic_dev_discover_res()
[all …]
Dvnic_dev.h111 int (*devcmd_rtn)(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
117 void *vnic_dev_priv(struct vnic_dev *vdev);
118 unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev,
120 void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type,
123 int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring,
125 void vnic_dev_free_desc_ring(struct vnic_dev *vdev,
127 int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
129 void vnic_dev_cmd_proxy_by_index_start(struct vnic_dev *vdev, u16 index);
130 void vnic_dev_cmd_proxy_end(struct vnic_dev *vdev);
131 int vnic_dev_fw_info(struct vnic_dev *vdev,
[all …]
/drivers/vfio/pci/
Dvfio_pci_intrs.c30 struct vfio_pci_core_device *vdev = opaque; in vfio_send_intx_eventfd() local
32 if (likely(is_intx(vdev) && !vdev->virq_disabled)) in vfio_send_intx_eventfd()
33 eventfd_signal(vdev->ctx[0].trigger, 1); in vfio_send_intx_eventfd()
36 void vfio_pci_intx_mask(struct vfio_pci_core_device *vdev) in vfio_pci_intx_mask() argument
38 struct pci_dev *pdev = vdev->pdev; in vfio_pci_intx_mask()
41 spin_lock_irqsave(&vdev->irqlock, flags); in vfio_pci_intx_mask()
49 if (unlikely(!is_intx(vdev))) { in vfio_pci_intx_mask()
50 if (vdev->pci_2_3) in vfio_pci_intx_mask()
52 } else if (!vdev->ctx[0].masked) { in vfio_pci_intx_mask()
57 if (vdev->pci_2_3) in vfio_pci_intx_mask()
[all …]
Dvfio_pci_core.c90 static void vfio_pci_probe_mmaps(struct vfio_pci_core_device *vdev) in vfio_pci_probe_mmaps() argument
99 res = &vdev->pdev->resource[bar]; in vfio_pci_probe_mmaps()
116 vdev->bar_mmap_supported[bar] = true; in vfio_pci_probe_mmaps()
141 &vdev->dummy_resources_list); in vfio_pci_probe_mmaps()
142 vdev->bar_mmap_supported[bar] = true; in vfio_pci_probe_mmaps()
154 vdev->bar_mmap_supported[bar] = false; in vfio_pci_probe_mmaps()
194 static void vfio_pci_probe_power_state(struct vfio_pci_core_device *vdev) in vfio_pci_probe_power_state() argument
196 struct pci_dev *pdev = vdev->pdev; in vfio_pci_probe_power_state()
204 vdev->needs_pm_restore = !(pmcsr & PCI_PM_CTRL_NO_SOFT_RESET); in vfio_pci_probe_power_state()
214 int vfio_pci_set_power_state(struct vfio_pci_core_device *vdev, pci_power_t state) in vfio_pci_set_power_state() argument
[all …]
Dvfio_pci_rdwr.c41 static int vfio_pci_iowrite##size(struct vfio_pci_core_device *vdev, \
45 down_read(&vdev->memory_lock); \
46 if (!__vfio_pci_memory_enabled(vdev)) { \
47 up_read(&vdev->memory_lock); \
55 up_read(&vdev->memory_lock); \
68 static int vfio_pci_ioread##size(struct vfio_pci_core_device *vdev, \
72 down_read(&vdev->memory_lock); \
73 if (!__vfio_pci_memory_enabled(vdev)) { \
74 up_read(&vdev->memory_lock); \
82 up_read(&vdev->memory_lock); \
[all …]
Dvfio_pci_config.c111 int (*readfn)(struct vfio_pci_core_device *vdev, int pos, int count,
113 int (*writefn)(struct vfio_pci_core_device *vdev, int pos, int count,
174 static int vfio_default_config_read(struct vfio_pci_core_device *vdev, int pos, in vfio_default_config_read() argument
180 memcpy(val, vdev->vconfig + pos, count); in vfio_default_config_read()
186 struct pci_dev *pdev = vdev->pdev; in vfio_default_config_read()
200 static int vfio_default_config_write(struct vfio_pci_core_device *vdev, int pos, in vfio_default_config_write() argument
217 memcpy(&virt_val, vdev->vconfig + pos, count); in vfio_default_config_write()
222 memcpy(vdev->vconfig + pos, &virt_val, count); in vfio_default_config_write()
227 struct pci_dev *pdev = vdev->pdev; in vfio_default_config_write()
247 static int vfio_direct_config_read(struct vfio_pci_core_device *vdev, int pos, in vfio_direct_config_read() argument
[all …]
/drivers/scsi/fnic/
Dvnic_dev.c73 int (*devcmd_rtn)(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
82 void *vnic_dev_priv(struct vnic_dev *vdev) in vnic_dev_priv() argument
84 return vdev->priv; in vnic_dev_priv()
87 static int vnic_dev_discover_res(struct vnic_dev *vdev, in vnic_dev_discover_res() argument
154 vdev->res[type].count = count; in vnic_dev_discover_res()
155 vdev->res[type].vaddr = (char __iomem *)bar->vaddr + bar_offset; in vnic_dev_discover_res()
161 unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev, in vnic_dev_get_res_count() argument
164 return vdev->res[type].count; in vnic_dev_get_res_count()
167 void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, in vnic_dev_get_res() argument
170 if (!vdev->res[type].vaddr) in vnic_dev_get_res()
[all …]
Dvnic_dev.h112 void *vnic_dev_priv(struct vnic_dev *vdev);
113 unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev,
115 void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type,
121 int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring,
123 void vnic_dev_free_desc_ring(struct vnic_dev *vdev,
125 int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
127 int vnic_dev_fw_info(struct vnic_dev *vdev,
129 int vnic_dev_spec(struct vnic_dev *vdev, unsigned int offset,
131 int vnic_dev_stats_clear(struct vnic_dev *vdev);
132 int vnic_dev_cmd_init(struct vnic_dev *vdev);
[all …]
/drivers/vfio/platform/
Dvfio_platform_common.c26 #define VFIO_PLATFORM_IS_ACPI(vdev) ((vdev)->acpihid != NULL) argument
50 static int vfio_platform_acpi_probe(struct vfio_platform_device *vdev, in vfio_platform_acpi_probe() argument
61 vdev->name); in vfio_platform_acpi_probe()
66 vdev->acpihid = acpi_device_hid(adev); in vfio_platform_acpi_probe()
68 return WARN_ON(!vdev->acpihid) ? -EINVAL : 0; in vfio_platform_acpi_probe()
71 static int vfio_platform_acpi_call_reset(struct vfio_platform_device *vdev, in vfio_platform_acpi_call_reset() argument
75 struct device *dev = vdev->device; in vfio_platform_acpi_call_reset()
92 static bool vfio_platform_acpi_has_reset(struct vfio_platform_device *vdev) in vfio_platform_acpi_has_reset() argument
95 struct device *dev = vdev->device; in vfio_platform_acpi_has_reset()
104 static bool vfio_platform_has_reset(struct vfio_platform_device *vdev) in vfio_platform_has_reset() argument
[all …]
Dvfio_platform_irq.c41 static int vfio_platform_set_irq_mask(struct vfio_platform_device *vdev, in vfio_platform_set_irq_mask() argument
49 if (!(vdev->irqs[index].flags & VFIO_IRQ_INFO_MASKABLE)) in vfio_platform_set_irq_mask()
56 return vfio_virqfd_enable((void *) &vdev->irqs[index], in vfio_platform_set_irq_mask()
59 &vdev->irqs[index].mask, fd); in vfio_platform_set_irq_mask()
61 vfio_virqfd_disable(&vdev->irqs[index].mask); in vfio_platform_set_irq_mask()
66 vfio_platform_mask(&vdev->irqs[index]); in vfio_platform_set_irq_mask()
72 vfio_platform_mask(&vdev->irqs[index]); in vfio_platform_set_irq_mask()
101 static int vfio_platform_set_irq_unmask(struct vfio_platform_device *vdev, in vfio_platform_set_irq_unmask() argument
109 if (!(vdev->irqs[index].flags & VFIO_IRQ_INFO_MASKABLE)) in vfio_platform_set_irq_unmask()
116 return vfio_virqfd_enable((void *) &vdev->irqs[index], in vfio_platform_set_irq_unmask()
[all …]
Dvfio_amba.c20 static struct resource *get_amba_resource(struct vfio_platform_device *vdev, in get_amba_resource() argument
23 struct amba_device *adev = (struct amba_device *) vdev->opaque; in get_amba_resource()
31 static int get_amba_irq(struct vfio_platform_device *vdev, int i) in get_amba_irq() argument
33 struct amba_device *adev = (struct amba_device *) vdev->opaque; in get_amba_irq()
45 struct vfio_platform_device *vdev; in vfio_amba_probe() local
48 vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); in vfio_amba_probe()
49 if (!vdev) in vfio_amba_probe()
52 vdev->name = kasprintf(GFP_KERNEL, "vfio-amba-%08x", adev->periphid); in vfio_amba_probe()
53 if (!vdev->name) { in vfio_amba_probe()
54 kfree(vdev); in vfio_amba_probe()
[all …]
Dvfio_platform.c24 static struct resource *get_platform_resource(struct vfio_platform_device *vdev, in get_platform_resource() argument
27 struct platform_device *dev = (struct platform_device *) vdev->opaque; in get_platform_resource()
32 static int get_platform_irq(struct vfio_platform_device *vdev, int i) in get_platform_irq() argument
34 struct platform_device *pdev = (struct platform_device *) vdev->opaque; in get_platform_irq()
41 struct vfio_platform_device *vdev; in vfio_platform_probe() local
44 vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); in vfio_platform_probe()
45 if (!vdev) in vfio_platform_probe()
48 vdev->opaque = (void *) pdev; in vfio_platform_probe()
49 vdev->name = pdev->name; in vfio_platform_probe()
50 vdev->flags = VFIO_DEVICE_FLAGS_PLATFORM; in vfio_platform_probe()
[all …]
/drivers/scsi/snic/
Dvnic_dev.c68 int (*devcmd_rtn)(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
77 void *svnic_dev_priv(struct vnic_dev *vdev) in svnic_dev_priv() argument
79 return vdev->priv; in svnic_dev_priv()
82 static int vnic_dev_discover_res(struct vnic_dev *vdev, in vnic_dev_discover_res() argument
158 vdev->res[type].count = count; in vnic_dev_discover_res()
159 vdev->res[type].vaddr = (char __iomem *)bar->vaddr + bar_offset; in vnic_dev_discover_res()
165 unsigned int svnic_dev_get_res_count(struct vnic_dev *vdev, in svnic_dev_get_res_count() argument
168 return vdev->res[type].count; in svnic_dev_get_res_count()
171 void __iomem *svnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, in svnic_dev_get_res() argument
174 if (!vdev->res[type].vaddr) in svnic_dev_get_res()
[all …]
Dvnic_dev.h70 void *svnic_dev_priv(struct vnic_dev *vdev);
71 unsigned int svnic_dev_get_res_count(struct vnic_dev *vdev,
73 void __iomem *svnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type,
79 int svnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring,
81 void svnic_dev_free_desc_ring(struct vnic_dev *vdev,
83 int svnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
85 int svnic_dev_fw_info(struct vnic_dev *vdev,
87 int svnic_dev_spec(struct vnic_dev *vdev, unsigned int offset,
89 int svnic_dev_stats_clear(struct vnic_dev *vdev);
90 int svnic_dev_stats_dump(struct vnic_dev *vdev, struct vnic_stats **stats);
[all …]
/drivers/media/v4l2-core/
Dv4l2-dev.c49 struct video_device *vdev = to_video_device(cd); in index_show() local
51 return sprintf(buf, "%i\n", vdev->index); in index_show()
58 struct video_device *vdev = to_video_device(cd); in dev_debug_show() local
60 return sprintf(buf, "%i\n", vdev->dev_debug); in dev_debug_show()
66 struct video_device *vdev = to_video_device(cd); in dev_debug_store() local
74 vdev->dev_debug = value; in dev_debug_store()
82 struct video_device *vdev = to_video_device(cd); in name_show() local
84 return sprintf(buf, "%.*s\n", (int)sizeof(vdev->name), vdev->name); in name_show()
128 static inline void devnode_set(struct video_device *vdev) in devnode_set() argument
130 set_bit(vdev->num, devnode_bits(vdev->vfl_type)); in devnode_set()
[all …]
/drivers/net/ethernet/neterion/vxge/
Dvxge-main.c90 static void vxge_reset_all_vpaths(struct vxgedev *vdev);
92 static inline int is_vxge_card_up(struct vxgedev *vdev) in is_vxge_card_up() argument
94 return test_bit(__VXGE_STATE_CARD_UP, &vdev->state); in is_vxge_card_up()
121 static inline void VXGE_COMPLETE_ALL_TX(struct vxgedev *vdev) in VXGE_COMPLETE_ALL_TX() argument
126 for (i = 0; i < vdev->no_of_vpath; i++) in VXGE_COMPLETE_ALL_TX()
127 VXGE_COMPLETE_VPATH_TX(&vdev->vpaths[i].fifo); in VXGE_COMPLETE_ALL_TX()
130 static inline void VXGE_COMPLETE_ALL_RX(struct vxgedev *vdev) in VXGE_COMPLETE_ALL_RX() argument
136 for (i = 0; i < vdev->no_of_vpath; i++) { in VXGE_COMPLETE_ALL_RX()
137 ring = &vdev->vpaths[i].ring; in VXGE_COMPLETE_ALL_RX()
151 struct vxgedev *vdev = netdev_priv(dev); in vxge_callback_link_up() local
[all …]
/drivers/vfio/fsl-mc/
Dvfio_fsl_mc.c24 struct vfio_fsl_mc_device *vdev = in vfio_fsl_mc_open_device() local
25 container_of(core_vdev, struct vfio_fsl_mc_device, vdev); in vfio_fsl_mc_open_device()
26 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_open_device()
30 vdev->regions = kcalloc(count, sizeof(struct vfio_fsl_mc_region), in vfio_fsl_mc_open_device()
32 if (!vdev->regions) in vfio_fsl_mc_open_device()
39 vdev->regions[i].addr = res->start; in vfio_fsl_mc_open_device()
40 vdev->regions[i].size = resource_size(res); in vfio_fsl_mc_open_device()
41 vdev->regions[i].type = mc_dev->regions[i].flags & IORESOURCE_BITS; in vfio_fsl_mc_open_device()
46 if (!no_mmap && !(vdev->regions[i].addr & ~PAGE_MASK) && in vfio_fsl_mc_open_device()
47 !(vdev->regions[i].size & ~PAGE_MASK)) in vfio_fsl_mc_open_device()
[all …]
Dvfio_fsl_mc_intr.c16 static int vfio_fsl_mc_irqs_allocate(struct vfio_fsl_mc_device *vdev) in vfio_fsl_mc_irqs_allocate() argument
18 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_irqs_allocate()
28 if (vdev->mc_irqs) in vfio_fsl_mc_irqs_allocate()
49 vdev->mc_irqs = mc_irq; in vfio_fsl_mc_irqs_allocate()
62 static int vfio_set_trigger(struct vfio_fsl_mc_device *vdev, in vfio_set_trigger() argument
65 struct vfio_fsl_mc_irq *irq = &vdev->mc_irqs[index]; in vfio_set_trigger()
70 hwirq = vdev->mc_dev->irqs[index]->msi_desc->irq; in vfio_set_trigger()
82 hwirq, dev_name(&vdev->mc_dev->dev)); in vfio_set_trigger()
106 static int vfio_fsl_mc_set_irq_trigger(struct vfio_fsl_mc_device *vdev, in vfio_fsl_mc_set_irq_trigger() argument
111 struct fsl_mc_device *mc_dev = vdev->mc_dev; in vfio_fsl_mc_set_irq_trigger()
[all …]
/drivers/remoteproc/
Dremoteproc_virtio.c65 static struct virtqueue *rp_find_vq(struct virtio_device *vdev, in rp_find_vq() argument
70 struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); in rp_find_vq()
71 struct rproc *rproc = vdev_to_rproc(vdev); in rp_find_vq()
108 vq = vring_new_virtqueue(id, len, rvring->align, vdev, false, ctx, in rp_find_vq()
126 static void __rproc_virtio_del_vqs(struct virtio_device *vdev) in __rproc_virtio_del_vqs() argument
131 list_for_each_entry_safe(vq, n, &vdev->vqs, list) { in __rproc_virtio_del_vqs()
138 static void rproc_virtio_del_vqs(struct virtio_device *vdev) in rproc_virtio_del_vqs() argument
140 __rproc_virtio_del_vqs(vdev); in rproc_virtio_del_vqs()
143 static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in rproc_virtio_find_vqs() argument
158 vqs[i] = rp_find_vq(vdev, queue_idx++, callbacks[i], names[i], in rproc_virtio_find_vqs()
[all …]
/drivers/virtio/
Dvirtio_vdpa.c27 struct virtio_device vdev; member
48 return container_of(dev, struct virtio_vdpa_device, vdev); in to_virtio_vdpa_device()
51 static struct vdpa_device *vd_get_vdpa(struct virtio_device *vdev) in vd_get_vdpa() argument
53 return to_virtio_vdpa_device(vdev)->vdpa; in vd_get_vdpa()
56 static void virtio_vdpa_get(struct virtio_device *vdev, unsigned offset, in virtio_vdpa_get() argument
59 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_get()
64 static void virtio_vdpa_set(struct virtio_device *vdev, unsigned offset, in virtio_vdpa_set() argument
67 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_set()
73 static u32 virtio_vdpa_generation(struct virtio_device *vdev) in virtio_vdpa_generation() argument
75 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_generation()
[all …]
/drivers/usb/usbip/
Dvhci_sysfs.c38 static void port_show_vhci(char **out, int hub, int port, struct vhci_device *vdev) in port_show_vhci() argument
42 port, vdev->ud.status); in port_show_vhci()
45 port, vdev->ud.status); in port_show_vhci()
47 if (vdev->ud.status == VDEV_ST_USED) { in port_show_vhci()
49 vdev->speed, vdev->devid); in port_show_vhci()
51 vdev->ud.sockfd, in port_show_vhci()
52 dev_name(&vdev->udev->dev)); in port_show_vhci()
85 struct vhci_device *vdev = &vhci->vhci_hcd_hs->vdev[i]; in status_show_vhci() local
87 spin_lock(&vdev->ud.lock); in status_show_vhci()
89 pdev_nr * VHCI_PORTS + i, vdev); in status_show_vhci()
[all …]
Dvhci_tx.c16 struct vhci_device *vdev = priv->vdev; in setup_cmd_submit_pdu() local
19 usb_pipedevice(urb->pipe), vdev->devid); in setup_cmd_submit_pdu()
23 pdup->base.devid = vdev->devid; in setup_cmd_submit_pdu()
34 static struct vhci_priv *dequeue_from_priv_tx(struct vhci_device *vdev) in dequeue_from_priv_tx() argument
39 spin_lock_irqsave(&vdev->priv_lock, flags); in dequeue_from_priv_tx()
41 list_for_each_entry_safe(priv, tmp, &vdev->priv_tx, list) { in dequeue_from_priv_tx()
42 list_move_tail(&priv->list, &vdev->priv_rx); in dequeue_from_priv_tx()
43 spin_unlock_irqrestore(&vdev->priv_lock, flags); in dequeue_from_priv_tx()
47 spin_unlock_irqrestore(&vdev->priv_lock, flags); in dequeue_from_priv_tx()
52 static int vhci_send_cmd_submit(struct vhci_device *vdev) in vhci_send_cmd_submit() argument
[all …]
/drivers/crypto/virtio/
Dvirtio_crypto_core.c43 struct virtio_crypto *vcrypto = vq->vdev->priv; in virtcrypto_dataq_callback()
56 struct device *dev = &vi->vdev->dev; in virtcrypto_find_vqs()
88 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL); in virtcrypto_find_vqs()
210 virtio_cread_le(vcrypto->vdev, in virtcrypto_update_status()
218 dev_warn(&vcrypto->vdev->dev, in virtcrypto_update_status()
221 virtio_break_device(vcrypto->vdev); in virtcrypto_update_status()
233 dev_err(&vcrypto->vdev->dev, in virtcrypto_update_status()
238 dev_info(&vcrypto->vdev->dev, "Accelerator device is ready\n"); in virtcrypto_update_status()
241 dev_info(&vcrypto->vdev->dev, "Accelerator is not ready\n"); in virtcrypto_update_status()
281 struct virtio_device *vdev = vcrypto->vdev; in virtcrypto_del_vqs() local
[all …]
/drivers/vdpa/
Dvdpa.c27 struct vdpa_device *vdev = dev_to_vdpa(d); in vdpa_dev_probe() local
28 struct vdpa_driver *drv = drv_to_vdpa(vdev->dev.driver); in vdpa_dev_probe()
32 ret = drv->probe(vdev); in vdpa_dev_probe()
39 struct vdpa_device *vdev = dev_to_vdpa(d); in vdpa_dev_remove() local
40 struct vdpa_driver *drv = drv_to_vdpa(vdev->dev.driver); in vdpa_dev_remove()
43 drv->remove(vdev); in vdpa_dev_remove()
54 struct vdpa_device *vdev = dev_to_vdpa(d); in vdpa_release_dev() local
55 const struct vdpa_config_ops *ops = vdev->config; in vdpa_release_dev()
58 ops->free(vdev); in vdpa_release_dev()
60 ida_simple_remove(&vdpa_index_ida, vdev->index); in vdpa_release_dev()
[all …]
/drivers/nvdimm/
Dvirtio_pmem.c21 vpmem->req_vq = virtio_find_single_vq(vpmem->vdev, in init_vq()
32 static int virtio_pmem_probe(struct virtio_device *vdev) in virtio_pmem_probe() argument
35 int nid = dev_to_node(&vdev->dev); in virtio_pmem_probe()
41 if (!vdev->config->get) { in virtio_pmem_probe()
42 dev_err(&vdev->dev, "%s failure: config access disabled\n", in virtio_pmem_probe()
47 vpmem = devm_kzalloc(&vdev->dev, sizeof(*vpmem), GFP_KERNEL); in virtio_pmem_probe()
53 vpmem->vdev = vdev; in virtio_pmem_probe()
54 vdev->priv = vpmem; in virtio_pmem_probe()
57 dev_err(&vdev->dev, "failed to initialize virtio pmem vq's\n"); in virtio_pmem_probe()
61 virtio_cread_le(vpmem->vdev, struct virtio_pmem_config, in virtio_pmem_probe()
[all …]

12345678910>>...20