Home
last modified time | relevance | path

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

/linux/arch/s390/pci/
A Dpci.c78 zdev = tmp; in get_zdev_by_fid()
84 return zdev; in get_zdev_by_fid()
165 if (zdev->fmb || sizeof(*zdev->fmb) < zdev->fmb_length) in zpci_fmb_enable_device()
491 if (zdev->has_resources && zdev_enabled(zdev)) in zpci_update_fh()
522 snprintf(zdev->res_name, sizeof(zdev->res_name), in zpci_setup_bus_resources()
571 zpci_free_iomap(zdev, zdev->bars[i].map_idx); in zpci_cleanup_bus_resources()
762 rc = zpci_register_ioat(zdev, 0, zdev->start_dma, zdev->end_dma, in zpci_hot_reset_device()
789 zdev = kzalloc(sizeof(*zdev), GFP_KERNEL); in zpci_create_device()
790 if (!zdev) in zpci_create_device()
820 return zdev; in zpci_create_device()
[all …]
A Dpci_bus.c55 if (zdev->bars[i].res) in zpci_bus_prepare_device()
56 pci_bus_add_resource(zdev->zbus->bus, zdev->bars[i].res, 0); in zpci_bus_prepare_device()
79 pdev = pci_scan_single_device(zdev->zbus->bus, zdev->devfn); in zpci_bus_scan_device()
104 if (!zdev->zbus->bus) in zpci_bus_remove_device()
134 struct zpci_dev *zdev; in zpci_bus_scan_bus() local
139 if (zdev && zdev->state == ZPCI_FN_STATE_CONFIGURED) { in zpci_bus_scan_bus()
285 if (zdev->vfn) { in pcibios_bus_add_device()
286 zpci_iov_setup_virtfn(zdev->zbus, pdev, zdev->vfn); in pcibios_bus_add_device()
300 zdev->zbus = zbus; in zpci_bus_add_device()
301 zbus->function[zdev->devfn] = zdev; in zpci_bus_add_device()
[all …]
A Dpci_event.c68 ret = !!zdev->kzdev; in is_passed_through()
269 if (zdev) { in __zpci_event_error()
273 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in __zpci_event_error()
299 if (zdev) in __zpci_event_error()
301 zpci_zdev_put(zdev); in __zpci_event_error()
339 if (!zdev) { in __zpci_event_availability()
341 if (IS_ERR(zdev)) in __zpci_event_availability()
352 if (!zdev) in __zpci_event_availability()
358 if (zdev) { in __zpci_event_availability()
369 if (zdev) { in __zpci_event_availability()
[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_debug.c91 if (!zdev) in pci_perf_show()
94 mutex_lock(&zdev->fmb_lock); in pci_perf_show()
95 if (!zdev->fmb) { in pci_perf_show()
96 mutex_unlock(&zdev->fmb_lock); in pci_perf_show()
107 &zdev->fmb->ld_ops); in pci_perf_show()
109 switch (zdev->fmb->format) { in pci_perf_show()
133 mutex_unlock(&zdev->fmb_lock); in pci_perf_show()
144 if (!zdev) in pci_perf_seq_write()
151 mutex_lock(&zdev->fmb_lock); in pci_perf_seq_write()
160 mutex_unlock(&zdev->fmb_lock); in pci_perf_seq_write()
[all …]
A Dpci_sysfs.c58 if (zdev_enabled(zdev)) { in _do_recover()
59 ret = zpci_disable_device(zdev); in _do_recover()
72 ret = zpci_enable_device(zdev); in _do_recover()
76 if (zdev->dma_table) { in _do_recover()
77 ret = zpci_register_ioat(zdev, 0, zdev->start_dma, zdev->end_dma, in _do_recover()
80 zpci_disable_device(zdev); in _do_recover()
107 mutex_lock(&zdev->state_lock); in recover_store()
123 ret = _do_recover(pdev, zdev); in recover_store()
125 pci_rescan_bus(zdev->zbus->bus); in recover_store()
162 ret = sclp_pci_report(report, zdev->fh, zdev->fid); in report_error_write()
[all …]
A Dpci_clp.c162 zdev->pft = response->pft; in clp_store_query_pci_fn()
163 zdev->vfn = response->vfn; in clp_store_query_pci_fn()
165 zdev->uid = response->uid; in clp_store_query_pci_fn()
172 memcpy(zdev->pfip, response->pfip, sizeof(zdev->pfip)); in clp_store_query_pci_fn()
176 zdev->util_str_avail = 1; in clp_store_query_pci_fn()
242 gisa = zdev->gisa; in clp_set_pci_fn()
318 zdev->fid, *fh, rc); in clp_enable_fh()
329 if (!zdev_enabled(zdev)) in clp_disable_fh()
410 struct zpci_dev *zdev; in __clp_add() local
416 if (zdev) { in __clp_add()
[all …]
A Dpci_bus.h10 int zpci_bus_device_register(struct zpci_dev *zdev, struct pci_ops *ops);
11 void zpci_bus_device_unregister(struct zpci_dev *zdev);
16 int zpci_bus_scan_device(struct zpci_dev *zdev);
17 void zpci_bus_remove_device(struct zpci_dev *zdev, bool set_error);
20 static inline void zpci_zdev_put(struct zpci_dev *zdev) in zpci_zdev_put() argument
22 if (zdev) in zpci_zdev_put()
23 kref_put(&zdev->kref, zpci_release_device); in zpci_zdev_put()
26 static inline void zpci_zdev_get(struct zpci_dev *zdev) in zpci_zdev_get() argument
28 kref_get(&zdev->kref); in zpci_zdev_get()
33 int zpci_setup_bus_resources(struct zpci_dev *zdev);
A Dpci_iov.c66 struct zpci_dev *zdev; in zpci_iov_setup_virtfn() local
82 zdev = zbus->function[i]; in zpci_iov_setup_virtfn()
83 if (zdev && zdev->is_physfn) { in zpci_iov_setup_virtfn()
84 pdev = pci_get_slot(zbus->bus, zdev->devfn); in zpci_iov_setup_virtfn()
/linux/arch/s390/kvm/
A Dpci.c309 aift->kzdev[zdev->aisb] = zdev->kzdev; in kvm_s390_pci_aif_enable()
412 kzdev->zdev = zdev; in kvm_s390_pci_dev_open()
423 WARN_ON(kzdev->zdev != zdev); in kvm_s390_pci_dev_release()
440 if (!zdev) in kvm_s390_pci_register_kvm()
445 if (zdev->kzdev || zdev->gisa != 0 || !kvm) { in kvm_s390_pci_register_kvm()
489 rc = zpci_register_ioat(zdev, 0, zdev->start_dma, zdev->end_dma, in kvm_s390_pci_register_kvm()
522 if (!zdev) in kvm_s390_pci_unregister_kvm()
558 zpci_register_ioat(zdev, 0, zdev->start_dma, zdev->end_dma, in kvm_s390_pci_unregister_kvm()
598 zdev = kzdev->zdev; in get_zdev_from_kvm_by_fh()
604 return zdev; in get_zdev_from_kvm_by_fh()
[all …]
A Dpci.h21 struct zpci_dev *zdev; member
/linux/drivers/pci/hotplug/
A Ds390_pci_hpc.c29 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()
67 rc = zpci_deconfigure_device(zdev); in disable_slot()
69 mutex_unlock(&zdev->state_lock); in disable_slot()
98 rc = zpci_hot_reset_device(zdev); in reset_slot()
100 mutex_unlock(&zdev->state_lock); in reset_slot()
[all …]
/linux/drivers/vfio/pci/
A Dvfio_pci_zdev.c29 .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/drivers/iommu/
A Ds390-iommu.c397 if (!zdev) in s390_iommu_attach_device()
404 if (zdev->s390_domain) in s390_iommu_attach_device()
407 cc = zpci_register_ioat(zdev, 0, zdev->start_dma, zdev->end_dma, in s390_iommu_attach_device()
459 if (zdev->start_dma > zdev->end_dma || in s390_iommu_probe_device()
480 if (zdev) in s390_iommu_release_device()
486 return zpci_refresh_trans((u64)zdev->fh << 32, zdev->start_dma, in zpci_refresh_all()
487 zdev->end_dma - zdev->start_dma + 1); in zpci_refresh_all()
700 if (!zdev || !zdev->s390_domain) in zpci_get_iommu_ctrs()
719 zdev->start_dma = PAGE_ALIGN(zdev->start_dma); in zpci_init_iommu()
722 zdev->end_dma - zdev->start_dma + 1); in zpci_init_iommu()
[all …]
/linux/arch/s390/include/asm/
A Dpci.h191 return (zdev->fh & (1UL << 31)) ? true : false; in zdev_enabled()
216 int zpci_deconfigure_device(struct zpci_dev *zdev);
217 void zpci_device_reserved(struct zpci_dev *zdev);
220 int zpci_hot_reset_device(struct zpci_dev *zdev);
224 void zpci_update_fh(struct zpci_dev *zdev, u32 fh);
229 int clp_query_pci_fn(struct zpci_dev *zdev);
239 int zpci_init_iommu(struct zpci_dev *zdev);
240 void zpci_destroy_iommu(struct zpci_dev *zdev);
286 int zpci_dma_init_device(struct zpci_dev *zdev);
287 int zpci_dma_exit_device(struct zpci_dev *zdev);
[all …]
A Dpci_dma.h95 struct zpci_iommu_ctrs *zpci_get_iommu_ctrs(struct zpci_dev *zdev);
/linux/drivers/dma/xilinx/
A Dzynqmp_dma.c220 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/drivers/net/ethernet/8390/
A Dxsurf100.c239 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/arch/s390/net/
A Dpnet.c57 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/drivers/s390/net/
A Dism.h197 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/drivers/s390/crypto/
A Dzcrypt_card.c159 struct zcrypt_card *zdev = in zcrypt_card_release() local
161 zcrypt_card_free(zdev); in zcrypt_card_release()
/linux/net/smc/
A Dsmc_core.h539 struct zpci_dev *zdev; in smc_set_pci_values() local
541 zdev = to_zpci(pci_dev); in smc_set_pci_values()
542 smc_dev->pci_fid = zdev->fid; in smc_set_pci_values()
543 smc_dev->pci_pchid = zdev->pchid; in smc_set_pci_values()
/linux/drivers/video/fbdev/
A Dcirrusfb.c1948 struct zorro_dev *zdev = to_zorro_dev(info->device); in cirrusfb_zorro_unmap() local
1955 zorro_release_device(zdev); in cirrusfb_zorro_unmap()

Completed in 1269 milliseconds