Lines Matching refs:reply

249 static int mptsas_do_passthru(mptsas_t *mpt, uint8_t *request, uint8_t *reply,
291 static void mptsas_check_scsi_io_error(mptsas_t *mpt, pMpi2SCSIIOReply_t reply,
294 pMpi2SCSIManagementReply_t reply, mptsas_cmd_t *cmd);
2734 * The size of the reply frame pool is:
2747 * allocate the reply frame pool
2756 * Store the reply frame memory address. This chip uses this
2764 * Clear the reply frame pool.
2788 * The reply free queue size is:
2804 * allocate the reply free queue
2813 * Store the reply free queue memory address. This chip uses this
2814 * address to read from the reply free queue. The second address
2821 * Clear the reply free queue memory.
2845 * The reply descriptor post queue size is:
2860 * allocate the reply post queue
2869 * Store the reply descriptor post queue memory address. This chip
2870 * uses this address to write to the reply descriptor post queue. The
2877 * Clear the reply post queue memory.
5088 * The reply is valid, process it according to its
5098 * Update the global reply index
5137 * This is a success reply so just complete the IO. First, do a sanity
5139 * would not come into this reply handler.
5196 pMPI2DefaultReply_t reply;
5214 * If reply frame is not in the proper range we should ignore this
5223 mptsas_log(mpt, CE_WARN, "?Received invalid reply frame "
5231 reply = (pMPI2DefaultReply_t)(mpt->m_reply_frame + (reply_addr -
5233 function = ddi_get8(mpt->m_acc_reply_frame_hdl, &reply->Function);
5245 * This could be a TM reply, which use the last allocated SMID,
5263 "reply in slot %d", SMID);
5281 * the reply frame (and cmd) differently.
5285 mptsas_check_scsi_io_error(mpt, (pMpi2SCSIIOReply_t)reply, cmd);
5289 mptsas_check_task_mgt(mpt, (pMpi2SCSIManagementReply_t)reply,
5332 * Return the reply frame to the free queue.
5349 * If SMID is 0, this implies that the reply is due to a
5355 &reply->IOCStatus);
5357 &(((pMpi2DiagBufferPostReply_t)reply)->BufferType));
5367 * Normal handling of diag post reply with SMID.
5376 "address reply in slot %d", SMID);
5390 * Return the reply frame to the free queue.
5427 mptsas_check_scsi_io_error(mptsas_t *mpt, pMpi2SCSIIOReply_t reply,
5441 scsi_status = ddi_get8(mpt->m_acc_reply_frame_hdl, &reply->SCSIStatus);
5442 ioc_status = ddi_get16(mpt->m_acc_reply_frame_hdl, &reply->IOCStatus);
5443 scsi_state = ddi_get8(mpt->m_acc_reply_frame_hdl, &reply->SCSIState);
5444 xferred = ddi_get32(mpt->m_acc_reply_frame_hdl, &reply->TransferCount);
5445 sensecount = ddi_get32(mpt->m_acc_reply_frame_hdl, &reply->SenseCount);
5447 &reply->ResponseInfo);
5458 &reply->IOCLogInfo);
5697 mptsas_check_task_mgt(mptsas_t *mpt, pMpi2SCSIManagementReply_t reply,
5706 task_type = ddi_get8(mpt->m_acc_reply_frame_hdl, &reply->TaskType);
5707 ioc_status = ddi_get16(mpt->m_acc_reply_frame_hdl, &reply->IOCStatus);
5708 log_info = ddi_get32(mpt->m_acc_reply_frame_hdl, &reply->IOCLogInfo);
5709 dev_handle = ddi_get16(mpt->m_acc_reply_frame_hdl, &reply->DevHandle);
5844 * The reply is valid, process it according to its
5845 * type. Also, set a flag for updating the reply index
5861 * Update the global reply index if at least one reply was
5909 * The reply is valid, process it according to its
5910 * type. Also, set a flag for updated the reply index
5922 mptsas_log(mpt, CE_WARN, "?Bad reply type %x", reply_type);
5927 * Clear the reply descriptor for re-use and increment
8099 * Return the reply frame to the free queue.
9209 * all commands via the scsi I/O reply frame. Make
10779 mptsas_do_passthru(mptsas_t *mpt, uint8_t *request, uint8_t *reply,
10826 task->DevHandle, (int)task->LUN[1], reply, reply_size,
10993 * cmd_rfm is zero means the command reply is a CONTEXT
10994 * reply and no PCI Write to post the free reply SMFA
10995 * because no reply message frame is used.
10996 * cmd_rfm is non-zero means the reply is a ADDRESS
10997 * reply and reply message frame is used.
11040 if (ddi_copyout((uint8_t *)reply_msg + i, reply + i, 1,
11045 "reply data");
11051 reply + reply_len + i, 1, mode)) {
11072 "copy out the reply data");
11081 * Put the reply frame back on the free queue, increment the free
11083 * if this reply is an ADDRESS reply.
11272 pMpi2DiagBufferPostReply_t reply;
11344 * cmd_rfm points to the reply message if a reply was given. Check the
11352 reply = (pMpi2DiagBufferPostReply_t)(mpt->m_reply_frame +
11357 * Get the reply message data
11360 &reply->IOCStatus);
11362 &reply->IOCLogInfo);
11364 &reply->TransferLength);
11388 * Put the reply frame back on the free queue, increment the free
11390 * if this reply is an ADDRESS reply.
11424 pMpi2DiagReleaseReply_t reply;
11499 * cmd_rfm points to the reply message if a reply was given. Check the
11507 reply = (pMpi2DiagReleaseReply_t)(mpt->m_reply_frame +
11512 * Get the reply message data
11515 &reply->IOCStatus);
11517 &reply->IOCLogInfo);
11548 * Put the reply frame back on the free queue, increment the free
11550 * if this reply is an ADDRESS reply.
12902 * Allocate request message frames, reply free queue, reply descriptor
12903 * post queue, and reply message frames using latest IOC facts.
12938 * Initialize reply post index. Reply free index is initialized after
12945 * reply frames.
12958 * Initialize the reply free index to one past the last frame on the
12965 * Initialize the reply post queue to 0xFFFFFFFF,0xFFFFFFFF's.