Lines Matching refs:io_req

626 	struct bnx2fc_cmd *io_req = NULL;
709 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid];
710 if (!io_req)
713 if (io_req->cmd_type != BNX2FC_SCSI_CMD) {
719 &io_req->req_flags)) {
720 BNX2FC_IO_DBG(io_req, "unsol_err: cleanup in "
742 if (test_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags)) {
743 printk(KERN_ERR PFX "err_warn: io_req (0x%x) already "
759 memset(&io_req->err_entry, 0,
761 memcpy(&io_req->err_entry, err_entry,
764 &io_req->req_flags)) {
766 rc = bnx2fc_send_rec(io_req);
780 set_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags);
785 if (cancel_delayed_work(&io_req->timeout_work))
786 kref_put(&io_req->refcount, bnx2fc_cmd_release);
788 rc = bnx2fc_initiate_abts(io_req);
792 io_req->xid);
793 bnx2fc_initiate_cleanup(io_req);
838 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid];
839 if (!io_req)
842 if (io_req->cmd_type != BNX2FC_SCSI_CMD) {
847 memset(&io_req->err_entry, 0,
849 memcpy(&io_req->err_entry, err_entry,
875 struct bnx2fc_cmd *io_req;
898 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid];
900 if (io_req == NULL) {
901 printk(KERN_ERR PFX "ERROR? cq_compl - io_req is NULL\n");
907 cmd_type = io_req->cmd_type;
917 bnx2fc_process_scsi_cmd_compl(io_req, task, num_rq);
923 bnx2fc_process_abts_compl(io_req, task, num_rq);
926 bnx2fc_process_cleanup_compl(io_req, task, num_rq);
933 BNX2FC_IO_DBG(io_req, "Processing TM complete\n");
934 bnx2fc_process_tm_compl(io_req, task, num_rq);
943 BNX2FC_IO_DBG(io_req, "cq_compl- ABTS sent out by fw\n");
944 kref_put(&io_req->refcount, bnx2fc_cmd_release);
949 bnx2fc_process_els_compl(io_req, task, num_rq);
951 bnx2fc_process_abts_compl(io_req, task, num_rq);
954 bnx2fc_process_cleanup_compl(io_req, task, num_rq);
961 BNX2FC_IO_DBG(io_req, "cq_compl- cleanup resp rcvd\n");
962 kref_put(&io_req->refcount, bnx2fc_cmd_release);
966 BNX2FC_IO_DBG(io_req, "cq_compl(0x%x) - seq cleanup resp\n",
967 io_req->xid);
968 bnx2fc_process_seq_cleanup_compl(io_req, task, rx_state);
969 kref_put(&io_req->refcount, bnx2fc_cmd_release);
1557 void bnx2fc_init_cleanup_task(struct bnx2fc_cmd *io_req,
1562 struct bnx2fc_rport *tgt = io_req->tgt;
1595 void bnx2fc_init_mp_task(struct bnx2fc_cmd *io_req,
1598 struct bnx2fc_mp_req *mp_req = &(io_req->mp_req);
1599 struct bnx2fc_rport *tgt = io_req->tgt;
1609 if ((io_req->cmd_type == BNX2FC_TASK_MGMT_CMD) ||
1610 (io_req->cmd_type == BNX2FC_ELS)) {
1612 } else if (io_req->cmd_type == BNX2FC_ABTS) {
1618 /* Setup the task from io_req for easy reference */
1619 io_req->task = task;
1621 BNX2FC_IO_DBG(io_req, "Init MP task for cmd_type = %d task_type = %d\n",
1622 io_req->cmd_type, task_type);
1654 task->rxwr_txrd.const_ctx.data_2_trns = io_req->data_xfer_len;
1666 fc_hdr->fh_ox_id = cpu_to_be16(io_req->xid);
1670 fc_hdr->fh_rx_id = cpu_to_be16(io_req->xid);
1691 void bnx2fc_init_task(struct bnx2fc_cmd *io_req,
1695 struct scsi_cmnd *sc_cmd = io_req->sc_cmd;
1696 struct io_bdt *bd_tbl = io_req->bd_tbl;
1697 struct bnx2fc_rport *tgt = io_req->tgt;
1709 /* Setup the task from io_req for easy reference */
1710 io_req->task = task;
1754 io_req->rec_retry = 0;
1755 io_req->rec_retry = 0;
1772 bnx2fc_build_fcp_cmnd(io_req, (struct fcp_cmnd *)&tmp_fcp_cmnd);
1783 task->rxwr_txrd.const_ctx.data_2_trns = io_req->data_xfer_len;