Lines Matching refs:irq_ptr

61 int qdio_allocate_dbf(struct qdio_irq *irq_ptr)  in qdio_allocate_dbf()  argument
66 DBF_EVENT("irq:%8lx", (unsigned long)irq_ptr); in qdio_allocate_dbf()
70 dev_name(&irq_ptr->cdev->dev)); in qdio_allocate_dbf()
71 irq_ptr->debug_area = qdio_get_dbf_entry(text); in qdio_allocate_dbf()
72 if (irq_ptr->debug_area) in qdio_allocate_dbf()
73 DBF_DEV_EVENT(DBF_ERR, irq_ptr, "dbf reused"); in qdio_allocate_dbf()
75 irq_ptr->debug_area = debug_register(text, 2, 1, 16); in qdio_allocate_dbf()
76 if (!irq_ptr->debug_area) in qdio_allocate_dbf()
78 if (debug_register_view(irq_ptr->debug_area, in qdio_allocate_dbf()
80 debug_unregister(irq_ptr->debug_area); in qdio_allocate_dbf()
83 debug_set_level(irq_ptr->debug_area, DBF_WARN); in qdio_allocate_dbf()
84 DBF_DEV_EVENT(DBF_ERR, irq_ptr, "dbf created"); in qdio_allocate_dbf()
87 debug_unregister(irq_ptr->debug_area); in qdio_allocate_dbf()
91 new_entry->dbf_info = irq_ptr->debug_area; in qdio_allocate_dbf()
110 q->irq_ptr->last_data_irq_time, last_ai_time); in qstat_show()
117 *(u8 *)q->irq_ptr->dsci, in qstat_show()
119 &q->irq_ptr->poll_state)); in qstat_show()
163 if (!q->irq_ptr->perf_stat_enabled) { in qstat_show()
219 struct qdio_irq *irq_ptr = m->private; in qperf_show() local
223 if (!irq_ptr) in qperf_show()
225 if (!irq_ptr->perf_stat_enabled) { in qperf_show()
229 stat = (unsigned int *)&irq_ptr->perf_stat; in qperf_show()
241 struct qdio_irq *irq_ptr = seq->private; in qperf_seq_write() local
246 if (!irq_ptr) in qperf_seq_write()
255 irq_ptr->perf_stat_enabled = 0; in qperf_seq_write()
256 memset(&irq_ptr->perf_stat, 0, sizeof(irq_ptr->perf_stat)); in qperf_seq_write()
257 for_each_input_queue(irq_ptr, q, i) in qperf_seq_write()
259 for_each_output_queue(irq_ptr, q, i) in qperf_seq_write()
263 irq_ptr->perf_stat_enabled = 1; in qperf_seq_write()
294 void qdio_setup_debug_entries(struct qdio_irq *irq_ptr) in qdio_setup_debug_entries() argument
299 irq_ptr->debugfs_dev = debugfs_create_dir(dev_name(&irq_ptr->cdev->dev), in qdio_setup_debug_entries()
302 irq_ptr->debugfs_dev, irq_ptr, &debugfs_perf_fops); in qdio_setup_debug_entries()
303 debugfs_create_file("ssqd", 0444, irq_ptr->debugfs_dev, irq_ptr->cdev, in qdio_setup_debug_entries()
306 for_each_input_queue(irq_ptr, q, i) in qdio_setup_debug_entries()
307 setup_debugfs_entry(irq_ptr->debugfs_dev, q); in qdio_setup_debug_entries()
308 for_each_output_queue(irq_ptr, q, i) in qdio_setup_debug_entries()
309 setup_debugfs_entry(irq_ptr->debugfs_dev, q); in qdio_setup_debug_entries()
312 void qdio_shutdown_debug_entries(struct qdio_irq *irq_ptr) in qdio_shutdown_debug_entries() argument
314 debugfs_remove_recursive(irq_ptr->debugfs_dev); in qdio_shutdown_debug_entries()