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