Lines Matching defs:vdpa_aux

31 	struct device *dev = &pdsv->vdpa_aux->padev->aux_dev.dev;
45 struct device *dev = &pdsv->vdpa_aux->padev->aux_dev.dev;
175 struct pds_auxiliary_dev *padev = pdsv->vdpa_aux->padev;
225 struct pds_auxiliary_dev *padev = pdsv->vdpa_aux->padev;
265 vd_mdev = &pdsv->vdpa_aux->vd_mdev;
327 hw_features = le64_to_cpu(pdsv->vdpa_aux->ident.hw_features);
334 vp_modern_set_features(&pdsv->vdpa_aux->vd_mdev, nego_features);
360 return min_t(u16, 1024, BIT(le16_to_cpu(pdsv->vdpa_aux->ident.max_qlen)));
377 return vp_modern_get_status(&pdsv->vdpa_aux->vd_mdev);
382 struct pci_dev *pdev = pdsv->vdpa_aux->padev->vf_pdev;
383 struct pds_vdpa_aux *vdpa_aux = pdsv->vdpa_aux;
387 max_vq = vdpa_aux->vdpa_mdev.max_supported_vqs;
414 vdpa_aux->nintrs = nintrs;
424 vdpa_aux->nintrs = 0;
431 struct pds_vdpa_aux *vdpa_aux;
438 pdev = pdsv->vdpa_aux->padev->vf_pdev;
439 vdpa_aux = pdsv->vdpa_aux;
441 if (!vdpa_aux->nintrs)
449 vdpa_aux->nintrs = 0;
486 vp_modern_map_vq_notify(&pdsv->vdpa_aux->vd_mdev,
514 dev = &pdsv->vdpa_aux->padev->aux_dev.dev;
558 device = pdsv->vdpa_aux->vd_mdev.device;
574 device = pdsv->vdpa_aux->vd_mdev.device;
614 struct pds_vdpa_aux *vdpa_aux;
625 vdpa_aux = container_of(mdev, struct pds_vdpa_aux, vdpa_mdev);
626 dev = &vdpa_aux->padev->aux_dev.dev;
627 mgmt = &vdpa_aux->vdpa_mdev;
629 if (vdpa_aux->pdsv) {
641 vdpa_aux->pdsv = pdsv;
642 pdsv->vdpa_aux = vdpa_aux;
644 pdev = vdpa_aux->padev->vf_pdev;
682 fw_max_vqs = le16_to_cpu(pdsv->vdpa_aux->ident.max_vqs);
718 vc = pdsv->vdpa_aux->vd_mdev.device;
731 notify = vp_modern_map_vq_notify(&pdsv->vdpa_aux->vd_mdev,
736 pdsv->vdpa_dev.mdev = &vdpa_aux->vdpa_mdev;
755 pds_vdpa_debugfs_add_vdpadev(vdpa_aux);
763 vdpa_aux->pdsv = NULL;
771 struct pds_vdpa_aux *vdpa_aux;
775 vdpa_aux = container_of(mdev, struct pds_vdpa_aux, vdpa_mdev);
778 pds_vdpa_cmd_reset(vdpa_aux->pdsv);
779 pds_vdpa_debugfs_reset_vdpadev(vdpa_aux);
781 vdpa_aux->pdsv = NULL;
783 dev_info(&vdpa_aux->padev->aux_dev.dev, "Removed vdpa device\n");
791 int pds_vdpa_get_mgmt_info(struct pds_vdpa_aux *vdpa_aux)
795 .vdpa_ident.vf_id = cpu_to_le16(vdpa_aux->vf_id),
808 dev = &vdpa_aux->padev->aux_dev.dev;
809 pdev = vdpa_aux->padev->vf_pdev;
810 mgmt = &vdpa_aux->vdpa_mdev;
816 pf_pdev = pci_physfn(vdpa_aux->padev->vf_pdev);
818 ident_pa = dma_map_single(pf_dev, &vdpa_aux->ident,
819 sizeof(vdpa_aux->ident), DMA_FROM_DEVICE);
826 cmd.vdpa_ident.len = cpu_to_le32(sizeof(vdpa_aux->ident));
827 err = pds_client_adminq_cmd(vdpa_aux->padev, &cmd,
830 sizeof(vdpa_aux->ident), DMA_FROM_DEVICE);
837 max_vqs = le16_to_cpu(vdpa_aux->ident.max_vqs);
843 vdpa_aux->nintrs = 0;
848 mgmt->supported_features = le64_to_cpu(vdpa_aux->ident.hw_features);