Home
last modified time | relevance | path

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

/arch/s390/pci/
Dpci.c86 struct zpci_dev *tmp, *zdev = NULL; in get_zdev_by_fid() local
91 zdev = tmp; in get_zdev_by_fid()
96 return zdev; in get_zdev_by_fid()
117 static int zpci_set_airq(struct zpci_dev *zdev) in zpci_set_airq() argument
119 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT); in zpci_set_airq()
124 fib.noi = airq_iv_end(zdev->aibv); in zpci_set_airq()
125 fib.aibv = (unsigned long) zdev->aibv->vector; in zpci_set_airq()
127 fib.aisb = (unsigned long) zpci_aisb_iv->vector + (zdev->aisb/64)*8; in zpci_set_airq()
128 fib.aisbo = zdev->aisb & 63; in zpci_set_airq()
140 static int mod_pci(struct zpci_dev *zdev, int fn, u8 dmaas, struct mod_pci_args *args) in mod_pci() argument
[all …]
Dpci_dma.c21 static int zpci_refresh_global(struct zpci_dev *zdev) in zpci_refresh_global() argument
23 return zpci_refresh_trans((u64) zdev->fh << 32, zdev->start_dma, in zpci_refresh_global()
24 zdev->iommu_pages * PAGE_SIZE); in zpci_refresh_global()
117 static void dma_update_cpu_trans(struct zpci_dev *zdev, void *page_addr, in dma_update_cpu_trans() argument
122 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr); in dma_update_cpu_trans()
142 static int dma_update_trans(struct zpci_dev *zdev, unsigned long pa, in dma_update_trans() argument
154 spin_lock_irqsave(&zdev->dma_table_lock, irq_flags); in dma_update_trans()
155 if (!zdev->dma_table) in dma_update_trans()
159 dma_update_cpu_trans(zdev, page_addr, dma_addr, flags); in dma_update_trans()
171 if (!zdev->tlb_refresh && in dma_update_trans()
[all …]
Dpci_event.c48 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_error() local
53 if (!zdev) in __zpci_event_error()
57 pci_name(zdev->pdev), ccdf->pec, ccdf->fid); in __zpci_event_error()
68 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_availability() local
69 struct pci_dev *pdev = zdev ? zdev->pdev : NULL; in __zpci_event_availability()
79 if (!zdev || zdev->state != ZPCI_FN_STATE_STANDBY) in __zpci_event_availability()
81 zdev->state = ZPCI_FN_STATE_CONFIGURED; in __zpci_event_availability()
82 zdev->fh = ccdf->fh; in __zpci_event_availability()
83 ret = zpci_enable_device(zdev); in __zpci_event_availability()
86 pci_rescan_bus(zdev->bus); in __zpci_event_availability()
[all …]
Dpci_debug.c44 struct zpci_dev *zdev = m->private; in pci_sw_counter_show() local
45 atomic64_t *counter = &zdev->allocated_pages; in pci_sw_counter_show()
55 struct zpci_dev *zdev = m->private; in pci_perf_show() local
59 if (!zdev) in pci_perf_show()
61 if (!zdev->fmb) in pci_perf_show()
65 seq_printf(m, "FMB @ %p\n", zdev->fmb); in pci_perf_show()
66 seq_printf(m, "Update interval: %u ms\n", zdev->fmb_update); in pci_perf_show()
67 seq_printf(m, "Samples: %u\n", zdev->fmb->samples); in pci_perf_show()
68 seq_printf(m, "Last update TOD: %Lx\n", zdev->fmb->last_update); in pci_perf_show()
71 stat = (u64 *) &zdev->fmb->ld_ops; in pci_perf_show()
[all …]
Dpci_clp.c59 static void clp_store_query_pci_fngrp(struct zpci_dev *zdev, in clp_store_query_pci_fngrp() argument
62 zdev->tlb_refresh = response->refresh; in clp_store_query_pci_fngrp()
63 zdev->dma_mask = response->dasm; in clp_store_query_pci_fngrp()
64 zdev->msi_addr = response->msia; in clp_store_query_pci_fngrp()
65 zdev->fmb_update = response->mui; in clp_store_query_pci_fngrp()
69 zdev->max_bus_speed = PCIE_SPEED_5_0GT; in clp_store_query_pci_fngrp()
72 zdev->max_bus_speed = PCI_SPEED_UNKNOWN; in clp_store_query_pci_fngrp()
77 static int clp_query_pci_fngrp(struct zpci_dev *zdev, u8 pfgid) in clp_query_pci_fngrp() argument
94 clp_store_query_pci_fngrp(zdev, &rrb->response); in clp_query_pci_fngrp()
104 static int clp_store_query_pci_fn(struct zpci_dev *zdev, in clp_store_query_pci_fn() argument
[all …]
Dpci_sysfs.c19 struct zpci_dev *zdev = get_zdev(to_pci_dev(dev)); \
21 return sprintf(buf, fmt, zdev->member); \
41 struct zpci_dev *zdev = get_zdev(pdev); in recover_store() local
48 ret = zpci_disable_device(zdev); in recover_store()
52 ret = zpci_enable_device(zdev); in recover_store()
56 pci_rescan_bus(zdev->bus); in recover_store()
67 struct zpci_dev *zdev = get_zdev(pdev); in util_string_read() local
69 return memory_read_from_buffer(buf, count, &off, zdev->util_str, in util_string_read()
70 sizeof(zdev->util_str)); in util_string_read()
/arch/s390/include/asm/
Dpci.h124 static inline bool zdev_enabled(struct zpci_dev *zdev) in zdev_enabled() argument
126 return (zdev->fh & (1UL << 31)) ? true : false; in zdev_enabled()
166 static inline int zpci_init_slot(struct zpci_dev *zdev) in zpci_init_slot() argument
170 static inline void zpci_exit_slot(struct zpci_dev *zdev) {} in zpci_exit_slot() argument