Lines Matching refs:vha
18 scsi_qla_host_t *vha = s->private; in qla2x00_dfs_tgt_sess_show() local
19 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_tgt_sess_show()
22 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qla2x00_dfs_tgt_sess_show()
24 seq_printf(s, "%s\n", vha->host_str); in qla2x00_dfs_tgt_sess_show()
29 list_for_each_entry(sess, &vha->vp_fcports, list) in qla2x00_dfs_tgt_sess_show()
43 scsi_qla_host_t *vha = inode->i_private; in qla2x00_dfs_tgt_sess_open() local
44 return single_open(file, qla2x00_dfs_tgt_sess_show, vha); in qla2x00_dfs_tgt_sess_open()
57 scsi_qla_host_t *vha = s->private; in qla2x00_dfs_tgt_port_database_show() local
58 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_tgt_port_database_show()
65 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qla2x00_dfs_tgt_port_database_show()
67 seq_printf(s, "%s\n", vha->host_str); in qla2x00_dfs_tgt_port_database_show()
73 ql_dbg(ql_dbg_user, vha, 0x7018, in qla2x00_dfs_tgt_port_database_show()
79 rc = qla24xx_gidlist_wait(vha, gid_list, gid_list_dma, in qla2x00_dfs_tgt_port_database_show()
96 rc = qla24xx_gpdb_wait(vha, &fc_port, 0); in qla2x00_dfs_tgt_port_database_show()
114 scsi_qla_host_t *vha = inode->i_private; in qla2x00_dfs_tgt_port_database_open() local
116 return single_open(file, qla2x00_dfs_tgt_port_database_show, vha); in qla2x00_dfs_tgt_port_database_open()
129 struct scsi_qla_host *vha = s->private; in qla_dfs_fw_resource_cnt_show() local
133 rc = qla24xx_res_count_wait(vha, mb, SIZEOF_IOCB_MB_REG); in qla_dfs_fw_resource_cnt_show()
163 struct scsi_qla_host *vha = inode->i_private; in qla_dfs_fw_resource_cnt_open() local
164 return single_open(file, qla_dfs_fw_resource_cnt_show, vha); in qla_dfs_fw_resource_cnt_open()
177 struct scsi_qla_host *vha = s->private; in qla_dfs_tgt_counters_show() local
178 struct qla_qpair *qpair = vha->hw->base_qpair; in qla_dfs_tgt_counters_show()
194 for (i = 0; i < vha->hw->max_qpairs; i++) { in qla_dfs_tgt_counters_show()
195 qpair = vha->hw->queue_pair_map[i]; in qla_dfs_tgt_counters_show()
231 vha->qla_stats.qla_dif_stats.dif_input_bytes); in qla_dfs_tgt_counters_show()
233 vha->qla_stats.qla_dif_stats.dif_output_bytes); in qla_dfs_tgt_counters_show()
235 vha->qla_stats.qla_dif_stats.dif_input_requests); in qla_dfs_tgt_counters_show()
237 vha->qla_stats.qla_dif_stats.dif_output_requests); in qla_dfs_tgt_counters_show()
239 vha->qla_stats.qla_dif_stats.dif_guard_err); in qla_dfs_tgt_counters_show()
241 vha->qla_stats.qla_dif_stats.dif_ref_tag_err); in qla_dfs_tgt_counters_show()
243 vha->qla_stats.qla_dif_stats.dif_app_tag_err); in qla_dfs_tgt_counters_show()
250 struct scsi_qla_host *vha = inode->i_private; in qla_dfs_tgt_counters_open() local
251 return single_open(file, qla_dfs_tgt_counters_show, vha); in qla_dfs_tgt_counters_open()
264 scsi_qla_host_t *vha = s->private; in qla2x00_dfs_fce_show() local
268 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_fce_show()
301 scsi_qla_host_t *vha = inode->i_private; in qla2x00_dfs_fce_open() local
302 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_fce_open()
311 rval = qla2x00_disable_fce_trace(vha, &ha->fce_wr, &ha->fce_rd); in qla2x00_dfs_fce_open()
313 ql_dbg(ql_dbg_user, vha, 0x705c, in qla2x00_dfs_fce_open()
320 return single_open(file, qla2x00_dfs_fce_show, vha); in qla2x00_dfs_fce_open()
326 scsi_qla_host_t *vha = inode->i_private; in qla2x00_dfs_fce_release() local
327 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_fce_release()
338 rval = qla2x00_enable_fce_trace(vha, ha->fce_dma, ha->fce_bufs, in qla2x00_dfs_fce_release()
341 ql_dbg(ql_dbg_user, vha, 0x700d, in qla2x00_dfs_fce_release()
361 struct scsi_qla_host *vha = s->private; in qla_dfs_naqp_show() local
362 struct qla_hw_data *ha = vha->hw; in qla_dfs_naqp_show()
371 struct scsi_qla_host *vha = inode->i_private; in qla_dfs_naqp_open() local
373 return single_open(file, qla_dfs_naqp_show, vha); in qla_dfs_naqp_open()
381 struct scsi_qla_host *vha = s->private; in qla_dfs_naqp_write() local
382 struct qla_hw_data *ha = vha->hw; in qla_dfs_naqp_write()
389 vha->host_no); in qla_dfs_naqp_write()
393 if (!vha->flags.qpairs_available) { in qla_dfs_naqp_write()
395 vha->host_no); in qla_dfs_naqp_write()
401 vha->host_no); in qla_dfs_naqp_write()
407 if (num_act_qp >= vha->hw->max_qpairs) { in qla_dfs_naqp_write()
409 num_act_qp, vha->hw->max_qpairs); in qla_dfs_naqp_write()
416 qlt_clr_qp_table(vha); in qla_dfs_naqp_write()
434 qla2x00_dfs_setup(scsi_qla_host_t *vha) in qla2x00_dfs_setup() argument
436 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_setup()
450 ql_log(ql_log_warn, vha, 0x00f7, in qla2x00_dfs_setup()
460 ha->dfs_dir = debugfs_create_dir(vha->host_str, qla2x00_dfs_root); in qla2x00_dfs_setup()
462 ql_log(ql_log_warn, vha, 0x00f8, in qla2x00_dfs_setup()
471 S_IRUSR, ha->dfs_dir, vha, &dfs_fw_resource_cnt_ops); in qla2x00_dfs_setup()
473 ql_log(ql_log_warn, vha, 0x00fd, in qla2x00_dfs_setup()
479 ha->dfs_dir, vha, &dfs_tgt_counters_ops); in qla2x00_dfs_setup()
481 ql_log(ql_log_warn, vha, 0xd301, in qla2x00_dfs_setup()
487 S_IRUSR, ha->dfs_dir, vha, &dfs_tgt_port_database_ops); in qla2x00_dfs_setup()
489 ql_log(ql_log_warn, vha, 0xd03f, in qla2x00_dfs_setup()
494 ha->dfs_fce = debugfs_create_file("fce", S_IRUSR, ha->dfs_dir, vha, in qla2x00_dfs_setup()
497 ql_log(ql_log_warn, vha, 0x00f9, in qla2x00_dfs_setup()
503 S_IRUSR, ha->dfs_dir, vha, &dfs_tgt_sess_ops); in qla2x00_dfs_setup()
505 ql_log(ql_log_warn, vha, 0xd040, in qla2x00_dfs_setup()
512 0400, ha->dfs_dir, vha, &dfs_naqp_ops); in qla2x00_dfs_setup()
514 ql_log(ql_log_warn, vha, 0xd011, in qla2x00_dfs_setup()
524 qla2x00_dfs_remove(scsi_qla_host_t *vha) in qla2x00_dfs_remove() argument
526 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_remove()