Lines Matching refs:vringh

25 struct vringh {  struct
57 void (*notify)(struct vringh *); argument
61 typedef void vrh_callback_t(struct virtio_device *, struct vringh *);
76 struct vringh *vrhs[], vrh_callback_t *callbacks[]);
126 int vringh_init_user(struct vringh *vrh, u64 features,
158 int vringh_getdesc_user(struct vringh *vrh,
161 bool (*getrange)(struct vringh *vrh,
173 int vringh_complete_user(struct vringh *vrh, u16 head, u32 len);
174 int vringh_complete_multi_user(struct vringh *vrh,
179 void vringh_abandon_user(struct vringh *vrh, unsigned int num);
182 int vringh_need_notify_user(struct vringh *vrh);
184 bool vringh_notify_enable_user(struct vringh *vrh);
185 void vringh_notify_disable_user(struct vringh *vrh);
188 int vringh_init_kern(struct vringh *vrh, u64 features,
232 int vringh_getdesc_kern(struct vringh *vrh,
241 void vringh_abandon_kern(struct vringh *vrh, unsigned int num);
242 int vringh_complete_kern(struct vringh *vrh, u16 head, u32 len);
244 bool vringh_notify_enable_kern(struct vringh *vrh);
245 void vringh_notify_disable_kern(struct vringh *vrh);
247 int vringh_need_notify_kern(struct vringh *vrh);
250 static inline void vringh_notify(struct vringh *vrh) in vringh_notify()
256 static inline bool vringh_is_little_endian(const struct vringh *vrh) in vringh_is_little_endian()
262 static inline u16 vringh16_to_cpu(const struct vringh *vrh, __virtio16 val) in vringh16_to_cpu()
267 static inline __virtio16 cpu_to_vringh16(const struct vringh *vrh, u16 val) in cpu_to_vringh16()
272 static inline u32 vringh32_to_cpu(const struct vringh *vrh, __virtio32 val) in vringh32_to_cpu()
277 static inline __virtio32 cpu_to_vringh32(const struct vringh *vrh, u32 val) in cpu_to_vringh32()
282 static inline u64 vringh64_to_cpu(const struct vringh *vrh, __virtio64 val) in vringh64_to_cpu()
287 static inline __virtio64 cpu_to_vringh64(const struct vringh *vrh, u64 val) in cpu_to_vringh64()
294 void vringh_set_iotlb(struct vringh *vrh, struct vhost_iotlb *iotlb,
297 int vringh_init_iotlb(struct vringh *vrh, u64 features,
303 int vringh_init_iotlb_va(struct vringh *vrh, u64 features,
309 int vringh_getdesc_iotlb(struct vringh *vrh,
315 ssize_t vringh_iov_pull_iotlb(struct vringh *vrh,
318 ssize_t vringh_iov_push_iotlb(struct vringh *vrh,
322 void vringh_abandon_iotlb(struct vringh *vrh, unsigned int num);
324 int vringh_complete_iotlb(struct vringh *vrh, u16 head, u32 len);
326 bool vringh_notify_enable_iotlb(struct vringh *vrh);
327 void vringh_notify_disable_iotlb(struct vringh *vrh);
329 int vringh_need_notify_iotlb(struct vringh *vrh);