Home
last modified time | relevance | path

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

/linux/arch/s390/pci/
A Dpci.c71 zdev = tmp; in get_zdev_by_fid()
76 return zdev; in get_zdev_by_fid()
148 if (zdev->fmb || sizeof(*zdev->fmb) < zdev->fmb_length) in zpci_fmb_enable_device()
508 if (zdev->has_resources && zdev_enabled(zdev)) in zpci_update_fh()
540 snprintf(zdev->res_name, sizeof(zdev->res_name), in zpci_setup_bus_resources()
582 if (!zdev->bars[i].size || !zdev->bars[i].res) in zpci_cleanup_bus_resources()
585 zpci_free_iomap(zdev, zdev->bars[i].map_idx); in zpci_cleanup_bus_resources()
773 rc = zpci_register_ioat(zdev, 0, zdev->start_dma, zdev->end_dma, in zpci_hot_reset_device()
802 zdev = kzalloc(sizeof(*zdev), GFP_KERNEL); in zpci_create_device()
803 if (!zdev) in zpci_create_device()
[all …]
A Dpci_dma.c26 return zpci_refresh_trans((u64) zdev->fh << 32, zdev->start_dma, in zpci_refresh_global()
210 bitmap_andnot(zdev->iommu_bitmap, zdev->iommu_bitmap, in __dma_purge_tlb()
211 zdev->lazy_bitmap, zdev->iommu_pages); in __dma_purge_tlb()
212 bitmap_zero(zdev->lazy_bitmap, zdev->iommu_pages); in __dma_purge_tlb()
287 zdev->lazy_bitmap, zdev->iommu_pages); in dma_alloc_address()
288 bitmap_zero(zdev->lazy_bitmap, zdev->iommu_pages); in dma_alloc_address()
581 zdev->start_dma = PAGE_ALIGN(zdev->start_dma); in zpci_dma_init_device()
584 zdev->end_dma - zdev->start_dma + 1); in zpci_dma_init_device()
585 zdev->end_dma = zdev->start_dma + zdev->iommu_size - 1; in zpci_dma_init_device()
586 zdev->iommu_pages = zdev->iommu_size >> PAGE_SHIFT; in zpci_dma_init_device()
[all …]
A Dpci_bus.c60 zpci_setup_bus_resources(zdev, &zdev->zbus->resources); in zpci_bus_prepare_device()
86 pdev = pci_scan_single_device(zdev->zbus->bus, zdev->devfn); in zpci_bus_scan_device()
112 if (!zdev->zbus->bus) in zpci_bus_remove_device()
145 struct zpci_dev *zdev; in zpci_bus_scan_bus() local
153 if (zdev && zdev->state == ZPCI_FN_STATE_CONFIGURED) { in zpci_bus_scan_bus()
300 if (zdev->vfn) { in pcibios_bus_add_device()
301 zpci_iov_setup_virtfn(zdev->zbus, pdev, zdev->vfn); in pcibios_bus_add_device()
334 if (zdev && !zdev->has_hp_slot) { in zpci_bus_create_hotplug_slots()
355 zdev->zbus = zbus; in zpci_bus_add_device()
356 zbus->function[zdev->devfn] = zdev; in zpci_bus_add_device()
[all …]
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 …]
A Dpci_event.c64 return zdev->s390_domain; in is_passed_through()
262 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()
307 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 …]
A Dpci_irq.c109 rc = zpci_set_airq(zdev); in zpci_set_irq()
112 zdev->irqs_registered = 1; in zpci_set_irq()
275 zdev->aisb = -1UL; in arch_setup_msi_irqs()
291 zdev->aisb = bit; in arch_setup_msi_irqs()
295 if (!zdev->aibv) in arch_setup_msi_irqs()
346 rc = zpci_set_irq(zdev); in arch_setup_msi_irqs()
379 zdev->aisb = -1UL; in arch_teardown_msi_irqs()
381 if (zdev->aibv) { in arch_teardown_msi_irqs()
383 zdev->aibv = NULL; in arch_teardown_msi_irqs()
387 airq_iv_free(zpci_ibv[0], zdev->msi_first_bit, zdev->msi_nr_irqs); in arch_teardown_msi_irqs()
[all …]
A Dpci_clp.c157 zdev->pft = response->pft; in clp_store_query_pci_fn()
158 zdev->vfn = response->vfn; in clp_store_query_pci_fn()
159 zdev->port = response->port; in clp_store_query_pci_fn()
160 zdev->uid = response->uid; in clp_store_query_pci_fn()
167 memcpy(zdev->pfip, response->pfip, sizeof(zdev->pfip)); in clp_store_query_pci_fn()
171 zdev->util_str_avail = 1; in clp_store_query_pci_fn()
197 rrb->request.fh = zdev->fh; in clp_query_pci_fn()
308 zdev->fid, *fh, rc); in clp_enable_fh()
319 if (!zdev_enabled(zdev)) in clp_disable_fh()
400 struct zpci_dev *zdev; in __clp_add() local
[all …]
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 …]
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 kref_put(&zdev->kref, zpci_release_device); in zpci_zdev_put()
25 static inline void zpci_zdev_get(struct zpci_dev *zdev) in zpci_zdev_get() argument
27 kref_get(&zdev->kref); in zpci_zdev_get()
32 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/drivers/pci/hotplug/
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 …]
/linux/drivers/vfio/pci/
A Dvfio_pci_zdev.c28 .end_dma = zdev->end_dma, in zpci_base_cap()
29 .pchid = zdev->pchid, in zpci_base_cap()
30 .vfn = zdev->vfn, in zpci_base_cap()
32 .pft = zdev->pft, in zpci_base_cap()
33 .gid = zdev->pfgid in zpci_base_cap()
47 .dasm = zdev->dma_mask, in zpci_group_cap()
48 .msi_addr = zdev->msi_addr, in zpci_group_cap()
50 .mui = zdev->fmb_update, in zpci_group_cap()
51 .noi = zdev->max_msi, in zpci_group_cap()
53 .version = zdev->version in zpci_group_cap()
[all …]
/linux/drivers/iommu/
A Ds390-iommu.c34 struct zpci_dev *zdev; member
95 if (!zdev) in s390_iommu_attach_device()
102 if (zdev->dma_table) { in s390_iommu_attach_device()
111 cc = zpci_register_ioat(zdev, 0, zdev->start_dma, zdev->end_dma, in s390_iommu_attach_device()
112 (u64) zdev->dma_table); in s390_iommu_attach_device()
131 domain_device->zdev = zdev; in s390_iommu_attach_device()
155 if (!zdev) in s390_iommu_detach_device()
161 if (domain_device->zdev == zdev) { in s390_iommu_detach_device()
171 zdev->s390_domain = NULL; in s390_iommu_detach_device()
181 return &zdev->iommu_dev; in s390_iommu_probe_device()
[all …]
/linux/arch/s390/include/asm/
A Dpci.h194 return (zdev->fh & (1UL << 31)) ? true : false; in zdev_enabled()
210 void zpci_device_reserved(struct zpci_dev *zdev);
213 int zpci_hot_reset_device(struct zpci_dev *zdev);
222 int clp_query_pci_fn(struct zpci_dev *zdev);
232 int zpci_init_iommu(struct zpci_dev *zdev);
233 void zpci_destroy_iommu(struct zpci_dev *zdev);
279 int zpci_dma_init_device(struct zpci_dev *zdev);
280 int zpci_dma_exit_device(struct zpci_dev *zdev);
286 int zpci_set_irq(struct zpci_dev *zdev);
287 int zpci_clear_irq(struct zpci_dev *zdev);
[all …]
/linux/drivers/dma/xilinx/
A Dzynqmp_dma.c215 struct zynqmp_dma_device *zdev; member
888 chan->dev = zdev->dev; in zynqmp_dma_chan_probe()
889 chan->zdev = zdev; in zynqmp_dma_chan_probe()
912 zdev->chan = chan; in zynqmp_dma_chan_probe()
1046 zdev = devm_kzalloc(&pdev->dev, sizeof(*zdev), GFP_KERNEL); in zynqmp_dma_probe()
1047 if (!zdev) in zynqmp_dma_probe()
1050 zdev->dev = &pdev->dev; in zynqmp_dma_probe()
1056 p = &zdev->common; in zynqmp_dma_probe()
1067 if (IS_ERR(zdev->clk_main)) in zynqmp_dma_probe()
1072 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.h219 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_read_cmd() local
220 u64 req = ZPCI_CREATE_REQ(zdev->fh, 2, 8); in __ism_read_cmd()
233 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_write_cmd() local
234 u64 req = ZPCI_CREATE_REQ(zdev->fh, 2, len); in __ism_write_cmd()
243 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_move() local
244 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, size); in __ism_move()
/linux/net/smc/
A Dsmc_core.h459 struct zpci_dev *zdev; in smc_set_pci_values() local
461 zdev = to_zpci(pci_dev); in smc_set_pci_values()
462 smc_dev->pci_fid = zdev->fid; in smc_set_pci_values()
463 smc_dev->pci_pchid = zdev->pchid; in smc_set_pci_values()
/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/drivers/video/fbdev/
A Dcirrusfb.c1947 struct zorro_dev *zdev = to_zorro_dev(info->device); in cirrusfb_zorro_unmap() local
1954 zorro_release_device(zdev); in cirrusfb_zorro_unmap()

Completed in 55 milliseconds