Lines Matching refs:vha

106 qla2x00_dfs_create_rport(scsi_qla_host_t *vha, struct fc_port *fp)
114 if (!vha->dfs_rport_root || fp->dfs_rport_dir)
118 fp->dfs_rport_dir = debugfs_create_dir(wwn, vha->dfs_rport_root);
121 if (NVME_TARGET(vha->hw, fp))
140 qla2x00_dfs_remove_rport(scsi_qla_host_t *vha, struct fc_port *fp)
142 if (!vha->dfs_rport_root || !fp->dfs_rport_dir)
151 scsi_qla_host_t *vha = s->private;
152 struct qla_hw_data *ha = vha->hw;
155 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt;
157 seq_printf(s, "%s\n", vha->host_str);
162 list_for_each_entry(sess, &vha->vp_fcports, list)
178 scsi_qla_host_t *vha = s->private;
179 struct qla_hw_data *ha = vha->hw;
186 seq_printf(s, "%s\n", vha->host_str);
191 ql_dbg(ql_dbg_user, vha, 0x7018,
197 rc = qla24xx_gidlist_wait(vha, gid_list, gid_list_dma,
209 rc = qla24xx_print_fc_port_id(vha, s, le16_to_cpu(gid->loop_id));
226 struct scsi_qla_host *vha = s->private;
229 struct qla_hw_data *ha = vha->hw;
232 rc = qla24xx_res_count_wait(vha, mb, SIZEOF_IOCB_MB_REG);
291 struct scsi_qla_host *vha = s->private;
292 struct qla_qpair *qpair = vha->hw->base_qpair;
299 if (qla2x00_chip_is_down(vha))
312 for (i = 0; i < vha->hw->max_qpairs; i++) {
313 qpair = vha->hw->queue_pair_map[i];
351 vha->qla_stats.qla_dif_stats.dif_input_bytes);
353 vha->qla_stats.qla_dif_stats.dif_output_bytes);
355 vha->qla_stats.qla_dif_stats.dif_input_requests);
357 vha->qla_stats.qla_dif_stats.dif_output_requests);
359 vha->qla_stats.qla_dif_stats.dif_guard_err);
361 vha->qla_stats.qla_dif_stats.dif_ref_tag_err);
363 vha->qla_stats.qla_dif_stats.dif_app_tag_err);
368 vha->hw_err_cnt);
370 vha->short_link_down_cnt);
372 vha->interface_err_cnt);
374 vha->cmd_timeout_cnt);
376 vha->reset_cmd_err_cnt);
379 list_for_each_entry(fcport, &vha->vp_fcports, list) {
396 scsi_qla_host_t *vha = s->private;
400 struct qla_hw_data *ha = vha->hw;
438 scsi_qla_host_t *vha = inode->i_private;
439 struct qla_hw_data *ha = vha->hw;
448 rval = qla2x00_disable_fce_trace(vha, &ha->fce_wr, &ha->fce_rd);
450 ql_dbg(ql_dbg_user, vha, 0x705c,
457 return single_open(file, qla2x00_dfs_fce_show, vha);
463 scsi_qla_host_t *vha = inode->i_private;
464 struct qla_hw_data *ha = vha->hw;
475 rval = qla2x00_enable_fce_trace(vha, ha->fce_dma, ha->fce_bufs,
478 ql_dbg(ql_dbg_user, vha, 0x700d,
493 struct scsi_qla_host *vha = s->private;
494 struct qla_hw_data *ha = vha->hw;
501 ql_dbg(ql_dbg_user, vha, 0xd034,
508 ql_dbg(ql_dbg_user, vha, 0xd037,
525 rc = qla2x00_alloc_fce_trace(vha);
534 qla2x00_alloc_fw_dump(vha);
538 qla_enable_fce_trace(vha);
540 ql_dbg(ql_dbg_user, vha, 0xd045, "User enabled FCE .\n");
548 qla2x00_disable_fce_trace(vha, NULL, NULL);
555 ql_dbg(ql_dbg_user, vha, 0xd04f, "User disabled FCE .\n");
575 struct scsi_qla_host *vha = s->private;
576 struct qla_hw_data *ha = vha->hw;
607 * QLA_DFS_CREATE_FILE(ha, TEST, 0600, ha->dfs_dir, vha);
651 struct scsi_qla_host *vha = s->private;
652 struct qla_hw_data *ha = vha->hw;
659 vha->host_no);
663 if (!vha->flags.qpairs_available) {
665 vha->host_no);
671 vha->host_no);
677 if (num_act_qp >= vha->hw->max_qpairs) {
679 num_act_qp, vha->hw->max_qpairs);
686 qlt_clr_qp_table(vha);
696 qla2x00_dfs_setup(scsi_qla_host_t *vha)
698 struct qla_hw_data *ha = vha->hw;
715 ha->dfs_dir = debugfs_create_dir(vha->host_str, qla2x00_dfs_root);
721 S_IRUSR, ha->dfs_dir, vha, &qla_dfs_fw_resource_cnt_fops);
724 ha->dfs_dir, vha, &qla_dfs_tgt_counters_fops);
727 S_IRUSR, ha->dfs_dir, vha, &qla2x00_dfs_tgt_port_database_fops);
729 ha->dfs_fce = debugfs_create_file("fce", S_IRUSR, ha->dfs_dir, vha,
733 S_IRUSR, ha->dfs_dir, vha, &qla2x00_dfs_tgt_sess_fops);
737 0400, ha->dfs_dir, vha, &qla_dfs_naqp_fops);
739 ql_log(ql_log_warn, vha, 0xd011,
744 vha->dfs_rport_root = debugfs_create_dir("rports", ha->dfs_dir);
745 if (IS_ERR(vha->dfs_rport_root)) {
746 ql_log(ql_log_warn, vha, 0xd012,
755 qla2x00_dfs_remove(scsi_qla_host_t *vha)
757 struct qla_hw_data *ha = vha->hw;
789 if (vha->dfs_rport_root) {
790 debugfs_remove_recursive(vha->dfs_rport_root);
791 vha->dfs_rport_root = NULL;