Lines Matching refs:zdev

44 	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()
62 mutex_lock(&zdev->lock); in pci_perf_show()
63 if (!zdev->fmb) { in pci_perf_show()
64 mutex_unlock(&zdev->lock); in pci_perf_show()
70 seq_printf(m, "FMB @ %p\n", zdev->fmb); in pci_perf_show()
71 seq_printf(m, "Update interval: %u ms\n", zdev->fmb_update); in pci_perf_show()
72 seq_printf(m, "Samples: %u\n", zdev->fmb->samples); in pci_perf_show()
73 seq_printf(m, "Last update TOD: %Lx\n", zdev->fmb->last_update); in pci_perf_show()
76 stat = (u64 *) &zdev->fmb->ld_ops; in pci_perf_show()
80 if (zdev->fmb->dma_valid) in pci_perf_show()
86 mutex_unlock(&zdev->lock); in pci_perf_show()
93 struct zpci_dev *zdev = ((struct seq_file *) file->private_data)->private; in pci_perf_seq_write() local
97 if (!zdev) in pci_perf_seq_write()
104 mutex_lock(&zdev->lock); in pci_perf_seq_write()
107 rc = zpci_fmb_disable_device(zdev); in pci_perf_seq_write()
110 rc = zpci_fmb_enable_device(zdev); in pci_perf_seq_write()
113 mutex_unlock(&zdev->lock); in pci_perf_seq_write()
131 void zpci_debug_init_device(struct zpci_dev *zdev) in zpci_debug_init_device() argument
133 zdev->debugfs_dev = debugfs_create_dir(dev_name(&zdev->pdev->dev), in zpci_debug_init_device()
135 if (IS_ERR(zdev->debugfs_dev)) in zpci_debug_init_device()
136 zdev->debugfs_dev = NULL; in zpci_debug_init_device()
138 zdev->debugfs_perf = debugfs_create_file("statistics", in zpci_debug_init_device()
140 zdev->debugfs_dev, zdev, in zpci_debug_init_device()
142 if (IS_ERR(zdev->debugfs_perf)) in zpci_debug_init_device()
143 zdev->debugfs_perf = NULL; in zpci_debug_init_device()
146 void zpci_debug_exit_device(struct zpci_dev *zdev) in zpci_debug_exit_device() argument
148 debugfs_remove(zdev->debugfs_perf); in zpci_debug_exit_device()
149 debugfs_remove(zdev->debugfs_dev); in zpci_debug_exit_device()