Home
last modified time | relevance | path

Searched refs:zdev (Results 1 – 17 of 17) sorted by relevance

/arch/s390/pci/
A Dpci.c76 if (!zdev) in zpci_zdev_put()
90 zdev = tmp; in get_zdev_by_fid()
96 return zdev; in get_zdev_by_fid()
177 if (zdev->fmb || sizeof(*zdev->fmb) < zdev->fmb_length) in zpci_fmb_enable_device()
505 if (zdev->has_resources && zdev_enabled(zdev)) in zpci_update_fh()
536 snprintf(zdev->res_name, sizeof(zdev->res_name), in zpci_setup_bus_resources()
585 zpci_free_iomap(zdev, zdev->bars[i].map_idx); in zpci_cleanup_bus_resources()
809 zdev = kzalloc(sizeof(*zdev), GFP_KERNEL); in zpci_create_device()
810 if (!zdev) in zpci_create_device()
851 zpci_dbg(1, "add fid:%x, fh:%x, c:%d\n", zdev->fid, zdev->fh, zdev->state); in zpci_add_device()
[all …]
A Dpci_event.c302 if (zdev) { in __zpci_event_error()
315 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in __zpci_event_error()
341 if (zdev) in __zpci_event_error()
380 zpci_dbg(1, "rea fid:%x, fh:%x\n", zdev->fid, zdev->fh); in zpci_event_reappear()
397 if (!zdev) { in __zpci_event_availability()
402 kfree(zdev); in __zpci_event_availability()
416 if (!zdev) { in __zpci_event_availability()
421 kfree(zdev); in __zpci_event_availability()
431 if (zdev) { in __zpci_event_availability()
442 if (zdev) { in __zpci_event_availability()
[all …]
A Dpci_bus.c56 pci_bus_add_resource(zdev->zbus->bus, zdev->bars[i].res); in zpci_bus_prepare_device()
79 pdev = pci_scan_single_device(zdev->zbus->bus, zdev->devfn); in zpci_bus_scan_device()
139 if (zdev && zdev->state == ZPCI_FN_STATE_CONFIGURED) { in zpci_bus_scan_bus()
174 !zdev->vfn; in zpci_bus_is_multifunction_root()
316 if (zdev->vfn) { in pcibios_bus_add_device()
317 zpci_iov_setup_virtfn(zdev->zbus, pdev, zdev->vfn); in pcibios_bus_add_device()
331 zdev->devfn = zdev->rid & ZPCI_RID_MASK_DEVFN; in zpci_bus_add_device()
338 zdev->zbus = zbus; in zpci_bus_add_device()
339 zbus->function[zdev->devfn] = zdev; in zpci_bus_add_device()
360 if (!zdev->vfn) in zpci_bus_is_isolated_vf()
[all …]
A Dpci_debug.c97 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 …]
A Dpci_irq.c46 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 …]
A Dpci_clp.c167 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 …]
A Dpci_sysfs.c58 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 …]
A Dpci_iov.c77 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()
A Dpci_bus.h14 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);
25 void zpci_zdev_put(struct zpci_dev *zdev);
27 static inline void zpci_zdev_get(struct zpci_dev *zdev) in zpci_zdev_get() argument
29 kref_get(&zdev->kref); in zpci_zdev_get()
34 int zpci_setup_bus_resources(struct zpci_dev *zdev);
A Dpci_report.c107 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()
A Dpci_iov.h22 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
A Dpci_report.h14 int zpci_report_status(struct zpci_dev *zdev, const char *operation, const char *status);
/arch/s390/kvm/
A Dpci.c308 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 …]
A Dpci.h21 struct zpci_dev *zdev; member
/arch/s390/include/asm/
A Dpci.h199 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 …]
A Dpci_dma.h98 struct zpci_iommu_ctrs *zpci_get_iommu_ctrs(struct zpci_dev *zdev);
/arch/s390/net/
A Dpnet.c58 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()

Completed in 30 milliseconds