Lines Matching refs:mpi_reply
792 _base_sas_ioc_info(struct MPT3SAS_ADAPTER *ioc, MPI2DefaultReply_t *mpi_reply, in _base_sas_ioc_info() argument
795 u16 ioc_status = le16_to_cpu(mpi_reply->IOCStatus) & in _base_sas_ioc_info()
1015 Mpi2EventNotificationReply_t *mpi_reply) in _base_display_event_data() argument
1023 event = le16_to_cpu(mpi_reply->Event); in _base_display_event_data()
1048 (Mpi2EventDataSasDiscovery_t *)mpi_reply->EventData; in _base_display_event_data()
1104 (Mpi26EventDataPCIeEnumeration_t *)mpi_reply->EventData; in _base_display_event_data()
1189 MPI2DefaultReply_t *mpi_reply; in _base_display_reply_info() local
1193 mpi_reply = mpt3sas_base_get_reply_virt_addr(ioc, reply); in _base_display_reply_info()
1194 if (unlikely(!mpi_reply)) { in _base_display_reply_info()
1199 ioc_status = le16_to_cpu(mpi_reply->IOCStatus); in _base_display_reply_info()
1203 _base_sas_ioc_info(ioc , mpi_reply, in _base_display_reply_info()
1208 loginfo = le32_to_cpu(mpi_reply->IOCLogInfo); in _base_display_reply_info()
1233 MPI2DefaultReply_t *mpi_reply; in mpt3sas_base_done() local
1235 mpi_reply = mpt3sas_base_get_reply_virt_addr(ioc, reply); in mpt3sas_base_done()
1236 if (mpi_reply && mpi_reply->Function == MPI2_FUNCTION_EVENT_ACK) in mpt3sas_base_done()
1243 if (mpi_reply) { in mpt3sas_base_done()
1245 memcpy(ioc->base_cmds.reply, mpi_reply, mpi_reply->MsgLength*4); in mpt3sas_base_done()
1266 Mpi2EventNotificationReply_t *mpi_reply; in _base_async_event() local
1271 mpi_reply = mpt3sas_base_get_reply_virt_addr(ioc, reply); in _base_async_event()
1272 if (!mpi_reply) in _base_async_event()
1274 if (mpi_reply->Function != MPI2_FUNCTION_EVENT_NOTIFICATION) in _base_async_event()
1277 _base_display_event_data(ioc, mpi_reply); in _base_async_event()
1279 if (!(mpi_reply->AckRequired & MPI2_EVENT_NOTIFICATION_ACK_REQUIRED)) in _base_async_event()
1288 delayed_event_ack->Event = mpi_reply->Event; in _base_async_event()
1289 delayed_event_ack->EventContext = mpi_reply->EventContext; in _base_async_event()
1294 le16_to_cpu(mpi_reply->Event))); in _base_async_event()
1301 ack_request->Event = mpi_reply->Event; in _base_async_event()
1302 ack_request->EventContext = mpi_reply->EventContext; in _base_async_event()
4247 Mpi2FWUploadReply_t mpi_reply; in _base_display_fwpkg_version() local
4298 memset(&mpi_reply, 0, sizeof(Mpi2FWUploadReply_t)); in _base_display_fwpkg_version()
4300 memcpy(&mpi_reply, ioc->base_cmds.reply, in _base_display_fwpkg_version()
4302 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _base_display_fwpkg_version()
4314 _debug_dump_mf(&mpi_reply, in _base_display_fwpkg_version()
4455 Mpi2ConfigReply_t mpi_reply; in mpt3sas_base_update_missing_delay() local
4471 if ((mpt3sas_config_get_sas_iounit_pg1(ioc, &mpi_reply, in mpt3sas_base_update_missing_delay()
4477 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in mpt3sas_base_update_missing_delay()
4505 if (!mpt3sas_config_set_sas_iounit_pg1(ioc, &mpi_reply, sas_iounit_pg1, in mpt3sas_base_update_missing_delay()
4537 Mpi2ConfigReply_t mpi_reply; in _base_update_ioc_page1_inlinewith_perf_mode() local
4539 mpt3sas_config_get_ioc_pg1(ioc, &mpi_reply, &ioc->ioc_pg1_copy); in _base_update_ioc_page1_inlinewith_perf_mode()
4561 mpt3sas_config_set_ioc_pg1(ioc, &mpi_reply, &ioc_pg1); in _base_update_ioc_page1_inlinewith_perf_mode()
4574 mpt3sas_config_set_ioc_pg1(ioc, &mpi_reply, &ioc_pg1); in _base_update_ioc_page1_inlinewith_perf_mode()
4586 mpt3sas_config_set_ioc_pg1(ioc, &mpi_reply, &ioc_pg1); in _base_update_ioc_page1_inlinewith_perf_mode()
4598 Mpi2ConfigReply_t mpi_reply; in _base_static_config_pages() local
4602 mpt3sas_config_get_manufacturing_pg0(ioc, &mpi_reply, &ioc->manu_pg0); in _base_static_config_pages()
4604 mpt3sas_config_get_manufacturing_pg10(ioc, &mpi_reply, in _base_static_config_pages()
4611 mpt3sas_config_get_manufacturing_pg11(ioc, &mpi_reply, &ioc->manu_pg11); in _base_static_config_pages()
4617 mpt3sas_config_set_manufacturing_pg11(ioc, &mpi_reply, in _base_static_config_pages()
4633 mpt3sas_config_get_bios_pg2(ioc, &mpi_reply, &ioc->bios_pg2); in _base_static_config_pages()
4634 mpt3sas_config_get_bios_pg3(ioc, &mpi_reply, &ioc->bios_pg3); in _base_static_config_pages()
4635 mpt3sas_config_get_ioc_pg8(ioc, &mpi_reply, &ioc->ioc_pg8); in _base_static_config_pages()
4636 mpt3sas_config_get_iounit_pg0(ioc, &mpi_reply, &ioc->iounit_pg0); in _base_static_config_pages()
4637 mpt3sas_config_get_iounit_pg1(ioc, &mpi_reply, &ioc->iounit_pg1); in _base_static_config_pages()
4638 mpt3sas_config_get_iounit_pg8(ioc, &mpi_reply, &ioc->iounit_pg8); in _base_static_config_pages()
4654 mpt3sas_config_set_iounit_pg1(ioc, &mpi_reply, &ioc->iounit_pg1); in _base_static_config_pages()
5794 Mpi2SasIoUnitControlReply_t *mpi_reply, in mpt3sas_base_sas_iounit_control() argument
5847 memcpy(mpi_reply, ioc->base_cmds.reply, in mpt3sas_base_sas_iounit_control()
5850 memset(mpi_reply, 0, sizeof(Mpi2SasIoUnitControlReply_t)); in mpt3sas_base_sas_iounit_control()
5877 Mpi2SepReply_t *mpi_reply, Mpi2SepRequest_t *mpi_request) in mpt3sas_base_scsi_enclosure_processor() argument
5923 memcpy(mpi_reply, ioc->base_cmds.reply, in mpt3sas_base_scsi_enclosure_processor()
5926 memset(mpi_reply, 0, sizeof(Mpi2SepReply_t)); in mpt3sas_base_scsi_enclosure_processor()
5951 Mpi2PortFactsReply_t mpi_reply; in _base_get_port_facts() local
5963 (u32 *)&mpi_request, mpi_reply_sz, (u16 *)&mpi_reply, 5); in _base_get_port_facts()
5972 pfacts->PortNumber = mpi_reply.PortNumber; in _base_get_port_facts()
5973 pfacts->VP_ID = mpi_reply.VP_ID; in _base_get_port_facts()
5974 pfacts->VF_ID = mpi_reply.VF_ID; in _base_get_port_facts()
5976 le16_to_cpu(mpi_reply.MaxPostedCmdBuffers); in _base_get_port_facts()
6046 Mpi2IOCFactsReply_t mpi_reply; in _base_get_ioc_facts() local
6064 (u32 *)&mpi_request, mpi_reply_sz, (u16 *)&mpi_reply, 5); in _base_get_ioc_facts()
6073 facts->MsgVersion = le16_to_cpu(mpi_reply.MsgVersion); in _base_get_ioc_facts()
6074 facts->HeaderVersion = le16_to_cpu(mpi_reply.HeaderVersion); in _base_get_ioc_facts()
6075 facts->VP_ID = mpi_reply.VP_ID; in _base_get_ioc_facts()
6076 facts->VF_ID = mpi_reply.VF_ID; in _base_get_ioc_facts()
6077 facts->IOCExceptions = le16_to_cpu(mpi_reply.IOCExceptions); in _base_get_ioc_facts()
6078 facts->MaxChainDepth = mpi_reply.MaxChainDepth; in _base_get_ioc_facts()
6079 facts->WhoInit = mpi_reply.WhoInit; in _base_get_ioc_facts()
6080 facts->NumberOfPorts = mpi_reply.NumberOfPorts; in _base_get_ioc_facts()
6081 facts->MaxMSIxVectors = mpi_reply.MaxMSIxVectors; in _base_get_ioc_facts()
6085 facts->RequestCredit = le16_to_cpu(mpi_reply.RequestCredit); in _base_get_ioc_facts()
6087 le16_to_cpu(mpi_reply.MaxReplyDescriptorPostQueueDepth); in _base_get_ioc_facts()
6088 facts->ProductID = le16_to_cpu(mpi_reply.ProductID); in _base_get_ioc_facts()
6089 facts->IOCCapabilities = le32_to_cpu(mpi_reply.IOCCapabilities); in _base_get_ioc_facts()
6098 facts->FWVersion.Word = le32_to_cpu(mpi_reply.FWVersion.Word); in _base_get_ioc_facts()
6100 le16_to_cpu(mpi_reply.IOCRequestFrameSize); in _base_get_ioc_facts()
6103 le16_to_cpu(mpi_reply.IOCMaxChainSegmentSize); in _base_get_ioc_facts()
6105 facts->MaxInitiators = le16_to_cpu(mpi_reply.MaxInitiators); in _base_get_ioc_facts()
6106 facts->MaxTargets = le16_to_cpu(mpi_reply.MaxTargets); in _base_get_ioc_facts()
6108 facts->MaxSasExpanders = le16_to_cpu(mpi_reply.MaxSasExpanders); in _base_get_ioc_facts()
6109 facts->MaxEnclosures = le16_to_cpu(mpi_reply.MaxEnclosures); in _base_get_ioc_facts()
6110 facts->ProtocolFlags = le16_to_cpu(mpi_reply.ProtocolFlags); in _base_get_ioc_facts()
6112 le16_to_cpu(mpi_reply.HighPriorityCredit); in _base_get_ioc_facts()
6113 facts->ReplyFrameSize = mpi_reply.ReplyFrameSize; in _base_get_ioc_facts()
6114 facts->MaxDevHandle = le16_to_cpu(mpi_reply.MaxDevHandle); in _base_get_ioc_facts()
6115 facts->CurrentHostPageSize = mpi_reply.CurrentHostPageSize; in _base_get_ioc_facts()
6149 Mpi2IOCInitReply_t mpi_reply; in _base_send_ioc_init() local
6218 sizeof(Mpi2IOCInitReply_t), (u16 *)&mpi_reply, 10); in _base_send_ioc_init()
6225 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & MPI2_IOCSTATUS_MASK; in _base_send_ioc_init()
6227 mpi_reply.IOCLogInfo) { in _base_send_ioc_init()
6249 MPI2DefaultReply_t *mpi_reply; in mpt3sas_port_enable_done() local
6255 mpi_reply = mpt3sas_base_get_reply_virt_addr(ioc, reply); in mpt3sas_port_enable_done()
6256 if (!mpi_reply) in mpt3sas_port_enable_done()
6259 if (mpi_reply->Function != MPI2_FUNCTION_PORT_ENABLE) in mpt3sas_port_enable_done()
6265 memcpy(ioc->port_enable_cmds.reply, mpi_reply, mpi_reply->MsgLength*4); in mpt3sas_port_enable_done()
6266 ioc_status = le16_to_cpu(mpi_reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in mpt3sas_port_enable_done()
6294 Mpi2PortEnableReply_t *mpi_reply; in _base_send_port_enable() local
6332 mpi_reply = ioc->port_enable_cmds.reply; in _base_send_port_enable()
6333 ioc_status = le16_to_cpu(mpi_reply->IOCStatus) & MPI2_IOCSTATUS_MASK; in _base_send_port_enable()