/Linux-v5.10/arch/s390/pci/ |
D | pci_dma.c | 22 static int zpci_refresh_global(struct zpci_dev *zdev) in zpci_refresh_global() argument 24 return zpci_refresh_trans((u64) zdev->fh << 32, zdev->start_dma, in zpci_refresh_global() 25 zdev->iommu_pages * PAGE_SIZE); in zpci_refresh_global() 133 static int __dma_update_trans(struct zpci_dev *zdev, unsigned long pa, in __dma_update_trans() argument 145 spin_lock_irqsave(&zdev->dma_table_lock, irq_flags); in __dma_update_trans() 146 if (!zdev->dma_table) { in __dma_update_trans() 152 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr); in __dma_update_trans() 168 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr); in __dma_update_trans() 175 spin_unlock_irqrestore(&zdev->dma_table_lock, irq_flags); in __dma_update_trans() 179 static int __dma_purge_tlb(struct zpci_dev *zdev, dma_addr_t dma_addr, in __dma_purge_tlb() argument [all …]
|
D | pci.c | 66 struct zpci_dev *tmp, *zdev = NULL; in get_zdev_by_fid() local 71 zdev = tmp; in get_zdev_by_fid() 76 return zdev; in get_zdev_by_fid() 81 struct zpci_dev *tmp, *zdev; in zpci_remove_reserved_devices() local 86 list_for_each_entry_safe(zdev, tmp, &zpci_list, entry) { in zpci_remove_reserved_devices() 87 if (zdev->state == ZPCI_FN_STATE_STANDBY && in zpci_remove_reserved_devices() 88 !clp_get_state(zdev->fid, &state) && in zpci_remove_reserved_devices() 90 list_move_tail(&zdev->entry, &remove); in zpci_remove_reserved_devices() 94 list_for_each_entry_safe(zdev, tmp, &remove, entry) in zpci_remove_reserved_devices() 95 zpci_zdev_put(zdev); in zpci_remove_reserved_devices() [all …]
|
D | pci_event.c | 51 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_error() local 57 if (zdev) in __zpci_event_error() 58 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in __zpci_event_error() 78 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_availability() local 83 if (zdev && zdev->zbus && zdev->zbus->bus) in __zpci_event_availability() 84 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in __zpci_event_availability() 91 if (!zdev) { in __zpci_event_availability() 96 if (zdev->state != ZPCI_FN_STATE_STANDBY) in __zpci_event_availability() 98 zdev->fh = ccdf->fh; in __zpci_event_availability() 99 zdev->state = ZPCI_FN_STATE_CONFIGURED; in __zpci_event_availability() [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_bus.c | 132 struct zpci_dev *zdev = to_zpci(pdev); in pcibios_bus_add_device() local 138 if (zdev->vfn) { in pcibios_bus_add_device() 139 zpci_iov_setup_virtfn(zdev->zbus, pdev, zdev->vfn); in pcibios_bus_add_device() 144 static int zpci_bus_add_device(struct zpci_bus *zbus, struct zpci_dev *zdev) in zpci_bus_add_device() argument 156 pdev = pci_get_slot(bus, zdev->devfn); in zpci_bus_add_device() 163 rc = zpci_init_slot(zdev); in zpci_bus_add_device() 166 zdev->has_hp_slot = 1; in zpci_bus_add_device() 173 pdev = pci_scan_single_device(bus, zdev->devfn); in zpci_bus_add_device() 193 int zpci_bus_device_register(struct zpci_dev *zdev, struct pci_ops *ops) in zpci_bus_device_register() argument 200 zdev->fid, ZPCI_NR_DEVICES); in zpci_bus_device_register() [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() 105 zdev->version = response->version; in clp_store_query_pci_fngrp() 109 zdev->max_bus_speed = PCIE_SPEED_5_0GT; in clp_store_query_pci_fngrp() 112 zdev->max_bus_speed = PCI_SPEED_UNKNOWN; in clp_store_query_pci_fngrp() 117 static int clp_query_pci_fngrp(struct zpci_dev *zdev, u8 pfgid) in clp_query_pci_fngrp() argument [all …]
|
D | pci_irq.c | 39 static int zpci_set_airq(struct zpci_dev *zdev) in zpci_set_airq() argument 41 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT); in zpci_set_airq() 47 fib.fmt0.noi = airq_iv_end(zdev->aibv); in zpci_set_airq() 48 fib.fmt0.aibv = (unsigned long) zdev->aibv->vector; in zpci_set_airq() 50 fib.fmt0.aisb = (unsigned long) zpci_sbv->vector + (zdev->aisb/64)*8; in zpci_set_airq() 51 fib.fmt0.aisbo = zdev->aisb & 63; in zpci_set_airq() 57 static int zpci_clear_airq(struct zpci_dev *zdev) in zpci_clear_airq() argument 59 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_DEREG_INT); in zpci_clear_airq() 72 static int zpci_set_directed_irq(struct zpci_dev *zdev) in zpci_set_directed_irq() argument 74 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT_D); in zpci_set_directed_irq() [all …]
|
D | pci_sysfs.c | 24 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); \ 26 return sprintf(buf, fmt, zdev->member); \ 46 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); in mio_enabled_show() local 48 return sprintf(buf, zpci_use_mio(zdev) ? "1\n" : "0\n"); in mio_enabled_show() 57 struct zpci_dev *zdev = to_zpci(pdev); in recover_store() local 85 ret = zpci_disable_device(zdev); in recover_store() 89 ret = zpci_enable_device(zdev); in recover_store() 92 pci_rescan_bus(zdev->zbus->bus); in recover_store() 108 struct zpci_dev *zdev = to_zpci(pdev); in util_string_read() local 110 return memory_read_from_buffer(buf, count, &off, zdev->util_str, in util_string_read() [all …]
|
D | pci_bus.h | 10 int zpci_bus_device_register(struct zpci_dev *zdev, struct pci_ops *ops); 11 void zpci_bus_device_unregister(struct zpci_dev *zdev); 14 static inline void zpci_zdev_put(struct zpci_dev *zdev) in zpci_zdev_put() argument 16 kref_put(&zdev->kref, zpci_release_device); in zpci_zdev_put() 21 int zpci_setup_bus_resources(struct zpci_dev *zdev,
|
D | pci_iov.c | 66 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-v5.10/drivers/pci/hotplug/ |
D | s390_pci_hpc.c | 29 static inline int zdev_configure(struct zpci_dev *zdev) in zdev_configure() argument 31 int ret = sclp_pci_configure(zdev->fid); in zdev_configure() 33 zpci_dbg(3, "conf fid:%x, rc:%d\n", zdev->fid, ret); in zdev_configure() 35 zdev->state = ZPCI_FN_STATE_CONFIGURED; in zdev_configure() 40 static inline int zdev_deconfigure(struct zpci_dev *zdev) in zdev_deconfigure() argument 42 int ret = sclp_pci_deconfigure(zdev->fid); in zdev_deconfigure() 44 zpci_dbg(3, "deconf fid:%x, rc:%d\n", zdev->fid, ret); in zdev_deconfigure() 46 zdev->state = ZPCI_FN_STATE_STANDBY; in zdev_deconfigure() 53 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, in enable_slot() local 55 struct zpci_bus *zbus = zdev->zbus; in enable_slot() [all …]
|
/Linux-v5.10/drivers/vfio/pci/ |
D | vfio_pci_zdev.c | 27 static int zpci_base_cap(struct zpci_dev *zdev, struct vfio_pci_device *vdev, in zpci_base_cap() argument 33 .start_dma = zdev->start_dma, in zpci_base_cap() 34 .end_dma = zdev->end_dma, in zpci_base_cap() 35 .pchid = zdev->pchid, in zpci_base_cap() 36 .vfn = zdev->vfn, in zpci_base_cap() 37 .fmb_length = zdev->fmb_length, in zpci_base_cap() 38 .pft = zdev->pft, in zpci_base_cap() 39 .gid = zdev->pfgid in zpci_base_cap() 48 static int zpci_group_cap(struct zpci_dev *zdev, struct vfio_pci_device *vdev, in zpci_group_cap() argument 54 .dasm = zdev->dma_mask, in zpci_group_cap() [all …]
|
/Linux-v5.10/drivers/iommu/ |
D | s390-iommu.c | 34 struct zpci_dev *zdev; member 90 struct zpci_dev *zdev = to_zpci_dev(dev); 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-v5.10/drivers/dma/xilinx/ |
D | zynqmp_dma.c | 218 struct zynqmp_dma_device *zdev; member 863 devm_free_irq(chan->zdev->dev, chan->irq, chan); in zynqmp_dma_chan_remove() 875 static int zynqmp_dma_chan_probe(struct zynqmp_dma_device *zdev, in zynqmp_dma_chan_probe() argument 883 chan = devm_kzalloc(zdev->dev, sizeof(*chan), GFP_KERNEL); in zynqmp_dma_chan_probe() 886 chan->dev = zdev->dev; in zynqmp_dma_chan_probe() 887 chan->zdev = zdev; in zynqmp_dma_chan_probe() 905 dev_err(zdev->dev, "invalid bus-width value"); in zynqmp_dma_chan_probe() 910 zdev->chan = chan; in zynqmp_dma_chan_probe() 919 chan->common.device = &zdev->common; in zynqmp_dma_chan_probe() 920 list_add_tail(&chan->common.device_node, &zdev->common.channels); in zynqmp_dma_chan_probe() [all …]
|
/Linux-v5.10/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-v5.10/arch/s390/include/asm/ |
D | pci.h | 191 static inline bool zdev_enabled(struct zpci_dev *zdev) in zdev_enabled() argument 193 return (zdev->fh & (1UL << 31)) ? true : false; in zdev_enabled() 205 void zpci_remove_device(struct zpci_dev *zdev); 224 int zpci_init_iommu(struct zpci_dev *zdev); 225 void zpci_destroy_iommu(struct zpci_dev *zdev); 228 static inline bool zpci_use_mio(struct zpci_dev *zdev) in zpci_use_mio() argument 230 return static_branch_likely(&have_mio) && zdev->mio_capable; in zpci_use_mio() 246 static inline int zpci_init_slot(struct zpci_dev *zdev) in zpci_init_slot() argument 250 static inline void zpci_exit_slot(struct zpci_dev *zdev) {} in zpci_exit_slot() argument
|
/Linux-v5.10/arch/s390/net/ |
D | pnet.c | 57 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-v5.10/drivers/s390/net/ |
D | ism.h | 219 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-v5.10/drivers/s390/crypto/ |
D | zcrypt_card.c | 133 struct zcrypt_card *zdev = in zcrypt_card_release() local 135 zcrypt_card_free(zdev); in zcrypt_card_release()
|
/Linux-v5.10/drivers/video/fbdev/ |
D | cirrusfb.c | 1946 struct zorro_dev *zdev = to_zorro_dev(info->device); in cirrusfb_zorro_unmap() local 1953 zorro_release_device(zdev); in cirrusfb_zorro_unmap()
|