Lines Matching defs:vdpa_config_ops
371 struct vdpa_config_ops { struct
373 int (*set_vq_address)(struct vdpa_device *vdev,
376 void (*set_vq_num)(struct vdpa_device *vdev, u16 idx, u32 num);
377 void (*kick_vq)(struct vdpa_device *vdev, u16 idx);
378 void (*kick_vq_with_data)(struct vdpa_device *vdev, u32 data);
379 void (*set_vq_cb)(struct vdpa_device *vdev, u16 idx,
381 void (*set_vq_ready)(struct vdpa_device *vdev, u16 idx, bool ready);
382 bool (*get_vq_ready)(struct vdpa_device *vdev, u16 idx);
383 int (*set_vq_state)(struct vdpa_device *vdev, u16 idx,
385 int (*get_vq_state)(struct vdpa_device *vdev, u16 idx,
387 int (*get_vendor_vq_stats)(struct vdpa_device *vdev, u16 idx,
391 (*get_vq_notification)(struct vdpa_device *vdev, u16 idx);
393 int (*get_vq_irq)(struct vdpa_device *vdev, u16 idx);
394 u16 (*get_vq_size)(struct vdpa_device *vdev, u16 idx);
397 u32 (*get_vq_align)(struct vdpa_device *vdev);
398 u32 (*get_vq_group)(struct vdpa_device *vdev, u16 idx);
399 u32 (*get_vq_desc_group)(struct vdpa_device *vdev, u16 idx);
400 u64 (*get_device_features)(struct vdpa_device *vdev);
401 u64 (*get_backend_features)(const struct vdpa_device *vdev);
402 int (*set_driver_features)(struct vdpa_device *vdev, u64 features);
403 u64 (*get_driver_features)(struct vdpa_device *vdev);
404 void (*set_config_cb)(struct vdpa_device *vdev,
406 u16 (*get_vq_num_max)(struct vdpa_device *vdev);
407 u16 (*get_vq_num_min)(struct vdpa_device *vdev);
408 u32 (*get_device_id)(struct vdpa_device *vdev);
409 u32 (*get_vendor_id)(struct vdpa_device *vdev);
410 u8 (*get_status)(struct vdpa_device *vdev);
411 void (*set_status)(struct vdpa_device *vdev, u8 status);
412 int (*reset)(struct vdpa_device *vdev);
413 int (*compat_reset)(struct vdpa_device *vdev, u32 flags);
415 int (*suspend)(struct vdpa_device *vdev);
416 int (*resume)(struct vdpa_device *vdev);
417 size_t (*get_config_size)(struct vdpa_device *vdev);
418 void (*get_config)(struct vdpa_device *vdev, unsigned int offset,
420 void (*set_config)(struct vdpa_device *vdev, unsigned int offset,
422 u32 (*get_generation)(struct vdpa_device *vdev);
423 struct vdpa_iova_range (*get_iova_range)(struct vdpa_device *vdev);
424 int (*set_vq_affinity)(struct vdpa_device *vdev, u16 idx,
448 const struct vdpa_config_ops *config, argument