Home
last modified time | relevance | path

Searched refs:vdpa (Results 1 - 25 of 36) sorted by relevance

12

/kernel/linux/linux-6.6/drivers/virtio/
H A Dvirtio_vdpa.c18 #include <linux/vdpa.h>
29 struct vdpa_device *vdpa; member
54 return to_virtio_vdpa_device(vdev)->vdpa; in vd_get_vdpa()
60 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_get() local
62 vdpa_get_config(vdpa, offset, buf, len); in virtio_vdpa_get()
68 struct vdpa_device *vdpa = vd_get_vdpa(vdev); in virtio_vdpa_set() local
70 vdpa_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()
86 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_get_status() local
94 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_set_status() local
101 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_reset() local
108 struct vdpa_device *vdpa = vd_get_vdpa(vq->vdev); virtio_vdpa_notify() local
118 struct vdpa_device *vdpa = vd_get_vdpa(vq->vdev); virtio_vdpa_notify_with_data() local
149 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_setup_vq() local
270 struct vdpa_device *vdpa = vd_dev->vdpa; virtio_vdpa_del_vq() local
364 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_find_vqs() local
413 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_get_features() local
421 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_finalize_features() local
432 struct vdpa_device *vdpa = vd_dev->vdpa; virtio_vdpa_bus_name() local
441 struct vdpa_device *vdpa = vd_dev->vdpa; virtio_vdpa_set_vq_affinity() local
454 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_get_vq_affinity() local
489 virtio_vdpa_probe(struct vdpa_device *vdpa) virtio_vdpa_probe() argument
528 virtio_vdpa_remove(struct vdpa_device *vdpa) virtio_vdpa_remove() argument
[all...]
/kernel/linux/linux-5.10/drivers/virtio/
H A Dvirtio_vdpa.c17 #include <linux/vdpa.h>
28 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 in virtio_vdpa_generation()
86 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_get_status() local
94 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_set_status() local
102 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_reset() local
109 struct vdpa_device *vdpa = vd_get_vdpa(vq->vdev); virtio_vdpa_notify() local
139 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_setup_vq() local
221 struct vdpa_device *vdpa = vd_dev->vdpa; virtio_vdpa_del_vq() local
256 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_find_vqs() local
289 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_get_features() local
297 struct vdpa_device *vdpa = vd_get_vdpa(vdev); virtio_vdpa_finalize_features() local
308 struct vdpa_device *vdpa = vd_dev->vdpa; virtio_vdpa_bus_name() local
337 virtio_vdpa_probe(struct vdpa_device *vdpa) virtio_vdpa_probe() argument
376 virtio_vdpa_remove(struct vdpa_device *vdpa) virtio_vdpa_remove() argument
[all...]
/kernel/linux/linux-6.6/drivers/vdpa/alibaba/
H A Deni_vdpa.c14 #include <linux/vdpa.h>
39 struct vdpa_device vdpa; member
49 static struct eni_vdpa *vdpa_to_eni(struct vdpa_device *vdpa) in vdpa_to_eni() argument
51 return container_of(vdpa, struct eni_vdpa, vdpa); in vdpa_to_eni()
54 static struct virtio_pci_legacy_device *vdpa_to_ldev(struct vdpa_device *vdpa) in vdpa_to_ldev() argument
56 struct eni_vdpa *eni_vdpa = vdpa_to_eni(vdpa); in vdpa_to_ldev()
61 static u64 eni_vdpa_get_device_features(struct vdpa_device *vdpa) in eni_vdpa_get_device_features() argument
63 struct virtio_pci_legacy_device *ldev = vdpa_to_ldev(vdpa); in eni_vdpa_get_device_features()
72 static int eni_vdpa_set_driver_features(struct vdpa_device *vdpa, u6 argument
87 eni_vdpa_get_driver_features(struct vdpa_device *vdpa) eni_vdpa_get_driver_features() argument
94 eni_vdpa_get_status(struct vdpa_device *vdpa) eni_vdpa_get_status() argument
101 eni_vdpa_get_vq_irq(struct vdpa_device *vdpa, u16 idx) eni_vdpa_get_vq_irq() argument
211 eni_vdpa_set_status(struct vdpa_device *vdpa, u8 status) eni_vdpa_set_status() argument
229 eni_vdpa_reset(struct vdpa_device *vdpa) eni_vdpa_reset() argument
243 eni_vdpa_get_vq_num_max(struct vdpa_device *vdpa) eni_vdpa_get_vq_num_max() argument
250 eni_vdpa_get_vq_num_min(struct vdpa_device *vdpa) eni_vdpa_get_vq_num_min() argument
257 eni_vdpa_get_vq_state(struct vdpa_device *vdpa, u16 qid, struct vdpa_vq_state *state) eni_vdpa_get_vq_state() argument
263 eni_vdpa_set_vq_state(struct vdpa_device *vdpa, u16 qid, const struct vdpa_vq_state *state) eni_vdpa_set_vq_state() argument
281 eni_vdpa_set_vq_cb(struct vdpa_device *vdpa, u16 qid, struct vdpa_callback *cb) eni_vdpa_set_vq_cb() argument
289 eni_vdpa_set_vq_ready(struct vdpa_device *vdpa, u16 qid, bool ready) eni_vdpa_set_vq_ready() argument
302 eni_vdpa_get_vq_ready(struct vdpa_device *vdpa, u16 qid) eni_vdpa_get_vq_ready() argument
309 eni_vdpa_set_vq_num(struct vdpa_device *vdpa, u16 qid, u32 num) eni_vdpa_set_vq_num() argument
326 eni_vdpa_set_vq_address(struct vdpa_device *vdpa, u16 qid, u64 desc_area, u64 driver_area, u64 device_area) eni_vdpa_set_vq_address() argument
338 eni_vdpa_kick_vq(struct vdpa_device *vdpa, u16 qid) eni_vdpa_kick_vq() argument
345 eni_vdpa_get_device_id(struct vdpa_device *vdpa) eni_vdpa_get_device_id() argument
352 eni_vdpa_get_vendor_id(struct vdpa_device *vdpa) eni_vdpa_get_vendor_id() argument
359 eni_vdpa_get_vq_align(struct vdpa_device *vdpa) eni_vdpa_get_vq_align() argument
364 eni_vdpa_get_config_size(struct vdpa_device *vdpa) eni_vdpa_get_config_size() argument
370 eni_vdpa_get_config(struct vdpa_device *vdpa, unsigned int offset, void *buf, unsigned int len) eni_vdpa_get_config() argument
386 eni_vdpa_set_config(struct vdpa_device *vdpa, unsigned int offset, const void *buf, unsigned int len) eni_vdpa_set_config() argument
402 eni_vdpa_set_config_cb(struct vdpa_device *vdpa, struct vdpa_callback *cb) eni_vdpa_set_config_cb() argument
[all...]
/kernel/linux/linux-6.6/drivers/vdpa/virtio_pci/
H A Dvp_vdpa.c14 #include <linux/vdpa.h>
20 #include <uapi/linux/vdpa.h>
35 struct vdpa_device vdpa; member
52 static struct vp_vdpa *vdpa_to_vp(struct vdpa_device *vdpa) in vdpa_to_vp() argument
54 return container_of(vdpa, struct vp_vdpa, vdpa); in vdpa_to_vp()
57 static struct virtio_pci_modern_device *vdpa_to_mdev(struct vdpa_device *vdpa) in vdpa_to_mdev() argument
59 struct vp_vdpa *vp_vdpa = vdpa_to_vp(vdpa); in vdpa_to_mdev()
69 static u64 vp_vdpa_get_device_features(struct vdpa_device *vdpa) in vp_vdpa_get_device_features() argument
71 struct vp_vdpa *vp_vdpa = vdpa_to_vp(vdpa); in vp_vdpa_get_device_features()
76 vp_vdpa_set_driver_features(struct vdpa_device *vdpa, u64 features) vp_vdpa_set_driver_features() argument
85 vp_vdpa_get_driver_features(struct vdpa_device *vdpa) vp_vdpa_get_driver_features() argument
92 vp_vdpa_get_status(struct vdpa_device *vdpa) vp_vdpa_get_status() argument
99 vp_vdpa_get_vq_irq(struct vdpa_device *vdpa, u16 idx) vp_vdpa_get_vq_irq() argument
211 vp_vdpa_set_status(struct vdpa_device *vdpa, u8 status) vp_vdpa_set_status() argument
225 vp_vdpa_reset(struct vdpa_device *vdpa) vp_vdpa_reset() argument
239 vp_vdpa_get_vq_num_max(struct vdpa_device *vdpa) vp_vdpa_get_vq_num_max() argument
244 vp_vdpa_get_vq_state(struct vdpa_device *vdpa, u16 qid, struct vdpa_vq_state *state) vp_vdpa_get_vq_state() argument
254 vp_vdpa_set_vq_state_split(struct vdpa_device *vdpa, const struct vdpa_vq_state *state) vp_vdpa_set_vq_state_split() argument
265 vp_vdpa_set_vq_state_packed(struct vdpa_device *vdpa, const struct vdpa_vq_state *state) vp_vdpa_set_vq_state_packed() argument
279 vp_vdpa_set_vq_state(struct vdpa_device *vdpa, u16 qid, const struct vdpa_vq_state *state) vp_vdpa_set_vq_state() argument
300 vp_vdpa_set_vq_cb(struct vdpa_device *vdpa, u16 qid, struct vdpa_callback *cb) vp_vdpa_set_vq_cb() argument
308 vp_vdpa_set_vq_ready(struct vdpa_device *vdpa, u16 qid, bool ready) vp_vdpa_set_vq_ready() argument
316 vp_vdpa_get_vq_ready(struct vdpa_device *vdpa, u16 qid) vp_vdpa_get_vq_ready() argument
323 vp_vdpa_set_vq_num(struct vdpa_device *vdpa, u16 qid, u32 num) vp_vdpa_set_vq_num() argument
331 vp_vdpa_set_vq_address(struct vdpa_device *vdpa, u16 qid, u64 desc_area, u64 driver_area, u64 device_area) vp_vdpa_set_vq_address() argument
343 vp_vdpa_kick_vq(struct vdpa_device *vdpa, u16 qid) vp_vdpa_kick_vq() argument
350 vp_vdpa_get_generation(struct vdpa_device *vdpa) vp_vdpa_get_generation() argument
357 vp_vdpa_get_device_id(struct vdpa_device *vdpa) vp_vdpa_get_device_id() argument
364 vp_vdpa_get_vendor_id(struct vdpa_device *vdpa) vp_vdpa_get_vendor_id() argument
371 vp_vdpa_get_vq_align(struct vdpa_device *vdpa) vp_vdpa_get_vq_align() argument
376 vp_vdpa_get_config_size(struct vdpa_device *vdpa) vp_vdpa_get_config_size() argument
383 vp_vdpa_get_config(struct vdpa_device *vdpa, unsigned int offset, void *buf, unsigned int len) vp_vdpa_get_config() argument
403 vp_vdpa_set_config(struct vdpa_device *vdpa, unsigned int offset, const void *buf, unsigned int len) vp_vdpa_set_config() argument
416 vp_vdpa_set_config_cb(struct vdpa_device *vdpa, struct vdpa_callback *cb) vp_vdpa_set_config_cb() argument
425 vp_vdpa_get_vq_notification(struct vdpa_device *vdpa, u16 qid) vp_vdpa_get_vq_notification() argument
[all...]
/kernel/linux/linux-6.6/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim.c18 #include <linux/vdpa.h>
20 #include <uapi/linux/vdpa.h>
77 static struct vdpasim *vdpa_to_sim(struct vdpa_device *vdpa) in vdpa_to_sim() argument
79 return container_of(vdpa, struct vdpasim, vdpa); in vdpa_to_sim()
195 struct vdpa_device *vdpa; in vdpasim_create() local
216 vdpa = __vdpa_alloc_device(NULL, ops, in vdpasim_create()
220 if (IS_ERR(vdpa)) { in vdpasim_create()
221 ret = PTR_ERR(vdpa); in vdpasim_create()
225 vdpasim = vdpa_to_sim(vdpa); in vdpasim_create()
286 vdpasim_set_vq_address(struct vdpa_device *vdpa, u16 idx, u64 desc_area, u64 driver_area, u64 device_area) vdpasim_set_vq_address() argument
300 vdpasim_set_vq_num(struct vdpa_device *vdpa, u16 idx, u32 num) vdpasim_set_vq_num() argument
308 vdpasim_kick_vq(struct vdpa_device *vdpa, u16 idx) vdpasim_kick_vq() argument
323 vdpasim_set_vq_cb(struct vdpa_device *vdpa, u16 idx, struct vdpa_callback *cb) vdpasim_set_vq_cb() argument
333 vdpasim_set_vq_ready(struct vdpa_device *vdpa, u16 idx, bool ready) vdpasim_set_vq_ready() argument
348 vdpasim_get_vq_ready(struct vdpa_device *vdpa, u16 idx) vdpasim_get_vq_ready() argument
356 vdpasim_set_vq_state(struct vdpa_device *vdpa, u16 idx, const struct vdpa_vq_state *state) vdpasim_set_vq_state() argument
370 vdpasim_get_vq_state(struct vdpa_device *vdpa, u16 idx, struct vdpa_vq_state *state) vdpasim_get_vq_state() argument
381 vdpasim_get_vq_stats(struct vdpa_device *vdpa, u16 idx, struct sk_buff *msg, struct netlink_ext_ack *extack) vdpasim_get_vq_stats() argument
393 vdpasim_get_vq_align(struct vdpa_device *vdpa) vdpasim_get_vq_align() argument
398 vdpasim_get_vq_group(struct vdpa_device *vdpa, u16 idx) vdpasim_get_vq_group() argument
407 vdpasim_get_device_features(struct vdpa_device *vdpa) vdpasim_get_device_features() argument
414 vdpasim_get_backend_features(const struct vdpa_device *vdpa) vdpasim_get_backend_features() argument
419 vdpasim_set_driver_features(struct vdpa_device *vdpa, u64 features) vdpasim_set_driver_features() argument
432 vdpasim_get_driver_features(struct vdpa_device *vdpa) vdpasim_get_driver_features() argument
439 vdpasim_set_config_cb(struct vdpa_device *vdpa, struct vdpa_callback *cb) vdpasim_set_config_cb() argument
445 vdpasim_get_vq_num_max(struct vdpa_device *vdpa) vdpasim_get_vq_num_max() argument
450 vdpasim_get_device_id(struct vdpa_device *vdpa) vdpasim_get_device_id() argument
457 vdpasim_get_vendor_id(struct vdpa_device *vdpa) vdpasim_get_vendor_id() argument
462 vdpasim_get_status(struct vdpa_device *vdpa) vdpasim_get_status() argument
474 vdpasim_set_status(struct vdpa_device *vdpa, u8 status) vdpasim_set_status() argument
484 vdpasim_reset(struct vdpa_device *vdpa) vdpasim_reset() argument
496 vdpasim_suspend(struct vdpa_device *vdpa) vdpasim_suspend() argument
507 vdpasim_resume(struct vdpa_device *vdpa) vdpasim_resume() argument
528 vdpasim_get_config_size(struct vdpa_device *vdpa) vdpasim_get_config_size() argument
535 vdpasim_get_config(struct vdpa_device *vdpa, unsigned int offset, void *buf, unsigned int len) vdpasim_get_config() argument
549 vdpasim_set_config(struct vdpa_device *vdpa, unsigned int offset, const void *buf, unsigned int len) vdpasim_set_config() argument
563 vdpasim_get_generation(struct vdpa_device *vdpa) vdpasim_get_generation() argument
570 vdpasim_get_iova_range(struct vdpa_device *vdpa) vdpasim_get_iova_range() argument
580 vdpasim_set_group_asid(struct vdpa_device *vdpa, unsigned int group, unsigned int asid) vdpasim_set_group_asid() argument
607 vdpasim_set_map(struct vdpa_device *vdpa, unsigned int asid, struct vhost_iotlb *iotlb) vdpasim_set_map() argument
641 vdpasim_bind_mm(struct vdpa_device *vdpa, struct mm_struct *mm) vdpasim_bind_mm() argument
654 vdpasim_unbind_mm(struct vdpa_device *vdpa) vdpasim_unbind_mm() argument
665 vdpasim_dma_map(struct vdpa_device *vdpa, unsigned int asid, u64 iova, u64 size, u64 pa, u32 perm, void *opaque) vdpasim_dma_map() argument
687 vdpasim_dma_unmap(struct vdpa_device *vdpa, unsigned int asid, u64 iova, u64 size) vdpasim_dma_unmap() argument
707 vdpasim_free(struct vdpa_device *vdpa) vdpasim_free() argument
[all...]
H A Dvdpa_sim_blk.c16 #include <linux/vdpa.h>
83 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_check_range()
89 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_check_range()
96 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_check_range()
129 dev_dbg(&vdpasim->vdpa.dev, "missing headers - out_iov: %u in_iov %u\n", in vdpasim_blk_handle_req()
135 dev_dbg(&vdpasim->vdpa.dev, "request in header too short\n"); in vdpasim_blk_handle_req()
149 dev_dbg(&vdpasim->vdpa.dev, "request out header too short\n"); in vdpasim_blk_handle_req()
162 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req()
183 dev_dbg(&vdpasim->vdpa.dev, in vdpasim_blk_handle_req()
206 dev_dbg(&vdpasim->vdpa in vdpasim_blk_handle_req()
[all...]
H A Dvdpa_sim_net.c16 #include <linux/vdpa.h>
19 #include <uapi/linux/vdpa.h>
492 ret = _vdpa_register_device(&simdev->vdpa, VDPASIM_NET_VQ_NUM); in vdpasim_net_dev_add()
499 put_device(&simdev->vdpa.dev); in vdpasim_net_dev_add()
506 struct vdpasim *simdev = container_of(dev, struct vdpasim, vdpa); in vdpasim_net_dev_del()
508 _vdpa_unregister_device(&simdev->vdpa); in vdpasim_net_dev_del()
H A Dvdpa_sim.h11 #include <linux/vdpa.h>
58 struct vdpa_device vdpa; member
/kernel/linux/linux-6.6/drivers/vhost/
H A Dvdpa.c22 #include <linux/vdpa.h>
50 struct vdpa_device *vdpa; member
109 if (asid >= v->vdpa->nas) in vhost_vdpa_alloc_as()
153 const struct vdpa_config_ops *ops = v->vdpa->config; in handle_vq_kick()
155 ops->kick_vq(v->vdpa, vq - v->vqs); in handle_vq_kick()
183 const struct vdpa_config_ops *ops = v->vdpa->config; in vhost_vdpa_setup_vq_irq()
184 struct vdpa_device *vdpa = v->vdpa; in vhost_vdpa_setup_vq_irq() local
190 irq = ops->get_vq_irq(vdpa, qid); in vhost_vdpa_setup_vq_irq()
215 struct vdpa_device *vdpa in vhost_vdpa_reset() local
224 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_bind_mm() local
235 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_unbind_mm() local
246 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_device_id() local
260 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_status() local
274 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_set_status() local
314 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_config_validate() local
329 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_config() local
356 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_set_config() local
378 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_can_suspend() local
386 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_can_resume() local
394 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_features() local
408 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_backend_features() local
419 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_set_features() local
454 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_vring_num() local
517 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_config_size() local
531 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_vqs_count() local
546 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_suspend() local
561 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_resume() local
573 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_vring_ioctl() local
799 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_general_unmap() local
850 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_iotlb_unmap() local
884 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_map() local
918 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_unmap() local
1111 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_process_iotlb_update() local
1134 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_process_iotlb_msg() local
1208 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_alloc_domain() local
1246 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_free_domain() local
1260 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_set_iova_range() local
1373 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_fault() local
1397 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_mmap() local
1451 vhost_vdpa_probe(struct vdpa_device *vdpa) vhost_vdpa_probe() argument
1517 vhost_vdpa_remove(struct vdpa_device *vdpa) vhost_vdpa_remove() argument
[all...]
H A DMakefile14 vhost_vdpa-y := vdpa.o
/kernel/linux/linux-5.10/drivers/vhost/
H A Dvdpa.c21 #include <linux/vdpa.h>
41 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
132 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_device_id() local
146 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_status() local
160 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_set_status() local
214 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_config() local
241 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_set_config() local
268 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_features() local
282 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_set_features() local
304 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_get_vring_num() local
368 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_vring_ioctl() local
570 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_map() local
600 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_unmap() local
752 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_process_iotlb_msg() local
799 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_alloc_domain() local
833 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_free_domain() local
848 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_set_iova_range() local
954 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_fault() local
978 struct vdpa_device *vdpa = v->vdpa; vhost_vdpa_mmap() local
1032 vhost_vdpa_probe(struct vdpa_device *vdpa) vhost_vdpa_probe() argument
1092 vhost_vdpa_remove(struct vdpa_device *vdpa) vhost_vdpa_remove() argument
[all...]
H A DMakefile14 vhost_vdpa-y := vdpa.o
/kernel/linux/linux-5.10/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim.c26 #include <linux/vdpa.h>
82 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 in vdpasim_create()
431 vdpasim_set_vq_address(struct vdpa_device *vdpa, u16 idx, u64 desc_area, u64 driver_area, u64 device_area) vdpasim_set_vq_address() argument
445 vdpasim_set_vq_num(struct vdpa_device *vdpa, u16 idx, u32 num) vdpasim_set_vq_num() argument
453 vdpasim_kick_vq(struct vdpa_device *vdpa, u16 idx) vdpasim_kick_vq() argument
462 vdpasim_set_vq_cb(struct vdpa_device *vdpa, u16 idx, struct vdpa_callback *cb) vdpasim_set_vq_cb() argument
472 vdpasim_set_vq_ready(struct vdpa_device *vdpa, u16 idx, bool ready) vdpasim_set_vq_ready() argument
487 vdpasim_get_vq_ready(struct vdpa_device *vdpa, u16 idx) vdpasim_get_vq_ready() argument
495 vdpasim_set_vq_state(struct vdpa_device *vdpa, u16 idx, const struct vdpa_vq_state *state) vdpasim_set_vq_state() argument
509 vdpasim_get_vq_state(struct vdpa_device *vdpa, u16 idx, struct vdpa_vq_state *state) vdpasim_get_vq_state() argument
520 vdpasim_get_vq_align(struct vdpa_device *vdpa) vdpasim_get_vq_align() argument
525 vdpasim_get_features(struct vdpa_device *vdpa) vdpasim_get_features() argument
530 vdpasim_set_features(struct vdpa_device *vdpa, u64 features) vdpasim_set_features() argument
543 vdpasim_set_config_cb(struct vdpa_device *vdpa, struct vdpa_callback *cb) vdpasim_set_config_cb() argument
549 vdpasim_get_vq_num_max(struct vdpa_device *vdpa) vdpasim_get_vq_num_max() argument
554 vdpasim_get_device_id(struct vdpa_device *vdpa) vdpasim_get_device_id() argument
559 vdpasim_get_vendor_id(struct vdpa_device *vdpa) vdpasim_get_vendor_id() argument
564 vdpasim_get_status(struct vdpa_device *vdpa) vdpasim_get_status() argument
576 vdpasim_set_status(struct vdpa_device *vdpa, u8 status) vdpasim_set_status() argument
587 vdpasim_get_config(struct vdpa_device *vdpa, unsigned int offset, void *buf, unsigned int len) vdpasim_get_config() argument
601 vdpasim_set_config(struct vdpa_device *vdpa, unsigned int offset, const void *buf, unsigned int len) vdpasim_set_config() argument
607 vdpasim_get_generation(struct vdpa_device *vdpa) vdpasim_get_generation() argument
614 vdpasim_get_iova_range(struct vdpa_device *vdpa) vdpasim_get_iova_range() argument
624 vdpasim_set_map(struct vdpa_device *vdpa, struct vhost_iotlb *iotlb) vdpasim_set_map() argument
651 vdpasim_dma_map(struct vdpa_device *vdpa, u64 iova, u64 size, u64 pa, u32 perm) vdpasim_dma_map() argument
665 vdpasim_dma_unmap(struct vdpa_device *vdpa, u64 iova, u64 size) vdpasim_dma_unmap() argument
676 vdpasim_free(struct vdpa_device *vdpa) vdpasim_free() argument
769 struct vdpa_device *vdpa = &vdpasim_dev->vdpa; vdpasim_dev_exit() local
[all...]
/kernel/linux/linux-6.6/drivers/vdpa/vdpa_user/
H A Dvduse_dev.c22 #include <linux/vdpa.h>
27 #include <uapi/linux/vdpa.h>
73 struct vdpa_device vdpa; member
147 static inline struct vduse_dev *vdpa_to_vduse(struct vdpa_device *vdpa) in vdpa_to_vduse() argument
149 struct vduse_vdpa *vdev = container_of(vdpa, struct vduse_vdpa, vdpa); in vdpa_to_vduse()
156 struct vdpa_device *vdpa = dev_to_vdpa(dev); in dev_to_vduse() local
158 return vdpa_to_vduse(vdpa); in dev_to_vduse()
476 static int vduse_vdpa_set_vq_address(struct vdpa_device *vdpa, u16 idx, in vduse_vdpa_set_vq_address() argument
480 struct vduse_dev *dev = vdpa_to_vduse(vdpa); in vduse_vdpa_set_vq_address()
512 vduse_vdpa_kick_vq(struct vdpa_device *vdpa, u16 idx) vduse_vdpa_kick_vq() argument
524 vduse_vdpa_set_vq_cb(struct vdpa_device *vdpa, u16 idx, struct vdpa_callback *cb) vduse_vdpa_set_vq_cb() argument
537 vduse_vdpa_set_vq_num(struct vdpa_device *vdpa, u16 idx, u32 num) vduse_vdpa_set_vq_num() argument
545 vduse_vdpa_set_vq_ready(struct vdpa_device *vdpa, u16 idx, bool ready) vduse_vdpa_set_vq_ready() argument
554 vduse_vdpa_get_vq_ready(struct vdpa_device *vdpa, u16 idx) vduse_vdpa_get_vq_ready() argument
562 vduse_vdpa_set_vq_state(struct vdpa_device *vdpa, u16 idx, const struct vdpa_vq_state *state) vduse_vdpa_set_vq_state() argument
581 vduse_vdpa_get_vq_state(struct vdpa_device *vdpa, u16 idx, struct vdpa_vq_state *state) vduse_vdpa_get_vq_state() argument
593 vduse_vdpa_get_vq_align(struct vdpa_device *vdpa) vduse_vdpa_get_vq_align() argument
600 vduse_vdpa_get_device_features(struct vdpa_device *vdpa) vduse_vdpa_get_device_features() argument
607 vduse_vdpa_set_driver_features(struct vdpa_device *vdpa, u64 features) vduse_vdpa_set_driver_features() argument
615 vduse_vdpa_get_driver_features(struct vdpa_device *vdpa) vduse_vdpa_get_driver_features() argument
622 vduse_vdpa_set_config_cb(struct vdpa_device *vdpa, struct vdpa_callback *cb) vduse_vdpa_set_config_cb() argument
633 vduse_vdpa_get_vq_num_max(struct vdpa_device *vdpa) vduse_vdpa_get_vq_num_max() argument
646 vduse_vdpa_get_device_id(struct vdpa_device *vdpa) vduse_vdpa_get_device_id() argument
653 vduse_vdpa_get_vendor_id(struct vdpa_device *vdpa) vduse_vdpa_get_vendor_id() argument
660 vduse_vdpa_get_status(struct vdpa_device *vdpa) vduse_vdpa_get_status() argument
667 vduse_vdpa_set_status(struct vdpa_device *vdpa, u8 status) vduse_vdpa_set_status() argument
677 vduse_vdpa_get_config_size(struct vdpa_device *vdpa) vduse_vdpa_get_config_size() argument
684 vduse_vdpa_get_config(struct vdpa_device *vdpa, unsigned int offset, void *buf, unsigned int len) vduse_vdpa_get_config() argument
701 vduse_vdpa_set_config(struct vdpa_device *vdpa, unsigned int offset, const void *buf, unsigned int len) vduse_vdpa_set_config() argument
707 vduse_vdpa_reset(struct vdpa_device *vdpa) vduse_vdpa_reset() argument
717 vduse_vdpa_get_generation(struct vdpa_device *vdpa) vduse_vdpa_get_generation() argument
724 vduse_vdpa_set_vq_affinity(struct vdpa_device *vdpa, u16 idx, const struct cpumask *cpu_mask) vduse_vdpa_set_vq_affinity() argument
738 vduse_vdpa_get_vq_affinity(struct vdpa_device *vdpa, u16 idx) vduse_vdpa_get_vq_affinity() argument
745 vduse_vdpa_set_map(struct vdpa_device *vdpa, unsigned int asid, struct vhost_iotlb *iotlb) vduse_vdpa_set_map() argument
765 vduse_vdpa_free(struct vdpa_device *vdpa) vduse_vdpa_free() argument
[all...]
/kernel/linux/linux-6.6/drivers/vdpa/pds/
H A Dcmds.c4 #include <linux/vdpa.h>
28 /* Initialize the vdpa/virtio device */ in pds_vdpa_init_hw()
43 .vdpa.opcode = PDS_VDPA_CMD_RESET, in pds_vdpa_cmd_reset()
44 .vdpa.vdpa_index = pdsv->vdpa_index, in pds_vdpa_cmd_reset()
45 .vdpa.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_cmd_reset()
50 err = pds_client_adminq_cmd(padev, &cmd, sizeof(cmd.vdpa), &comp, 0); in pds_vdpa_cmd_reset()
H A Dvdpa_dev.h8 #include <linux/vdpa.h>
/kernel/linux/linux-6.6/drivers/vdpa/ifcvf/
H A Difcvf_base.h16 #include <linux/vdpa.h>
22 #include <uapi/linux/vdpa.h>
93 struct vdpa_device vdpa; member
H A Difcvf_main.c354 return container_of(vdpa_dev, struct ifcvf_adapter, vdpa); in vdpa_to_adapter()
557 static u32 ifcvf_vdpa_get_vq_group(struct vdpa_device *vdpa, u16 idx) in ifcvf_vdpa_get_vq_group() argument
692 adapter = vdpa_alloc_device(struct ifcvf_adapter, vdpa, in ifcvf_vdpa_dev_add()
701 adapter->vdpa.dma_dev = &pdev->dev; in ifcvf_vdpa_dev_add()
702 adapter->vdpa.mdev = mdev; in ifcvf_vdpa_dev_add()
704 vdpa_dev = &adapter->vdpa; in ifcvf_vdpa_dev_add()
720 ret = dev_set_name(&vdpa_dev->dev, "vdpa%u", vdpa_dev->index); in ifcvf_vdpa_dev_add()
722 ret = _vdpa_register_device(&adapter->vdpa, vf->nr_vring); in ifcvf_vdpa_dev_add()
724 put_device(&adapter->vdpa.dev); in ifcvf_vdpa_dev_add()
/kernel/linux/linux-5.10/drivers/vdpa/ifcvf/
H A Difcvf_main.c160 return container_of(vdpa_dev, struct ifcvf_adapter, vdpa); in vdpa_to_adapter()
233 "Failed to set ifcvf vdpa status %u\n", in ifcvf_vdpa_set_status()
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()
468 IFCVF_ERR(pdev, "Failed to register ifcvf to vdpa bus"); 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.h16 #include <linux/vdpa.h>
91 struct vdpa_device vdpa; member
/kernel/linux/linux-6.6/drivers/vdpa/solidrun/
H A Dsnet_vdpa.h13 #include <linux/vdpa.h>
55 /* vdpa device */
56 struct vdpa_device vdpa; member
H A Dsnet_main.c33 static struct snet *vdpa_to_snet(struct vdpa_device *vdpa) in vdpa_to_snet() argument
35 return container_of(vdpa, struct snet, vdpa); in vdpa_to_snet()
1005 /* Allocate vdpa device */ in snet_vdpa_probe_vf()
1006 snet = vdpa_alloc_device(struct snet, vdpa, &pdev->dev, &snet_config_ops, 1, 1, NULL, in snet_vdpa_probe_vf()
1009 SNET_ERR(pdev, "Failed to allocate a vdpa device\n"); in snet_vdpa_probe_vf()
1051 snet->vdpa.dma_dev = &pdev->dev; in snet_vdpa_probe_vf()
1054 ret = vdpa_register_device(&snet->vdpa, snet->cfg->vq_num); in snet_vdpa_probe_vf()
1056 SNET_ERR(pdev, "Failed to register vdpa device\n"); in snet_vdpa_probe_vf()
1065 put_device(&snet->vdpa in snet_vdpa_probe_vf()
[all...]
/kernel/linux/linux-5.10/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.h7 #include <linux/vdpa.h>
/kernel/linux/linux-5.10/drivers/vdpa/
H A Dvdpa.c13 #include <linux/vdpa.h>
41 .name = "vdpa",
104 err = dev_set_name(&vdev->dev, "vdpa%u", vdev->index); in __vdpa_alloc_device()
124 * @vdev: the vdpa device to be registered to vDPA bus
136 * @vdev: the vdpa device to be unregisted from vDPA bus
146 * @drv: the vdpa device driver to be registered
162 * @drv: the vdpa device driver to be unregistered
/kernel/linux/linux-5.10/drivers/vdpa/mlx5/core/
H A Dmlx5_vdpa.h9 #include <linux/vdpa.h>

Completed in 21 milliseconds

12