• Home
  • Raw
  • Download

Lines Matching refs:zdev

72 	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()
101 &zdev->fmb->ld_ops); in pci_perf_show()
103 switch (zdev->fmb->format) { in pci_perf_show()
105 if (!(zdev->fmb->fmt_ind & ZPCI_FMB_DMA_COUNTER_VALID)) in pci_perf_show()
108 &zdev->fmb->fmt0.dma_rbytes); in pci_perf_show()
112 &zdev->fmb->fmt1.rx_bytes); in pci_perf_show()
116 &zdev->fmb->fmt2.consumed_work_units); in pci_perf_show()
120 &zdev->fmb->fmt3.tx_bytes); in pci_perf_show()
127 mutex_unlock(&zdev->lock); in pci_perf_show()
134 struct zpci_dev *zdev = ((struct seq_file *) file->private_data)->private; in pci_perf_seq_write() local
138 if (!zdev) in pci_perf_seq_write()
145 mutex_lock(&zdev->lock); in pci_perf_seq_write()
148 rc = zpci_fmb_disable_device(zdev); in pci_perf_seq_write()
151 rc = zpci_fmb_enable_device(zdev); in pci_perf_seq_write()
154 mutex_unlock(&zdev->lock); in pci_perf_seq_write()
172 void zpci_debug_init_device(struct zpci_dev *zdev, const char *name) in zpci_debug_init_device() argument
174 zdev->debugfs_dev = debugfs_create_dir(name, debugfs_root); in zpci_debug_init_device()
177 zdev->debugfs_dev, zdev, &debugfs_pci_perf_fops); in zpci_debug_init_device()
180 void zpci_debug_exit_device(struct zpci_dev *zdev) in zpci_debug_exit_device() argument
182 debugfs_remove_recursive(zdev->debugfs_dev); in zpci_debug_exit_device()