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()
488 seq_printf(s, "%d\n", ha->tgt.num_act_qpairs); in qla_dfs_naqp_show()
538 if (num_act_qp != ha->tgt.num_act_qpairs) { in qla_dfs_naqp_write()
539 ha->tgt.num_act_qpairs = num_act_qp; in qla_dfs_naqp_write()
590 ha->tgt.dfs_tgt_port_database = debugfs_create_file("tgt_port_database", in qla2x00_dfs_setup()
596 ha->tgt.dfs_tgt_sess = debugfs_create_file("tgt_sess", in qla2x00_dfs_setup()
600 ha->tgt.dfs_naqp = debugfs_create_file("naqp", in qla2x00_dfs_setup()
602 if (!ha->tgt.dfs_naqp) { in qla2x00_dfs_setup()
623 if (ha->tgt.dfs_naqp) { in qla2x00_dfs_remove()
624 debugfs_remove(ha->tgt.dfs_naqp); in qla2x00_dfs_remove()
625 ha->tgt.dfs_naqp = NULL; in qla2x00_dfs_remove()
628 if (ha->tgt.dfs_tgt_sess) { in qla2x00_dfs_remove()
629 debugfs_remove(ha->tgt.dfs_tgt_sess); in qla2x00_dfs_remove()
630 ha->tgt.dfs_tgt_sess = NULL; in qla2x00_dfs_remove()
633 if (ha->tgt.dfs_tgt_port_database) { in qla2x00_dfs_remove()
634 debugfs_remove(ha->tgt.dfs_tgt_port_database); in qla2x00_dfs_remove()
635 ha->tgt.dfs_tgt_port_database = NULL; in qla2x00_dfs_remove()