Home
last modified time | relevance | path

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

/Linux-v5.4/arch/s390/pci/
Dpci.c60 struct zpci_dev *tmp, *zdev = NULL; in get_zdev_by_fid() local
65 zdev = tmp; in get_zdev_by_fid()
70 return zdev; in get_zdev_by_fid()
75 struct zpci_dev *tmp, *zdev; in zpci_remove_reserved_devices() local
80 list_for_each_entry_safe(zdev, tmp, &zpci_list, entry) { in zpci_remove_reserved_devices()
81 if (zdev->state == ZPCI_FN_STATE_STANDBY && in zpci_remove_reserved_devices()
82 !clp_get_state(zdev->fid, &state) && in zpci_remove_reserved_devices()
84 list_move_tail(&zdev->entry, &remove); in zpci_remove_reserved_devices()
88 list_for_each_entry_safe(zdev, tmp, &remove, entry) in zpci_remove_reserved_devices()
89 zpci_remove_device(zdev); in zpci_remove_reserved_devices()
[all …]
Dpci_dma.c22 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 …]
Dpci_event.c49 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 …]
Dpci_debug.c72 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 …]
Dpci_irq.c39 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 …]
Dpci_clp.c97 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 …]
Dpci_sysfs.c22 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); \
24 return sprintf(buf, fmt, zdev->member); \
43 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); in mio_enabled_show() local
45 return sprintf(buf, zpci_use_mio(zdev) ? "1\n" : "0\n"); in mio_enabled_show()
53 struct zpci_dev *zdev = to_zpci(pdev); in recover_store() local
61 ret = zpci_disable_device(zdev); in recover_store()
65 ret = zpci_enable_device(zdev); in recover_store()
69 pci_rescan_bus(zdev->bus); in recover_store()
86 struct zpci_dev *zdev = to_zpci(pdev); in util_string_read() local
88 return memory_read_from_buffer(buf, count, &off, zdev->util_str, in util_string_read()
[all …]
/Linux-v5.4/drivers/pci/hotplug/
Ds390_pci_hpc.c36 struct zpci_dev *zdev; member
46 int ret = sclp_pci_configure(slot->zdev->fid); in slot_configure()
48 zpci_dbg(3, "conf fid:%x, rc:%d\n", slot->zdev->fid, ret); in slot_configure()
50 slot->zdev->state = ZPCI_FN_STATE_CONFIGURED; in slot_configure()
57 int ret = sclp_pci_deconfigure(slot->zdev->fid); in slot_deconfigure()
59 zpci_dbg(3, "deconf fid:%x, rc:%d\n", slot->zdev->fid, ret); in slot_deconfigure()
61 slot->zdev->state = ZPCI_FN_STATE_STANDBY; in slot_deconfigure()
71 if (slot->zdev->state != ZPCI_FN_STATE_STANDBY) in enable_slot()
78 rc = zpci_enable_device(slot->zdev); in enable_slot()
82 pci_scan_slot(slot->zdev->bus, ZPCI_DEVFN); in enable_slot()
[all …]
/Linux-v5.4/drivers/iommu/
Ds390-iommu.c34 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-v5.4/drivers/dma/xilinx/
Dzynqmp_dma.c216 struct zynqmp_dma_device *zdev; member
858 devm_free_irq(chan->zdev->dev, chan->irq, chan); in zynqmp_dma_chan_remove()
870 static int zynqmp_dma_chan_probe(struct zynqmp_dma_device *zdev, in zynqmp_dma_chan_probe() argument
878 chan = devm_kzalloc(zdev->dev, sizeof(*chan), GFP_KERNEL); in zynqmp_dma_chan_probe()
881 chan->dev = zdev->dev; in zynqmp_dma_chan_probe()
882 chan->zdev = zdev; in zynqmp_dma_chan_probe()
900 dev_err(zdev->dev, "invalid bus-width value"); in zynqmp_dma_chan_probe()
905 zdev->chan = chan; in zynqmp_dma_chan_probe()
914 chan->common.device = &zdev->common; in zynqmp_dma_chan_probe()
915 list_add_tail(&chan->common.device_node, &zdev->common.channels); in zynqmp_dma_chan_probe()
[all …]
/Linux-v5.4/drivers/net/ethernet/8390/
Dxsurf100.c244 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.4/arch/s390/include/asm/
Dpci.h163 static inline bool zdev_enabled(struct zpci_dev *zdev) in zdev_enabled() argument
165 return (zdev->fh & (1UL << 31)) ? true : false; in zdev_enabled()
176 void zpci_remove_device(struct zpci_dev *zdev);
193 int zpci_init_iommu(struct zpci_dev *zdev);
194 void zpci_destroy_iommu(struct zpci_dev *zdev);
197 static inline bool zpci_use_mio(struct zpci_dev *zdev) in zpci_use_mio() argument
199 return static_branch_likely(&have_mio) && zdev->mio_capable; in zpci_use_mio()
217 static inline int zpci_init_slot(struct zpci_dev *zdev) in zpci_init_slot() argument
221 static inline void zpci_exit_slot(struct zpci_dev *zdev) {} in zpci_exit_slot() argument
/Linux-v5.4/arch/s390/net/
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-v5.4/drivers/s390/net/
Dism.h214 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_read_cmd() local
215 u64 req = ZPCI_CREATE_REQ(zdev->fh, 2, 8); in __ism_read_cmd()
228 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_write_cmd() local
229 u64 req = ZPCI_CREATE_REQ(zdev->fh, 2, len); in __ism_write_cmd()
238 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_move() local
239 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, size); in __ism_move()
/Linux-v5.4/drivers/s390/crypto/
Dzcrypt_card.c127 struct zcrypt_card *zdev = in zcrypt_card_release() local
129 zcrypt_card_free(zdev); in zcrypt_card_release()
/Linux-v5.4/drivers/video/fbdev/
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()