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 pci_dev *pdev = pdsv->vdpa_aux->padev->vf_pdev;
432 struct pds_vdpa_aux *vdpa_aux = pdsv->vdpa_aux;
435 if (!vdpa_aux->nintrs)
443 vdpa_aux->nintrs = 0;
480 vp_modern_map_vq_notify(&pdsv->vdpa_aux->vd_mdev,
508 dev = &pdsv->vdpa_aux->padev->aux_dev.dev;
552 device = pdsv->vdpa_aux->vd_mdev.device;
568 device = pdsv->vdpa_aux->vd_mdev.device;
608 struct pds_vdpa_aux *vdpa_aux;
618 vdpa_aux = container_of(mdev, struct pds_vdpa_aux, vdpa_mdev);
619 dev = &vdpa_aux->padev->aux_dev.dev;
620 mgmt = &vdpa_aux->vdpa_mdev;
622 if (vdpa_aux->pdsv) {
634 vdpa_aux->pdsv = pdsv;
635 pdsv->vdpa_aux = vdpa_aux;
637 pdev = vdpa_aux->padev->vf_pdev;
668 fw_max_vqs = le16_to_cpu(pdsv->vdpa_aux->ident.max_vqs);
704 vc = pdsv->vdpa_aux->vd_mdev.device;
717 notify = vp_modern_map_vq_notify(&pdsv->vdpa_aux->vd_mdev,
722 pdsv->vdpa_dev.mdev = &vdpa_aux->vdpa_mdev;
741 pds_vdpa_debugfs_add_vdpadev(vdpa_aux);
749 vdpa_aux->pdsv = NULL;
757 struct pds_vdpa_aux *vdpa_aux;
761 vdpa_aux = container_of(mdev, struct pds_vdpa_aux, vdpa_mdev);
764 pds_vdpa_cmd_reset(vdpa_aux->pdsv);
765 pds_vdpa_debugfs_reset_vdpadev(vdpa_aux);
767 vdpa_aux->pdsv = NULL;
769 dev_info(&vdpa_aux->padev->aux_dev.dev, "Removed vdpa device\n");
777 int pds_vdpa_get_mgmt_info(struct pds_vdpa_aux *vdpa_aux)
781 .vdpa_ident.vf_id = cpu_to_le16(vdpa_aux->vf_id),
794 dev = &vdpa_aux->padev->aux_dev.dev;
795 pdev = vdpa_aux->padev->vf_pdev;
796 mgmt = &vdpa_aux->vdpa_mdev;
802 pf_pdev = pci_physfn(vdpa_aux->padev->vf_pdev);
804 ident_pa = dma_map_single(pf_dev, &vdpa_aux->ident,
805 sizeof(vdpa_aux->ident), DMA_FROM_DEVICE);
812 cmd.vdpa_ident.len = cpu_to_le32(sizeof(vdpa_aux->ident));
813 err = pds_client_adminq_cmd(vdpa_aux->padev, &cmd,
816 sizeof(vdpa_aux->ident), DMA_FROM_DEVICE);
823 max_vqs = le16_to_cpu(vdpa_aux->ident.max_vqs);
829 vdpa_aux->nintrs = 0;
834 mgmt->supported_features = le64_to_cpu(vdpa_aux->ident.hw_features);