Home
last modified time | relevance | path

Searched refs:vdpa (Results 1 – 11 of 11) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/virtio/
H A Dvirtio_vdpa.c28 struct vdpa_device *vdpa; member
53 return to_virtio_vdpa_device(vdev)->vdpa; in vd_get_vdpa()
59 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_get() local
61 vdpa_get_config(vdpa, offset, buf, len); in virtio_vdpa_get()
67 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_set() local
68 const struct vdpa_config_ops *ops = vdpa->config; in virtio_vdpa_set()
70 ops->set_config(vdpa, offset, buf, len); in virtio_vdpa_set()
75 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_generation() local
76 const struct vdpa_config_ops *ops = vdpa->config; in virtio_vdpa_generation()
79 return ops->get_generation(vdpa); in virtio_vdpa_generation()
[all …]
/OK3568_Linux_fs/kernel/drivers/vhost/
H A Dvdpa.c41 struct vdpa_device *vdpa; member
62 const struct vdpa_config_ops *ops = v->vdpa->config; in handle_vq_kick()
64 ops->kick_vq(v->vdpa, vq - v->vqs); in handle_vq_kick()
92 const struct vdpa_config_ops *ops = v->vdpa->config; in vhost_vdpa_setup_vq_irq()
93 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_setup_vq_irq() local
99 irq = ops->get_vq_irq(vdpa, qid); in vhost_vdpa_setup_vq_irq()
124 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_reset() local
126 vdpa_reset(vdpa); in vhost_vdpa_reset()
132 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_get_device_id() local
133 const struct vdpa_config_ops *ops = vdpa->config; in vhost_vdpa_get_device_id()
[all …]
H A DMakefile14 vhost_vdpa-y := vdpa.o
/OK3568_Linux_fs/kernel/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim.c82 struct vdpa_device vdpa; member
118 static struct vdpasim *vdpa_to_sim(struct vdpa_device *vdpa) in vdpa_to_sim() argument
120 return container_of(vdpa, struct vdpasim, vdpa); in vdpa_to_sim()
125 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_sim() local
127 return vdpa_to_sim(vdpa); in dev_to_sim()
372 vdpasim = vdpa_alloc_device(struct vdpasim, vdpa, NULL, ops, in vdpasim_create()
382 dev = &vdpasim->vdpa.dev; in vdpasim_create()
418 vdpasim->vdpa.dma_dev = dev; in vdpasim_create()
419 ret = vdpa_register_device(&vdpasim->vdpa); in vdpasim_create()
431 static int vdpasim_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vdpasim_set_vq_address() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/vdpa/ifcvf/
H A Difcvf_main.c160 return container_of(vdpa_dev, struct ifcvf_adapter, vdpa); in vdpa_to_adapter()
440 adapter = vdpa_alloc_device(struct ifcvf_adapter, vdpa, in ifcvf_probe()
455 adapter->vdpa.dma_dev = &pdev->dev; in ifcvf_probe()
466 ret = vdpa_register_device(&adapter->vdpa); in ifcvf_probe()
475 put_device(&adapter->vdpa.dev); in ifcvf_probe()
483 vdpa_unregister_device(&adapter->vdpa); in ifcvf_remove()
H A Difcvf_base.h91 struct vdpa_device vdpa; member
/OK3568_Linux_fs/kernel/drivers/vdpa/
H A DMakefile2 obj-$(CONFIG_VDPA) += vdpa.o
/OK3568_Linux_fs/kernel/drivers/vdpa/mlx5/
H A DMakefile1 subdir-ccflags-y += -I$(srctree)/drivers/vdpa/mlx5/core
/OK3568_Linux_fs/kernel/drivers/
H A DMakefile45 obj-$(CONFIG_VDPA) += vdpa/
H A DKconfig141 source "drivers/vdpa/Kconfig"
/OK3568_Linux_fs/kernel/
H A DMAINTAINERS18610 F: drivers/vdpa/
18612 F: include/linux/vdpa.h