Lines Matching refs:tgt
173 struct bnx2fc_rport *tgt; in bnx2fc_cleanup() local
180 tgt = hba->tgt_ofld_list[i]; in bnx2fc_cleanup()
181 if (tgt) { in bnx2fc_cleanup()
183 if (tgt->port == port) { in bnx2fc_cleanup()
185 BNX2FC_TGT_DBG(tgt, "flush/cleanup\n"); in bnx2fc_cleanup()
186 bnx2fc_flush_active_ios(tgt); in bnx2fc_cleanup()
195 static int bnx2fc_xmit_l2_frame(struct bnx2fc_rport *tgt, in bnx2fc_xmit_l2_frame() argument
198 struct fc_rport_priv *rdata = tgt->rdata; in bnx2fc_xmit_l2_frame()
203 BNX2FC_TGT_DBG(tgt, "Xmit L2 frame rport = 0x%x, oxid = 0x%x, " in bnx2fc_xmit_l2_frame()
211 rc = bnx2fc_send_adisc(tgt, fp); in bnx2fc_xmit_l2_frame()
214 rc = bnx2fc_send_logo(tgt, fp); in bnx2fc_xmit_l2_frame()
217 rc = bnx2fc_send_rls(tgt, fp); in bnx2fc_xmit_l2_frame()
224 BNX2FC_TGT_DBG(tgt, "ABTS frame\n"); in bnx2fc_xmit_l2_frame()
226 BNX2FC_TGT_DBG(tgt, "Send L2 frame type 0x%x " in bnx2fc_xmit_l2_frame()
254 struct bnx2fc_rport *tgt; in bnx2fc_xmit() local
299 tgt = bnx2fc_tgt_lookup(port, ntoh24(fh->fh_d_id)); in bnx2fc_xmit()
300 if (tgt && (test_bit(BNX2FC_FLAG_SESSION_READY, &tgt->flags))) { in bnx2fc_xmit()
305 rc = bnx2fc_xmit_l2_frame(tgt, fp); in bnx2fc_xmit()
616 bnx2fc_process_cq_compl(work->tgt, work->wqe); in bnx2fc_percpu_io_thread()
2493 bnx2fc_process_cq_compl(work->tgt, work->wqe); in bnx2fc_percpu_thread_destroy()