Lines Matching refs:orig_io_req
29 struct bnx2fc_cmd *orig_io_req; in bnx2fc_rrq_compl() local
35 orig_io_req = cb_arg->aborted_io_req; in bnx2fc_rrq_compl()
36 BUG_ON(!orig_io_req); in bnx2fc_rrq_compl()
38 orig_io_req->xid, rrq_req->xid); in bnx2fc_rrq_compl()
40 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_rrq_compl()
262 struct bnx2fc_cmd *orig_io_req; in bnx2fc_srr_compl() local
270 orig_io_req = cb_arg->aborted_io_req; in bnx2fc_srr_compl()
276 orig_io_req->xid); in bnx2fc_srr_compl()
283 if (test_bit(BNX2FC_FLAG_IO_COMPL, &orig_io_req->req_flags) || in bnx2fc_srr_compl()
284 test_bit(BNX2FC_FLAG_ISSUE_ABTS, &orig_io_req->req_flags)) { in bnx2fc_srr_compl()
286 orig_io_req->xid, orig_io_req->req_flags); in bnx2fc_srr_compl()
289 orig_io_req->srr_retry++; in bnx2fc_srr_compl()
290 if (orig_io_req->srr_retry <= SRR_RETRY_COUNT) { in bnx2fc_srr_compl()
291 struct bnx2fc_rport *tgt = orig_io_req->tgt; in bnx2fc_srr_compl()
293 rc = bnx2fc_send_srr(orig_io_req, in bnx2fc_srr_compl()
294 orig_io_req->srr_offset, in bnx2fc_srr_compl()
295 orig_io_req->srr_rctl); in bnx2fc_srr_compl()
301 rc = bnx2fc_initiate_abts(orig_io_req); in bnx2fc_srr_compl()
305 orig_io_req->xid); in bnx2fc_srr_compl()
306 bnx2fc_initiate_cleanup(orig_io_req); in bnx2fc_srr_compl()
310 if (test_bit(BNX2FC_FLAG_IO_COMPL, &orig_io_req->req_flags) || in bnx2fc_srr_compl()
311 test_bit(BNX2FC_FLAG_ISSUE_ABTS, &orig_io_req->req_flags)) { in bnx2fc_srr_compl()
313 orig_io_req->xid, orig_io_req->req_flags); in bnx2fc_srr_compl()
347 rc = bnx2fc_initiate_abts(orig_io_req); in bnx2fc_srr_compl()
351 orig_io_req->xid); in bnx2fc_srr_compl()
352 bnx2fc_initiate_cleanup(orig_io_req); in bnx2fc_srr_compl()
364 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_srr_compl()
369 struct bnx2fc_cmd *orig_io_req, *new_io_req; in bnx2fc_rec_compl() local
392 orig_io_req = cb_arg->aborted_io_req; in bnx2fc_rec_compl()
393 BNX2FC_IO_DBG(rec_req, "rec_compl: orig xid = 0x%x", orig_io_req->xid); in bnx2fc_rec_compl()
394 tgt = orig_io_req->tgt; in bnx2fc_rec_compl()
400 orig_io_req->xid); in bnx2fc_rec_compl()
408 orig_io_req->rec_retry++; in bnx2fc_rec_compl()
410 if (orig_io_req->rec_retry <= REC_RETRY_COUNT) { in bnx2fc_rec_compl()
412 rc = bnx2fc_send_rec(orig_io_req); in bnx2fc_rec_compl()
417 rc = bnx2fc_initiate_abts(orig_io_req); in bnx2fc_rec_compl()
421 orig_io_req->xid); in bnx2fc_rec_compl()
422 bnx2fc_initiate_cleanup(orig_io_req); in bnx2fc_rec_compl()
427 if (test_bit(BNX2FC_FLAG_IO_COMPL, &orig_io_req->req_flags)) { in bnx2fc_rec_compl()
430 orig_io_req->xid); in bnx2fc_rec_compl()
433 if (test_bit(BNX2FC_FLAG_ISSUE_ABTS, &orig_io_req->req_flags)) { in bnx2fc_rec_compl()
436 orig_io_req->xid); in bnx2fc_rec_compl()
476 new_io_req->sc_cmd = orig_io_req->sc_cmd; in bnx2fc_rec_compl()
479 &orig_io_req->req_flags); in bnx2fc_rec_compl()
480 bnx2fc_initiate_cleanup(orig_io_req); in bnx2fc_rec_compl()
489 rc = bnx2fc_initiate_abts(orig_io_req); in bnx2fc_rec_compl()
493 bnx2fc_initiate_cleanup(orig_io_req); in bnx2fc_rec_compl()
507 &orig_io_req->err_entry; in bnx2fc_rec_compl()
508 sc_cmd = orig_io_req->sc_cmd; in bnx2fc_rec_compl()
511 if (offset == orig_io_req->data_xfer_len) { in bnx2fc_rec_compl()
521 if (bnx2fc_initiate_seq_cleanup(orig_io_req, in bnx2fc_rec_compl()
529 orig_io_req->data_xfer_len) { in bnx2fc_rec_compl()
541 if (bnx2fc_initiate_seq_cleanup(orig_io_req, in bnx2fc_rec_compl()
547 rc = bnx2fc_initiate_abts(orig_io_req); in bnx2fc_rec_compl()
551 bnx2fc_initiate_cleanup(orig_io_req); in bnx2fc_rec_compl()
556 rc = bnx2fc_send_srr(orig_io_req, offset, r_ctl); in bnx2fc_rec_compl()
570 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_rec_compl()
574 int bnx2fc_send_rec(struct bnx2fc_cmd *orig_io_req) in bnx2fc_send_rec() argument
577 struct bnx2fc_rport *tgt = orig_io_req->tgt; in bnx2fc_send_rec()
584 BNX2FC_IO_DBG(orig_io_req, "Sending REC\n"); in bnx2fc_send_rec()
593 kref_get(&orig_io_req->refcount); in bnx2fc_send_rec()
595 cb_arg->aborted_io_req = orig_io_req; in bnx2fc_send_rec()
599 rec.rec_ox_id = htons(orig_io_req->xid); in bnx2fc_send_rec()
600 rec.rec_rx_id = htons(orig_io_req->task->rxwr_txrd.var_ctx.rx_id); in bnx2fc_send_rec()
607 BNX2FC_IO_DBG(orig_io_req, "REC failed - release\n"); in bnx2fc_send_rec()
609 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_send_rec()
616 int bnx2fc_send_srr(struct bnx2fc_cmd *orig_io_req, u32 offset, u8 r_ctl) in bnx2fc_send_srr() argument
619 struct bnx2fc_rport *tgt = orig_io_req->tgt; in bnx2fc_send_srr()
625 BNX2FC_IO_DBG(orig_io_req, "Sending SRR\n"); in bnx2fc_send_srr()
634 kref_get(&orig_io_req->refcount); in bnx2fc_send_srr()
636 cb_arg->aborted_io_req = orig_io_req; in bnx2fc_send_srr()
639 srr.srr_ox_id = htons(orig_io_req->xid); in bnx2fc_send_srr()
640 srr.srr_rx_id = htons(orig_io_req->task->rxwr_txrd.var_ctx.rx_id); in bnx2fc_send_srr()
643 orig_io_req->srr_offset = offset; in bnx2fc_send_srr()
644 orig_io_req->srr_rctl = r_ctl; in bnx2fc_send_srr()
651 BNX2FC_IO_DBG(orig_io_req, "SRR failed - release\n"); in bnx2fc_send_srr()
653 kref_put(&orig_io_req->refcount, bnx2fc_cmd_release); in bnx2fc_send_srr()
657 set_bit(BNX2FC_FLAG_SRR_SENT, &orig_io_req->req_flags); in bnx2fc_send_srr()