Lines Matching defs:vdpa_dev

352 static struct ifcvf_adapter *vdpa_to_adapter(struct vdpa_device *vdpa_dev)
354 return container_of(vdpa_dev, struct ifcvf_adapter, vdpa);
357 static struct ifcvf_hw *vdpa_to_vf(struct vdpa_device *vdpa_dev)
359 struct ifcvf_adapter *adapter = vdpa_to_adapter(vdpa_dev);
364 static u64 ifcvf_vdpa_get_device_features(struct vdpa_device *vdpa_dev)
366 struct ifcvf_adapter *adapter = vdpa_to_adapter(vdpa_dev);
367 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
382 static int ifcvf_vdpa_set_driver_features(struct vdpa_device *vdpa_dev, u64 features)
384 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
396 static u64 ifcvf_vdpa_get_driver_features(struct vdpa_device *vdpa_dev)
398 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
406 static u8 ifcvf_vdpa_get_status(struct vdpa_device *vdpa_dev)
408 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
413 static void ifcvf_vdpa_set_status(struct vdpa_device *vdpa_dev, u8 status)
419 vf = vdpa_to_vf(vdpa_dev);
437 static int ifcvf_vdpa_reset(struct vdpa_device *vdpa_dev)
439 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
452 static u16 ifcvf_vdpa_get_vq_num_max(struct vdpa_device *vdpa_dev)
454 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
459 static int ifcvf_vdpa_get_vq_state(struct vdpa_device *vdpa_dev, u16 qid,
462 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
468 static int ifcvf_vdpa_set_vq_state(struct vdpa_device *vdpa_dev, u16 qid,
471 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
476 static void ifcvf_vdpa_set_vq_cb(struct vdpa_device *vdpa_dev, u16 qid,
479 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
484 static void ifcvf_vdpa_set_vq_ready(struct vdpa_device *vdpa_dev,
487 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
492 static bool ifcvf_vdpa_get_vq_ready(struct vdpa_device *vdpa_dev, u16 qid)
494 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
499 static void ifcvf_vdpa_set_vq_num(struct vdpa_device *vdpa_dev, u16 qid,
502 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
507 static int ifcvf_vdpa_set_vq_address(struct vdpa_device *vdpa_dev, u16 qid,
511 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
516 static void ifcvf_vdpa_kick_vq(struct vdpa_device *vdpa_dev, u16 qid)
518 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
523 static u32 ifcvf_vdpa_get_generation(struct vdpa_device *vdpa_dev)
525 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
530 static u32 ifcvf_vdpa_get_device_id(struct vdpa_device *vdpa_dev)
532 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
537 static u32 ifcvf_vdpa_get_vendor_id(struct vdpa_device *vdpa_dev)
539 struct ifcvf_adapter *adapter = vdpa_to_adapter(vdpa_dev);
545 static u32 ifcvf_vdpa_get_vq_align(struct vdpa_device *vdpa_dev)
550 static size_t ifcvf_vdpa_get_config_size(struct vdpa_device *vdpa_dev)
552 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
562 static void ifcvf_vdpa_get_config(struct vdpa_device *vdpa_dev,
566 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
571 static void ifcvf_vdpa_set_config(struct vdpa_device *vdpa_dev,
575 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
580 static void ifcvf_vdpa_set_config_cb(struct vdpa_device *vdpa_dev,
583 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
589 static int ifcvf_vdpa_get_vq_irq(struct vdpa_device *vdpa_dev,
592 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
600 static struct vdpa_notification_area ifcvf_get_vq_notification(struct vdpa_device *vdpa_dev,
603 struct ifcvf_hw *vf = vdpa_to_vf(vdpa_dev);
683 struct vdpa_device *vdpa_dev;
704 vdpa_dev = &adapter->vdpa;
718 ret = dev_set_name(&vdpa_dev->dev, "%s", name);
720 ret = dev_set_name(&vdpa_dev->dev, "vdpa%u", vdpa_dev->index);