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()
554 if (num_act_qp != ha->tgt.num_act_qpairs) { in qla_dfs_naqp_write()
555 ha->tgt.num_act_qpairs = num_act_qp; in qla_dfs_naqp_write()
606 ha->tgt.dfs_tgt_port_database = debugfs_create_file("tgt_port_database", in qla2x00_dfs_setup()
612 ha->tgt.dfs_tgt_sess = debugfs_create_file("tgt_sess", in qla2x00_dfs_setup()
616 ha->tgt.dfs_naqp = debugfs_create_file("naqp", in qla2x00_dfs_setup()
618 if (IS_ERR(ha->tgt.dfs_naqp)) { in qla2x00_dfs_setup()
639 if (ha->tgt.dfs_naqp) { in qla2x00_dfs_remove()
640 debugfs_remove(ha->tgt.dfs_naqp); in qla2x00_dfs_remove()
641 ha->tgt.dfs_naqp = NULL; in qla2x00_dfs_remove()
644 if (ha->tgt.dfs_tgt_sess) { in qla2x00_dfs_remove()
645 debugfs_remove(ha->tgt.dfs_tgt_sess); in qla2x00_dfs_remove()
646 ha->tgt.dfs_tgt_sess = NULL; in qla2x00_dfs_remove()
649 if (ha->tgt.dfs_tgt_port_database) { in qla2x00_dfs_remove()
650 debugfs_remove(ha->tgt.dfs_tgt_port_database); in qla2x00_dfs_remove()
651 ha->tgt.dfs_tgt_port_database = NULL; in qla2x00_dfs_remove()