Home
last modified time | relevance | path

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

/arch/s390/pci/
Dpci_event.c52 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_error() local
58 if (zdev) in __zpci_event_error()
59 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in __zpci_event_error()
70 zpci_zdev_put(zdev); in __zpci_event_error()
79 static void zpci_event_hard_deconfigured(struct zpci_dev *zdev, u32 fh) in zpci_event_hard_deconfigured() argument
81 zdev->fh = fh; in zpci_event_hard_deconfigured()
85 zpci_bus_remove_device(zdev, true); in zpci_event_hard_deconfigured()
89 if (zdev->dma_table) in zpci_event_hard_deconfigured()
90 zpci_dma_exit_device(zdev); in zpci_event_hard_deconfigured()
91 if (zdev_enabled(zdev)) in zpci_event_hard_deconfigured()
[all …]
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()
50 rc = zpci_dma_init_device(zdev); in zpci_bus_prepare_device()
52 zpci_disable_device(zdev); in zpci_bus_prepare_device()
57 if (!zdev->has_resources) { in zpci_bus_prepare_device()
58 zpci_setup_bus_resources(zdev); in zpci_bus_prepare_device()
60 if (zdev->bars[i].res) in zpci_bus_prepare_device()
61 pci_bus_add_resource(zdev->zbus->bus, zdev->bars[i].res, 0); in zpci_bus_prepare_device()
75 int zpci_bus_scan_device(struct zpci_dev *zdev) in zpci_bus_scan_device() argument
[all …]
Dpci.c66 struct zpci_dev *tmp, *zdev = NULL; in get_zdev_by_fid() local
71 zdev = tmp; in get_zdev_by_fid()
72 zpci_zdev_get(zdev); in get_zdev_by_fid()
77 return zdev; in get_zdev_by_fid()
82 struct zpci_dev *tmp, *zdev; in zpci_remove_reserved_devices() local
87 list_for_each_entry_safe(zdev, tmp, &zpci_list, entry) { in zpci_remove_reserved_devices()
88 if (zdev->state == ZPCI_FN_STATE_STANDBY && in zpci_remove_reserved_devices()
89 !clp_get_state(zdev->fid, &state) && in zpci_remove_reserved_devices()
91 list_move_tail(&zdev->entry, &remove); in zpci_remove_reserved_devices()
95 list_for_each_entry_safe(zdev, tmp, &remove, entry) 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_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_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) in zpci_zdev_put() argument
22 if (zdev) in zpci_zdev_put()
23 kref_put(&zdev->kref, zpci_release_device); in zpci_zdev_put()
26 static inline void zpci_zdev_get(struct zpci_dev *zdev) in zpci_zdev_get() argument
28 kref_get(&zdev->kref); in zpci_zdev_get()
33 int zpci_setup_bus_resources(struct zpci_dev *zdev);
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)); 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 if (zdev->dma_table) { in recover_store()
86 ret = zpci_dma_exit_device(zdev); in recover_store()
91 if (zdev_enabled(zdev)) { in recover_store()
92 ret = zpci_disable_device(zdev); in recover_store()
97 ret = zpci_enable_device(zdev); in recover_store()
[all …]
Dpci_clp.c99 static void clp_store_query_pci_fngrp(struct zpci_dev *zdev, in clp_store_query_pci_fngrp() argument
102 zdev->tlb_refresh = response->refresh; in clp_store_query_pci_fngrp()
103 zdev->dma_mask = response->dasm; in clp_store_query_pci_fngrp()
104 zdev->msi_addr = response->msia; in clp_store_query_pci_fngrp()
105 zdev->max_msi = response->noi; in clp_store_query_pci_fngrp()
106 zdev->fmb_update = response->mui; in clp_store_query_pci_fngrp()
107 zdev->version = response->version; in clp_store_query_pci_fngrp()
111 zdev->max_bus_speed = PCIE_SPEED_5_0GT; in clp_store_query_pci_fngrp()
114 zdev->max_bus_speed = PCI_SPEED_UNKNOWN; in clp_store_query_pci_fngrp()
119 static int clp_query_pci_fngrp(struct zpci_dev *zdev, u8 pfgid) in clp_query_pci_fngrp() argument
[all …]
Dpci_iov.c66 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()
/arch/s390/include/asm/
Dpci.h192 static inline bool zdev_enabled(struct zpci_dev *zdev) in zdev_enabled() argument
194 return (zdev->fh & (1UL << 31)) ? true : false; in zdev_enabled()
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);
220 int clp_query_pci_fn(struct zpci_dev *zdev);
221 int clp_enable_fh(struct zpci_dev *zdev, u32 *fh, u8 nr_dma_as);
222 int clp_disable_fh(struct zpci_dev *zdev, u32 *fh);
230 int zpci_init_iommu(struct zpci_dev *zdev);
[all …]
/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()