Lines Matching refs:mf
286 mptctl_taskmgmt_reply(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf, MPT_FRAME_HDR *mr) in mptctl_taskmgmt_reply() argument
288 if (!mf) in mptctl_taskmgmt_reply()
293 ioc->name, mf, mr)); in mptctl_taskmgmt_reply()
318 MPT_FRAME_HDR *mf; in mptctl_do_taskmgmt() local
336 mf = mpt_get_msg_frame(mptctl_taskmgmt_id, ioc); in mptctl_do_taskmgmt()
337 if (mf == NULL) { in mptctl_do_taskmgmt()
347 ioc->name, mf)); in mptctl_do_taskmgmt()
349 pScsiTm = (SCSITaskMgmt_t *) mf; in mptctl_do_taskmgmt()
389 mpt_put_msg_frame_hi_pri(mptctl_taskmgmt_id, ioc, mf); in mptctl_do_taskmgmt()
398 ioc, mf, retval)); in mptctl_do_taskmgmt()
399 mpt_free_msg_frame(ioc, mf); in mptctl_do_taskmgmt()
411 mpt_free_msg_frame(ioc, mf); in mptctl_do_taskmgmt()
463 mptctl_timeout_expired(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf) in mptctl_timeout_expired() argument
467 SCSIIORequest_t *scsi_req = (SCSIIORequest_t *) mf; in mptctl_timeout_expired()
468 u8 function = mf->u.hdr.Function; in mptctl_timeout_expired()
480 mpt_free_msg_frame(ioc, mf); in mptctl_timeout_expired()
512 mpt_free_msg_frame(ioc, mf); in mptctl_timeout_expired()
790 MPT_FRAME_HDR *mf; in mptctl_do_fw_download() local
819 if ((mf = mpt_get_msg_frame(mptctl_id, iocp)) == NULL) in mptctl_do_fw_download()
832 dlmsg = (FWDownload_t*) mf; in mptctl_do_fw_download()
938 DBG_DUMP_FW_DOWNLOAD(iocp, (u32 *)mf, numfrags); in mptctl_do_fw_download()
946 mpt_put_msg_frame(mptctl_id, iocp, mf); in mptctl_do_fw_download()
955 mpt_free_msg_frame(iocp, mf); in mptctl_do_fw_download()
962 mptctl_timeout_expired(iocp, mf); in mptctl_do_fw_download()
970 mpt_free_msg_frame(iocp, mf); in mptctl_do_fw_download()
1827 MPT_FRAME_HDR *mf = NULL; in mptctl_do_mpt_command() local
1892 if ((mf = mpt_get_msg_frame(mptctl_id, ioc)) == NULL) in mptctl_do_mpt_command()
1895 hdr = (MPIHeader_t *) mf; in mptctl_do_mpt_command()
1897 req_idx = le16_to_cpu(mf->u.frame.hwhdr.msgctxu.fld.req_idx); in mptctl_do_mpt_command()
1903 if (copy_from_user(mf, mfPtr, karg.dataSgeOffset * 4)) { in mptctl_do_mpt_command()
1918 ioc->name, hdr->Function, mf)); in mptctl_do_mpt_command()
1929 config_frame = (Config_t *)mf; in mptctl_do_mpt_command()
1951 SCSIIORequest_t *pScsiReq = (SCSIIORequest_t *) mf; in mptctl_do_mpt_command()
2056 SCSIIORequest_t *pScsiReq = (SCSIIORequest_t *) mf; in mptctl_do_mpt_command()
2109 pScsiTm = (SCSITaskMgmt_t *)mf; in mptctl_do_mpt_command()
2121 IOCInit_t *pInit = (IOCInit_t *) mf; in mptctl_do_mpt_command()
2185 psge = (char *) (((int *) mf) + karg.dataSgeOffset); in mptctl_do_mpt_command()
2271 DBG_DUMP_TM_REQUEST_FRAME(ioc, (u32 *)mf); in mptctl_do_mpt_command()
2275 mpt_put_msg_frame_hi_pri(mptctl_id, ioc, mf); in mptctl_do_mpt_command()
2278 sizeof(SCSITaskMgmt_t), (u32*)mf, CAN_SLEEP); in mptctl_do_mpt_command()
2282 ioc->name, ioc, mf)); in mptctl_do_mpt_command()
2291 mpt_put_msg_frame(mptctl_id, ioc, mf); in mptctl_do_mpt_command()
2314 mptctl_timeout_expired(ioc, mf); in mptctl_do_mpt_command()
2315 mf = NULL; in mptctl_do_mpt_command()
2325 mf = NULL; in mptctl_do_mpt_command()
2403 if (mf) in mptctl_do_mpt_command()
2404 mpt_free_msg_frame(ioc, mf); in mptctl_do_mpt_command()
2434 MPT_FRAME_HDR *mf = NULL; in mptctl_hp_hostinfo() local
2577 if ((mf = mpt_get_msg_frame(mptctl_id, ioc)) == NULL) { in mptctl_hp_hostinfo()
2583 IstwiRWRequest = (ToolboxIstwiReadWriteRequest_t *)mf; in mptctl_hp_hostinfo()
2607 mpt_put_msg_frame(mptctl_id, ioc, mf); in mptctl_hp_hostinfo()
2616 mpt_free_msg_frame(ioc, mf); in mptctl_hp_hostinfo()
2623 mptctl_timeout_expired(ioc, mf); in mptctl_hp_hostinfo()