Lines Matching refs:mpi_request

1478 	Mpi25SCSIIORequest_t *mpi_request;  in mpt3sas_scsih_scsi_lookup_get()  local
1484 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in mpt3sas_scsih_scsi_lookup_get()
1492 if (!mpi_request->DevHandle) in mpt3sas_scsih_scsi_lookup_get()
2671 Mpi2SCSITaskManagementRequest_t *mpi_request; in mpt3sas_scsih_issue_tm() local
2714 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in mpt3sas_scsih_issue_tm()
2716 memset(mpi_request, 0, sizeof(Mpi2SCSITaskManagementRequest_t)); in mpt3sas_scsih_issue_tm()
2718 mpi_request->Function = MPI2_FUNCTION_SCSI_TASK_MGMT; in mpt3sas_scsih_issue_tm()
2719 mpi_request->DevHandle = cpu_to_le16(handle); in mpt3sas_scsih_issue_tm()
2720 mpi_request->TaskType = type; in mpt3sas_scsih_issue_tm()
2721 mpi_request->MsgFlags = tr_method; in mpt3sas_scsih_issue_tm()
2722 mpi_request->TaskMID = cpu_to_le16(smid_task); in mpt3sas_scsih_issue_tm()
2723 int_to_scsilun(lun, (struct scsi_lun *)mpi_request->LUN); in mpt3sas_scsih_issue_tm()
2730 ioc->tm_cmds.status, mpi_request, in mpt3sas_scsih_issue_tm()
2753 _debug_dump_mf(mpi_request, in mpt3sas_scsih_issue_tm()
3593 Mpi2SCSITaskManagementRequest_t *mpi_request; in _scsih_tm_tr_send() local
3699 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_tm_tr_send()
3700 memset(mpi_request, 0, sizeof(Mpi2SCSITaskManagementRequest_t)); in _scsih_tm_tr_send()
3701 mpi_request->Function = MPI2_FUNCTION_SCSI_TASK_MGMT; in _scsih_tm_tr_send()
3702 mpi_request->DevHandle = cpu_to_le16(handle); in _scsih_tm_tr_send()
3703 mpi_request->TaskType = MPI2_SCSITASKMGMT_TASKTYPE_TARGET_RESET; in _scsih_tm_tr_send()
3704 mpi_request->MsgFlags = tr_method; in _scsih_tm_tr_send()
3740 Mpi2SasIoUnitControlRequest_t *mpi_request; in _scsih_tm_tr_complete() local
3797 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid_sas_ctrl); in _scsih_tm_tr_complete()
3798 memset(mpi_request, 0, sizeof(Mpi2SasIoUnitControlRequest_t)); in _scsih_tm_tr_complete()
3799 mpi_request->Function = MPI2_FUNCTION_SAS_IO_UNIT_CONTROL; in _scsih_tm_tr_complete()
3800 mpi_request->Operation = MPI2_SAS_OP_REMOVE_DEVICE; in _scsih_tm_tr_complete()
3801 mpi_request->DevHandle = mpi_request_tm->DevHandle; in _scsih_tm_tr_complete()
3895 Mpi2SCSITaskManagementRequest_t *mpi_request; in _scsih_tm_tr_volume_send() local
3923 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_tm_tr_volume_send()
3924 memset(mpi_request, 0, sizeof(Mpi2SCSITaskManagementRequest_t)); in _scsih_tm_tr_volume_send()
3925 mpi_request->Function = MPI2_FUNCTION_SCSI_TASK_MGMT; in _scsih_tm_tr_volume_send()
3926 mpi_request->DevHandle = cpu_to_le16(handle); in _scsih_tm_tr_volume_send()
3927 mpi_request->TaskType = MPI2_SCSITASKMGMT_TASKTYPE_TARGET_RESET; in _scsih_tm_tr_volume_send()
4033 Mpi2SasIoUnitControlRequest_t *mpi_request; in _scsih_issue_delayed_sas_io_unit_ctrl() local
4068 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_issue_delayed_sas_io_unit_ctrl()
4069 memset(mpi_request, 0, sizeof(Mpi2SasIoUnitControlRequest_t)); in _scsih_issue_delayed_sas_io_unit_ctrl()
4070 mpi_request->Function = MPI2_FUNCTION_SAS_IO_UNIT_CONTROL; in _scsih_issue_delayed_sas_io_unit_ctrl()
4071 mpi_request->Operation = MPI2_SAS_OP_REMOVE_DEVICE; in _scsih_issue_delayed_sas_io_unit_ctrl()
4072 mpi_request->DevHandle = cpu_to_le16(handle); in _scsih_issue_delayed_sas_io_unit_ctrl()
4547 Mpi25SCSIIORequest_t *mpi_request) in _scsih_setup_eedp() argument
4553 (Mpi25SCSIIORequest_t *)mpi_request; in _scsih_setup_eedp()
4576 mpi_request->CDB.EEDP32.PrimaryReferenceTag = in _scsih_setup_eedp()
4595 mpi_request->EEDPFlags = cpu_to_le16(eedp_flags); in _scsih_setup_eedp()
4648 Mpi25SCSIIORequest_t *mpi_request; in scsih_qcmd() local
4734 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in scsih_qcmd()
4735 memset(mpi_request, 0, ioc->request_sz); in scsih_qcmd()
4736 _scsih_setup_eedp(ioc, scmd, mpi_request); in scsih_qcmd()
4740 mpi_request->Function = MPI2_FUNCTION_SCSI_IO_REQUEST; in scsih_qcmd()
4743 mpi_request->Function = MPI2_FUNCTION_RAID_SCSI_IO_PASSTHROUGH; in scsih_qcmd()
4745 mpi_request->Function = MPI2_FUNCTION_SCSI_IO_REQUEST; in scsih_qcmd()
4746 mpi_request->DevHandle = cpu_to_le16(handle); in scsih_qcmd()
4747 mpi_request->DataLength = cpu_to_le32(scsi_bufflen(scmd)); in scsih_qcmd()
4748 mpi_request->Control = cpu_to_le32(mpi_control); in scsih_qcmd()
4749 mpi_request->IoFlags = cpu_to_le16(scmd->cmd_len); in scsih_qcmd()
4750 mpi_request->MsgFlags = MPI2_SCSIIO_MSGFLAGS_SYSTEM_SENSE_ADDR; in scsih_qcmd()
4751 mpi_request->SenseBufferLength = SCSI_SENSE_BUFFERSIZE; in scsih_qcmd()
4752 mpi_request->SenseBufferLowAddress = in scsih_qcmd()
4754 mpi_request->SGLOffset0 = offsetof(Mpi25SCSIIORequest_t, SGL) / 4; in scsih_qcmd()
4756 mpi_request->LUN); in scsih_qcmd()
4757 memcpy(mpi_request->CDB.CDB32, scmd->cmnd, scmd->cmd_len); in scsih_qcmd()
4759 if (mpi_request->DataLength) { in scsih_qcmd()
4767 ioc->build_zero_len_sge(ioc, &mpi_request->SGL); in scsih_qcmd()
4772 raid_device, mpi_request); in scsih_qcmd()
4774 if (likely(mpi_request->Function == MPI2_FUNCTION_SCSI_IO_REQUEST)) { in scsih_qcmd()
4776 mpi_request->IoFlags = cpu_to_le16(scmd->cmd_len | in scsih_qcmd()
4781 le16_to_cpu(mpi_request->DevHandle)); in scsih_qcmd()
5033 Mpi2SepRequest_t mpi_request; in _scsih_turn_on_pfa_led() local
5040 memset(&mpi_request, 0, sizeof(Mpi2SepRequest_t)); in _scsih_turn_on_pfa_led()
5041 mpi_request.Function = MPI2_FUNCTION_SCSI_ENCLOSURE_PROCESSOR; in _scsih_turn_on_pfa_led()
5042 mpi_request.Action = MPI2_SEP_REQ_ACTION_WRITE_STATUS; in _scsih_turn_on_pfa_led()
5043 mpi_request.SlotStatus = in _scsih_turn_on_pfa_led()
5045 mpi_request.DevHandle = cpu_to_le16(handle); in _scsih_turn_on_pfa_led()
5046 mpi_request.Flags = MPI2_SEP_REQ_FLAGS_DEVHANDLE_ADDRESS; in _scsih_turn_on_pfa_led()
5048 &mpi_request)) != 0) { in _scsih_turn_on_pfa_led()
5077 Mpi2SepRequest_t mpi_request; in _scsih_turn_off_pfa_led() local
5079 memset(&mpi_request, 0, sizeof(Mpi2SepRequest_t)); in _scsih_turn_off_pfa_led()
5080 mpi_request.Function = MPI2_FUNCTION_SCSI_ENCLOSURE_PROCESSOR; in _scsih_turn_off_pfa_led()
5081 mpi_request.Action = MPI2_SEP_REQ_ACTION_WRITE_STATUS; in _scsih_turn_off_pfa_led()
5082 mpi_request.SlotStatus = 0; in _scsih_turn_off_pfa_led()
5083 mpi_request.Slot = cpu_to_le16(sas_device->slot); in _scsih_turn_off_pfa_led()
5084 mpi_request.DevHandle = 0; in _scsih_turn_off_pfa_led()
5085 mpi_request.EnclosureHandle = cpu_to_le16(sas_device->enclosure_handle); in _scsih_turn_off_pfa_led()
5086 mpi_request.Flags = MPI2_SEP_REQ_FLAGS_ENCLOSURE_SLOT_ADDRESS; in _scsih_turn_off_pfa_led()
5088 &mpi_request)) != 0) { in _scsih_turn_off_pfa_led()
5210 Mpi25SCSIIORequest_t *mpi_request; in _scsih_io_done() local
5230 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_io_done()
5255 memcpy(mpi_request->CDB.CDB32, scmd->cmnd, scmd->cmd_len); in _scsih_io_done()
5256 mpi_request->DevHandle = in _scsih_io_done()
7627 Mpi2RaidActionRequest_t *mpi_request; in _scsih_ir_fastpath() local
7655 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_ir_fastpath()
7657 memset(mpi_request, 0, sizeof(Mpi2RaidActionRequest_t)); in _scsih_ir_fastpath()
7659 mpi_request->Function = MPI2_FUNCTION_RAID_ACTION; in _scsih_ir_fastpath()
7660 mpi_request->Action = MPI2_RAID_ACTION_PHYSDISK_HIDDEN; in _scsih_ir_fastpath()
7661 mpi_request->PhysDiskNum = phys_disk_num; in _scsih_ir_fastpath()
7674 ioc->scsih_cmds.status, mpi_request, in _scsih_ir_fastpath()
9672 Mpi2RaidActionRequest_t *mpi_request; in _scsih_ir_shutdown() local
9699 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_ir_shutdown()
9701 memset(mpi_request, 0, sizeof(Mpi2RaidActionRequest_t)); in _scsih_ir_shutdown()
9703 mpi_request->Function = MPI2_FUNCTION_RAID_ACTION; in _scsih_ir_shutdown()
9704 mpi_request->Action = MPI2_RAID_ACTION_SYSTEM_SHUTDOWN_INITIATED; in _scsih_ir_shutdown()