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()
460 seq_printf(s, "%d\n", ha->tgt.num_act_qpairs); in qla_dfs_naqp_show()
510 if (num_act_qp != ha->tgt.num_act_qpairs) { in qla_dfs_naqp_write()
511 ha->tgt.num_act_qpairs = num_act_qp; in qla_dfs_naqp_write()
562 ha->tgt.dfs_tgt_port_database = debugfs_create_file("tgt_port_database", in qla2x00_dfs_setup()
568 ha->tgt.dfs_tgt_sess = debugfs_create_file("tgt_sess", in qla2x00_dfs_setup()
572 ha->tgt.dfs_naqp = debugfs_create_file("naqp", in qla2x00_dfs_setup()
574 if (!ha->tgt.dfs_naqp) { in qla2x00_dfs_setup()
595 if (ha->tgt.dfs_naqp) { in qla2x00_dfs_remove()
596 debugfs_remove(ha->tgt.dfs_naqp); in qla2x00_dfs_remove()
597 ha->tgt.dfs_naqp = NULL; in qla2x00_dfs_remove()
600 if (ha->tgt.dfs_tgt_sess) { in qla2x00_dfs_remove()
601 debugfs_remove(ha->tgt.dfs_tgt_sess); in qla2x00_dfs_remove()
602 ha->tgt.dfs_tgt_sess = NULL; in qla2x00_dfs_remove()
605 if (ha->tgt.dfs_tgt_port_database) { in qla2x00_dfs_remove()
606 debugfs_remove(ha->tgt.dfs_tgt_port_database); in qla2x00_dfs_remove()
607 ha->tgt.dfs_tgt_port_database = NULL; in qla2x00_dfs_remove()