dtmprintk((MYIOC_s_INFO_FMT "IssueTaskMgmt: ctx2abort (0x%08x) type=%d\n", hd->ioc->name, ctx2abort, type)); 
dtmprintk((MYIOC_s_INFO_FMT "IssueTaskMgmt: ctx2abort (0x%08x) type=%d\n", hd->ioc->name, ctx2abort, type)); 
mptscsih_IssueTaskMgmt(MPT_SCSI_HOST *hd, u8 type, u8 channel, u8 target, u8 lun, int ctx2abort, ulong timeout){	MPT_FRAME_HDR	*mf;	SCSITaskMgmt_t	*pScsiTm;	int		 ii;	int		 retval;	/* Return Fail to calling function if no message frames available.	 */	if ((mf = mpt_get_msg_frame(hd->ioc->TaskCtx, hd->ioc)) == NULL) {		dfailprintk((MYIOC_s_ERR_FMT "IssueTaskMgmt, no msg frames!!\n",				hd->ioc->name));		//return FAILED;		return -999;	}	dtmprintk((MYIOC_s_INFO_FMT "IssueTaskMgmt request @ %p\n",			hd->ioc->name, mf));	/* Format the Request	 */	pScsiTm = (SCSITaskMgmt_t *) mf;	pScsiTm->TargetID = target;	pScsiTm->Bus = channel;	pScsiTm->ChainOffset = 0;	pScsiTm->Function = MPI_FUNCTION_SCSI_TASK_MGMT;	pScsiTm->Reserved = 0;	pScsiTm->TaskType = type;	pScsiTm->Reserved1 = 0;	pScsiTm->MsgFlags = (type == MPI_SCSITASKMGMT_TASKTYPE_RESET_BUS)                    ? MPI_SCSITASKMGMT_MSGFLAGS_LIPRESET_RESET_OPTION : 0;	for (ii= 0; ii < 8; ii++) {		pScsiTm->LUN[ii] = 0;	}	pScsiTm->LUN[1] = lun;	for (ii=0; ii < 7; ii++)		pScsiTm->Reserved2[ii] = 0;	pScsiTm->TaskMsgContext = ctx2abort;	dtmprintk((MYIOC_s_INFO_FMT		"IssueTaskMgmt: ctx2abort (0x%08x) type=%d\n",		hd->ioc->name, ctx2abort, type));	DBG_DUMP_TM_REQUEST_FRAME((u32 *)pScsiTm);	if ((retval = mpt_send_handshake_request(hd->ioc->TaskCtx, hd->ioc,		sizeof(SCSITaskMgmt_t), (u32*)pScsiTm,		CAN_SLEEP)) != 0) {		dfailprintk((MYIOC_s_ERR_FMT "_send_handshake FAILED!"			" (hd %p, ioc %p, mf %p) \n", hd->ioc->name, hd,			hd->ioc, mf));		mpt_free_msg_frame(hd->ioc, mf);		return retval;	}	if(mptscsih_tm_wait_for_completion(hd, timeout) == FAILED) {		dfailprintk((MYIOC_s_ERR_FMT "_wait_for_completion FAILED!"			" (hd %p, ioc %p, mf %p) \n", hd->ioc->name, hd,			hd->ioc, mf));		mpt_free_msg_frame(hd->ioc, mf);		dtmprintk((MYIOC_s_INFO_FMT "Calling HardReset! \n",			 hd->ioc->name));		retval = mpt_HardResetHandler(hd->ioc, CAN_SLEEP);	}	return retval;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c6678e0cfb41b029c3600c54b5bb65954de1230a/mptscsih.c/buggy/drivers/message/fusion/mptscsih.c