Lines Matching refs:tgt
194 struct bnx2fc_rport *tgt; in bnx2fc_cleanup() local
201 tgt = hba->tgt_ofld_list[i]; in bnx2fc_cleanup()
202 if (tgt) { in bnx2fc_cleanup()
204 if (tgt->port == port) { in bnx2fc_cleanup()
206 BNX2FC_TGT_DBG(tgt, "flush/cleanup\n"); in bnx2fc_cleanup()
207 bnx2fc_flush_active_ios(tgt); in bnx2fc_cleanup()
216 static int bnx2fc_xmit_l2_frame(struct bnx2fc_rport *tgt, in bnx2fc_xmit_l2_frame() argument
219 struct fc_rport_priv *rdata = tgt->rdata; in bnx2fc_xmit_l2_frame()
224 BNX2FC_TGT_DBG(tgt, "Xmit L2 frame rport = 0x%x, oxid = 0x%x, " in bnx2fc_xmit_l2_frame()
232 rc = bnx2fc_send_adisc(tgt, fp); in bnx2fc_xmit_l2_frame()
235 rc = bnx2fc_send_logo(tgt, fp); in bnx2fc_xmit_l2_frame()
238 rc = bnx2fc_send_rls(tgt, fp); in bnx2fc_xmit_l2_frame()
245 BNX2FC_TGT_DBG(tgt, "ABTS frame\n"); in bnx2fc_xmit_l2_frame()
247 BNX2FC_TGT_DBG(tgt, "Send L2 frame type 0x%x " in bnx2fc_xmit_l2_frame()
275 struct bnx2fc_rport *tgt; in bnx2fc_xmit() local
320 tgt = bnx2fc_tgt_lookup(port, ntoh24(fh->fh_d_id)); in bnx2fc_xmit()
321 if (tgt && (test_bit(BNX2FC_FLAG_SESSION_READY, &tgt->flags))) { in bnx2fc_xmit()
326 rc = bnx2fc_xmit_l2_frame(tgt, fp); in bnx2fc_xmit()
667 bnx2fc_process_cq_compl(work->tgt, work->wqe, in bnx2fc_percpu_io_thread()
2653 bnx2fc_process_cq_compl(work->tgt, work->wqe, work->rq_data, in bnx2fc_cpu_offline()