Home
last modified time | relevance | path

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

/openbmc/linux/arch/s390/pci/
H A Dpci.c77 zdev = tmp; in get_zdev_by_fid()
83 return zdev; in get_zdev_by_fid()
159 if (zdev->fmb || sizeof(*zdev->fmb) < zdev->fmb_length) in zpci_fmb_enable_device()
485 if (zdev->has_resources && zdev_enabled(zdev)) in zpci_update_fh()
516 snprintf(zdev->res_name, sizeof(zdev->res_name), in zpci_setup_bus_resources()
565 zpci_free_iomap(zdev, zdev->bars[i].map_idx); in zpci_cleanup_bus_resources()
757 rc = zpci_register_ioat(zdev, 0, zdev->start_dma, zdev->end_dma, in zpci_hot_reset_device()
786 zdev = kzalloc(sizeof(*zdev), GFP_KERNEL); in zpci_create_device()
787 if (!zdev) in zpci_create_device()
816 return zdev; in zpci_create_device()
[all …]
H A Dpci_bus.c60 if (zdev->bars[i].res) in zpci_bus_prepare_device()
61 pci_bus_add_resource(zdev->zbus->bus, zdev->bars[i].res, 0); in zpci_bus_prepare_device()
84 pdev = pci_scan_single_device(zdev->zbus->bus, zdev->devfn); in zpci_bus_scan_device()
109 if (!zdev->zbus->bus) in zpci_bus_remove_device()
139 struct zpci_dev *zdev; in zpci_bus_scan_bus() local
144 if (zdev && zdev->state == ZPCI_FN_STATE_CONFIGURED) { in zpci_bus_scan_bus()
290 if (zdev->vfn) { in pcibios_bus_add_device()
291 zpci_iov_setup_virtfn(zdev->zbus, pdev, zdev->vfn); in pcibios_bus_add_device()
305 zdev->zbus = zbus; in zpci_bus_add_device()
306 zbus->function[zdev->devfn] = zdev; in zpci_bus_add_device()
[all …]
H A Dpci_dma.c26 return zpci_refresh_trans((u64) zdev->fh << 32, zdev->start_dma, in zpci_refresh_global()
230 bitmap_andnot(zdev->iommu_bitmap, zdev->iommu_bitmap, in __dma_purge_tlb()
231 zdev->lazy_bitmap, zdev->iommu_pages); in __dma_purge_tlb()
232 bitmap_zero(zdev->lazy_bitmap, zdev->iommu_pages); in __dma_purge_tlb()
307 zdev->lazy_bitmap, zdev->iommu_pages); in dma_alloc_address()
308 bitmap_zero(zdev->lazy_bitmap, zdev->iommu_pages); in dma_alloc_address()
612 zdev->start_dma = PAGE_ALIGN(zdev->start_dma); in zpci_dma_init_device()
615 zdev->end_dma - zdev->start_dma + 1); in zpci_dma_init_device()
616 zdev->end_dma = zdev->start_dma + zdev->iommu_size - 1; in zpci_dma_init_device()
617 zdev->iommu_pages = zdev->iommu_size >> PAGE_SHIFT; in zpci_dma_init_device()
[all …]
H A Dpci_debug.c85 if (!zdev) in pci_perf_show()
88 mutex_lock(&zdev->lock); in pci_perf_show()
89 if (!zdev->fmb) { in pci_perf_show()
90 mutex_unlock(&zdev->lock); in pci_perf_show()
101 &zdev->fmb->ld_ops); in pci_perf_show()
103 switch (zdev->fmb->format) { in pci_perf_show()
127 mutex_unlock(&zdev->lock); in pci_perf_show()
138 if (!zdev) in pci_perf_seq_write()
145 mutex_lock(&zdev->lock); in pci_perf_seq_write()
154 mutex_unlock(&zdev->lock); in pci_perf_seq_write()
[all …]
H 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 …]
H A Dpci_event.c262 if (zdev) { in __zpci_event_error()
264 if (zdev->zbus->bus) in __zpci_event_error()
265 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in __zpci_event_error()
290 zpci_zdev_put(zdev); in __zpci_event_error()
309 if (zdev->dma_table) in zpci_event_hard_deconfigured()
326 if (!zdev) { in __zpci_event_availability()
328 if (IS_ERR(zdev)) in __zpci_event_availability()
339 if (!zdev) in __zpci_event_availability()
345 if (zdev) { in __zpci_event_availability()
356 if (zdev) { in __zpci_event_availability()
[all …]
H 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 …]
H 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);
H A Dpci_sysfs.c85 if (zdev->dma_table) { in recover_store()
86 ret = zpci_dma_exit_device(zdev); in recover_store()
91 if (zdev_enabled(zdev)) { in recover_store()
92 ret = zpci_disable_device(zdev); in recover_store()
105 ret = zpci_enable_device(zdev); in recover_store()
108 ret = zpci_dma_init_device(zdev); in recover_store()
110 zpci_disable_device(zdev); in recover_store()
113 pci_rescan_bus(zdev->zbus->bus); in recover_store()
132 sizeof(zdev->util_str)); in util_string_read()
149 ret = sclp_pci_report(report, zdev->fh, zdev->fid); in report_error_write()
[all …]
H 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()
/openbmc/linux/arch/s390/kvm/
H 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 …]
H A Dpci.h21 struct zpci_dev *zdev; member
/openbmc/linux/drivers/vfio/pci/
H 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 …]
/openbmc/linux/drivers/pci/hotplug/
H A Ds390_pci_hpc.c29 if (zdev->state != ZPCI_FN_STATE_STANDBY) in enable_slot()
32 rc = sclp_pci_configure(zdev->fid); in enable_slot()
36 zdev->state = ZPCI_FN_STATE_CONFIGURED; in enable_slot()
38 return zpci_scan_configured_device(zdev, zdev->fh); in enable_slot()
50 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in disable_slot()
57 return zpci_deconfigure_device(zdev); in disable_slot()
80 return zpci_hot_reset_device(zdev); in reset_slot()
107 int zpci_init_slot(struct zpci_dev *zdev) in zpci_init_slot() argument
110 struct zpci_bus *zbus = zdev->zbus; in zpci_init_slot()
116 zdev->devfn, name); in zpci_init_slot()
[all …]
/openbmc/linux/drivers/iommu/
H A Ds390-iommu.c101 zdev->dma_table = NULL; in __s390_iommu_detach_device()
113 if (!zdev) in s390_iommu_attach_device()
120 if (zdev->s390_domain) in s390_iommu_attach_device()
125 cc = zpci_register_ioat(zdev, 0, zdev->start_dma, zdev->end_dma, in s390_iommu_attach_device()
159 if (zdev->start_dma) { in s390_iommu_get_resv_regions()
179 struct zpci_dev *zdev; in s390_iommu_probe_device() local
186 if (zdev->start_dma > zdev->end_dma || in s390_iommu_probe_device()
204 if (zdev) in s390_iommu_release_device()
211 struct zpci_dev *zdev; in s390_iommu_flush_iotlb_all() local
215 zpci_refresh_trans((u64)zdev->fh << 32, zdev->start_dma, in s390_iommu_flush_iotlb_all()
[all …]
/openbmc/linux/arch/s390/include/asm/
H A Dpci.h201 return (zdev->fh & (1UL << 31)) ? true : false; in zdev_enabled()
219 int zpci_deconfigure_device(struct zpci_dev *zdev);
220 void zpci_device_reserved(struct zpci_dev *zdev);
223 int zpci_hot_reset_device(struct zpci_dev *zdev);
227 void zpci_update_fh(struct zpci_dev *zdev, u32 fh);
232 int clp_query_pci_fn(struct zpci_dev *zdev);
242 int zpci_init_iommu(struct zpci_dev *zdev);
243 void zpci_destroy_iommu(struct zpci_dev *zdev);
289 int zpci_dma_init_device(struct zpci_dev *zdev);
290 int zpci_dma_exit_device(struct zpci_dev *zdev);
[all …]
/openbmc/linux/drivers/dma/xilinx/
H A Dzynqmp_dma.c216 struct zynqmp_dma_device *zdev; member
900 chan->dev = zdev->dev; in zynqmp_dma_chan_probe()
901 chan->zdev = zdev; in zynqmp_dma_chan_probe()
923 zdev->chan = chan; in zynqmp_dma_chan_probe()
1057 zdev = devm_kzalloc(&pdev->dev, sizeof(*zdev), GFP_KERNEL); in zynqmp_dma_probe()
1058 if (!zdev) in zynqmp_dma_probe()
1061 zdev->dev = &pdev->dev; in zynqmp_dma_probe()
1071 p = &zdev->common; in zynqmp_dma_probe()
1083 if (IS_ERR(zdev->clk_main)) in zynqmp_dma_probe()
1088 if (IS_ERR(zdev->clk_apb)) in zynqmp_dma_probe()
[all …]
/openbmc/linux/drivers/net/ethernet/8390/
H 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 …]
/openbmc/linux/arch/s390/net/
H 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()
/openbmc/linux/drivers/s390/net/
H A Dism.h204 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_read_cmd() local
205 u64 req = ZPCI_CREATE_REQ(zdev->fh, 2, 8); in __ism_read_cmd()
218 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_write_cmd() local
219 u64 req = ZPCI_CREATE_REQ(zdev->fh, 2, len); in __ism_write_cmd()
228 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_move() local
229 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, size); in __ism_move()
/openbmc/linux/drivers/s390/crypto/
H A Dzcrypt_card.c159 struct zcrypt_card *zdev = in zcrypt_card_release() local
161 zcrypt_card_free(zdev); in zcrypt_card_release()
/openbmc/linux/net/smc/
H A Dsmc_core.h529 struct zpci_dev *zdev; in smc_set_pci_values() local
531 zdev = to_zpci(pci_dev); in smc_set_pci_values()
532 smc_dev->pci_fid = zdev->fid; in smc_set_pci_values()
533 smc_dev->pci_pchid = zdev->pchid; in smc_set_pci_values()
/openbmc/linux/drivers/video/fbdev/
H 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()