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()
586 seq_printf(s, "%d\n", ha->tgt.num_act_qpairs); in qla_dfs_naqp_show()
692 if (num_act_qp != ha->tgt.num_act_qpairs) { in qla_dfs_naqp_write()
693 ha->tgt.num_act_qpairs = num_act_qp; in qla_dfs_naqp_write()
734 ha->tgt.dfs_tgt_port_database = debugfs_create_file("tgt_port_database", in qla2x00_dfs_setup()
740 ha->tgt.dfs_tgt_sess = debugfs_create_file("tgt_sess", in qla2x00_dfs_setup()
744 ha->tgt.dfs_naqp = debugfs_create_file("naqp", in qla2x00_dfs_setup()
746 if (IS_ERR(ha->tgt.dfs_naqp)) { in qla2x00_dfs_setup()
767 if (ha->tgt.dfs_naqp) { in qla2x00_dfs_remove()
768 debugfs_remove(ha->tgt.dfs_naqp); in qla2x00_dfs_remove()
769 ha->tgt.dfs_naqp = NULL; in qla2x00_dfs_remove()
772 if (ha->tgt.dfs_tgt_sess) { in qla2x00_dfs_remove()
773 debugfs_remove(ha->tgt.dfs_tgt_sess); in qla2x00_dfs_remove()
774 ha->tgt.dfs_tgt_sess = NULL; in qla2x00_dfs_remove()
777 if (ha->tgt.dfs_tgt_port_database) { in qla2x00_dfs_remove()
778 debugfs_remove(ha->tgt.dfs_tgt_port_database); in qla2x00_dfs_remove()
779 ha->tgt.dfs_tgt_port_database = NULL; in qla2x00_dfs_remove()