Lines Matching refs:vdpa

26 #include <linux/vdpa.h>
82 struct vdpa_device vdpa;
118 static struct vdpasim *vdpa_to_sim(struct vdpa_device *vdpa)
120 return container_of(vdpa, struct vdpasim, vdpa);
125 struct vdpa_device *vdpa = dev_to_vdpa(dev);
127 return vdpa_to_sim(vdpa);
372 vdpasim = vdpa_alloc_device(struct vdpasim, vdpa, NULL, ops,
382 dev = &vdpasim->vdpa.dev;
418 vdpasim->vdpa.dma_dev = dev;
419 ret = vdpa_register_device(&vdpasim->vdpa);
431 static int vdpasim_set_vq_address(struct vdpa_device *vdpa, u16 idx,
435 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
445 static void vdpasim_set_vq_num(struct vdpa_device *vdpa, u16 idx, u32 num)
447 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
453 static void vdpasim_kick_vq(struct vdpa_device *vdpa, u16 idx)
455 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
462 static void vdpasim_set_vq_cb(struct vdpa_device *vdpa, u16 idx,
465 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
472 static void vdpasim_set_vq_ready(struct vdpa_device *vdpa, u16 idx, bool ready)
474 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
487 static bool vdpasim_get_vq_ready(struct vdpa_device *vdpa, u16 idx)
489 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
495 static int vdpasim_set_vq_state(struct vdpa_device *vdpa, u16 idx,
498 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
509 static int vdpasim_get_vq_state(struct vdpa_device *vdpa, u16 idx,
512 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
520 static u32 vdpasim_get_vq_align(struct vdpa_device *vdpa)
525 static u64 vdpasim_get_features(struct vdpa_device *vdpa)
530 static int vdpasim_set_features(struct vdpa_device *vdpa, u64 features)
532 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
543 static void vdpasim_set_config_cb(struct vdpa_device *vdpa,
549 static u16 vdpasim_get_vq_num_max(struct vdpa_device *vdpa)
554 static u32 vdpasim_get_device_id(struct vdpa_device *vdpa)
559 static u32 vdpasim_get_vendor_id(struct vdpa_device *vdpa)
564 static u8 vdpasim_get_status(struct vdpa_device *vdpa)
566 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
576 static void vdpasim_set_status(struct vdpa_device *vdpa, u8 status)
578 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
587 static void vdpasim_get_config(struct vdpa_device *vdpa, unsigned int offset,
590 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
601 static void vdpasim_set_config(struct vdpa_device *vdpa, unsigned int offset,
607 static u32 vdpasim_get_generation(struct vdpa_device *vdpa)
609 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
614 static struct vdpa_iova_range vdpasim_get_iova_range(struct vdpa_device *vdpa)
624 static int vdpasim_set_map(struct vdpa_device *vdpa,
627 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
651 static int vdpasim_dma_map(struct vdpa_device *vdpa, u64 iova, u64 size,
654 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
665 static int vdpasim_dma_unmap(struct vdpa_device *vdpa, u64 iova, u64 size)
667 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
676 static void vdpasim_free(struct vdpa_device *vdpa)
678 struct vdpasim *vdpasim = vdpa_to_sim(vdpa);
769 struct vdpa_device *vdpa = &vdpasim_dev->vdpa;
771 vdpa_unregister_device(vdpa);