Lines Matching refs:mpi_request
1753 Mpi25SCSIIORequest_t *mpi_request; in mpt3sas_scsih_scsi_lookup_get() local
1761 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in mpt3sas_scsih_scsi_lookup_get()
1769 if (!mpi_request->DevHandle) in mpt3sas_scsih_scsi_lookup_get()
3050 Mpi2SCSITaskManagementRequest_t *mpi_request; in mpt3sas_scsih_issue_tm() local
3101 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in mpt3sas_scsih_issue_tm()
3103 memset(mpi_request, 0, sizeof(Mpi2SCSITaskManagementRequest_t)); in mpt3sas_scsih_issue_tm()
3105 mpi_request->Function = MPI2_FUNCTION_SCSI_TASK_MGMT; in mpt3sas_scsih_issue_tm()
3106 mpi_request->DevHandle = cpu_to_le16(handle); in mpt3sas_scsih_issue_tm()
3107 mpi_request->TaskType = type; in mpt3sas_scsih_issue_tm()
3110 mpi_request->MsgFlags = tr_method; in mpt3sas_scsih_issue_tm()
3111 mpi_request->TaskMID = cpu_to_le16(smid_task); in mpt3sas_scsih_issue_tm()
3112 int_to_scsilun(lun, (struct scsi_lun *)mpi_request->LUN); in mpt3sas_scsih_issue_tm()
3119 ioc->tm_cmds.status, mpi_request, in mpt3sas_scsih_issue_tm()
3143 _debug_dump_mf(mpi_request, in mpt3sas_scsih_issue_tm()
4079 Mpi2SCSITaskManagementRequest_t *mpi_request; in _scsih_tm_tr_send() local
4187 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_tm_tr_send()
4188 memset(mpi_request, 0, sizeof(Mpi2SCSITaskManagementRequest_t)); in _scsih_tm_tr_send()
4189 mpi_request->Function = MPI2_FUNCTION_SCSI_TASK_MGMT; in _scsih_tm_tr_send()
4190 mpi_request->DevHandle = cpu_to_le16(handle); in _scsih_tm_tr_send()
4191 mpi_request->TaskType = MPI2_SCSITASKMGMT_TASKTYPE_TARGET_RESET; in _scsih_tm_tr_send()
4192 mpi_request->MsgFlags = tr_method; in _scsih_tm_tr_send()
4228 Mpi2SasIoUnitControlRequest_t *mpi_request; in _scsih_tm_tr_complete() local
4285 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid_sas_ctrl); in _scsih_tm_tr_complete()
4286 memset(mpi_request, 0, sizeof(Mpi2SasIoUnitControlRequest_t)); in _scsih_tm_tr_complete()
4287 mpi_request->Function = MPI2_FUNCTION_SAS_IO_UNIT_CONTROL; in _scsih_tm_tr_complete()
4288 mpi_request->Operation = MPI2_SAS_OP_REMOVE_DEVICE; in _scsih_tm_tr_complete()
4289 mpi_request->DevHandle = mpi_request_tm->DevHandle; in _scsih_tm_tr_complete()
4383 Mpi2SCSITaskManagementRequest_t *mpi_request; in _scsih_tm_tr_volume_send() local
4411 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_tm_tr_volume_send()
4412 memset(mpi_request, 0, sizeof(Mpi2SCSITaskManagementRequest_t)); in _scsih_tm_tr_volume_send()
4413 mpi_request->Function = MPI2_FUNCTION_SCSI_TASK_MGMT; in _scsih_tm_tr_volume_send()
4414 mpi_request->DevHandle = cpu_to_le16(handle); in _scsih_tm_tr_volume_send()
4415 mpi_request->TaskType = MPI2_SCSITASKMGMT_TASKTYPE_TARGET_RESET; in _scsih_tm_tr_volume_send()
4521 Mpi2SasIoUnitControlRequest_t *mpi_request; in _scsih_issue_delayed_sas_io_unit_ctrl() local
4556 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_issue_delayed_sas_io_unit_ctrl()
4557 memset(mpi_request, 0, sizeof(Mpi2SasIoUnitControlRequest_t)); in _scsih_issue_delayed_sas_io_unit_ctrl()
4558 mpi_request->Function = MPI2_FUNCTION_SAS_IO_UNIT_CONTROL; in _scsih_issue_delayed_sas_io_unit_ctrl()
4559 mpi_request->Operation = MPI2_SAS_OP_REMOVE_DEVICE; in _scsih_issue_delayed_sas_io_unit_ctrl()
4560 mpi_request->DevHandle = cpu_to_le16(handle); in _scsih_issue_delayed_sas_io_unit_ctrl()
5048 Mpi25SCSIIORequest_t *mpi_request) in _scsih_setup_eedp() argument
5052 (Mpi25SCSIIORequest_t *)mpi_request; in _scsih_setup_eedp()
5074 mpi_request->CDB.EEDP32.PrimaryReferenceTag = in _scsih_setup_eedp()
5082 mpi_request->EEDPFlags = cpu_to_le16(eedp_flags); in _scsih_setup_eedp()
5133 Mpi25SCSIIORequest_t *mpi_request; in scsih_qcmd() local
5232 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in scsih_qcmd()
5233 memset(mpi_request, 0, ioc->request_sz); in scsih_qcmd()
5234 _scsih_setup_eedp(ioc, scmd, mpi_request); in scsih_qcmd()
5238 mpi_request->Function = MPI2_FUNCTION_SCSI_IO_REQUEST; in scsih_qcmd()
5241 mpi_request->Function = MPI2_FUNCTION_RAID_SCSI_IO_PASSTHROUGH; in scsih_qcmd()
5243 mpi_request->Function = MPI2_FUNCTION_SCSI_IO_REQUEST; in scsih_qcmd()
5244 mpi_request->DevHandle = cpu_to_le16(handle); in scsih_qcmd()
5245 mpi_request->DataLength = cpu_to_le32(scsi_bufflen(scmd)); in scsih_qcmd()
5246 mpi_request->Control = cpu_to_le32(mpi_control); in scsih_qcmd()
5247 mpi_request->IoFlags = cpu_to_le16(scmd->cmd_len); in scsih_qcmd()
5248 mpi_request->MsgFlags = MPI2_SCSIIO_MSGFLAGS_SYSTEM_SENSE_ADDR; in scsih_qcmd()
5249 mpi_request->SenseBufferLength = SCSI_SENSE_BUFFERSIZE; in scsih_qcmd()
5250 mpi_request->SenseBufferLowAddress = in scsih_qcmd()
5252 mpi_request->SGLOffset0 = offsetof(Mpi25SCSIIORequest_t, SGL) / 4; in scsih_qcmd()
5254 mpi_request->LUN); in scsih_qcmd()
5255 memcpy(mpi_request->CDB.CDB32, scmd->cmnd, scmd->cmd_len); in scsih_qcmd()
5257 if (mpi_request->DataLength) { in scsih_qcmd()
5265 ioc->build_zero_len_sge(ioc, &mpi_request->SGL); in scsih_qcmd()
5270 raid_device, mpi_request); in scsih_qcmd()
5272 if (likely(mpi_request->Function == MPI2_FUNCTION_SCSI_IO_REQUEST)) { in scsih_qcmd()
5274 mpi_request->IoFlags = cpu_to_le16(scmd->cmd_len | in scsih_qcmd()
5279 le16_to_cpu(mpi_request->DevHandle)); in scsih_qcmd()
5531 Mpi2SepRequest_t mpi_request; in _scsih_turn_on_pfa_led() local
5538 memset(&mpi_request, 0, sizeof(Mpi2SepRequest_t)); in _scsih_turn_on_pfa_led()
5539 mpi_request.Function = MPI2_FUNCTION_SCSI_ENCLOSURE_PROCESSOR; in _scsih_turn_on_pfa_led()
5540 mpi_request.Action = MPI2_SEP_REQ_ACTION_WRITE_STATUS; in _scsih_turn_on_pfa_led()
5541 mpi_request.SlotStatus = in _scsih_turn_on_pfa_led()
5543 mpi_request.DevHandle = cpu_to_le16(handle); in _scsih_turn_on_pfa_led()
5544 mpi_request.Flags = MPI2_SEP_REQ_FLAGS_DEVHANDLE_ADDRESS; in _scsih_turn_on_pfa_led()
5546 &mpi_request)) != 0) { in _scsih_turn_on_pfa_led()
5575 Mpi2SepRequest_t mpi_request; in _scsih_turn_off_pfa_led() local
5577 memset(&mpi_request, 0, sizeof(Mpi2SepRequest_t)); in _scsih_turn_off_pfa_led()
5578 mpi_request.Function = MPI2_FUNCTION_SCSI_ENCLOSURE_PROCESSOR; in _scsih_turn_off_pfa_led()
5579 mpi_request.Action = MPI2_SEP_REQ_ACTION_WRITE_STATUS; in _scsih_turn_off_pfa_led()
5580 mpi_request.SlotStatus = 0; in _scsih_turn_off_pfa_led()
5581 mpi_request.Slot = cpu_to_le16(sas_device->slot); in _scsih_turn_off_pfa_led()
5582 mpi_request.DevHandle = 0; in _scsih_turn_off_pfa_led()
5583 mpi_request.EnclosureHandle = cpu_to_le16(sas_device->enclosure_handle); in _scsih_turn_off_pfa_led()
5584 mpi_request.Flags = MPI2_SEP_REQ_FLAGS_ENCLOSURE_SLOT_ADDRESS; in _scsih_turn_off_pfa_led()
5586 &mpi_request)) != 0) { in _scsih_turn_off_pfa_led()
5708 Mpi25SCSIIORequest_t *mpi_request; in _scsih_io_done() local
5728 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_io_done()
5753 memcpy(mpi_request->CDB.CDB32, scmd->cmnd, scmd->cmd_len); in _scsih_io_done()
5754 mpi_request->DevHandle = in _scsih_io_done()
8917 Mpi2RaidActionRequest_t *mpi_request; in _scsih_ir_fastpath() local
8945 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_ir_fastpath()
8947 memset(mpi_request, 0, sizeof(Mpi2RaidActionRequest_t)); in _scsih_ir_fastpath()
8949 mpi_request->Function = MPI2_FUNCTION_RAID_ACTION; in _scsih_ir_fastpath()
8950 mpi_request->Action = MPI2_RAID_ACTION_PHYSDISK_HIDDEN; in _scsih_ir_fastpath()
8951 mpi_request->PhysDiskNum = phys_disk_num; in _scsih_ir_fastpath()
8963 ioc->scsih_cmds.status, mpi_request, in _scsih_ir_fastpath()
11102 Mpi26IoUnitControlRequest_t *mpi_request; in _scsih_nvme_shutdown() local
11127 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_nvme_shutdown()
11129 memset(mpi_request, 0, sizeof(Mpi26IoUnitControlRequest_t)); in _scsih_nvme_shutdown()
11130 mpi_request->Function = MPI2_FUNCTION_IO_UNIT_CONTROL; in _scsih_nvme_shutdown()
11131 mpi_request->Operation = MPI26_CTRL_OP_SHUTDOWN; in _scsih_nvme_shutdown()
11170 Mpi2RaidActionRequest_t *mpi_request; in _scsih_ir_shutdown() local
11197 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_ir_shutdown()
11199 memset(mpi_request, 0, sizeof(Mpi2RaidActionRequest_t)); in _scsih_ir_shutdown()
11201 mpi_request->Function = MPI2_FUNCTION_RAID_ACTION; in _scsih_ir_shutdown()
11202 mpi_request->Action = MPI2_RAID_ACTION_SYSTEM_SHUTDOWN_INITIATED; in _scsih_ir_shutdown()