| /linux/arch/s390/pci/ |
| H A D | pci_event.c | 65 struct zpci_dev *zdev = to_zpci(pdev); in is_passed_through() local 68 mutex_lock(&zdev->kzdev_lock); in is_passed_through() 69 ret = !!zdev->kzdev; in is_passed_through() 70 mutex_unlock(&zdev->kzdev_lock); in is_passed_through() 103 struct zpci_dev *zdev = to_zpci(pdev); in zpci_event_do_error_state_clear() local 107 if (!zdev_enabled(zdev)) in zpci_event_do_error_state_clear() 111 rc = zpci_reset_load_store_blocked(zdev); in zpci_event_do_error_state_clear() 133 rc = zpci_clear_error_state(zdev); in zpci_event_do_error_state_clear() 181 struct zpci_dev *zdev = to_zpci(pdev); in zpci_event_attempt_error_recovery() local 260 zpci_report_status(zdev, "recovery", status_str); in zpci_event_attempt_error_recovery() [all …]
|
| H A D | pci_irq.c | 33 static int zpci_set_airq(struct zpci_dev *zdev) in zpci_set_airq() argument 35 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT); in zpci_set_airq() 41 fib.fmt0.noi = airq_iv_end(zdev->aibv); in zpci_set_airq() 42 fib.fmt0.aibv = virt_to_phys(zdev->aibv->vector); in zpci_set_airq() 44 fib.fmt0.aisb = virt_to_phys(zpci_sbv->vector) + (zdev->aisb / 64) * 8; in zpci_set_airq() 45 fib.fmt0.aisbo = zdev->aisb & 63; in zpci_set_airq() 46 fib.gd = zdev->gisa; in zpci_set_airq() 52 static int zpci_clear_airq(struct zpci_dev *zdev) in zpci_clear_airq() argument 54 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_DEREG_INT); in zpci_clear_airq() 58 fib.gd = zdev->gisa; in zpci_clear_airq() [all …]
|
| H A D | pci_iov.h | 22 struct pci_dev *zpci_iov_find_parent_pf(struct zpci_bus *zbus, struct zpci_dev *zdev); 34 static inline struct pci_dev *zpci_iov_find_parent_pf(struct zpci_bus *zbus, struct zpci_dev *zdev) in zpci_iov_find_parent_pf() argument
|
| /linux/arch/s390/kvm/ |
| H A D | pci.c | 159 static int kvm_zpci_set_airq(struct zpci_dev *zdev) in kvm_zpci_set_airq() argument 161 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT); in kvm_zpci_set_airq() 165 fib.fmt0.isc = zdev->kzdev->fib.fmt0.isc; in kvm_zpci_set_airq() 167 fib.fmt0.noi = airq_iv_end(zdev->aibv); in kvm_zpci_set_airq() 168 fib.fmt0.aibv = virt_to_phys(zdev->aibv->vector); in kvm_zpci_set_airq() 170 fib.fmt0.aisb = virt_to_phys(aift->sbv->vector + (zdev->aisb / 64) * 8); in kvm_zpci_set_airq() 171 fib.fmt0.aisbo = zdev->aisb & 63; in kvm_zpci_set_airq() 172 fib.gd = zdev->gisa; in kvm_zpci_set_airq() 178 static int kvm_zpci_clear_airq(struct zpci_dev *zdev) in kvm_zpci_clear_airq() argument 180 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_DEREG_INT); in kvm_zpci_clear_airq() [all …]
|
| H A D | pci.h | 21 struct zpci_dev *zdev; member
|
| /linux/drivers/vfio/pci/ |
| H A D | vfio_pci_zdev.c | 23 static int zpci_base_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) in zpci_base_cap() argument 28 .start_dma = zdev->start_dma, in zpci_base_cap() 29 .end_dma = zdev->end_dma, in zpci_base_cap() 30 .pchid = zdev->pchid, in zpci_base_cap() 31 .vfn = zdev->vfn, in zpci_base_cap() 32 .fmb_length = zdev->fmb_length, in zpci_base_cap() 33 .pft = zdev->pft, in zpci_base_cap() 34 .gid = zdev->pfgid, in zpci_base_cap() 35 .fh = zdev->fh in zpci_base_cap() 44 static int zpci_group_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) in zpci_group_cap() argument [all …]
|
| /linux/drivers/iommu/ |
| H A D | s390-iommu.c | 502 struct zpci_dev *zdev = to_zpci_dev(dev); in s390_iommu_capable() local 508 return zdev->pft != PCI_FUNC_TYPE_ISM; in s390_iommu_capable() 530 struct zpci_dev *zdev = to_zpci_dev(dev); in s390_domain_alloc_paging() local 545 zdev->end_dma - zdev->start_dma + 1); in s390_domain_alloc_paging() 546 if (aperture_size <= (ZPCI_TABLE_SIZE_RT - zdev->start_dma)) { in s390_domain_alloc_paging() 548 } else if (aperture_size <= (ZPCI_TABLE_SIZE_RS - zdev->start_dma) && in s390_domain_alloc_paging() 549 (zdev->dtsm & ZPCI_IOTA_DT_RS)) { in s390_domain_alloc_paging() 551 } else if (zdev->dtsm & ZPCI_IOTA_DT_RF) { in s390_domain_alloc_paging() 556 aperture_size = ZPCI_TABLE_SIZE_RT - zdev->start_dma; in s390_domain_alloc_paging() 558 zdev->end_dma = zdev->start_dma + aperture_size - 1; in s390_domain_alloc_paging() [all …]
|
| /linux/arch/s390/include/asm/ |
| H A D | pci.h | 198 static inline bool zdev_enabled(struct zpci_dev *zdev) in zdev_enabled() argument 200 return (zdev->fh & (1UL << 31)) ? true : false; in zdev_enabled() 222 int zpci_add_device(struct zpci_dev *zdev); 224 int zpci_reenable_device(struct zpci_dev *zdev); 226 int zpci_scan_configured_device(struct zpci_dev *zdev, u32 fh); 227 int zpci_deconfigure_device(struct zpci_dev *zdev); 228 void zpci_device_reserved(struct zpci_dev *zdev); 229 bool zpci_is_device_configured(struct zpci_dev *zdev); 232 int zpci_hot_reset_device(struct zpci_dev *zdev); 236 void zpci_update_fh(struct zpci_dev *zdev, u32 fh); [all …]
|
| H A D | pci_dma.h | 98 struct zpci_iommu_ctrs *zpci_get_iommu_ctrs(struct zpci_dev *zdev);
|
| /linux/drivers/dma/xilinx/ |
| H A D | zynqmp_dma.c | 220 struct zynqmp_dma_device *zdev; member 891 devm_free_irq(chan->zdev->dev, chan->irq, chan); in zynqmp_dma_chan_remove() 903 static int zynqmp_dma_chan_probe(struct zynqmp_dma_device *zdev, in zynqmp_dma_chan_probe() argument 911 chan = devm_kzalloc(zdev->dev, sizeof(*chan), GFP_KERNEL); in zynqmp_dma_chan_probe() 914 chan->dev = zdev->dev; in zynqmp_dma_chan_probe() 915 chan->zdev = zdev; in zynqmp_dma_chan_probe() 932 dev_err(zdev->dev, "invalid bus-width value"); in zynqmp_dma_chan_probe() 941 zdev->chan = chan; in zynqmp_dma_chan_probe() 950 chan->common.device = &zdev->common; in zynqmp_dma_chan_probe() 951 list_add_tail(&chan->common.device_node, &zdev->common.channels); in zynqmp_dma_chan_probe() [all …]
|
| /linux/drivers/net/ethernet/8390/ |
| H A D | xsurf100.c | 239 static int xsurf100_probe(struct zorro_dev *zdev, in xsurf100_probe() argument 247 DEFINE_RES_MEM(zdev->resource.start + XS100_8390_BASE, in xsurf100_probe() 262 if (!request_mem_region(zdev->resource.start, 0x100, zdev->name)) { in xsurf100_probe() 263 dev_err(&zdev->dev, "cannot reserve X-Surf 100 control registers\n"); in xsurf100_probe() 267 if (!request_mem_region(zdev->resource.start + in xsurf100_probe() 271 dev_err(&zdev->dev, "cannot reserve 32-bit area\n"); in xsurf100_probe() 286 ax88796_data.base_regs = ioremap(zdev->resource.start, 0x100); in xsurf100_probe() 290 dev_err(&zdev->dev, "Cannot ioremap area %pR (registers)\n", in xsurf100_probe() 291 &zdev->resource); in xsurf100_probe() 297 ax88796_data.data_area = ioremap(zdev->resource.start + in xsurf100_probe() [all …]
|
| /linux/arch/s390/net/ |
| H A D | pnet.c | 58 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); in pnet_ids_by_device() local 60 memcpy(pnetids, zdev->util_str, sizeof(zdev->util_str)); in pnet_ids_by_device() 61 EBCASC(pnetids, sizeof(zdev->util_str)); in pnet_ids_by_device()
|
| /linux/drivers/video/fbdev/ |
| H A D | cirrusfb.c | 1948 struct zorro_dev *zdev = to_zorro_dev(info->device); in cirrusfb_zorro_unmap() local 1955 zorro_release_device(zdev); in cirrusfb_zorro_unmap()
|