Lines Matching defs: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;
187 seq_printf(s, "%s\n", vha->host_str);
192 ql_dbg(ql_dbg_user, vha, 0x7018,
198 rc = qla24xx_gidlist_wait(vha, gid_list, gid_list_dma,
215 rc = qla24xx_gpdb_wait(vha, &fc_port, 0);
234 struct scsi_qla_host *vha = s->private;
237 struct qla_hw_data *ha = vha->hw;
240 rc = qla24xx_res_count_wait(vha, mb, SIZEOF_IOCB_MB_REG);
299 struct scsi_qla_host *vha = s->private;
300 struct qla_qpair *qpair = vha->hw->base_qpair;
307 if (qla2x00_chip_is_down(vha))
320 for (i = 0; i < vha->hw->max_qpairs; i++) {
321 qpair = vha->hw->queue_pair_map[i];
359 vha->qla_stats.qla_dif_stats.dif_input_bytes);
361 vha->qla_stats.qla_dif_stats.dif_output_bytes);
363 vha->qla_stats.qla_dif_stats.dif_input_requests);
365 vha->qla_stats.qla_dif_stats.dif_output_requests);
367 vha->qla_stats.qla_dif_stats.dif_guard_err);
369 vha->qla_stats.qla_dif_stats.dif_ref_tag_err);
371 vha->qla_stats.qla_dif_stats.dif_app_tag_err);
376 vha->hw_err_cnt);
378 vha->short_link_down_cnt);
380 vha->interface_err_cnt);
382 vha->cmd_timeout_cnt);
384 vha->reset_cmd_err_cnt);
387 list_for_each_entry(fcport, &vha->vp_fcports, list) {
404 scsi_qla_host_t *vha = s->private;
408 struct qla_hw_data *ha = vha->hw;
441 scsi_qla_host_t *vha = inode->i_private;
442 struct qla_hw_data *ha = vha->hw;
451 rval = qla2x00_disable_fce_trace(vha, &ha->fce_wr, &ha->fce_rd);
453 ql_dbg(ql_dbg_user, vha, 0x705c,
460 return single_open(file, qla2x00_dfs_fce_show, vha);
466 scsi_qla_host_t *vha = inode->i_private;
467 struct qla_hw_data *ha = vha->hw;
478 rval = qla2x00_enable_fce_trace(vha, ha->fce_dma, ha->fce_bufs,
481 ql_dbg(ql_dbg_user, vha, 0x700d,
501 struct scsi_qla_host *vha = s->private;
502 struct qla_hw_data *ha = vha->hw;
533 * QLA_DFS_CREATE_FILE(ha, TEST, 0600, ha->dfs_dir, vha);
604 struct scsi_qla_host *vha = inode->i_private;
606 return single_open(file, qla_dfs_naqp_show, vha);
614 struct scsi_qla_host *vha = s->private;
615 struct qla_hw_data *ha = vha->hw;
622 vha->host_no);
626 if (!vha->flags.qpairs_available) {
628 vha->host_no);
634 vha->host_no);
640 if (num_act_qp >= vha->hw->max_qpairs) {
642 num_act_qp, vha->hw->max_qpairs);
649 qlt_clr_qp_table(vha);
667 qla2x00_dfs_setup(scsi_qla_host_t *vha)
669 struct qla_hw_data *ha = vha->hw;
688 ha->dfs_dir = debugfs_create_dir(vha->host_str, qla2x00_dfs_root);
694 S_IRUSR, ha->dfs_dir, vha, &qla_dfs_fw_resource_cnt_fops);
697 ha->dfs_dir, vha, &qla_dfs_tgt_counters_fops);
700 S_IRUSR, ha->dfs_dir, vha, &qla2x00_dfs_tgt_port_database_fops);
702 ha->dfs_fce = debugfs_create_file("fce", S_IRUSR, ha->dfs_dir, vha,
706 S_IRUSR, ha->dfs_dir, vha, &qla2x00_dfs_tgt_sess_fops);
710 0400, ha->dfs_dir, vha, &dfs_naqp_ops);
712 ql_log(ql_log_warn, vha, 0xd011,
717 vha->dfs_rport_root = debugfs_create_dir("rports", ha->dfs_dir);
718 if (IS_ERR(vha->dfs_rport_root)) {
719 ql_log(ql_log_warn, vha, 0xd012,
728 qla2x00_dfs_remove(scsi_qla_host_t *vha)
730 struct qla_hw_data *ha = vha->hw;
762 if (vha->dfs_rport_root) {
763 debugfs_remove_recursive(vha->dfs_rport_root);
764 vha->dfs_rport_root = NULL;