Lines Matching refs:zdev

27 static int zpci_base_cap(struct zpci_dev *zdev, struct vfio_pci_device *vdev,  in zpci_base_cap()  argument
33 .start_dma = zdev->start_dma, in zpci_base_cap()
34 .end_dma = zdev->end_dma, in zpci_base_cap()
35 .pchid = zdev->pchid, in zpci_base_cap()
36 .vfn = zdev->vfn, in zpci_base_cap()
37 .fmb_length = zdev->fmb_length, in zpci_base_cap()
38 .pft = zdev->pft, in zpci_base_cap()
39 .gid = zdev->pfgid in zpci_base_cap()
48 static int zpci_group_cap(struct zpci_dev *zdev, struct vfio_pci_device *vdev, in zpci_group_cap() argument
54 .dasm = zdev->dma_mask, in zpci_group_cap()
55 .msi_addr = zdev->msi_addr, in zpci_group_cap()
57 .mui = zdev->fmb_update, in zpci_group_cap()
58 .noi = zdev->max_msi, in zpci_group_cap()
60 .version = zdev->version in zpci_group_cap()
69 static int zpci_util_cap(struct zpci_dev *zdev, struct vfio_pci_device *vdev, in zpci_util_cap() argument
81 memcpy(cap->util_str, zdev->util_str, cap->size); in zpci_util_cap()
93 static int zpci_pfip_cap(struct zpci_dev *zdev, struct vfio_pci_device *vdev, in zpci_pfip_cap() argument
105 memcpy(cap->pfip, zdev->pfip, cap->size); in zpci_pfip_cap()
120 struct zpci_dev *zdev = to_zpci(vdev->pdev); in vfio_pci_info_zdev_add_caps() local
123 if (!zdev) in vfio_pci_info_zdev_add_caps()
126 ret = zpci_base_cap(zdev, vdev, caps); in vfio_pci_info_zdev_add_caps()
130 ret = zpci_group_cap(zdev, vdev, caps); in vfio_pci_info_zdev_add_caps()
134 if (zdev->util_str_avail) { in vfio_pci_info_zdev_add_caps()
135 ret = zpci_util_cap(zdev, vdev, caps); in vfio_pci_info_zdev_add_caps()
140 ret = zpci_pfip_cap(zdev, vdev, caps); in vfio_pci_info_zdev_add_caps()