Lines Matching defs:iocp
628 MPT_ADAPTER *iocp = NULL;
639 * pointer (iocp)
642 if (((iocnum = mpt_verify_adapter(iocnumX, &iocp)) < 0) ||
643 (iocp == NULL))
646 if (!iocp->active) {
676 if ((ret = mptctl_syscall_down(iocp, nonblock)) != 0)
692 mutex_unlock(&iocp->ioctl_cmds.mutex);
711 MPT_ADAPTER *iocp;
720 if (mpt_verify_adapter(krinfo.hdr.iocnum, &iocp) < 0) {
726 dctlprintk(iocp, printk(MYIOC_s_DEBUG_FMT "mptctl_do_reset called.\n",
727 iocp->name));
729 if (mpt_HardResetHandler(iocp, CAN_SLEEP) != 0) {
731 iocp->name, __FILE__, __LINE__);
790 MPT_ADAPTER *iocp;
810 if (mpt_verify_adapter(ioc, &iocp) < 0) {
818 if ((mf = mpt_get_msg_frame(mptctl_id, iocp)) == NULL)
822 dctlprintk(iocp, printk(MYIOC_s_DEBUG_FMT
823 "mptctl_do_fwdl called. mptctl_id = %xh.\n", iocp->name, mptctl_id));
824 dctlprintk(iocp, printk(MYIOC_s_DEBUG_FMT "DbG: kfwdl.bufp = %p\n",
825 iocp->name, ufwbuf));
826 dctlprintk(iocp, printk(MYIOC_s_DEBUG_FMT "DbG: kfwdl.fwlen = %d\n",
827 iocp->name, (int)fwlen));
828 dctlprintk(iocp, printk(MYIOC_s_DEBUG_FMT "DbG: kfwdl.ioc = %04xh\n",
829 iocp->name, ioc));
843 if (iocp->facts.MsgVersion >= MPI_VERSION_01_05)
878 &numfrags, &buflist, &sgl_dma, iocp)) == NULL)
892 maxfrags = (iocp->req_sz - sizeof(MPIHeader_t) -
894 / iocp->SGE_size;
900 dctlprintk(iocp, printk(MYIOC_s_DEBUG_FMT "DbG: sgl buffer = %p, sgfrags = %d\n",
901 iocp->name, sgl, numfrags));
922 iocp->add_sge(sgOut, sgIn->FlagsLength, sgIn->Address);
927 iocp->name, __FILE__, __LINE__, n, ufwbuf);
934 sgOut += iocp->SGE_size;
937 DBG_DUMP_FW_DOWNLOAD(iocp, (u32 *)mf, numfrags);
943 SET_MGMT_MSG_CONTEXT(iocp->ioctl_cmds.msg_context, dlmsg->MsgContext);
944 INITIALIZE_MGMT_STATUS(iocp->ioctl_cmds.status)
945 mpt_put_msg_frame(mptctl_id, iocp, mf);
949 timeleft = wait_for_completion_timeout(&iocp->ioctl_cmds.done, HZ*60);
950 if (!(iocp->ioctl_cmds.status & MPT_MGMT_STATUS_COMMAND_GOOD)) {
952 printk(MYIOC_s_WARN_FMT "%s: failed\n", iocp->name, __func__);
953 if (iocp->ioctl_cmds.status & MPT_MGMT_STATUS_DID_IOCRESET) {
954 mpt_free_msg_frame(iocp, mf);
960 iocp->name, mpt_GetIocState(iocp, 0));
961 mptctl_timeout_expired(iocp, mf);
967 if (!(iocp->ioctl_cmds.status & MPT_MGMT_STATUS_RF_VALID)) {
968 printk(MYIOC_s_WARN_FMT "%s: failed\n", iocp->name, __func__);
969 mpt_free_msg_frame(iocp, mf);
975 kfree_sgl(sgl, sgl_dma, buflist, iocp);
977 ReplyMsg = (pFWDownloadReply_t)iocp->ioctl_cmds.reply;
980 printk(MYIOC_s_INFO_FMT "F/W update successfull!\n", iocp->name);
984 iocp->name);
986 iocp->name);
989 printk(MYIOC_s_WARN_FMT "IOC_BUSY!\n", iocp->name);
990 printk(MYIOC_s_WARN_FMT "(try again later?)\n", iocp->name);
994 iocp->name, iocstat);
995 printk(MYIOC_s_WARN_FMT "(bad VooDoo)\n", iocp->name);
1002 CLEAR_MGMT_STATUS(iocp->ioctl_cmds.status);
1003 SET_MGMT_MSG_CONTEXT(iocp->ioctl_cmds.msg_context, 0);
1004 kfree_sgl(sgl, sgl_dma, buflist, iocp);
2838 MPT_ADAPTER *iocp = NULL;
2849 if (((iocnum = mpt_verify_adapter(iocnumX, &iocp)) < 0) ||
2850 (iocp == NULL)) {
2856 if ((ret = mptctl_syscall_down(iocp, nonblock)) != 0)
2859 dctlprintk(iocp, printk(MYIOC_s_DEBUG_FMT "compat_mptfwxfer_ioctl() called\n",
2860 iocp->name));
2867 mutex_unlock(&iocp->ioctl_cmds.mutex);
2879 MPT_ADAPTER *iocp = NULL;
2889 if (((iocnum = mpt_verify_adapter(iocnumX, &iocp)) < 0) ||
2890 (iocp == NULL)) {
2896 if ((ret = mptctl_syscall_down(iocp, nonblock)) != 0)
2899 dctlprintk(iocp, printk(MYIOC_s_DEBUG_FMT "compat_mpt_command() called\n",
2900 iocp->name));
2921 mutex_unlock(&iocp->ioctl_cmds.mutex);