Home
last modified time | relevance | path

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

/linux/arch/s390/pci/
H A Dpci_bus.c42 static int zpci_bus_prepare_device(struct zpci_dev *zdev) in zpci_bus_prepare_device() argument
46 if (!zdev_enabled(zdev)) { in zpci_bus_prepare_device()
47 rc = zpci_enable_device(zdev); in zpci_bus_prepare_device()
52 if (!zdev->has_resources) { in zpci_bus_prepare_device()
53 zpci_setup_bus_resources(zdev); in zpci_bus_prepare_device()
55 if (zdev->bars[i].res) in zpci_bus_prepare_device()
56 pci_bus_add_resource(zdev->zbus->bus, zdev->bars[i].res); in zpci_bus_prepare_device()
70 int zpci_bus_scan_device(struct zpci_dev *zdev) in zpci_bus_scan_device() argument
75 rc = zpci_bus_prepare_device(zdev); in zpci_bus_scan_device()
79 pdev = pci_scan_single_device(zdev->zbus->bus, zdev->devfn); in zpci_bus_scan_device()
[all …]
H A Dpci_irq.c33 static int zpci_set_airq(struct zpci_dev *zdev) in zpci_set_airq() argument
35 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT); in zpci_set_airq()
41 fib.fmt0.noi = airq_iv_end(zdev->aibv); in zpci_set_airq()
42 fib.fmt0.aibv = virt_to_phys(zdev->aibv->vector); in zpci_set_airq()
44 fib.fmt0.aisb = virt_to_phys(zpci_sbv->vector) + (zdev->aisb / 64) * 8; in zpci_set_airq()
45 fib.fmt0.aisbo = zdev->aisb & 63; in zpci_set_airq()
46 fib.gd = zdev->gisa; in zpci_set_airq()
52 static int zpci_clear_airq(struct zpci_dev *zdev) in zpci_clear_airq() argument
54 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_DEREG_INT); in zpci_clear_airq()
58 fib.gd = zdev->gisa; in zpci_clear_airq()
[all …]
H A Dpci_clp.c104 static void clp_store_query_pci_fngrp(struct zpci_dev *zdev, in clp_store_query_pci_fngrp() argument
107 zdev->tlb_refresh = response->refresh; in clp_store_query_pci_fngrp()
108 zdev->dma_mask = response->dasm; in clp_store_query_pci_fngrp()
109 zdev->msi_addr = response->msia; in clp_store_query_pci_fngrp()
110 zdev->max_msi = response->noi; in clp_store_query_pci_fngrp()
111 zdev->fmb_update = response->mui; in clp_store_query_pci_fngrp()
112 zdev->version = response->version; in clp_store_query_pci_fngrp()
113 zdev->maxstbl = response->maxstbl; in clp_store_query_pci_fngrp()
114 zdev->dtsm = response->dtsm; in clp_store_query_pci_fngrp()
118 zdev->max_bus_speed = PCIE_SPEED_5_0GT; in clp_store_query_pci_fngrp()
[all …]
H A Dpci_iov.c77 struct pci_dev *zpci_iov_find_parent_pf(struct zpci_bus *zbus, struct zpci_dev *zdev) in zpci_iov_find_parent_pf() argument
85 if (!zdev->vfn || !zdev->rid_available) in zpci_iov_find_parent_pf()
88 vfid = zdev->vfn - 1; in zpci_iov_find_parent_pf()
89 devfn = zdev->rid & ZPCI_RID_MASK_DEVFN; in zpci_iov_find_parent_pf()
99 zdev = zbus->function[i]; in zpci_iov_find_parent_pf()
100 if (zdev && zdev->is_physfn) { in zpci_iov_find_parent_pf()
101 pdev = pci_get_slot(zbus->bus, zdev->devfn); in zpci_iov_find_parent_pf()
116 struct zpci_dev *zdev = to_zpci(virtfn); in zpci_iov_setup_virtfn() local
120 pdev_pf = zpci_iov_find_parent_pf(zbus, zdev); in zpci_iov_setup_virtfn()
123 rc = zpci_iov_link_virtfn(pdev_pf, virtfn, zdev->vfn - 1); in zpci_iov_setup_virtfn()
H A Dpci_iov.h22 struct pci_dev *zpci_iov_find_parent_pf(struct zpci_bus *zbus, struct zpci_dev *zdev);
34 static inline struct pci_dev *zpci_iov_find_parent_pf(struct zpci_bus *zbus, struct zpci_dev *zdev) in zpci_iov_find_parent_pf() argument
/linux/drivers/pci/hotplug/
H A Ds390_pci_hpc.c25 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, in enable_slot() local
29 mutex_lock(&zdev->state_lock); in enable_slot()
30 if (zdev->state != ZPCI_FN_STATE_STANDBY) { in enable_slot()
35 rc = sclp_pci_configure(zdev->fid); in enable_slot()
36 zpci_dbg(3, "conf fid:%x, rc:%d\n", zdev->fid, rc); in enable_slot()
39 zdev->state = ZPCI_FN_STATE_CONFIGURED; in enable_slot()
41 rc = zpci_scan_configured_device(zdev, zdev->fh); in enable_slot()
43 mutex_unlock(&zdev->state_lock); in enable_slot()
49 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, in disable_slot() local
54 mutex_lock(&zdev->state_lock); in disable_slot()
[all …]
/linux/drivers/vfio/pci/
H A Dvfio_pci_zdev.c23 static int zpci_base_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) in zpci_base_cap() argument
28 .start_dma = zdev->start_dma, in zpci_base_cap()
29 .end_dma = zdev->end_dma, in zpci_base_cap()
30 .pchid = zdev->pchid, in zpci_base_cap()
31 .vfn = zdev->vfn, in zpci_base_cap()
32 .fmb_length = zdev->fmb_length, in zpci_base_cap()
33 .pft = zdev->pft, in zpci_base_cap()
34 .gid = zdev->pfgid, in zpci_base_cap()
35 .fh = zdev->fh in zpci_base_cap()
44 static int zpci_group_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) in zpci_group_cap() argument
[all …]
/linux/drivers/net/ethernet/8390/
H A Dxsurf100.c239 static int xsurf100_probe(struct zorro_dev *zdev, in xsurf100_probe() argument
247 DEFINE_RES_MEM(zdev->resource.start + XS100_8390_BASE, in xsurf100_probe()
262 if (!request_mem_region(zdev->resource.start, 0x100, zdev->name)) { in xsurf100_probe()
263 dev_err(&zdev->dev, "cannot reserve X-Surf 100 control registers\n"); in xsurf100_probe()
267 if (!request_mem_region(zdev->resource.start + in xsurf100_probe()
271 dev_err(&zdev->dev, "cannot reserve 32-bit area\n"); in xsurf100_probe()
286 ax88796_data.base_regs = ioremap(zdev->resource.start, 0x100); in xsurf100_probe()
290 dev_err(&zdev->dev, "Cannot ioremap area %pR (registers)\n", in xsurf100_probe()
291 &zdev->resource); in xsurf100_probe()
297 ax88796_data.data_area = ioremap(zdev->resource.start + in xsurf100_probe()
[all …]
/linux/arch/s390/net/
H 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/
H A Dism.h197 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_read_cmd() local
198 u64 req = ZPCI_CREATE_REQ(zdev->fh, 2, 8); in __ism_read_cmd()
211 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_write_cmd() local
212 u64 req = ZPCI_CREATE_REQ(zdev->fh, 2, len); in __ism_write_cmd()
221 struct zpci_dev *zdev = to_zpci(ism->pdev); in __ism_move() local
222 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, size); in __ism_move()
/linux/drivers/s390/crypto/
H A Dzcrypt_card.c159 struct zcrypt_card *zdev = in zcrypt_card_release() local
161 zcrypt_card_free(zdev); in zcrypt_card_release()
/linux/arch/s390/kvm/
H A Dpci.h21 struct zpci_dev *zdev; member
/linux/arch/s390/include/asm/
H A Dpci_dma.h95 struct zpci_iommu_ctrs *zpci_get_iommu_ctrs(struct zpci_dev *zdev);
/linux/drivers/video/fbdev/
H A Dcirrusfb.c1948 struct zorro_dev *zdev = to_zorro_dev(info->device); in cirrusfb_zorro_unmap() local
1955 zorro_release_device(zdev); in cirrusfb_zorro_unmap()