Lines Matching refs:mpi_request

96 	Mpi2ConfigRequest_t *mpi_request;  in _ctl_display_some_debug()  local
102 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _ctl_display_some_debug()
103 switch (mpi_request->Function) { in _ctl_display_some_debug()
107 (Mpi2SCSIIORequest_t *)mpi_request; in _ctl_display_some_debug()
128 (Mpi2ConfigRequest_t *)mpi_request; in _ctl_display_some_debug()
159 (Mpi2SCSIIORequest_t *)mpi_request; in _ctl_display_some_debug()
204 if (mpi_request->Function == MPI2_FUNCTION_SCSI_IO_REQUEST || in _ctl_display_some_debug()
205 mpi_request->Function == in _ctl_display_some_debug()
665 MPI2RequestHeader_t *mpi_request = NULL, *request; in _ctl_do_mpt_command() local
695 mpi_request = kzalloc(ioc->request_sz, GFP_KERNEL); in _ctl_do_mpt_command()
696 if (!mpi_request) { in _ctl_do_mpt_command()
711 if (copy_from_user(mpi_request, mf, karg.data_sge_offset*4)) { in _ctl_do_mpt_command()
718 if (mpi_request->Function == MPI2_FUNCTION_SCSI_TASK_MGMT) { in _ctl_do_mpt_command()
735 memcpy(request, mpi_request, karg.data_sge_offset*4); in _ctl_do_mpt_command()
740 if (mpi_request->Function == MPI2_FUNCTION_SCSI_IO_REQUEST || in _ctl_do_mpt_command()
741 mpi_request->Function == MPI2_FUNCTION_RAID_SCSI_IO_PASSTHROUGH || in _ctl_do_mpt_command()
742 mpi_request->Function == MPI2_FUNCTION_SCSI_TASK_MGMT || in _ctl_do_mpt_command()
743 mpi_request->Function == MPI2_FUNCTION_SATA_PASSTHROUGH || in _ctl_do_mpt_command()
744 mpi_request->Function == MPI2_FUNCTION_NVME_ENCAPSULATED) { in _ctl_do_mpt_command()
746 device_handle = le16_to_cpu(mpi_request->FunctionDependent1); in _ctl_do_mpt_command()
794 switch (mpi_request->Function) { in _ctl_do_mpt_command()
859 if (mpi_request->Function == MPI2_FUNCTION_SCSI_IO_REQUEST) in _ctl_do_mpt_command()
905 (Mpi2SmpPassthroughRequest_t *)mpi_request; in _ctl_do_mpt_command()
969 (Mpi2ToolboxCleanRequest_t *)mpi_request; in _ctl_do_mpt_command()
1008 (Mpi2SasIoUnitControlRequest_t *)mpi_request; in _ctl_do_mpt_command()
1031 if (mpi_request->Function == MPI2_FUNCTION_SCSI_TASK_MGMT) { in _ctl_do_mpt_command()
1033 (Mpi2SCSITaskManagementRequest_t *)mpi_request; in _ctl_do_mpt_command()
1037 } else if ((mpi_request->Function == MPI2_FUNCTION_SMP_PASSTHROUGH || in _ctl_do_mpt_command()
1038 mpi_request->Function == MPI2_FUNCTION_SAS_IO_UNIT_CONTROL) && in _ctl_do_mpt_command()
1045 ioc->ctl_cmds.status, mpi_request, in _ctl_do_mpt_command()
1087 if (karg.max_sense_bytes && (mpi_request->Function == in _ctl_do_mpt_command()
1088 MPI2_FUNCTION_SCSI_IO_REQUEST || mpi_request->Function == in _ctl_do_mpt_command()
1089 MPI2_FUNCTION_RAID_SCSI_IO_PASSTHROUGH || mpi_request->Function == in _ctl_do_mpt_command()
1095 sz_arg = (mpi_request->Function == in _ctl_do_mpt_command()
1111 if ((mpi_request->Function == MPI2_FUNCTION_SCSI_IO_REQUEST || in _ctl_do_mpt_command()
1112 mpi_request->Function == in _ctl_do_mpt_command()
1114 mpi_request->Function == MPI2_FUNCTION_SATA_PASSTHROUGH)) { in _ctl_do_mpt_command()
1116 le16_to_cpu(mpi_request->FunctionDependent1)); in _ctl_do_mpt_command()
1119 le16_to_cpu(mpi_request->FunctionDependent1)); in _ctl_do_mpt_command()
1124 le16_to_cpu(mpi_request->FunctionDependent1), in _ctl_do_mpt_command()
1131 le16_to_cpu(mpi_request->FunctionDependent1), in _ctl_do_mpt_command()
1152 kfree(mpi_request); in _ctl_do_mpt_command()
1564 Mpi2DiagBufferPostRequest_t *mpi_request; in _ctl_diag_register_2() local
1696 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _ctl_diag_register_2()
1697 memset(mpi_request, 0, ioc->request_sz); in _ctl_diag_register_2()
1739 mpi_request->Function = MPI2_FUNCTION_DIAG_BUFFER_POST; in _ctl_diag_register_2()
1740 mpi_request->BufferType = diag_register->buffer_type; in _ctl_diag_register_2()
1741 mpi_request->Flags = cpu_to_le32(diag_register->diagnostic_flags); in _ctl_diag_register_2()
1742 mpi_request->BufferAddress = cpu_to_le64(request_data_dma); in _ctl_diag_register_2()
1743 mpi_request->BufferLength = cpu_to_le32(request_data_sz); in _ctl_diag_register_2()
1744 mpi_request->VF_ID = 0; /* TODO */ in _ctl_diag_register_2()
1745 mpi_request->VP_ID = 0; in _ctl_diag_register_2()
1751 le32_to_cpu(mpi_request->BufferLength))); in _ctl_diag_register_2()
1754 mpi_request->ProductSpecific[i] = in _ctl_diag_register_2()
1764 ioc->ctl_cmds.status, mpi_request, in _ctl_diag_register_2()
2132 Mpi2DiagReleaseRequest_t *mpi_request; in mpt3sas_send_diag_release() local
2175 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in mpt3sas_send_diag_release()
2176 memset(mpi_request, 0, ioc->request_sz); in mpt3sas_send_diag_release()
2179 mpi_request->Function = MPI2_FUNCTION_DIAG_RELEASE; in mpt3sas_send_diag_release()
2180 mpi_request->BufferType = buffer_type; in mpt3sas_send_diag_release()
2181 mpi_request->VF_ID = 0; /* TODO */ in mpt3sas_send_diag_release()
2182 mpi_request->VP_ID = 0; in mpt3sas_send_diag_release()
2191 ioc->ctl_cmds.status, mpi_request, in mpt3sas_send_diag_release()
2323 Mpi2DiagBufferPostRequest_t *mpi_request; in _ctl_diag_read_buffer() local
2430 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _ctl_diag_read_buffer()
2431 memset(mpi_request, 0, ioc->request_sz); in _ctl_diag_read_buffer()
2434 mpi_request->Function = MPI2_FUNCTION_DIAG_BUFFER_POST; in _ctl_diag_read_buffer()
2435 mpi_request->BufferType = buffer_type; in _ctl_diag_read_buffer()
2436 mpi_request->BufferLength = in _ctl_diag_read_buffer()
2438 mpi_request->BufferAddress = in _ctl_diag_read_buffer()
2441 mpi_request->ProductSpecific[i] = in _ctl_diag_read_buffer()
2443 mpi_request->VF_ID = 0; /* TODO */ in _ctl_diag_read_buffer()
2444 mpi_request->VP_ID = 0; in _ctl_diag_read_buffer()
2453 ioc->ctl_cmds.status, mpi_request, in _ctl_diag_read_buffer()