Lines Matching refs:mpi_reply
417 Mpi2ConfigReply_t mpi_reply; in _scsih_get_sas_address() local
422 if ((mpt3sas_config_get_sas_device_pg0(ioc, &mpi_reply, &sas_device_pg0, in _scsih_get_sas_address()
429 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & MPI2_IOCSTATUS_MASK; in _scsih_get_sas_address()
1890 Mpi2ConfigReply_t mpi_reply; in _scsih_display_sata_capabilities() local
1896 if ((mpt3sas_config_get_sas_device_pg0(ioc, &mpi_reply, &sas_device_pg0, in _scsih_display_sata_capabilities()
1903 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_display_sata_capabilities()
1968 Mpi2ConfigReply_t mpi_reply; in scsih_get_resync() local
1990 if (mpt3sas_config_get_raid_volume_pg0(ioc, &mpi_reply, &vol_pg0, in scsih_get_resync()
2029 Mpi2ConfigReply_t mpi_reply; in scsih_get_state() local
2044 if (mpt3sas_config_get_raid_volume_pg0(ioc, &mpi_reply, &vol_pg0, in scsih_get_state()
2138 Mpi2ConfigReply_t mpi_reply; in _scsih_get_volume_capabilities() local
2161 if ((mpt3sas_config_get_raid_volume_pg0(ioc, &mpi_reply, vol_pg0, in _scsih_get_volume_capabilities()
2175 if (!(mpt3sas_config_get_phys_disk_pg0(ioc, &mpi_reply, in _scsih_get_volume_capabilities()
2178 if (!(mpt3sas_config_get_sas_device_pg0(ioc, &mpi_reply, in _scsih_get_volume_capabilities()
2575 MPI2DefaultReply_t *mpi_reply; in _scsih_tm_done() local
2582 mpi_reply = mpt3sas_base_get_reply_virt_addr(ioc, reply); in _scsih_tm_done()
2583 if (mpi_reply) { in _scsih_tm_done()
2584 memcpy(ioc->tm_cmds.reply, mpi_reply, mpi_reply->MsgLength*4); in _scsih_tm_done()
2672 Mpi2SCSITaskManagementReply_t *mpi_reply; in mpt3sas_scsih_issue_tm() local
2744 mpi_reply = ioc->tm_cmds.reply; in mpt3sas_scsih_issue_tm()
2747 le16_to_cpu(mpi_reply->IOCStatus), in mpt3sas_scsih_issue_tm()
2748 le32_to_cpu(mpi_reply->IOCLogInfo), in mpt3sas_scsih_issue_tm()
2749 le32_to_cpu(mpi_reply->TerminationCount))); in mpt3sas_scsih_issue_tm()
2751 _scsih_response_code(ioc, mpi_reply->ResponseCode); in mpt3sas_scsih_issue_tm()
2752 if (mpi_reply->IOCStatus) in mpt3sas_scsih_issue_tm()
3738 Mpi2SCSITaskManagementReply_t *mpi_reply = in _scsih_tm_tr_complete() local
3758 if (unlikely(!mpi_reply)) { in _scsih_tm_tr_complete()
3765 if (handle != le16_to_cpu(mpi_reply->DevHandle)) { in _scsih_tm_tr_complete()
3769 le16_to_cpu(mpi_reply->DevHandle), smid)); in _scsih_tm_tr_complete()
3776 handle, smid, le16_to_cpu(mpi_reply->IOCStatus), in _scsih_tm_tr_complete()
3777 le32_to_cpu(mpi_reply->IOCLogInfo), in _scsih_tm_tr_complete()
3778 le32_to_cpu(mpi_reply->TerminationCount))); in _scsih_tm_tr_complete()
3861 Mpi2SasIoUnitControlReply_t *mpi_reply = in _scsih_sas_control_complete() local
3864 if (likely(mpi_reply)) { in _scsih_sas_control_complete()
3867 le16_to_cpu(mpi_reply->DevHandle), smid, in _scsih_sas_control_complete()
3868 le16_to_cpu(mpi_reply->IOCStatus), in _scsih_sas_control_complete()
3869 le32_to_cpu(mpi_reply->IOCLogInfo))); in _scsih_sas_control_complete()
3870 if (le16_to_cpu(mpi_reply->IOCStatus) == in _scsih_sas_control_complete()
3872 clear_bit(le16_to_cpu(mpi_reply->DevHandle), in _scsih_sas_control_complete()
3948 Mpi2SCSITaskManagementReply_t *mpi_reply = in _scsih_tm_volume_tr_complete() local
3957 if (unlikely(!mpi_reply)) { in _scsih_tm_volume_tr_complete()
3965 if (handle != le16_to_cpu(mpi_reply->DevHandle)) { in _scsih_tm_volume_tr_complete()
3968 handle, le16_to_cpu(mpi_reply->DevHandle), in _scsih_tm_volume_tr_complete()
3975 handle, smid, le16_to_cpu(mpi_reply->IOCStatus), in _scsih_tm_volume_tr_complete()
3976 le32_to_cpu(mpi_reply->IOCLogInfo), in _scsih_tm_volume_tr_complete()
3977 le32_to_cpu(mpi_reply->TerminationCount))); in _scsih_tm_volume_tr_complete()
4824 Mpi2SCSIIOReply_t *mpi_reply, u16 smid) in _scsih_scsi_ioc_info() argument
4828 u16 ioc_status = le16_to_cpu(mpi_reply->IOCStatus) & in _scsih_scsi_ioc_info()
4830 u8 scsi_state = mpi_reply->SCSIState; in _scsih_scsi_ioc_info()
4831 u8 scsi_status = mpi_reply->SCSIStatus; in _scsih_scsi_ioc_info()
4835 u32 log_info = le32_to_cpu(mpi_reply->IOCLogInfo); in _scsih_scsi_ioc_info()
4999 le16_to_cpu(mpi_reply->DevHandle), in _scsih_scsi_ioc_info()
5004 le16_to_cpu(mpi_reply->TaskTag), in _scsih_scsi_ioc_info()
5005 le32_to_cpu(mpi_reply->TransferCount), scmd->result); in _scsih_scsi_ioc_info()
5014 le32_to_cpu(mpi_reply->SenseCount)); in _scsih_scsi_ioc_info()
5017 response_info = le32_to_cpu(mpi_reply->ResponseInfo); in _scsih_scsi_ioc_info()
5032 Mpi2SepReply_t mpi_reply; in _scsih_turn_on_pfa_led() local
5047 if ((mpt3sas_base_scsi_enclosure_processor(ioc, &mpi_reply, in _scsih_turn_on_pfa_led()
5055 if (mpi_reply.IOCStatus || mpi_reply.IOCLogInfo) { in _scsih_turn_on_pfa_led()
5058 le16_to_cpu(mpi_reply.IOCStatus), in _scsih_turn_on_pfa_led()
5059 le32_to_cpu(mpi_reply.IOCLogInfo))); in _scsih_turn_on_pfa_led()
5076 Mpi2SepReply_t mpi_reply; in _scsih_turn_off_pfa_led() local
5087 if ((mpt3sas_base_scsi_enclosure_processor(ioc, &mpi_reply, in _scsih_turn_off_pfa_led()
5094 if (mpi_reply.IOCStatus || mpi_reply.IOCLogInfo) { in _scsih_turn_off_pfa_led()
5097 le16_to_cpu(mpi_reply.IOCStatus), in _scsih_turn_off_pfa_led()
5098 le32_to_cpu(mpi_reply.IOCLogInfo))); in _scsih_turn_off_pfa_led()
5211 Mpi2SCSIIOReply_t *mpi_reply; in _scsih_io_done() local
5222 mpi_reply = mpt3sas_base_get_reply_virt_addr(ioc, reply); in _scsih_io_done()
5232 if (mpi_reply == NULL) { in _scsih_io_done()
5243 ioc_status = le16_to_cpu(mpi_reply->IOCStatus); in _scsih_io_done()
5263 scsi_state = mpi_reply->SCSIState; in _scsih_io_done()
5266 le32_to_cpu(mpi_reply->ResponseInfo) & 0xFF; in _scsih_io_done()
5279 xfer_cnt = le32_to_cpu(mpi_reply->TransferCount); in _scsih_io_done()
5282 log_info = le32_to_cpu(mpi_reply->IOCLogInfo); in _scsih_io_done()
5286 scsi_status = mpi_reply->SCSIStatus; in _scsih_io_done()
5300 le32_to_cpu(mpi_reply->SenseCount)); in _scsih_io_done()
5306 le16_to_cpu(mpi_reply->DevHandle)); in _scsih_io_done()
5313 _scsih_scsi_ioc_info(ioc, scmd, mpi_reply, smid); in _scsih_io_done()
5380 mpi_reply->SCSIState = MPI2_SCSI_STATE_AUTOSENSE_VALID; in _scsih_io_done()
5381 mpi_reply->SCSIStatus = SAM_STAT_CHECK_CONDITION; in _scsih_io_done()
5428 _scsih_scsi_ioc_info(ioc , scmd, mpi_reply, smid); in _scsih_io_done()
5453 Mpi2ConfigReply_t mpi_reply; in _scsih_sas_host_refresh() local
5471 if ((mpt3sas_config_get_sas_iounit_pg0(ioc, &mpi_reply, in _scsih_sas_host_refresh()
5474 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & MPI2_IOCSTATUS_MASK; in _scsih_sas_host_refresh()
5504 Mpi2ConfigReply_t mpi_reply; in _scsih_sas_host_add() local
5539 if ((mpt3sas_config_get_sas_iounit_pg0(ioc, &mpi_reply, in _scsih_sas_host_add()
5545 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_sas_host_add()
5562 if ((mpt3sas_config_get_sas_iounit_pg1(ioc, &mpi_reply, in _scsih_sas_host_add()
5568 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_sas_host_add()
5589 if ((mpt3sas_config_get_phy_pg0(ioc, &mpi_reply, &phy_pg0, in _scsih_sas_host_add()
5595 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_sas_host_add()
5611 if ((mpt3sas_config_get_sas_device_pg0(ioc, &mpi_reply, &sas_device_pg0, in _scsih_sas_host_add()
5626 if (!(mpt3sas_config_get_enclosure_pg0(ioc, &mpi_reply, in _scsih_sas_host_add()
5652 Mpi2ConfigReply_t mpi_reply; in _scsih_expander_add() local
5670 if ((mpt3sas_config_get_expander_pg0(ioc, &mpi_reply, &expander_pg0, in _scsih_expander_add()
5677 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_expander_add()
5754 if ((mpt3sas_config_get_expander_pg1(ioc, &mpi_reply, in _scsih_expander_add()
5833 MPI2DefaultReply_t *mpi_reply; in _scsih_done() local
5835 mpi_reply = mpt3sas_base_get_reply_virt_addr(ioc, reply); in _scsih_done()
5841 if (mpi_reply) { in _scsih_done()
5842 memcpy(ioc->scsih_cmds.reply, mpi_reply, in _scsih_done()
5843 mpi_reply->MsgLength*4); in _scsih_done()
5932 Mpi2ConfigReply_t mpi_reply; in _scsih_check_device() local
5943 if ((mpt3sas_config_get_sas_device_pg0(ioc, &mpi_reply, &sas_device_pg0, in _scsih_check_device()
5947 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & MPI2_IOCSTATUS_MASK; in _scsih_check_device()
6048 Mpi2ConfigReply_t mpi_reply; in _scsih_add_device() local
6056 if ((mpt3sas_config_get_sas_device_pg0(ioc, &mpi_reply, &sas_device_pg0, in _scsih_add_device()
6063 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_add_device()
6723 Mpi2ConfigReply_t mpi_reply; in _scsih_pcie_check_device() local
6733 if ((mpt3sas_config_get_pcie_device_pg0(ioc, &mpi_reply, in _scsih_pcie_check_device()
6737 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & MPI2_IOCSTATUS_MASK; in _scsih_pcie_check_device()
6817 Mpi2ConfigReply_t mpi_reply; in _scsih_pcie_add_device() local
6823 if ((mpt3sas_config_get_pcie_device_pg0(ioc, &mpi_reply, in _scsih_pcie_add_device()
6829 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_pcie_add_device()
6870 if (mpt3sas_config_get_pcie_device_pg2(ioc, &mpi_reply, in _scsih_pcie_add_device()
6879 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_pcie_add_device()
7304 Mpi2ConfigReply_t mpi_reply; in _scsih_sas_enclosure_dev_status_change_event() local
7333 rc = mpt3sas_config_get_enclosure_pg0(ioc, &mpi_reply, in _scsih_sas_enclosure_dev_status_change_event()
7338 if (rc || (le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_sas_enclosure_dev_status_change_event()
7377 Mpi2SCSITaskManagementReply_t *mpi_reply; in _scsih_sas_broadcast_primitive_event() local
7394 mpi_reply = ioc->tm_cmds.reply; in _scsih_sas_broadcast_primitive_event()
7450 ioc_status = le16_to_cpu(mpi_reply->IOCStatus) in _scsih_sas_broadcast_primitive_event()
7461 if (mpi_reply->ResponseCode == in _scsih_sas_broadcast_primitive_event()
7463 mpi_reply->ResponseCode == in _scsih_sas_broadcast_primitive_event()
7497 termination_count += le32_to_cpu(mpi_reply->TerminationCount); in _scsih_sas_broadcast_primitive_event()
7628 Mpi2RaidActionReply_t *mpi_reply; in _scsih_ir_fastpath() local
7682 mpi_reply = ioc->scsih_cmds.reply; in _scsih_ir_fastpath()
7683 ioc_status = le16_to_cpu(mpi_reply->IOCStatus); in _scsih_ir_fastpath()
7685 log_info = le32_to_cpu(mpi_reply->IOCLogInfo); in _scsih_ir_fastpath()
7925 Mpi2ConfigReply_t mpi_reply; in _scsih_sas_pd_add() local
7940 if ((mpt3sas_config_get_sas_device_pg0(ioc, &mpi_reply, &sas_device_pg0, in _scsih_sas_pd_add()
7947 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_sas_pd_add()
8206 Mpi2ConfigReply_t mpi_reply; in _scsih_sas_ir_physical_disk_event() local
8245 if ((mpt3sas_config_get_sas_device_pg0(ioc, &mpi_reply, in _scsih_sas_ir_physical_disk_event()
8253 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_sas_ir_physical_disk_event()
8477 Mpi2ConfigReply_t mpi_reply; in _scsih_create_enclosure_list_after_reset() local
8494 rc = mpt3sas_config_get_enclosure_pg0(ioc, &mpi_reply, in _scsih_create_enclosure_list_after_reset()
8499 if (rc || (le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_create_enclosure_list_after_reset()
8522 Mpi2ConfigReply_t mpi_reply; in _scsih_search_responding_sas_devices() local
8533 while (!(mpt3sas_config_get_sas_device_pg0(ioc, &mpi_reply, in _scsih_search_responding_sas_devices()
8536 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_search_responding_sas_devices()
8638 Mpi2ConfigReply_t mpi_reply; in _scsih_search_responding_pcie_devices() local
8649 while (!(mpt3sas_config_get_pcie_device_pg0(ioc, &mpi_reply, in _scsih_search_responding_pcie_devices()
8652 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_search_responding_pcie_devices()
8657 le32_to_cpu(mpi_reply.IOCLogInfo)); in _scsih_search_responding_pcie_devices()
8740 Mpi2ConfigReply_t mpi_reply; in _scsih_search_responding_raid_devices() local
8754 while (!(mpt3sas_config_get_raid_volume_pg1(ioc, &mpi_reply, in _scsih_search_responding_raid_devices()
8756 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_search_responding_raid_devices()
8762 if (mpt3sas_config_get_raid_volume_pg0(ioc, &mpi_reply, in _scsih_search_responding_raid_devices()
8778 while (!(mpt3sas_config_get_phys_disk_pg0(ioc, &mpi_reply, in _scsih_search_responding_raid_devices()
8781 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_search_responding_raid_devices()
8858 Mpi2ConfigReply_t mpi_reply; in _scsih_search_responding_expanders() local
8869 while (!(mpt3sas_config_get_expander_pg0(ioc, &mpi_reply, &expander_pg0, in _scsih_search_responding_expanders()
8872 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_search_responding_expanders()
8990 Mpi2ConfigReply_t mpi_reply; in _scsih_refresh_expander_links() local
8994 if ((mpt3sas_config_get_expander_pg1(ioc, &mpi_reply, in _scsih_refresh_expander_links()
9021 Mpi2ConfigReply_t mpi_reply; in _scsih_scan_for_devices_after_reset() local
9041 while (!(mpt3sas_config_get_expander_pg0(ioc, &mpi_reply, &expander_pg0, in _scsih_scan_for_devices_after_reset()
9043 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_scan_for_devices_after_reset()
9047 ioc_status, le32_to_cpu(mpi_reply.IOCLogInfo)); in _scsih_scan_for_devices_after_reset()
9078 while (!(mpt3sas_config_get_phys_disk_pg0(ioc, &mpi_reply, in _scsih_scan_for_devices_after_reset()
9081 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_scan_for_devices_after_reset()
9085 ioc_status, le32_to_cpu(mpi_reply.IOCLogInfo)); in _scsih_scan_for_devices_after_reset()
9095 if (mpt3sas_config_get_sas_device_pg0(ioc, &mpi_reply, in _scsih_scan_for_devices_after_reset()
9099 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_scan_for_devices_after_reset()
9103 ioc_status, le32_to_cpu(mpi_reply.IOCLogInfo)); in _scsih_scan_for_devices_after_reset()
9137 while (!(mpt3sas_config_get_raid_volume_pg1(ioc, &mpi_reply, in _scsih_scan_for_devices_after_reset()
9139 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_scan_for_devices_after_reset()
9143 ioc_status, le32_to_cpu(mpi_reply.IOCLogInfo)); in _scsih_scan_for_devices_after_reset()
9153 if (mpt3sas_config_get_raid_volume_pg0(ioc, &mpi_reply, in _scsih_scan_for_devices_after_reset()
9157 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_scan_for_devices_after_reset()
9161 ioc_status, le32_to_cpu(mpi_reply.IOCLogInfo)); in _scsih_scan_for_devices_after_reset()
9186 while (!(mpt3sas_config_get_sas_device_pg0(ioc, &mpi_reply, in _scsih_scan_for_devices_after_reset()
9189 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) & in _scsih_scan_for_devices_after_reset()
9193 ioc_status, le32_to_cpu(mpi_reply.IOCLogInfo)); in _scsih_scan_for_devices_after_reset()
9232 while (!(mpt3sas_config_get_pcie_device_pg0(ioc, &mpi_reply, in _scsih_scan_for_devices_after_reset()
9235 ioc_status = le16_to_cpu(mpi_reply.IOCStatus) in _scsih_scan_for_devices_after_reset()
9239 ioc_status, le32_to_cpu(mpi_reply.IOCLogInfo)); in _scsih_scan_for_devices_after_reset()
9456 Mpi2EventNotificationReply_t *mpi_reply; in mpt3sas_scsih_event_callback() local
9465 mpi_reply = mpt3sas_base_get_reply_virt_addr(ioc, reply); in mpt3sas_scsih_event_callback()
9467 if (unlikely(!mpi_reply)) { in mpt3sas_scsih_event_callback()
9473 event = le16_to_cpu(mpi_reply->Event); in mpt3sas_scsih_event_callback()
9484 mpi_reply->EventData; in mpt3sas_scsih_event_callback()
9501 mpi_reply->EventData); in mpt3sas_scsih_event_callback()
9506 mpi_reply->EventData); in mpt3sas_scsih_event_callback()
9511 mpi_reply->EventData); in mpt3sas_scsih_event_callback()
9516 mpi_reply->EventData); in mpt3sas_scsih_event_callback()
9527 mpi_reply->EventData; in mpt3sas_scsih_event_callback()
9554 mpi_reply->EventData); in mpt3sas_scsih_event_callback()
9568 mpi_reply->EventData); in mpt3sas_scsih_event_callback()
9572 (Mpi26EventDataActiveCableExcept_t *) mpi_reply->EventData; in mpt3sas_scsih_event_callback()
9597 sz = le16_to_cpu(mpi_reply->EventDataLength) * 4; in mpt3sas_scsih_event_callback()
9605 memcpy(fw_event->event_data, mpi_reply->EventData, sz); in mpt3sas_scsih_event_callback()
9607 fw_event->VF_ID = mpi_reply->VF_ID; in mpt3sas_scsih_event_callback()
9608 fw_event->VP_ID = mpi_reply->VP_ID; in mpt3sas_scsih_event_callback()
9673 Mpi2RaidActionReply_t *mpi_reply; in _scsih_ir_shutdown() local
9718 mpi_reply = ioc->scsih_cmds.reply; in _scsih_ir_shutdown()
9721 le16_to_cpu(mpi_reply->IOCStatus), in _scsih_ir_shutdown()
9722 le32_to_cpu(mpi_reply->IOCLogInfo)); in _scsih_ir_shutdown()
9746 Mpi2ConfigReply_t mpi_reply; in scsih_remove() local
9766 mpt3sas_config_set_ioc_pg1(ioc, &mpi_reply, in scsih_remove()
9830 Mpi2ConfigReply_t mpi_reply; in scsih_shutdown() local
9850 mpt3sas_config_set_ioc_pg1(ioc, &mpi_reply, in scsih_shutdown()