• Home
  • Raw
  • Download

Lines Matching refs:vha

106 qla2x00_dfs_create_rport(scsi_qla_host_t *vha, struct fc_port *fp)  in qla2x00_dfs_create_rport()  argument
114 if (!vha->dfs_rport_root || fp->dfs_rport_dir) in qla2x00_dfs_create_rport()
118 fp->dfs_rport_dir = debugfs_create_dir(wwn, vha->dfs_rport_root); in qla2x00_dfs_create_rport()
121 if (NVME_TARGET(vha->hw, fp)) in qla2x00_dfs_create_rport()
140 qla2x00_dfs_remove_rport(scsi_qla_host_t *vha, struct fc_port *fp) in qla2x00_dfs_remove_rport() argument
142 if (!vha->dfs_rport_root || !fp->dfs_rport_dir) in qla2x00_dfs_remove_rport()
151 scsi_qla_host_t *vha = s->private; in qla2x00_dfs_tgt_sess_show() local
152 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_tgt_sess_show()
155 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qla2x00_dfs_tgt_sess_show()
157 seq_printf(s, "%s\n", vha->host_str); in qla2x00_dfs_tgt_sess_show()
162 list_for_each_entry(sess, &vha->vp_fcports, list) in qla2x00_dfs_tgt_sess_show()
178 scsi_qla_host_t *vha = s->private; in qla2x00_dfs_tgt_port_database_show() local
179 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_tgt_port_database_show()
187 seq_printf(s, "%s\n", vha->host_str); in qla2x00_dfs_tgt_port_database_show()
192 ql_dbg(ql_dbg_user, vha, 0x7018, in qla2x00_dfs_tgt_port_database_show()
198 rc = qla24xx_gidlist_wait(vha, gid_list, gid_list_dma, in qla2x00_dfs_tgt_port_database_show()
215 rc = qla24xx_gpdb_wait(vha, &fc_port, 0); in qla2x00_dfs_tgt_port_database_show()
234 struct scsi_qla_host *vha = s->private; in qla_dfs_fw_resource_cnt_show() local
237 struct qla_hw_data *ha = vha->hw; in qla_dfs_fw_resource_cnt_show()
240 rc = qla24xx_res_count_wait(vha, mb, SIZEOF_IOCB_MB_REG); in qla_dfs_fw_resource_cnt_show()
299 struct scsi_qla_host *vha = s->private; in qla_dfs_tgt_counters_show() local
300 struct qla_qpair *qpair = vha->hw->base_qpair; in qla_dfs_tgt_counters_show()
307 if (qla2x00_chip_is_down(vha)) in qla_dfs_tgt_counters_show()
320 for (i = 0; i < vha->hw->max_qpairs; i++) { in qla_dfs_tgt_counters_show()
321 qpair = vha->hw->queue_pair_map[i]; in qla_dfs_tgt_counters_show()
359 vha->qla_stats.qla_dif_stats.dif_input_bytes); in qla_dfs_tgt_counters_show()
361 vha->qla_stats.qla_dif_stats.dif_output_bytes); in qla_dfs_tgt_counters_show()
363 vha->qla_stats.qla_dif_stats.dif_input_requests); in qla_dfs_tgt_counters_show()
365 vha->qla_stats.qla_dif_stats.dif_output_requests); in qla_dfs_tgt_counters_show()
367 vha->qla_stats.qla_dif_stats.dif_guard_err); in qla_dfs_tgt_counters_show()
369 vha->qla_stats.qla_dif_stats.dif_ref_tag_err); in qla_dfs_tgt_counters_show()
371 vha->qla_stats.qla_dif_stats.dif_app_tag_err); in qla_dfs_tgt_counters_show()
376 vha->hw_err_cnt); in qla_dfs_tgt_counters_show()
378 vha->short_link_down_cnt); in qla_dfs_tgt_counters_show()
380 vha->interface_err_cnt); in qla_dfs_tgt_counters_show()
382 vha->cmd_timeout_cnt); in qla_dfs_tgt_counters_show()
384 vha->reset_cmd_err_cnt); in qla_dfs_tgt_counters_show()
387 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla_dfs_tgt_counters_show()
404 scsi_qla_host_t *vha = s->private; in qla2x00_dfs_fce_show() local
408 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_fce_show()
441 scsi_qla_host_t *vha = inode->i_private; in qla2x00_dfs_fce_open() local
442 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_fce_open()
451 rval = qla2x00_disable_fce_trace(vha, &ha->fce_wr, &ha->fce_rd); in qla2x00_dfs_fce_open()
453 ql_dbg(ql_dbg_user, vha, 0x705c, in qla2x00_dfs_fce_open()
460 return single_open(file, qla2x00_dfs_fce_show, vha); in qla2x00_dfs_fce_open()
466 scsi_qla_host_t *vha = inode->i_private; in qla2x00_dfs_fce_release() local
467 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_fce_release()
478 rval = qla2x00_enable_fce_trace(vha, ha->fce_dma, ha->fce_bufs, in qla2x00_dfs_fce_release()
481 ql_dbg(ql_dbg_user, vha, 0x700d, in qla2x00_dfs_fce_release()
501 struct scsi_qla_host *vha = s->private; in qla_dfs_naqp_show() local
502 struct qla_hw_data *ha = vha->hw; in qla_dfs_naqp_show()
511 struct scsi_qla_host *vha = inode->i_private; in qla_dfs_naqp_open() local
513 return single_open(file, qla_dfs_naqp_show, vha); in qla_dfs_naqp_open()
521 struct scsi_qla_host *vha = s->private; in qla_dfs_naqp_write() local
522 struct qla_hw_data *ha = vha->hw; in qla_dfs_naqp_write()
529 vha->host_no); in qla_dfs_naqp_write()
533 if (!vha->flags.qpairs_available) { in qla_dfs_naqp_write()
535 vha->host_no); in qla_dfs_naqp_write()
541 vha->host_no); in qla_dfs_naqp_write()
547 if (num_act_qp >= vha->hw->max_qpairs) { in qla_dfs_naqp_write()
549 num_act_qp, vha->hw->max_qpairs); in qla_dfs_naqp_write()
556 qlt_clr_qp_table(vha); in qla_dfs_naqp_write()
574 qla2x00_dfs_setup(scsi_qla_host_t *vha) in qla2x00_dfs_setup() argument
576 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_setup()
595 ha->dfs_dir = debugfs_create_dir(vha->host_str, qla2x00_dfs_root); in qla2x00_dfs_setup()
601 S_IRUSR, ha->dfs_dir, vha, &qla_dfs_fw_resource_cnt_fops); in qla2x00_dfs_setup()
604 ha->dfs_dir, vha, &qla_dfs_tgt_counters_fops); in qla2x00_dfs_setup()
607 S_IRUSR, ha->dfs_dir, vha, &qla2x00_dfs_tgt_port_database_fops); in qla2x00_dfs_setup()
609 ha->dfs_fce = debugfs_create_file("fce", S_IRUSR, ha->dfs_dir, vha, in qla2x00_dfs_setup()
613 S_IRUSR, ha->dfs_dir, vha, &qla2x00_dfs_tgt_sess_fops); in qla2x00_dfs_setup()
617 0400, ha->dfs_dir, vha, &dfs_naqp_ops); in qla2x00_dfs_setup()
619 ql_log(ql_log_warn, vha, 0xd011, in qla2x00_dfs_setup()
624 vha->dfs_rport_root = debugfs_create_dir("rports", ha->dfs_dir); in qla2x00_dfs_setup()
625 if (IS_ERR(vha->dfs_rport_root)) { in qla2x00_dfs_setup()
626 ql_log(ql_log_warn, vha, 0xd012, in qla2x00_dfs_setup()
635 qla2x00_dfs_remove(scsi_qla_host_t *vha) in qla2x00_dfs_remove() argument
637 struct qla_hw_data *ha = vha->hw; in qla2x00_dfs_remove()
669 if (vha->dfs_rport_root) { in qla2x00_dfs_remove()
670 debugfs_remove_recursive(vha->dfs_rport_root); in qla2x00_dfs_remove()
671 vha->dfs_rport_root = NULL; in qla2x00_dfs_remove()