Lines Matching defs:vq
49 #define vhost_used_event(vq) ((__virtio16 __user *)&vq->avail->ring[vq->num]) argument
50 #define vhost_avail_event(vq) ((__virtio16 __user *)&vq->used->ring[vq->num]) argument
53 static void vhost_disable_cross_endian(struct vhost_virtqueue *vq) in vhost_disable_cross_endian()
58 static void vhost_enable_cross_endian_big(struct vhost_virtqueue *vq) in vhost_enable_cross_endian_big()
63 static void vhost_enable_cross_endian_little(struct vhost_virtqueue *vq) in vhost_enable_cross_endian_little()
68 static long vhost_set_vring_endian(struct vhost_virtqueue *vq, int __user *argp) in vhost_set_vring_endian()
90 static long vhost_get_vring_endian(struct vhost_virtqueue *vq, u32 idx, in vhost_get_vring_endian()
104 static void vhost_init_is_le(struct vhost_virtqueue *vq) in vhost_init_is_le()
114 static void vhost_disable_cross_endian(struct vhost_virtqueue *vq) in vhost_disable_cross_endian()
118 static long vhost_set_vring_endian(struct vhost_virtqueue *vq, int __user *argp) in vhost_set_vring_endian()
123 static long vhost_get_vring_endian(struct vhost_virtqueue *vq, u32 idx, in vhost_get_vring_endian()
129 static void vhost_init_is_le(struct vhost_virtqueue *vq) in vhost_init_is_le()
136 static void vhost_reset_is_le(struct vhost_virtqueue *vq) in vhost_reset_is_le()
285 static void __vhost_vq_meta_reset(struct vhost_virtqueue *vq) in __vhost_vq_meta_reset()
307 bool vhost_vq_is_setup(struct vhost_virtqueue *vq) in vhost_vq_is_setup()
314 struct vhost_virtqueue *vq) in vhost_vq_reset()
382 static void vhost_vq_free_iovecs(struct vhost_virtqueue *vq) in vhost_vq_free_iovecs()
395 struct vhost_virtqueue *vq; in vhost_dev_alloc_iovecs() local
426 bool vhost_exceeds_weight(struct vhost_virtqueue *vq, in vhost_exceeds_weight()
441 static size_t vhost_get_avail_size(struct vhost_virtqueue *vq, in vhost_get_avail_size()
451 static size_t vhost_get_used_size(struct vhost_virtqueue *vq, in vhost_get_used_size()
461 static size_t vhost_get_desc_size(struct vhost_virtqueue *vq, in vhost_get_desc_size()
474 struct vhost_virtqueue *vq; in vhost_dev_init() local
777 static inline void __user *vhost_vq_meta_fetch(struct vhost_virtqueue *vq, in vhost_vq_meta_fetch()
818 static int vhost_copy_to_user(struct vhost_virtqueue *vq, void __user *to, in vhost_copy_to_user()
853 static int vhost_copy_from_user(struct vhost_virtqueue *vq, void *to, in vhost_copy_from_user()
893 static void __user *__vhost_get_user_slow(struct vhost_virtqueue *vq, in __vhost_get_user_slow()
924 static inline void __user *__vhost_get_user(struct vhost_virtqueue *vq, in __vhost_get_user()
936 #define vhost_put_user(vq, x, ptr) \ argument
953 static inline int vhost_put_avail_event(struct vhost_virtqueue *vq) in vhost_put_avail_event()
959 static inline int vhost_put_used(struct vhost_virtqueue *vq, in vhost_put_used()
967 static inline int vhost_put_used_flags(struct vhost_virtqueue *vq) in vhost_put_used_flags()
974 static inline int vhost_put_used_idx(struct vhost_virtqueue *vq) in vhost_put_used_idx()
981 #define vhost_get_user(vq, x, ptr, type) \ argument
999 #define vhost_get_avail(vq, x, ptr) \ argument
1002 #define vhost_get_used(vq, x, ptr) \ argument
1019 static inline int vhost_get_avail_idx(struct vhost_virtqueue *vq, in vhost_get_avail_idx()
1025 static inline int vhost_get_avail_head(struct vhost_virtqueue *vq, in vhost_get_avail_head()
1032 static inline int vhost_get_avail_flags(struct vhost_virtqueue *vq, in vhost_get_avail_flags()
1038 static inline int vhost_get_used_event(struct vhost_virtqueue *vq, in vhost_get_used_event()
1044 static inline int vhost_get_used_idx(struct vhost_virtqueue *vq, in vhost_get_used_idx()
1050 static inline int vhost_get_desc(struct vhost_virtqueue *vq, in vhost_get_desc()
1272 static int vhost_iotlb_miss(struct vhost_virtqueue *vq, u64 iova, int access) in vhost_iotlb_miss()
1299 static bool vq_access_ok(struct vhost_virtqueue *vq, unsigned int num, in vq_access_ok()
1315 static void vhost_vq_meta_update(struct vhost_virtqueue *vq, in vhost_vq_meta_update()
1326 static bool iotlb_access_ok(struct vhost_virtqueue *vq, in iotlb_access_ok()
1360 int vq_meta_prefetch(struct vhost_virtqueue *vq) in vq_meta_prefetch()
1385 static bool vq_log_used_access_ok(struct vhost_virtqueue *vq, in vq_log_used_access_ok()
1401 static bool vq_log_access_ok(struct vhost_virtqueue *vq, in vq_log_access_ok()
1411 bool vhost_vq_access_ok(struct vhost_virtqueue *vq) in vhost_vq_access_ok()
1488 struct vhost_virtqueue *vq, in vhost_vring_set_num()
1509 struct vhost_virtqueue *vq, in vhost_vring_set_addr()
1561 struct vhost_virtqueue *vq, in vhost_vring_set_num_addr()
1590 struct vhost_virtqueue *vq; in vhost_vring_ioctl() local
1742 struct vhost_virtqueue *vq = d->vqs[i]; in vhost_init_device_iotlb() local
1789 struct vhost_virtqueue *vq; in vhost_dev_ioctl() local
1877 static int log_write_hva(struct vhost_virtqueue *vq, u64 hva, u64 len) in log_write_hva()
1916 static int log_used(struct vhost_virtqueue *vq, u64 used_offset, u64 len) in log_used()
1939 int vhost_log_write(struct vhost_virtqueue *vq, struct vhost_log *log, in vhost_log_write()
1975 static int vhost_update_used_flags(struct vhost_virtqueue *vq) in vhost_update_used_flags()
1993 static int vhost_update_avail_event(struct vhost_virtqueue *vq, u16 avail_event) in vhost_update_avail_event()
2011 int vhost_vq_init_access(struct vhost_virtqueue *vq) in vhost_vq_init_access()
2046 static int translate_desc(struct vhost_virtqueue *vq, u64 addr, u32 len, in translate_desc()
2094 static unsigned next_desc(struct vhost_virtqueue *vq, struct vring_desc *desc) in next_desc()
2107 static int get_indirect(struct vhost_virtqueue *vq, in get_indirect()
2208 int vhost_get_vq_desc(struct vhost_virtqueue *vq, in vhost_get_vq_desc()
2350 void vhost_discard_vq_desc(struct vhost_virtqueue *vq, int n) in vhost_discard_vq_desc()
2358 int vhost_add_used(struct vhost_virtqueue *vq, unsigned int head, int len) in vhost_add_used()
2369 static int __vhost_add_used_n(struct vhost_virtqueue *vq, in __vhost_add_used_n()
2403 int vhost_add_used_n(struct vhost_virtqueue *vq, struct vring_used_elem *heads, in vhost_add_used_n()
2438 static bool vhost_notify(struct vhost_dev *dev, struct vhost_virtqueue *vq) in vhost_notify()
2476 void vhost_signal(struct vhost_dev *dev, struct vhost_virtqueue *vq) in vhost_signal()
2486 struct vhost_virtqueue *vq, in vhost_add_used_and_signal()
2496 struct vhost_virtqueue *vq, in vhost_add_used_and_signal_n()
2505 bool vhost_vq_avail_empty(struct vhost_dev *dev, struct vhost_virtqueue *vq) in vhost_vq_avail_empty()
2523 bool vhost_enable_notify(struct vhost_dev *dev, struct vhost_virtqueue *vq) in vhost_enable_notify()
2561 void vhost_disable_notify(struct vhost_dev *dev, struct vhost_virtqueue *vq) in vhost_disable_notify()
2578 struct vhost_msg_node *vhost_new_msg(struct vhost_virtqueue *vq, int type) in vhost_new_msg()
2621 struct vhost_virtqueue *vq; in vhost_set_backend_features() local