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);
283 struct scsi_qla_host *vha = s->private;
284 struct qla_qpair *qpair = vha->hw->base_qpair;
300 for (i = 0; i < vha->hw->max_qpairs; i++) {
301 qpair = vha->hw->queue_pair_map[i];
339 vha->qla_stats.qla_dif_stats.dif_input_bytes);
341 vha->qla_stats.qla_dif_stats.dif_output_bytes);
343 vha->qla_stats.qla_dif_stats.dif_input_requests);
345 vha->qla_stats.qla_dif_stats.dif_output_requests);
347 vha->qla_stats.qla_dif_stats.dif_guard_err);
349 vha->qla_stats.qla_dif_stats.dif_ref_tag_err);
351 vha->qla_stats.qla_dif_stats.dif_app_tag_err);
360 scsi_qla_host_t *vha = s->private;
364 struct qla_hw_data *ha = vha->hw;
397 scsi_qla_host_t *vha = inode->i_private;
398 struct qla_hw_data *ha = vha->hw;
407 rval = qla2x00_disable_fce_trace(vha, &ha->fce_wr, &ha->fce_rd);
409 ql_dbg(ql_dbg_user, vha, 0x705c,
416 return single_open(file, qla2x00_dfs_fce_show, vha);
422 scsi_qla_host_t *vha = inode->i_private;
423 struct qla_hw_data *ha = vha->hw;
434 rval = qla2x00_enable_fce_trace(vha, ha->fce_dma, ha->fce_bufs,
437 ql_dbg(ql_dbg_user, vha, 0x700d,
457 struct scsi_qla_host *vha = s->private;
458 struct qla_hw_data *ha = vha->hw;
467 struct scsi_qla_host *vha = inode->i_private;
469 return single_open(file, qla_dfs_naqp_show, vha);
477 struct scsi_qla_host *vha = s->private;
478 struct qla_hw_data *ha = vha->hw;
485 vha->host_no);
489 if (!vha->flags.qpairs_available) {
491 vha->host_no);
497 vha->host_no);
503 if (num_act_qp >= vha->hw->max_qpairs) {
505 num_act_qp, vha->hw->max_qpairs);
512 qlt_clr_qp_table(vha);
530 qla2x00_dfs_setup(scsi_qla_host_t *vha)
532 struct qla_hw_data *ha = vha->hw;
551 ha->dfs_dir = debugfs_create_dir(vha->host_str, qla2x00_dfs_root);
557 S_IRUSR, ha->dfs_dir, vha, &qla_dfs_fw_resource_cnt_fops);
560 ha->dfs_dir, vha, &qla_dfs_tgt_counters_fops);
563 S_IRUSR, ha->dfs_dir, vha, &qla2x00_dfs_tgt_port_database_fops);
565 ha->dfs_fce = debugfs_create_file("fce", S_IRUSR, ha->dfs_dir, vha,
569 S_IRUSR, ha->dfs_dir, vha, &qla2x00_dfs_tgt_sess_fops);
573 0400, ha->dfs_dir, vha, &dfs_naqp_ops);
575 ql_log(ql_log_warn, vha, 0xd011,
580 vha->dfs_rport_root = debugfs_create_dir("rports", ha->dfs_dir);
581 if (IS_ERR(vha->dfs_rport_root)) {
582 ql_log(ql_log_warn, vha, 0xd012,
591 qla2x00_dfs_remove(scsi_qla_host_t *vha)
593 struct qla_hw_data *ha = vha->hw;
625 if (vha->dfs_rport_root) {
626 debugfs_remove_recursive(vha->dfs_rport_root);
627 vha->dfs_rport_root = NULL;