Lines Matching refs:vdpa_aux
31 struct device *dev = &pdsv->vdpa_aux->padev->aux_dev.dev; in pds_vdpa_notify_handler()
45 struct device *dev = &pdsv->vdpa_aux->padev->aux_dev.dev; in pds_vdpa_register_event_handler()
175 struct pds_auxiliary_dev *padev = pdsv->vdpa_aux->padev; in pds_vdpa_set_vq_state()
225 struct pds_auxiliary_dev *padev = pdsv->vdpa_aux->padev; in pds_vdpa_get_vq_state()
265 vd_mdev = &pdsv->vdpa_aux->vd_mdev; in pds_vdpa_get_vq_notification()
327 hw_features = le64_to_cpu(pdsv->vdpa_aux->ident.hw_features); in pds_vdpa_set_driver_features()
334 vp_modern_set_features(&pdsv->vdpa_aux->vd_mdev, nego_features); in pds_vdpa_set_driver_features()
360 return min_t(u16, 1024, BIT(le16_to_cpu(pdsv->vdpa_aux->ident.max_qlen))); in pds_vdpa_get_vq_num_max()
377 return vp_modern_get_status(&pdsv->vdpa_aux->vd_mdev); in pds_vdpa_get_status()
382 struct pci_dev *pdev = pdsv->vdpa_aux->padev->vf_pdev; in pds_vdpa_request_irqs()
383 struct pds_vdpa_aux *vdpa_aux = pdsv->vdpa_aux; in pds_vdpa_request_irqs() local
387 max_vq = vdpa_aux->vdpa_mdev.max_supported_vqs; in pds_vdpa_request_irqs()
414 vdpa_aux->nintrs = nintrs; in pds_vdpa_request_irqs()
424 vdpa_aux->nintrs = 0; in pds_vdpa_request_irqs()
431 struct pci_dev *pdev = pdsv->vdpa_aux->padev->vf_pdev; in pds_vdpa_release_irqs()
432 struct pds_vdpa_aux *vdpa_aux = pdsv->vdpa_aux; in pds_vdpa_release_irqs() local
435 if (!vdpa_aux->nintrs) in pds_vdpa_release_irqs()
443 vdpa_aux->nintrs = 0; in pds_vdpa_release_irqs()
480 vp_modern_map_vq_notify(&pdsv->vdpa_aux->vd_mdev, in pds_vdpa_set_status()
508 dev = &pdsv->vdpa_aux->padev->aux_dev.dev; in pds_vdpa_reset()
552 device = pdsv->vdpa_aux->vd_mdev.device; in pds_vdpa_get_config()
568 device = pdsv->vdpa_aux->vd_mdev.device; in pds_vdpa_set_config()
608 struct pds_vdpa_aux *vdpa_aux; in pds_vdpa_dev_add() local
618 vdpa_aux = container_of(mdev, struct pds_vdpa_aux, vdpa_mdev); in pds_vdpa_dev_add()
619 dev = &vdpa_aux->padev->aux_dev.dev; in pds_vdpa_dev_add()
620 mgmt = &vdpa_aux->vdpa_mdev; in pds_vdpa_dev_add()
622 if (vdpa_aux->pdsv) { in pds_vdpa_dev_add()
634 vdpa_aux->pdsv = pdsv; in pds_vdpa_dev_add()
635 pdsv->vdpa_aux = vdpa_aux; in pds_vdpa_dev_add()
637 pdev = vdpa_aux->padev->vf_pdev; in pds_vdpa_dev_add()
668 fw_max_vqs = le16_to_cpu(pdsv->vdpa_aux->ident.max_vqs); in pds_vdpa_dev_add()
704 vc = pdsv->vdpa_aux->vd_mdev.device; in pds_vdpa_dev_add()
717 notify = vp_modern_map_vq_notify(&pdsv->vdpa_aux->vd_mdev, in pds_vdpa_dev_add()
722 pdsv->vdpa_dev.mdev = &vdpa_aux->vdpa_mdev; in pds_vdpa_dev_add()
741 pds_vdpa_debugfs_add_vdpadev(vdpa_aux); in pds_vdpa_dev_add()
749 vdpa_aux->pdsv = NULL; in pds_vdpa_dev_add()
757 struct pds_vdpa_aux *vdpa_aux; in pds_vdpa_dev_del() local
761 vdpa_aux = container_of(mdev, struct pds_vdpa_aux, vdpa_mdev); in pds_vdpa_dev_del()
764 pds_vdpa_cmd_reset(vdpa_aux->pdsv); in pds_vdpa_dev_del()
765 pds_vdpa_debugfs_reset_vdpadev(vdpa_aux); in pds_vdpa_dev_del()
767 vdpa_aux->pdsv = NULL; in pds_vdpa_dev_del()
769 dev_info(&vdpa_aux->padev->aux_dev.dev, "Removed vdpa device\n"); in pds_vdpa_dev_del()
777 int pds_vdpa_get_mgmt_info(struct pds_vdpa_aux *vdpa_aux) in pds_vdpa_get_mgmt_info() argument
781 .vdpa_ident.vf_id = cpu_to_le16(vdpa_aux->vf_id), in pds_vdpa_get_mgmt_info()
794 dev = &vdpa_aux->padev->aux_dev.dev; in pds_vdpa_get_mgmt_info()
795 pdev = vdpa_aux->padev->vf_pdev; in pds_vdpa_get_mgmt_info()
796 mgmt = &vdpa_aux->vdpa_mdev; in pds_vdpa_get_mgmt_info()
802 pf_pdev = pci_physfn(vdpa_aux->padev->vf_pdev); in pds_vdpa_get_mgmt_info()
804 ident_pa = dma_map_single(pf_dev, &vdpa_aux->ident, in pds_vdpa_get_mgmt_info()
805 sizeof(vdpa_aux->ident), DMA_FROM_DEVICE); in pds_vdpa_get_mgmt_info()
812 cmd.vdpa_ident.len = cpu_to_le32(sizeof(vdpa_aux->ident)); in pds_vdpa_get_mgmt_info()
813 err = pds_client_adminq_cmd(vdpa_aux->padev, &cmd, in pds_vdpa_get_mgmt_info()
816 sizeof(vdpa_aux->ident), DMA_FROM_DEVICE); in pds_vdpa_get_mgmt_info()
823 max_vqs = le16_to_cpu(vdpa_aux->ident.max_vqs); in pds_vdpa_get_mgmt_info()
829 vdpa_aux->nintrs = 0; in pds_vdpa_get_mgmt_info()
834 mgmt->supported_features = le64_to_cpu(vdpa_aux->ident.hw_features); in pds_vdpa_get_mgmt_info()