Lines Matching refs:zdev
72 struct zpci_dev *zdev = m->private;
73 atomic64_t *counter = &zdev->allocated_pages;
83 struct zpci_dev *zdev = m->private;
85 if (!zdev)
88 mutex_lock(&zdev->lock);
89 if (!zdev->fmb) {
90 mutex_unlock(&zdev->lock);
96 seq_printf(m, "Update interval: %u ms\n", zdev->fmb_update);
97 seq_printf(m, "Samples: %u\n", zdev->fmb->samples);
98 seq_printf(m, "Last update TOD: %Lx\n", zdev->fmb->last_update);
101 &zdev->fmb->ld_ops);
103 switch (zdev->fmb->format) {
105 if (!(zdev->fmb->fmt_ind & ZPCI_FMB_DMA_COUNTER_VALID))
108 &zdev->fmb->fmt0.dma_rbytes);
112 &zdev->fmb->fmt1.rx_bytes);
116 &zdev->fmb->fmt2.consumed_work_units);
120 &zdev->fmb->fmt3.tx_bytes);
127 mutex_unlock(&zdev->lock);
134 struct zpci_dev *zdev = ((struct seq_file *) file->private_data)->private;
138 if (!zdev)
145 mutex_lock(&zdev->lock);
148 rc = zpci_fmb_disable_device(zdev);
151 rc = zpci_fmb_enable_device(zdev);
154 mutex_unlock(&zdev->lock);
172 void zpci_debug_init_device(struct zpci_dev *zdev, const char *name)
174 zdev->debugfs_dev = debugfs_create_dir(name, debugfs_root);
177 zdev->debugfs_dev, zdev, &debugfs_pci_perf_fops);
180 void zpci_debug_exit_device(struct zpci_dev *zdev)
182 debugfs_remove_recursive(zdev->debugfs_dev);