• Home
  • Raw
  • Download

Lines Matching refs:io_req

634 	struct bnx2fc_cmd *io_req = NULL;  in bnx2fc_process_unsol_compl()  local
717 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_unsol_compl()
718 if (!io_req) in bnx2fc_process_unsol_compl()
721 if (io_req->cmd_type != BNX2FC_SCSI_CMD) { in bnx2fc_process_unsol_compl()
727 &io_req->req_flags)) { in bnx2fc_process_unsol_compl()
728 BNX2FC_IO_DBG(io_req, "unsol_err: cleanup in " in bnx2fc_process_unsol_compl()
750 if (test_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags)) { in bnx2fc_process_unsol_compl()
767 memcpy(&io_req->err_entry, err_entry, in bnx2fc_process_unsol_compl()
770 &io_req->req_flags)) { in bnx2fc_process_unsol_compl()
772 rc = bnx2fc_send_rec(io_req); in bnx2fc_process_unsol_compl()
786 set_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags); in bnx2fc_process_unsol_compl()
791 if (cancel_delayed_work(&io_req->timeout_work)) in bnx2fc_process_unsol_compl()
792 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_unsol_compl()
794 rc = bnx2fc_initiate_abts(io_req); in bnx2fc_process_unsol_compl()
798 io_req->xid); in bnx2fc_process_unsol_compl()
799 bnx2fc_initiate_cleanup(io_req); in bnx2fc_process_unsol_compl()
844 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_unsol_compl()
845 if (!io_req) in bnx2fc_process_unsol_compl()
848 if (io_req->cmd_type != BNX2FC_SCSI_CMD) { in bnx2fc_process_unsol_compl()
853 memcpy(&io_req->err_entry, err_entry, in bnx2fc_process_unsol_compl()
879 struct bnx2fc_cmd *io_req; in bnx2fc_process_cq_compl() local
902 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_cq_compl()
904 if (io_req == NULL) { in bnx2fc_process_cq_compl()
911 cmd_type = io_req->cmd_type; in bnx2fc_process_cq_compl()
921 bnx2fc_process_scsi_cmd_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
927 bnx2fc_process_abts_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
930 bnx2fc_process_cleanup_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
937 BNX2FC_IO_DBG(io_req, "Processing TM complete\n"); in bnx2fc_process_cq_compl()
938 bnx2fc_process_tm_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
947 BNX2FC_IO_DBG(io_req, "cq_compl- ABTS sent out by fw\n"); in bnx2fc_process_cq_compl()
948 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
953 bnx2fc_process_els_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
955 bnx2fc_process_abts_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
958 bnx2fc_process_cleanup_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
965 BNX2FC_IO_DBG(io_req, "cq_compl- cleanup resp rcvd\n"); in bnx2fc_process_cq_compl()
966 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
970 BNX2FC_IO_DBG(io_req, "cq_compl(0x%x) - seq cleanup resp\n", in bnx2fc_process_cq_compl()
971 io_req->xid); in bnx2fc_process_cq_compl()
972 bnx2fc_process_seq_cleanup_compl(io_req, task, rx_state); in bnx2fc_process_cq_compl()
973 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
1549 void bnx2fc_init_cleanup_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_cleanup_task() argument
1554 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_cleanup_task()
1587 void bnx2fc_init_mp_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_mp_task() argument
1590 struct bnx2fc_mp_req *mp_req = &(io_req->mp_req); in bnx2fc_init_mp_task()
1591 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_mp_task()
1601 if ((io_req->cmd_type == BNX2FC_TASK_MGMT_CMD) || in bnx2fc_init_mp_task()
1602 (io_req->cmd_type == BNX2FC_ELS)) { in bnx2fc_init_mp_task()
1604 } else if (io_req->cmd_type == BNX2FC_ABTS) { in bnx2fc_init_mp_task()
1611 io_req->task = task; in bnx2fc_init_mp_task()
1613 BNX2FC_IO_DBG(io_req, "Init MP task for cmd_type = %d task_type = %d\n", in bnx2fc_init_mp_task()
1614 io_req->cmd_type, task_type); in bnx2fc_init_mp_task()
1646 task->rxwr_txrd.const_ctx.data_2_trns = io_req->data_xfer_len; in bnx2fc_init_mp_task()
1658 fc_hdr->fh_ox_id = cpu_to_be16(io_req->xid); in bnx2fc_init_mp_task()
1662 fc_hdr->fh_rx_id = cpu_to_be16(io_req->xid); in bnx2fc_init_mp_task()
1683 void bnx2fc_init_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_task() argument
1687 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in bnx2fc_init_task()
1688 struct io_bdt *bd_tbl = io_req->bd_tbl; in bnx2fc_init_task()
1689 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_task()
1702 io_req->task = task; in bnx2fc_init_task()
1746 io_req->rec_retry = 0; in bnx2fc_init_task()
1747 io_req->rec_retry = 0; in bnx2fc_init_task()
1764 bnx2fc_build_fcp_cmnd(io_req, (struct fcp_cmnd *)&tmp_fcp_cmnd); in bnx2fc_init_task()
1775 task->rxwr_txrd.const_ctx.data_2_trns = io_req->data_xfer_len; in bnx2fc_init_task()