Lines Matching full:cap

109     struct vfio_device_info_cap_zpci_base *cap;  in s390_pci_read_base()  local
121 cap = (void *) hdr; in s390_pci_read_base()
123 pbdev->zpci_fn.sdma = cap->start_dma; in s390_pci_read_base()
124 pbdev->zpci_fn.edma = cap->end_dma; in s390_pci_read_base()
125 pbdev->zpci_fn.pchid = cap->pchid; in s390_pci_read_base()
126 pbdev->zpci_fn.vfn = cap->vfn; in s390_pci_read_base()
127 pbdev->zpci_fn.pfgid = cap->gid; in s390_pci_read_base()
132 pbdev->pft = cap->pft; in s390_pci_read_base()
139 if (vfio_size > 0 && vfio_size < cap->end_dma - cap->start_dma + 1) { in s390_pci_read_base()
140 pbdev->zpci_fn.edma = cap->start_dma + vfio_size - 1; in s390_pci_read_base()
148 struct vfio_device_info_cap_zpci_base *cap; in get_host_fh() local
159 cap = (void *) hdr; in get_host_fh()
161 *fh = cap->fh; in get_host_fh()
169 struct vfio_device_info_cap_zpci_group *cap; in s390_pci_read_group() local
188 cap = (void *) hdr; in s390_pci_read_group()
226 if (cap->flags & VFIO_DEVICE_INFO_ZPCI_FLAG_REFRESH) { in s390_pci_read_group()
229 resgrp->dasm = cap->dasm; in s390_pci_read_group()
230 resgrp->msia = cap->msi_addr; in s390_pci_read_group()
231 resgrp->mui = cap->mui; in s390_pci_read_group()
232 resgrp->i = cap->noi; in s390_pci_read_group()
234 resgrp->maxstbl = cap->imaxstbl; in s390_pci_read_group()
236 resgrp->maxstbl = cap->maxstbl; in s390_pci_read_group()
238 resgrp->version = cap->version; in s390_pci_read_group()
247 struct vfio_device_info_cap_zpci_util *cap; in s390_pci_read_util() local
258 cap = (void *) hdr; in s390_pci_read_util()
260 if (cap->size > CLP_UTIL_STR_LEN) { in s390_pci_read_util()
261 trace_s390_pci_clp_cap_size(vpci->vbasedev.name, cap->size, in s390_pci_read_util()
267 memcpy(pbdev->zpci_fn.util_str, cap->util_str, CLP_UTIL_STR_LEN); in s390_pci_read_util()
274 struct vfio_device_info_cap_zpci_pfip *cap; in s390_pci_read_pfip() local
285 cap = (void *) hdr; in s390_pci_read_pfip()
287 if (cap->size > CLP_PFIP_NR_SEGMENTS) { in s390_pci_read_pfip()
288 trace_s390_pci_clp_cap_size(vpci->vbasedev.name, cap->size, in s390_pci_read_pfip()
293 memcpy(pbdev->zpci_fn.pfip, cap->pfip, CLP_PFIP_NR_SEGMENTS); in s390_pci_read_pfip()