| /linux-6.15/arch/s390/pci/ |
| H A D | pci.c | 80 zdev = tmp; in get_zdev_by_fid() 86 return zdev; in get_zdev_by_fid() 167 if (zdev->fmb || sizeof(*zdev->fmb) < zdev->fmb_length) in zpci_fmb_enable_device() 495 if (zdev->has_resources && zdev_enabled(zdev)) in zpci_update_fh() 526 snprintf(zdev->res_name, sizeof(zdev->res_name), in zpci_setup_bus_resources() 575 zpci_free_iomap(zdev, zdev->bars[i].map_idx); in zpci_cleanup_bus_resources() 799 zdev = kzalloc(sizeof(*zdev), GFP_KERNEL); in zpci_create_device() 800 if (!zdev) in zpci_create_device() 817 return zdev; in zpci_create_device() 840 zpci_dbg(1, "add fid:%x, fh:%x, c:%d\n", zdev->fid, zdev->fh, zdev->state); in zpci_add_device() [all …]
|
| H A D | pci_bus.c | 57 pci_bus_add_resource(zdev->zbus->bus, zdev->bars[i].res); in zpci_bus_prepare_device() 80 pdev = pci_scan_single_device(zdev->zbus->bus, zdev->devfn); in zpci_bus_scan_device() 140 if (zdev && zdev->state == ZPCI_FN_STATE_CONFIGURED) { in zpci_bus_scan_bus() 175 !zdev->vfn; in zpci_bus_is_multifunction_root() 317 if (zdev->vfn) { in pcibios_bus_add_device() 318 zpci_iov_setup_virtfn(zdev->zbus, pdev, zdev->vfn); in pcibios_bus_add_device() 332 zdev->devfn = zdev->rid & ZPCI_RID_MASK_DEVFN; in zpci_bus_add_device() 339 zdev->zbus = zbus; in zpci_bus_add_device() 340 zbus->function[zdev->devfn] = zdev; in zpci_bus_add_device() 361 if (!zdev->vfn) in zpci_bus_is_isolated_vf() [all …]
|
| H A D | pci_event.c | 69 ret = !!zdev->kzdev; in is_passed_through() 282 if (zdev) { in __zpci_event_error() 286 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in __zpci_event_error() 312 if (zdev) in __zpci_event_error() 352 if (!zdev) { in __zpci_event_availability() 357 kfree(zdev); in __zpci_event_availability() 369 if (!zdev) { in __zpci_event_availability() 374 kfree(zdev); in __zpci_event_availability() 382 if (zdev) { in __zpci_event_availability() 393 if (zdev) { in __zpci_event_availability() [all …]
|
| H A D | pci_debug.c | 97 if (!zdev) in pci_perf_show() 100 mutex_lock(&zdev->fmb_lock); in pci_perf_show() 101 if (!zdev->fmb) { in pci_perf_show() 102 mutex_unlock(&zdev->fmb_lock); in pci_perf_show() 113 &zdev->fmb->ld_ops); in pci_perf_show() 115 switch (zdev->fmb->format) { in pci_perf_show() 139 mutex_unlock(&zdev->fmb_lock); in pci_perf_show() 150 if (!zdev) in pci_perf_seq_write() 157 mutex_lock(&zdev->fmb_lock); in pci_perf_seq_write() 166 mutex_unlock(&zdev->fmb_lock); in pci_perf_seq_write() [all …]
|
| H A D | pci_irq.c | 46 fib.gd = zdev->gisa; in zpci_set_airq() 58 fib.gd = zdev->gisa; in zpci_clear_airq() 78 fib.gd = zdev->gisa; in zpci_set_directed_irq() 91 fib.gd = zdev->gisa; in zpci_clear_directed_irq() 284 zdev->aisb = *bit; in __alloc_airq() 288 if (!zdev->aibv) in __alloc_airq() 309 zdev->aisb = -1UL; in arch_setup_msi_irqs() 385 return (zdev->msi_nr_irqs == nvec) ? 0 : zdev->msi_nr_irqs; in arch_setup_msi_irqs() 415 zdev->aisb = -1UL; in arch_teardown_msi_irqs() 417 if (zdev->aibv) { in arch_teardown_msi_irqs() [all …]
|
| H A D | pci_clp.c | 167 zdev->pft = response->pft; in clp_store_query_pci_fn() 175 if (zdev->rid_available) in clp_store_query_pci_fn() 178 if (zdev->tid_avail) in clp_store_query_pci_fn() 181 memcpy(zdev->pfip, response->pfip, sizeof(zdev->pfip)); in clp_store_query_pci_fn() 251 gisa = zdev->gisa; in clp_set_pci_fn() 327 zdev->fid, *fh, rc); in clp_enable_fh() 338 if (!zdev_enabled(zdev)) in clp_disable_fh() 420 struct zpci_dev *zdev; in __clp_add() local 426 if (zdev) { in __clp_add() 427 zpci_zdev_put(zdev); in __clp_add() [all …]
|
| H A D | pci_sysfs.c | 58 if (zdev_enabled(zdev)) { in _do_recover() 59 ret = zpci_disable_device(zdev); in _do_recover() 72 ret = zpci_reenable_device(zdev); in _do_recover() 82 struct zpci_dev *zdev = to_zpci(pdev); in recover_store() local 99 mutex_lock(&zdev->state_lock); in recover_store() 115 ret = _do_recover(pdev, zdev); in recover_store() 117 pci_rescan_bus(zdev->zbus->bus); in recover_store() 121 mutex_unlock(&zdev->state_lock); in recover_store() 137 sizeof(zdev->util_str)); in util_string_read() 154 ret = sclp_pci_report(report, zdev->fh, zdev->fid); in report_error_write() [all …]
|
| H A D | pci_bus.h | 14 int zpci_bus_device_register(struct zpci_dev *zdev, struct pci_ops *ops); 15 void zpci_bus_device_unregister(struct zpci_dev *zdev); 20 int zpci_bus_scan_device(struct zpci_dev *zdev); 21 void zpci_bus_remove_device(struct zpci_dev *zdev, bool set_error); 24 static inline void zpci_zdev_put(struct zpci_dev *zdev) in zpci_zdev_put() argument 26 if (zdev) in zpci_zdev_put() 27 kref_put(&zdev->kref, zpci_release_device); in zpci_zdev_put() 30 static inline void zpci_zdev_get(struct zpci_dev *zdev) in zpci_zdev_get() argument 32 kref_get(&zdev->kref); in zpci_zdev_get() 37 int zpci_setup_bus_resources(struct zpci_dev *zdev);
|
| H A D | pci_iov.c | 77 struct pci_dev *zpci_iov_find_parent_pf(struct zpci_bus *zbus, struct zpci_dev *zdev) in zpci_iov_find_parent_pf() argument 85 if (!zdev->vfn || !zdev->rid_available) in zpci_iov_find_parent_pf() 88 vfid = zdev->vfn - 1; in zpci_iov_find_parent_pf() 89 devfn = zdev->rid & ZPCI_RID_MASK_DEVFN; in zpci_iov_find_parent_pf() 99 zdev = zbus->function[i]; in zpci_iov_find_parent_pf() 100 if (zdev && zdev->is_physfn) { in zpci_iov_find_parent_pf() 101 pdev = pci_get_slot(zbus->bus, zdev->devfn); in zpci_iov_find_parent_pf() 116 struct zpci_dev *zdev = to_zpci(virtfn); in zpci_iov_setup_virtfn() local 120 pdev_pf = zpci_iov_find_parent_pf(zbus, zdev); in zpci_iov_setup_virtfn() 123 rc = zpci_iov_link_virtfn(pdev_pf, virtfn, zdev->vfn - 1); in zpci_iov_setup_virtfn()
|
| H A D | pci_report.c | 107 int zpci_report_status(struct zpci_dev *zdev, const char *operation, const char *status) in zpci_report_status() argument 115 if (!zdev || !zdev->zbus) in zpci_report_status() 125 if (zdev->zbus->bus) in zpci_report_status() 126 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in zpci_report_status() 149 ret = sclp_pci_report(&report->header, zdev->fh, zdev->fid); in zpci_report_status()
|
| 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
|
| H A D | pci_report.h | 14 int zpci_report_status(struct zpci_dev *zdev, const char *operation, const char *status);
|
| /linux-6.15/drivers/pci/hotplug/ |
| H A D | s390_pci_hpc.c | 29 mutex_lock(&zdev->state_lock); in enable_slot() 35 rc = sclp_pci_configure(zdev->fid); in enable_slot() 41 rc = zpci_scan_configured_device(zdev, zdev->fh); in enable_slot() 43 mutex_unlock(&zdev->state_lock); in enable_slot() 54 mutex_lock(&zdev->state_lock); in disable_slot() 60 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in disable_slot() 66 rc = zpci_deconfigure_device(zdev); in disable_slot() 68 mutex_unlock(&zdev->state_lock); in disable_slot() 97 rc = zpci_hot_reset_device(zdev); in reset_slot() 99 mutex_unlock(&zdev->state_lock); in reset_slot() [all …]
|
| /linux-6.15/arch/s390/kvm/ |
| H A D | pci.c | 308 aift->kzdev[zdev->aisb] = zdev->kzdev; in kvm_s390_pci_aif_enable() 411 kzdev->zdev = zdev; in kvm_s390_pci_dev_open() 422 WARN_ON(kzdev->zdev != zdev); in kvm_s390_pci_dev_release() 438 if (!zdev) in kvm_s390_pci_register_kvm() 443 if (zdev->kzdev || zdev->gisa != 0 || !kvm) { in kvm_s390_pci_register_kvm() 498 zdev->gisa = 0; in kvm_s390_pci_register_kvm() 513 if (!zdev) in kvm_s390_pci_unregister_kvm() 538 zdev->gisa = 0; in kvm_s390_pci_unregister_kvm() 584 zdev = kzdev->zdev; in get_zdev_from_kvm_by_fh() 590 return zdev; in get_zdev_from_kvm_by_fh() [all …]
|
| H A D | pci.h | 21 struct zpci_dev *zdev; member
|
| /linux-6.15/drivers/vfio/pci/ |
| H A D | vfio_pci_zdev.c | 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() 33 .pft = zdev->pft, in zpci_base_cap() 34 .gid = zdev->pfgid, in zpci_base_cap() 35 .fh = zdev->fh in zpci_base_cap() 49 .dasm = zdev->dma_mask, in zpci_group_cap() 52 .mui = zdev->fmb_update, in zpci_group_cap() 53 .noi = zdev->max_msi, in zpci_group_cap() 122 if (!zdev) in vfio_pci_info_zdev_add_caps() [all …]
|
| /linux-6.15/drivers/iommu/ |
| H A D | s390-iommu.c | 393 rc = zpci_register_ioat(zdev, 0, zdev->start_dma, in s390_iommu_domain_reg_ioat() 403 rc = zpci_register_ioat(zdev, 0, zdev->start_dma, in s390_iommu_domain_reg_ioat() 417 rc = s390_iommu_domain_reg_ioat(zdev, zdev->s390_domain, status); in zpci_iommu_register_ioat() 435 if (zdev->dma_table) { in blocking_domain_attach_device() 457 if (!zdev) in s390_iommu_attach_device() 513 if (zdev->start_dma > zdev->end_dma || in s390_iommu_probe_device() 532 return zpci_refresh_trans((u64)zdev->fh << 32, zdev->start_dma, in zpci_refresh_all() 533 zdev->end_dma - zdev->start_dma + 1); in zpci_refresh_all() 777 zdev->start_dma = PAGE_ALIGN(zdev->start_dma); in zpci_init_iommu() 780 zdev->end_dma - zdev->start_dma + 1); in zpci_init_iommu() [all …]
|
| /linux-6.15/arch/s390/include/asm/ |
| H A D | pci.h | 199 return (zdev->fh & (1UL << 31)) ? true : false; in zdev_enabled() 221 int zpci_add_device(struct zpci_dev *zdev); 223 int zpci_reenable_device(struct zpci_dev *zdev); 227 void zpci_device_reserved(struct zpci_dev *zdev); 231 int zpci_hot_reset_device(struct zpci_dev *zdev); 240 int clp_query_pci_fn(struct zpci_dev *zdev); 250 int zpci_init_iommu(struct zpci_dev *zdev); 251 void zpci_destroy_iommu(struct zpci_dev *zdev); 298 int zpci_dma_init_device(struct zpci_dev *zdev); 299 int zpci_dma_exit_device(struct zpci_dev *zdev); [all …]
|
| H A D | pci_dma.h | 95 struct zpci_iommu_ctrs *zpci_get_iommu_ctrs(struct zpci_dev *zdev);
|
| /linux-6.15/drivers/dma/xilinx/ |
| H A D | zynqmp_dma.c | 220 struct zynqmp_dma_device *zdev; member 914 chan->dev = zdev->dev; in zynqmp_dma_chan_probe() 915 chan->zdev = zdev; in zynqmp_dma_chan_probe() 941 zdev->chan = chan; in zynqmp_dma_chan_probe() 1075 zdev = devm_kzalloc(&pdev->dev, sizeof(*zdev), GFP_KERNEL); in zynqmp_dma_probe() 1076 if (!zdev) in zynqmp_dma_probe() 1079 zdev->dev = &pdev->dev; in zynqmp_dma_probe() 1089 p = &zdev->common; in zynqmp_dma_probe() 1101 if (IS_ERR(zdev->clk_main)) in zynqmp_dma_probe() 1106 if (IS_ERR(zdev->clk_apb)) in zynqmp_dma_probe() [all …]
|
| /linux-6.15/drivers/net/ethernet/8390/ |
| H A D | xsurf100.c | 239 static int xsurf100_probe(struct zorro_dev *zdev, in xsurf100_probe() argument 262 if (!request_mem_region(zdev->resource.start, 0x100, zdev->name)) { in xsurf100_probe() 267 if (!request_mem_region(zdev->resource.start + in xsurf100_probe() 291 &zdev->resource); in xsurf100_probe() 302 dev_err(&zdev->dev, in xsurf100_probe() 304 &zdev->resource, XS100_8390_DATA32_BASE); in xsurf100_probe() 314 zdev->slotaddr, res, 2, in xsurf100_probe() 324 zorro_set_drvdata(zdev, pdev); in xsurf100_probe() 340 release_mem_region(zdev->resource.start, 0x100); in xsurf100_probe() 345 static void xsurf100_remove(struct zorro_dev *zdev) in xsurf100_remove() argument [all …]
|
| /linux-6.15/arch/s390/net/ |
| H A D | pnet.c | 57 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); in pnet_ids_by_device() local 59 memcpy(pnetids, zdev->util_str, sizeof(zdev->util_str)); in pnet_ids_by_device() 60 EBCASC(pnetids, sizeof(zdev->util_str)); in pnet_ids_by_device()
|
| /linux-6.15/drivers/s390/net/ |
| H A D | ism.h | 197 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_read_cmd() local 198 u64 req = ZPCI_CREATE_REQ(zdev->fh, 2, 8); in __ism_read_cmd() 211 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_write_cmd() local 212 u64 req = ZPCI_CREATE_REQ(zdev->fh, 2, len); in __ism_write_cmd() 221 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_move() local 222 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, size); in __ism_move()
|
| /linux-6.15/drivers/s390/crypto/ |
| H A D | zcrypt_card.c | 159 struct zcrypt_card *zdev = in zcrypt_card_release() local 161 zcrypt_card_free(zdev); in zcrypt_card_release()
|
| /linux-6.15/net/smc/ |
| H A D | smc_core.h | 548 struct zpci_dev *zdev; in smc_set_pci_values() local 550 zdev = to_zpci(pci_dev); in smc_set_pci_values() 551 smc_dev->pci_fid = zdev->fid; in smc_set_pci_values() 552 smc_dev->pci_pchid = zdev->pchid; in smc_set_pci_values()
|