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

/linux-master/drivers/pci/hotplug/
H A Ds390_pci_hpc.c25 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, local
29 mutex_lock(&zdev->state_lock);
30 if (zdev->state != ZPCI_FN_STATE_STANDBY) {
35 rc = sclp_pci_configure(zdev->fid);
36 zpci_dbg(3, "conf fid:%x, rc:%d\n", zdev->fid, rc);
39 zdev->state = ZPCI_FN_STATE_CONFIGURED;
41 rc = zpci_scan_configured_device(zdev, zdev->fh);
43 mutex_unlock(&zdev->state_lock);
49 struct zpci_dev *zdev local
77 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, local
106 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, local
128 zpci_init_slot(struct zpci_dev *zdev) argument
140 zpci_exit_slot(struct zpci_dev *zdev) argument
[all...]
/linux-master/arch/s390/pci/
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) argument
22 if (zdev)
23 kref_put(&zdev->kref, zpci_release_device);
26 static inline void zpci_zdev_get(struct zpci_dev *zdev) argument
28 kref_get(&zdev->kref);
33 int zpci_setup_bus_resources(struct zpci_dev *zdev);
[all...]
H A Dpci.c73 struct zpci_dev *tmp, *zdev = NULL; local
78 zdev = tmp;
79 zpci_zdev_get(zdev);
84 return zdev;
89 struct zpci_dev *tmp, *zdev; local
94 list_for_each_entry_safe(zdev, tmp, &zpci_list, entry) {
95 if (zdev->state == ZPCI_FN_STATE_STANDBY &&
96 !clp_get_state(zdev->fid, &state) &&
98 list_move_tail(&zdev->entry, &remove);
102 list_for_each_entry_safe(zdev, tm
119 zpci_register_ioat(struct zpci_dev *zdev, u8 dmaas, u64 base, u64 limit, u64 iota, u8 *status) argument
143 zpci_unregister_ioat(struct zpci_dev *zdev, u8 dmaas) argument
158 zpci_fmb_enable_device(struct zpci_dev *zdev) argument
195 zpci_fmb_disable_device(struct zpci_dev *zdev) argument
218 zpci_cfg_load(struct zpci_dev *zdev, int offset, u32 *val, u8 len) argument
234 zpci_cfg_store(struct zpci_dev *zdev, int offset, u32 val, u8 len) argument
285 struct zpci_dev *zdev = to_zpci(pdev); local
304 struct zpci_dev *zdev = to_zpci(pdev); local
334 struct zpci_dev *zdev = to_zpci(pdev); local
391 struct zpci_dev *zdev = zdev_from_bus(bus, devfn); local
399 struct zpci_dev *zdev = zdev_from_bus(bus, devfn); local
411 struct zpci_dev *zdev = to_zpci(pdev); local
434 struct zpci_dev *zdev = to_zpci(pdev); local
450 zpci_alloc_iomap(struct zpci_dev *zdev) argument
465 zpci_free_iomap(struct zpci_dev *zdev, int entry) argument
473 zpci_do_update_iomap_fh(struct zpci_dev *zdev, u32 fh) argument
489 zpci_update_fh(struct zpci_dev *zdev, u32 fh) argument
501 __alloc_res(struct zpci_dev *zdev, unsigned long start, unsigned long size, unsigned long flags) argument
522 zpci_setup_bus_resources(struct zpci_dev *zdev) argument
564 zpci_cleanup_bus_resources(struct zpci_dev *zdev) argument
587 struct zpci_dev *zdev = to_zpci(pdev); local
611 struct zpci_dev *zdev = to_zpci(pdev); local
619 struct zpci_dev *zdev = to_zpci(pdev); local
629 struct zpci_dev *zdev = to_zpci(pdev); local
683 zpci_enable_device(struct zpci_dev *zdev) argument
696 zpci_disable_device(struct zpci_dev *zdev) argument
743 zpci_hot_reset_device(struct zpci_dev *zdev) argument
792 struct zpci_dev *zdev; local
837 zpci_is_device_configured(struct zpci_dev *zdev) argument
856 zpci_scan_configured_device(struct zpci_dev *zdev, u32 fh) argument
872 zpci_deconfigure_device(struct zpci_dev *zdev) argument
907 zpci_device_reserved(struct zpci_dev *zdev) argument
923 struct zpci_dev *zdev = container_of(kref, struct zpci_dev, kref); local
964 struct zpci_dev *zdev = to_zpci(pdev); local
980 zpci_clear_error_state(struct zpci_dev *zdev) argument
1007 zpci_reset_load_store_blocked(struct zpci_dev *zdev) argument
[all...]
H A Dpci_bus.c34 * @zdev: the zPCI function to be prepared
42 static int zpci_bus_prepare_device(struct zpci_dev *zdev) argument
46 if (!zdev_enabled(zdev)) {
47 rc = zpci_enable_device(zdev);
52 if (!zdev->has_resources) {
53 zpci_setup_bus_resources(zdev);
55 if (zdev->bars[i].res)
56 pci_bus_add_resource(zdev->zbus->bus, zdev->bars[i].res, 0);
64 * @zdev
70 zpci_bus_scan_device(struct zpci_dev *zdev) argument
99 zpci_bus_remove_device(struct zpci_dev *zdev, bool set_error) argument
134 struct zpci_dev *zdev; local
279 struct zpci_dev *zdev = to_zpci(pdev); local
291 zpci_bus_add_device(struct zpci_bus *zbus, struct zpci_dev *zdev) argument
322 zpci_bus_device_register(struct zpci_dev *zdev, struct pci_ops *ops) argument
367 zpci_bus_device_unregister(struct zpci_dev *zdev) argument
[all...]
H A Dpci_debug.c89 struct zpci_dev *zdev = m->private; local
91 if (!zdev)
94 mutex_lock(&zdev->fmb_lock);
95 if (!zdev->fmb) {
96 mutex_unlock(&zdev->fmb_lock);
102 seq_printf(m, "Update interval: %u ms\n", zdev->fmb_update);
103 seq_printf(m, "Samples: %u\n", zdev->fmb->samples);
104 seq_printf(m, "Last update TOD: %Lx\n", zdev->fmb->last_update);
107 &zdev->fmb->ld_ops);
109 switch (zdev
140 struct zpci_dev *zdev = ((struct seq_file *) file->private_data)->private; local
178 zpci_debug_init_device(struct zpci_dev *zdev, const char *name) argument
186 zpci_debug_exit_device(struct zpci_dev *zdev) argument
[all...]
H A Dpci_event.c64 struct zpci_dev *zdev = to_zpci(pdev); local
67 mutex_lock(&zdev->kzdev_lock);
68 ret = !!zdev->kzdev;
69 mutex_unlock(&zdev->kzdev_lock);
105 struct zpci_dev *zdev = to_zpci(pdev); local
109 rc = zpci_reset_load_store_blocked(zdev);
129 rc = zpci_clear_error_state(zdev);
260 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); local
269 if (zdev) {
270 mutex_lock(&zdev
309 zpci_event_hard_deconfigured(struct zpci_dev *zdev, u32 fh) argument
326 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); local
[all...]
H A Dpci_irq.c33 static int zpci_set_airq(struct zpci_dev *zdev) argument
35 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT);
41 fib.fmt0.noi = airq_iv_end(zdev->aibv);
42 fib.fmt0.aibv = virt_to_phys(zdev->aibv->vector);
43 fib.fmt0.aibvo = 0; /* each zdev has its own interrupt vector */
44 fib.fmt0.aisb = virt_to_phys(zpci_sbv->vector) + (zdev->aisb / 64) * 8;
45 fib.fmt0.aisbo = zdev->aisb & 63;
46 fib.gd = zdev->gisa;
52 static int zpci_clear_airq(struct zpci_dev *zdev) argument
54 u64 req = ZPCI_CREATE_REQ(zdev
69 zpci_set_directed_irq(struct zpci_dev *zdev) argument
84 zpci_clear_directed_irq(struct zpci_dev *zdev) argument
101 zpci_set_irq(struct zpci_dev *zdev) argument
117 zpci_clear_irq(struct zpci_dev *zdev) argument
273 struct zpci_dev *zdev = to_zpci(pdev); local
361 struct zpci_dev *zdev = to_zpci(pdev); local
396 struct zpci_dev *zdev = to_zpci(pdev); local
[all...]
H A Dpci_sysfs.c24 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)); local
48 return sprintf(buf, zpci_use_mio(zdev) ? "1\n" : "0\n");
52 static int _do_recover(struct pci_dev *pdev, struct zpci_dev *zdev) argument
58 if (zdev_enabled(zdev)) {
59 ret = zpci_disable_device(zdev);
72 ret = zpci_enable_device(zdev);
76 if (zdev->dma_table) {
77 ret = zpci_register_ioat(zdev,
90 struct zpci_dev *zdev = to_zpci(pdev); local
142 struct zpci_dev *zdev = to_zpci(pdev); local
156 struct zpci_dev *zdev = to_zpci(pdev); local
180 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); local
[all...]
H A Dpci_clp.c100 static void clp_store_query_pci_fngrp(struct zpci_dev *zdev, argument
103 zdev->tlb_refresh = response->refresh;
104 zdev->dma_mask = response->dasm;
105 zdev->msi_addr = response->msia;
106 zdev->max_msi = response->noi;
107 zdev->fmb_update = response->mui;
108 zdev->version = response->version;
109 zdev->maxstbl = response->maxstbl;
110 zdev->dtsm = response->dtsm;
114 zdev
122 clp_query_pci_fngrp(struct zpci_dev *zdev, u8 pfgid) argument
149 clp_store_query_pci_fn(struct zpci_dev *zdev, struct clp_rsp_query_pci *response) argument
189 clp_query_pci_fn(struct zpci_dev *zdev) argument
230 clp_set_pci_fn(struct zpci_dev *zdev, u32 *fh, u8 nr_dma_as, u8 command) argument
309 clp_enable_fh(struct zpci_dev *zdev, u32 *fh, u8 nr_dma_as) argument
325 clp_disable_fh(struct zpci_dev *zdev, u32 *fh) argument
410 struct zpci_dev *zdev; local
[all...]
H A Dpci_iov.c66 struct zpci_dev *zdev; local
82 zdev = zbus->function[i];
83 if (zdev && zdev->is_physfn) {
84 pdev = pci_get_slot(zbus->bus, zdev->devfn);
/linux-master/drivers/vfio/pci/
H A Dvfio_pci_zdev.c23 static int zpci_base_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) argument
28 .start_dma = zdev->start_dma,
29 .end_dma = zdev->end_dma,
30 .pchid = zdev->pchid,
31 .vfn = zdev->vfn,
32 .fmb_length = zdev->fmb_length,
33 .pft = zdev->pft,
34 .gid = zdev->pfgid,
35 .fh = zdev->fh
44 static int zpci_group_cap(struct zpci_dev *zdev, struc argument
66 zpci_util_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) argument
91 zpci_pfip_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) argument
119 struct zpci_dev *zdev = to_zpci(vdev->pdev); local
146 struct zpci_dev *zdev = to_zpci(vdev->pdev); local
162 struct zpci_dev *zdev = to_zpci(vdev->pdev); local
[all...]
/linux-master/arch/s390/kvm/
H A Dpci.c159 static int kvm_zpci_set_airq(struct zpci_dev *zdev) argument
161 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT);
165 fib.fmt0.isc = zdev->kzdev->fib.fmt0.isc;
167 fib.fmt0.noi = airq_iv_end(zdev->aibv);
168 fib.fmt0.aibv = virt_to_phys(zdev->aibv->vector);
170 fib.fmt0.aisb = virt_to_phys(aift->sbv->vector + (zdev->aisb / 64) * 8);
171 fib.fmt0.aisbo = zdev->aisb & 63;
172 fib.gd = zdev->gisa;
178 static int kvm_zpci_clear_airq(struct zpci_dev *zdev) argument
180 u64 req = ZPCI_CREATE_REQ(zdev
224 kvm_s390_pci_aif_enable(struct zpci_dev *zdev, struct zpci_fib *fib, bool assist) argument
337 kvm_s390_pci_aif_disable(struct zpci_dev *zdev, bool force) argument
404 kvm_s390_pci_dev_open(struct zpci_dev *zdev) argument
418 kvm_s390_pci_dev_release(struct zpci_dev *zdev) argument
436 struct zpci_dev *zdev = opaque; local
518 struct zpci_dev *zdev = opaque; local
592 struct zpci_dev *zdev = NULL; local
607 kvm_s390_pci_zpci_reg_aen(struct zpci_dev *zdev, struct kvm_s390_zpci_op *args) argument
633 struct zpci_dev *zdev; local
[all...]
H A Dpci.h21 struct zpci_dev *zdev; member in struct:kvm_zdev
/linux-master/drivers/iommu/
H A Ds390-iommu.c318 struct zpci_dev *zdev = to_zpci_dev(dev); local
324 return zdev->pft != PCI_FUNC_TYPE_ISM;
376 struct zpci_dev *zdev = to_zpci_dev(dev); local
380 list_del_rcu(&zdev->iommu_list);
383 zpci_unregister_ioat(zdev, 0);
384 zdev->s390_domain = NULL;
385 zdev->dma_table = NULL;
392 struct zpci_dev *zdev = to_zpci_dev(dev); local
397 if (!zdev)
400 if (WARN_ON(domain->geometry.aperture_start > zdev
429 struct zpci_dev *zdev = to_zpci_dev(dev); local
452 struct zpci_dev *zdev; local
474 struct zpci_dev *zdev = to_zpci_dev(dev); local
484 zpci_refresh_all(struct zpci_dev *zdev) argument
493 struct zpci_dev *zdev; local
508 struct zpci_dev *zdev; local
527 struct zpci_dev *zdev; local
703 zpci_get_iommu_ctrs(struct zpci_dev *zdev) argument
710 zpci_init_iommu(struct zpci_dev *zdev) argument
739 zpci_destroy_iommu(struct zpci_dev *zdev) argument
[all...]
/linux-master/arch/s390/include/asm/
H A Dpci.h189 static inline bool zdev_enabled(struct zpci_dev *zdev) argument
191 return (zdev->fh & (1UL << 31)) ? true : false;
208 int zpci_scan_configured_device(struct zpci_dev *zdev, u32 fh);
209 int zpci_deconfigure_device(struct zpci_dev *zdev);
210 void zpci_device_reserved(struct zpci_dev *zdev);
211 bool zpci_is_device_configured(struct zpci_dev *zdev);
213 int zpci_hot_reset_device(struct zpci_dev *zdev);
217 void zpci_update_fh(struct zpci_dev *zdev, u32 fh);
222 int clp_query_pci_fn(struct zpci_dev *zdev);
223 int clp_enable_fh(struct zpci_dev *zdev, u3
236 zpci_use_mio(struct zpci_dev *zdev) argument
254 zpci_init_slot(struct zpci_dev *zdev) argument
258 zpci_exit_slot(struct zpci_dev *zdev) argument
[all...]
H A Dpci_dma.h95 struct zpci_iommu_ctrs *zpci_get_iommu_ctrs(struct zpci_dev *zdev);
/linux-master/drivers/net/ethernet/8390/
H A Dxsurf100.c239 static int xsurf100_probe(struct zorro_dev *zdev, argument
247 DEFINE_RES_MEM(zdev->resource.start + XS100_8390_BASE,
262 if (!request_mem_region(zdev->resource.start, 0x100, zdev->name)) {
263 dev_err(&zdev->dev, "cannot reserve X-Surf 100 control registers\n");
267 if (!request_mem_region(zdev->resource.start +
271 dev_err(&zdev->dev, "cannot reserve 32-bit area\n");
286 ax88796_data.base_regs = ioremap(zdev->resource.start, 0x100);
290 dev_err(&zdev->dev, "Cannot ioremap area %pR (registers)\n",
291 &zdev
345 xsurf100_remove(struct zorro_dev *zdev) argument
[all...]
/linux-master/arch/s390/net/
H A Dpnet.c57 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); local
59 memcpy(pnetids, zdev->util_str, sizeof(zdev->util_str));
60 EBCASC(pnetids, sizeof(zdev->util_str));
/linux-master/drivers/dma/xilinx/
H A Dzynqmp_dma.c192 * @zdev: Driver specific device structure
216 struct zynqmp_dma_device *zdev; member in struct:zynqmp_dma_chan
878 devm_free_irq(chan->zdev->dev, chan->irq, chan);
885 * @zdev: Driver specific device structure
890 static int zynqmp_dma_chan_probe(struct zynqmp_dma_device *zdev, argument
897 chan = devm_kzalloc(zdev->dev, sizeof(*chan), GFP_KERNEL);
900 chan->dev = zdev->dev;
901 chan->zdev = zdev;
918 dev_err(zdev
959 struct zynqmp_dma_device *zdev = ofdma->of_dma_data; local
1003 struct zynqmp_dma_device *zdev = dev_get_drvdata(dev); local
1020 struct zynqmp_dma_device *zdev = dev_get_drvdata(dev); local
1053 struct zynqmp_dma_device *zdev; local
1152 struct zynqmp_dma_device *zdev = platform_get_drvdata(pdev); local
[all...]
/linux-master/drivers/s390/net/
H A Dism.h197 struct zpci_dev *zdev = to_zpci(ism->pdev); local
198 u64 req = ZPCI_CREATE_REQ(zdev->fh, 2, 8);
211 struct zpci_dev *zdev = to_zpci(ism->pdev); local
212 u64 req = ZPCI_CREATE_REQ(zdev->fh, 2, len);
221 struct zpci_dev *zdev = to_zpci(ism->pdev); local
222 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, size);
/linux-master/net/smc/
H A Dsmc_core.h537 struct zpci_dev *zdev; local
539 zdev = to_zpci(pci_dev);
540 smc_dev->pci_fid = zdev->fid;
541 smc_dev->pci_pchid = zdev->pchid;
/linux-master/drivers/s390/crypto/
H A Dzcrypt_card.c159 struct zcrypt_card *zdev = local
161 zcrypt_card_free(zdev);
/linux-master/drivers/video/fbdev/
H A Dcirrusfb.c1948 struct zorro_dev *zdev = to_zorro_dev(info->device); local
1955 zorro_release_device(zdev);

Completed in 187 milliseconds