Lines Matching refs:tgt
155 struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; in qla2x00_dfs_tgt_sess_show() local
158 if (tgt) { in qla2x00_dfs_tgt_sess_show()
161 spin_lock_irqsave(&ha->tgt.sess_lock, flags); in qla2x00_dfs_tgt_sess_show()
167 spin_unlock_irqrestore(&ha->tgt.sess_lock, flags); in qla2x00_dfs_tgt_sess_show()
504 seq_printf(s, "%d\n", ha->tgt.num_act_qpairs); in qla_dfs_naqp_show()
647 if (num_act_qp != ha->tgt.num_act_qpairs) { in qla_dfs_naqp_write()
648 ha->tgt.num_act_qpairs = num_act_qp; in qla_dfs_naqp_write()
699 ha->tgt.dfs_tgt_port_database = debugfs_create_file("tgt_port_database", in qla2x00_dfs_setup()
705 ha->tgt.dfs_tgt_sess = debugfs_create_file("tgt_sess", in qla2x00_dfs_setup()
709 ha->tgt.dfs_naqp = debugfs_create_file("naqp", in qla2x00_dfs_setup()
711 if (IS_ERR(ha->tgt.dfs_naqp)) { in qla2x00_dfs_setup()
732 if (ha->tgt.dfs_naqp) { in qla2x00_dfs_remove()
733 debugfs_remove(ha->tgt.dfs_naqp); in qla2x00_dfs_remove()
734 ha->tgt.dfs_naqp = NULL; in qla2x00_dfs_remove()
737 if (ha->tgt.dfs_tgt_sess) { in qla2x00_dfs_remove()
738 debugfs_remove(ha->tgt.dfs_tgt_sess); in qla2x00_dfs_remove()
739 ha->tgt.dfs_tgt_sess = NULL; in qla2x00_dfs_remove()
742 if (ha->tgt.dfs_tgt_port_database) { in qla2x00_dfs_remove()
743 debugfs_remove(ha->tgt.dfs_tgt_port_database); in qla2x00_dfs_remove()
744 ha->tgt.dfs_tgt_port_database = NULL; in qla2x00_dfs_remove()