/Linux-v4.19/arch/s390/pci/ |
D | pci.c | 77 struct zpci_dev *tmp, *zdev = NULL; in get_zdev_by_fid() local 82 zdev = tmp; in get_zdev_by_fid() 87 return zdev; in get_zdev_by_fid() 92 struct zpci_dev *tmp, *zdev; in zpci_remove_reserved_devices() local 97 list_for_each_entry_safe(zdev, tmp, &zpci_list, entry) { in zpci_remove_reserved_devices() 98 if (zdev->state == ZPCI_FN_STATE_STANDBY && in zpci_remove_reserved_devices() 99 !clp_get_state(zdev->fid, &state) && in zpci_remove_reserved_devices() 101 list_move_tail(&zdev->entry, &remove); in zpci_remove_reserved_devices() 105 list_for_each_entry_safe(zdev, tmp, &remove, entry) in zpci_remove_reserved_devices() 106 zpci_remove_device(zdev); in zpci_remove_reserved_devices() [all …]
|
D | pci_dma.c | 24 static int zpci_refresh_global(struct zpci_dev *zdev) in zpci_refresh_global() argument 26 return zpci_refresh_trans((u64) zdev->fh << 32, zdev->start_dma, in zpci_refresh_global() 27 zdev->iommu_pages * PAGE_SIZE); in zpci_refresh_global() 135 static int __dma_update_trans(struct zpci_dev *zdev, unsigned long pa, in __dma_update_trans() argument 147 spin_lock_irqsave(&zdev->dma_table_lock, irq_flags); in __dma_update_trans() 148 if (!zdev->dma_table) { in __dma_update_trans() 154 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr); in __dma_update_trans() 170 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr); in __dma_update_trans() 177 spin_unlock_irqrestore(&zdev->dma_table_lock, irq_flags); in __dma_update_trans() 181 static int __dma_purge_tlb(struct zpci_dev *zdev, dma_addr_t dma_addr, in __dma_purge_tlb() argument [all …]
|
D | pci_debug.c | 72 struct zpci_dev *zdev = m->private; in pci_sw_counter_show() local 73 atomic64_t *counter = &zdev->allocated_pages; in pci_sw_counter_show() 83 struct zpci_dev *zdev = m->private; in pci_perf_show() local 85 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() 96 seq_printf(m, "Update interval: %u ms\n", zdev->fmb_update); in pci_perf_show() 97 seq_printf(m, "Samples: %u\n", zdev->fmb->samples); in pci_perf_show() 98 seq_printf(m, "Last update TOD: %Lx\n", zdev->fmb->last_update); in pci_perf_show() [all …]
|
D | pci_event.c | 49 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_error() local 55 if (zdev) in __zpci_event_error() 56 pdev = pci_get_slot(zdev->bus, ZPCI_DEVFN); in __zpci_event_error() 76 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_availability() local 81 if (zdev) in __zpci_event_availability() 82 pdev = pci_get_slot(zdev->bus, ZPCI_DEVFN); in __zpci_event_availability() 91 if (!zdev) { in __zpci_event_availability() 95 zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_availability() 97 if (!zdev || zdev->state != ZPCI_FN_STATE_STANDBY) in __zpci_event_availability() 99 zdev->state = ZPCI_FN_STATE_CONFIGURED; in __zpci_event_availability() [all …]
|
D | pci_clp.c | 97 static void clp_store_query_pci_fngrp(struct zpci_dev *zdev, in clp_store_query_pci_fngrp() argument 100 zdev->tlb_refresh = response->refresh; in clp_store_query_pci_fngrp() 101 zdev->dma_mask = response->dasm; in clp_store_query_pci_fngrp() 102 zdev->msi_addr = response->msia; in clp_store_query_pci_fngrp() 103 zdev->max_msi = response->noi; in clp_store_query_pci_fngrp() 104 zdev->fmb_update = response->mui; in clp_store_query_pci_fngrp() 108 zdev->max_bus_speed = PCIE_SPEED_5_0GT; in clp_store_query_pci_fngrp() 111 zdev->max_bus_speed = PCI_SPEED_UNKNOWN; in clp_store_query_pci_fngrp() 116 static int clp_query_pci_fngrp(struct zpci_dev *zdev, u8 pfgid) in clp_query_pci_fngrp() argument 133 clp_store_query_pci_fngrp(zdev, &rrb->response); in clp_query_pci_fngrp() [all …]
|
D | pci_sysfs.c | 22 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); \ 24 return sprintf(buf, fmt, zdev->member); \ 44 struct zpci_dev *zdev = to_zpci(pdev); in recover_store() local 52 ret = zpci_disable_device(zdev); in recover_store() 56 ret = zpci_enable_device(zdev); in recover_store() 60 pci_rescan_bus(zdev->bus); in recover_store() 77 struct zpci_dev *zdev = to_zpci(pdev); in util_string_read() local 79 return memory_read_from_buffer(buf, count, &off, zdev->util_str, in util_string_read() 80 sizeof(zdev->util_str)); in util_string_read() 91 struct zpci_dev *zdev = to_zpci(pdev); in report_error_write() local [all …]
|
/Linux-v4.19/drivers/iommu/ |
D | s390-iommu.c | 34 struct zpci_dev *zdev; member 90 struct zpci_dev *zdev = to_pci_dev(dev)->sysdata; in s390_iommu_attach_device() local 95 if (!zdev) in s390_iommu_attach_device() 102 if (zdev->dma_table) in s390_iommu_attach_device() 103 zpci_dma_exit_device(zdev); in s390_iommu_attach_device() 105 zdev->dma_table = s390_domain->dma_table; in s390_iommu_attach_device() 106 rc = zpci_register_ioat(zdev, 0, zdev->start_dma, zdev->end_dma, in s390_iommu_attach_device() 107 (u64) zdev->dma_table); in s390_iommu_attach_device() 114 domain->geometry.aperture_start = zdev->start_dma; in s390_iommu_attach_device() 115 domain->geometry.aperture_end = zdev->end_dma; in s390_iommu_attach_device() [all …]
|
/Linux-v4.19/drivers/pci/hotplug/ |
D | s390_pci_hpc.c | 36 struct zpci_dev *zdev; member 41 int ret = sclp_pci_configure(slot->zdev->fid); in slot_configure() 43 zpci_dbg(3, "conf fid:%x, rc:%d\n", slot->zdev->fid, ret); in slot_configure() 45 slot->zdev->state = ZPCI_FN_STATE_CONFIGURED; in slot_configure() 52 int ret = sclp_pci_deconfigure(slot->zdev->fid); in slot_deconfigure() 54 zpci_dbg(3, "deconf fid:%x, rc:%d\n", slot->zdev->fid, ret); in slot_deconfigure() 56 slot->zdev->state = ZPCI_FN_STATE_STANDBY; in slot_deconfigure() 66 if (slot->zdev->state != ZPCI_FN_STATE_STANDBY) in enable_slot() 73 rc = zpci_enable_device(slot->zdev); in enable_slot() 77 pci_scan_slot(slot->zdev->bus, ZPCI_DEVFN); in enable_slot() [all …]
|
/Linux-v4.19/drivers/dma/xilinx/ |
D | zynqmp_dma.c | 220 struct zynqmp_dma_device *zdev; member 855 devm_free_irq(chan->zdev->dev, chan->irq, chan); in zynqmp_dma_chan_remove() 867 static int zynqmp_dma_chan_probe(struct zynqmp_dma_device *zdev, in zynqmp_dma_chan_probe() argument 875 chan = devm_kzalloc(zdev->dev, sizeof(*chan), GFP_KERNEL); in zynqmp_dma_chan_probe() 878 chan->dev = zdev->dev; in zynqmp_dma_chan_probe() 879 chan->zdev = zdev; in zynqmp_dma_chan_probe() 897 dev_err(zdev->dev, "invalid bus-width value"); in zynqmp_dma_chan_probe() 902 zdev->chan = chan; in zynqmp_dma_chan_probe() 911 chan->common.device = &zdev->common; in zynqmp_dma_chan_probe() 912 list_add_tail(&chan->common.device_node, &zdev->common.channels); in zynqmp_dma_chan_probe() [all …]
|
/Linux-v4.19/drivers/net/ethernet/8390/ |
D | xsurf100.c | 244 static int xsurf100_probe(struct zorro_dev *zdev, in xsurf100_probe() argument 252 DEFINE_RES_MEM(zdev->resource.start + XS100_8390_BASE, in xsurf100_probe() 267 if (!request_mem_region(zdev->resource.start, 0x100, zdev->name)) { in xsurf100_probe() 268 dev_err(&zdev->dev, "cannot reserve X-Surf 100 control registers\n"); in xsurf100_probe() 272 if (!request_mem_region(zdev->resource.start + in xsurf100_probe() 276 dev_err(&zdev->dev, "cannot reserve 32-bit area\n"); in xsurf100_probe() 291 ax88796_data.base_regs = ioremap(zdev->resource.start, 0x100); in xsurf100_probe() 295 dev_err(&zdev->dev, "Cannot ioremap area %pR (registers)\n", in xsurf100_probe() 296 &zdev->resource); in xsurf100_probe() 302 ax88796_data.data_area = ioremap(zdev->resource.start + in xsurf100_probe() [all …]
|
/Linux-v4.19/arch/s390/include/asm/ |
D | pci.h | 156 static inline bool zdev_enabled(struct zpci_dev *zdev) in zdev_enabled() argument 158 return (zdev->fh & (1UL << 31)) ? true : false; in zdev_enabled() 168 void zpci_remove_device(struct zpci_dev *zdev); 185 int zpci_init_iommu(struct zpci_dev *zdev); 186 void zpci_destroy_iommu(struct zpci_dev *zdev); 204 static inline int zpci_init_slot(struct zpci_dev *zdev) in zpci_init_slot() argument 208 static inline void zpci_exit_slot(struct zpci_dev *zdev) {} in zpci_exit_slot() argument
|
/Linux-v4.19/arch/s390/net/ |
D | pnet.c | 47 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); in pnet_ids_by_device() local 49 memcpy(pnetids, zdev->util_str, sizeof(zdev->util_str)); in pnet_ids_by_device()
|
/Linux-v4.19/drivers/s390/crypto/ |
D | zcrypt_card.c | 129 struct zcrypt_card *zdev = in zcrypt_card_release() local 131 zcrypt_card_free(zdev); in zcrypt_card_release()
|
/Linux-v4.19/drivers/s390/net/ |
D | ism.h | 215 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_move() local 216 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, size); in __ism_move()
|
/Linux-v4.19/drivers/video/fbdev/ |
D | cirrusfb.c | 1947 struct zorro_dev *zdev = to_zorro_dev(info->device); in cirrusfb_zorro_unmap() local 1954 zorro_release_device(zdev); in cirrusfb_zorro_unmap()
|