• Home
  • Raw
  • Download

Lines Matching refs:orig_io_req

30 	struct bnx2fc_cmd *orig_io_req;  in bnx2fc_rrq_compl()  local
36 orig_io_req = cb_arg->aborted_io_req; in bnx2fc_rrq_compl()
37 BUG_ON(!orig_io_req); in bnx2fc_rrq_compl()
39 orig_io_req->xid, rrq_req->xid); in bnx2fc_rrq_compl()
41 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_rrq_compl()
270 struct bnx2fc_cmd *orig_io_req; in bnx2fc_srr_compl() local
278 orig_io_req = cb_arg->aborted_io_req; in bnx2fc_srr_compl()
284 orig_io_req->xid); in bnx2fc_srr_compl()
291 if (test_bit(BNX2FC_FLAG_IO_COMPL, &orig_io_req->req_flags) || in bnx2fc_srr_compl()
292 test_bit(BNX2FC_FLAG_ISSUE_ABTS, &orig_io_req->req_flags)) { in bnx2fc_srr_compl()
294 orig_io_req->xid, orig_io_req->req_flags); in bnx2fc_srr_compl()
297 orig_io_req->srr_retry++; in bnx2fc_srr_compl()
298 if (orig_io_req->srr_retry <= SRR_RETRY_COUNT) { in bnx2fc_srr_compl()
299 struct bnx2fc_rport *tgt = orig_io_req->tgt; in bnx2fc_srr_compl()
301 rc = bnx2fc_send_srr(orig_io_req, in bnx2fc_srr_compl()
302 orig_io_req->srr_offset, in bnx2fc_srr_compl()
303 orig_io_req->srr_rctl); in bnx2fc_srr_compl()
309 rc = bnx2fc_initiate_abts(orig_io_req); in bnx2fc_srr_compl()
313 orig_io_req->xid); in bnx2fc_srr_compl()
314 bnx2fc_initiate_cleanup(orig_io_req); in bnx2fc_srr_compl()
318 if (test_bit(BNX2FC_FLAG_IO_COMPL, &orig_io_req->req_flags) || in bnx2fc_srr_compl()
319 test_bit(BNX2FC_FLAG_ISSUE_ABTS, &orig_io_req->req_flags)) { in bnx2fc_srr_compl()
321 orig_io_req->xid, orig_io_req->req_flags); in bnx2fc_srr_compl()
355 rc = bnx2fc_initiate_abts(orig_io_req); in bnx2fc_srr_compl()
359 orig_io_req->xid); in bnx2fc_srr_compl()
360 bnx2fc_initiate_cleanup(orig_io_req); in bnx2fc_srr_compl()
372 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_srr_compl()
377 struct bnx2fc_cmd *orig_io_req, *new_io_req; in bnx2fc_rec_compl() local
400 orig_io_req = cb_arg->aborted_io_req; in bnx2fc_rec_compl()
401 BNX2FC_IO_DBG(rec_req, "rec_compl: orig xid = 0x%x", orig_io_req->xid); in bnx2fc_rec_compl()
402 tgt = orig_io_req->tgt; in bnx2fc_rec_compl()
408 orig_io_req->xid); in bnx2fc_rec_compl()
416 orig_io_req->rec_retry++; in bnx2fc_rec_compl()
418 if (orig_io_req->rec_retry <= REC_RETRY_COUNT) { in bnx2fc_rec_compl()
420 rc = bnx2fc_send_rec(orig_io_req); in bnx2fc_rec_compl()
425 rc = bnx2fc_initiate_abts(orig_io_req); in bnx2fc_rec_compl()
429 orig_io_req->xid); in bnx2fc_rec_compl()
430 bnx2fc_initiate_cleanup(orig_io_req); in bnx2fc_rec_compl()
435 if (test_bit(BNX2FC_FLAG_IO_COMPL, &orig_io_req->req_flags)) { in bnx2fc_rec_compl()
438 orig_io_req->xid); in bnx2fc_rec_compl()
441 if (test_bit(BNX2FC_FLAG_ISSUE_ABTS, &orig_io_req->req_flags)) { in bnx2fc_rec_compl()
444 orig_io_req->xid); in bnx2fc_rec_compl()
484 new_io_req->sc_cmd = orig_io_req->sc_cmd; in bnx2fc_rec_compl()
487 &orig_io_req->req_flags); in bnx2fc_rec_compl()
488 bnx2fc_initiate_cleanup(orig_io_req); in bnx2fc_rec_compl()
497 rc = bnx2fc_initiate_abts(orig_io_req); in bnx2fc_rec_compl()
501 bnx2fc_initiate_cleanup(orig_io_req); in bnx2fc_rec_compl()
515 &orig_io_req->err_entry; in bnx2fc_rec_compl()
516 sc_cmd = orig_io_req->sc_cmd; in bnx2fc_rec_compl()
519 if (offset == orig_io_req->data_xfer_len) { in bnx2fc_rec_compl()
529 if (bnx2fc_initiate_seq_cleanup(orig_io_req, in bnx2fc_rec_compl()
537 orig_io_req->data_xfer_len) { in bnx2fc_rec_compl()
549 if (bnx2fc_initiate_seq_cleanup(orig_io_req, in bnx2fc_rec_compl()
555 rc = bnx2fc_initiate_abts(orig_io_req); in bnx2fc_rec_compl()
559 bnx2fc_initiate_cleanup(orig_io_req); in bnx2fc_rec_compl()
564 rc = bnx2fc_send_srr(orig_io_req, offset, r_ctl); in bnx2fc_rec_compl()
578 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_rec_compl()
582 int bnx2fc_send_rec(struct bnx2fc_cmd *orig_io_req) in bnx2fc_send_rec() argument
585 struct bnx2fc_rport *tgt = orig_io_req->tgt; in bnx2fc_send_rec()
592 BNX2FC_IO_DBG(orig_io_req, "Sending REC\n"); in bnx2fc_send_rec()
601 kref_get(&orig_io_req->refcount); in bnx2fc_send_rec()
603 cb_arg->aborted_io_req = orig_io_req; in bnx2fc_send_rec()
607 rec.rec_ox_id = htons(orig_io_req->xid); in bnx2fc_send_rec()
608 rec.rec_rx_id = htons(orig_io_req->task->rxwr_txrd.var_ctx.rx_id); in bnx2fc_send_rec()
614 BNX2FC_IO_DBG(orig_io_req, "REC failed - release\n"); in bnx2fc_send_rec()
616 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_send_rec()
624 int bnx2fc_send_srr(struct bnx2fc_cmd *orig_io_req, u32 offset, u8 r_ctl) in bnx2fc_send_srr() argument
627 struct bnx2fc_rport *tgt = orig_io_req->tgt; in bnx2fc_send_srr()
633 BNX2FC_IO_DBG(orig_io_req, "Sending SRR\n"); in bnx2fc_send_srr()
642 kref_get(&orig_io_req->refcount); in bnx2fc_send_srr()
644 cb_arg->aborted_io_req = orig_io_req; in bnx2fc_send_srr()
647 srr.srr_ox_id = htons(orig_io_req->xid); in bnx2fc_send_srr()
648 srr.srr_rx_id = htons(orig_io_req->task->rxwr_txrd.var_ctx.rx_id); in bnx2fc_send_srr()
651 orig_io_req->srr_offset = offset; in bnx2fc_send_srr()
652 orig_io_req->srr_rctl = r_ctl; in bnx2fc_send_srr()
658 BNX2FC_IO_DBG(orig_io_req, "SRR failed - release\n"); in bnx2fc_send_srr()
660 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_send_srr()
664 set_bit(BNX2FC_FLAG_SRR_SENT, &orig_io_req->req_flags); in bnx2fc_send_srr()